-
10
-
4.3.2. W command
Function
Write the data to the output port. The data is 2 bytes, the order is high and low.
Format
Wxx
CR LF
:
Write the output data following ”W” to the output port.
“x” is ASCII code 0 to F.
Return value
OK
CR LF
:
Data output to the output port is complete.
NG
CR LF
:
Recognition error of command or data.
Example
Send
:
W01
CR LF
Reply
:
OK
CR LF
(OUT1 is ON, from OUT2 to 8 are OFF)
4.3.3. O command (ON / OF command)
Function
Specified bit on the output port will be set “ON” or “OFF”.
Format
ONx
CR LF
:
Write the specified bit number following “ON”.
“x” is ASCII code 1 to 8.
OFx
CR LF
:
Write the specified bit number following “OF”.
“x” is ASCII code 1 to 8.
Return value
OK
CR LF
:
Data output to the output bit is complete.
NG
CR LF
:
Recognition error of command or data.
Example
Send
:
ON1
CR LF
Reply
:
OK
CR LF
(OUT1 is ON)
Send
:
OF2
CR LF
Reply
:
OK
CR LF
(OUT2 is OFF)