Chapter 13 Input/Output Control Statements
13-19
com_state (Version 1.5 or later)
Function
Gets the status of RS-232C or Ethernet port.
Format
com_state #<portnumber>,<integervar>
Explanation
This command gets bytes of data remaining in the transmission buffer, into the
integer variable specified by <integervar>.
Note that -1 will be returned if a transmission port error occurs. At the time of
Ethernet use, -1 will be also returned if network connection of the port is not
established.
Example
'!TITLE "<Title>"
PROGRAM sample
.
.
.
com_state #1,I280 'Gets data remaining in transmission buffer into I280
.
.
.
end
Comments to this Manuals