.portget Method

Function:

Returns the state of the I/O port specified by the num argument.

Syntax:

io.portget(num as pl_io_port_num) as byte

Returns:

0-255. Each bit of this value corresponds to one member I/O line of the 8-bit port.

See Also:

Line/Port Manipulation Without Preselection, io.portset


Part

Description

num

Platform-specific. See the list of pl_io_port_num constants in the platform specifications.


Details

No line preselection with the io.portnum property is required and the value of io.portnum will not be changed.


.portget Method

Details