13-14
inputb (Version 1.5 or later)
Function
Inputs a single byte of data from the RS-232C or Ethernet port.
Format
inputb #<portnumber>,<integervarnumber>
<portnumber> Input port number
(1: Controller RS-232C port, -1: µVision RS-232C port,
4 to 7: Ethernet server ports, 8 to 15: Ethernet client ports)
<integervarnumber> Integer variable number where input data is to be
stored
Explanation
This command stores a single byte of data inputted from the specified port, into
<integervarnumber>.
NOTE: If no data exists in the specified port, executing this command will result
in an error. Before execution of this command, transfer data from external
equipment. To check whether any data exists or not, use com_state
command.
Example
'!TITLE "<Title>"
PROGRAM sample
.
.
.
inputb #1,I10 'Store data inputted from RS-232C port into I10
.
.
.
end
Comments to this Manuals