21
3
3.3.5.
<Obtain Output Terminal Condition>
When data is transmitted in the following format, the reply data will return with an 8 byte ASCII value to indicate
the Output Terminal Buss status.
When the reply data returns with a 0 [30H], the corresponding output terminal is in the off state; and when a 1 [31H]
has returned, the corresponding output terminal is in the ON state.
[Transmission Example]
In this example, Output Terminals 2, 3, and 6 are in the ON state and all others are
in the OFF state.
• Send data
Header
ID
Command
End Code
@
[40H]
?
[3FH]
?
[3FH]
G
[47H]
!
[21H]
• Reply data
Normal response
Output Terminal Block
1
2
3
4
5
6
7
8
0
[30H]
1
[31H]
1
[31H]
0
[30H]
0
[30H]
1
[31H]
0
[30H]
0
[30H]
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.