Chapter 13 Input/Output Control Statements
13-13
13.3 Serial Binary Transmission Commands
(RS232C and Ethernet ports)
printb (Version 1.5 or later)
Function
Outputs a single byte of data to the RS-232C or Ethernet port.
Format
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
Explanation
This command outputs the lower byte of data assigned to
<integervarnumber> to the port specified by <portnumber>.
Example
'!TITLE "<Title>"
PROGRAM sample
.
.
.
printb #1,I10 'Output the lower byte of data stored in I10 to RS-232C port
.
.
.
end
Comments to this Manuals