PRINTB (Statement) [Version 1.5 or later]


Outputs a single byte of data to the RS-232C or Ethernet port.


PRINTB [#<portnumber>,]<integervarnumber>
<portnumber>
Output 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 output data is stored


This command outputs the lower byte of data assigned to <integervarnumber> to the port specified by <portnumber>.


'!TITLE "<Title>"
PROGRAM sample
·
·
·
PRINTB #1,I10
'Output the lower byte of data stored in I10 to RS-232C port
·
·
·
END


Top