17
3
3.3. Command Explanation
The following are examples on how to send each of the commands from the command list table.
3.3.1.
<Turn ON Specified Output Terminals>
Sending data in the following format will control the specified Output Terminal to turn “ON.” The bit in the data
section specified as 0, will maintain the specified Output Terminal’s condition, and the bit in the data section
specified as 1 will turn on the specified Output Terminal.
[Transmission Example]
In this example, the Output Terminals 2, 5, and 6 are turned ON.
• Send Data
Header
ID
Command
Data
End Code
@
[40H]
?
[3FH]
?
[3FH]
1
[30H]
3
[33H]
2
[32H]
!
[21H]
• Reply Data
Normal Response
Data
ACK
[06H]
Response Error
Data
NAK
[15H]
The following are conditions which will get a NAK reply and the error contents.
Transmission Condition
Error Contents
Command error
When a command other than on the list of commands is specified
Data error
When data, other than 0[30H] - ?[3FH], is used
Data size error
When the number of bytes in the send data is different
Timeout
Reply interval between data is more than 5 seconds after receipt of header
* Do not transmit the following command, before this product transmits reply data. It may not operate
normally.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 0
Output Terminal 1
Output Terminal 2
Output Terminal 3
Output Terminal 4
Output Terminal 5
Output Terminal 6
Output Terminal 7
Output Terminal 8