5-6
Reader/Writer Control Commands
5-6
5-50
5-6-5 I/O Control Command (CC)
This command changes the state of the user output terminals (OUT1 to OUT4) and reads the state of the
user input terminals (IN1 to IN3).
<Command Format>
STX
Node No.
Command
code
"CC"
OUT
1
OUT
2
OUT
3
OUT
4
ETX BCC
1
2
2
1 1 1 1 1 1
OUT1to OUT4
The state of an output is designated in hexadecimal.
Specification range: 0 to 1 (1: ON / 0: OFF)
When * is specified, the Reader/Writer reads the state of a terminal.
<Response Format>
STX
Node No.
Retry
flag
Command
code
"CC"
Response
code
"00"
OUT
1
OUT
2
OUT
3
OUT
4
IN
1
IN
2
IN
3
ETX BCC
1
2
1
2
2
1 1 1 1 1 1 1 1 1
Response code
00: Normal completion
For other Response Codes, refer to SECTION 5-3-7 Response Code List.
OUT1 to OUT4
Indicates the state of the output.
1: ON, 0: OFF
IN1 to IN3
Indicates the state of the input.
1: ON, 0: OFF
5-6-6 Test (TS)
This command returns test messages sent from the host with no change made. The test
command is used for testing communications between the host and the Reader/Writer and
other purposes.
<Command Format>
STX
Node No.
Command
code
"TS"
Test message
ETX BCC
1 2
2
1
1
Test message
The number of characters from 0 up to 64 max is available.
<Response Format>
STX Node
No.
Retry
flag
Command
code
"TS"
Response
code
"00"
Test message
ETX BCC
1 2 1 2
2
1
1
Response code
00: Normal completion
For other Response Codes, refer to SECTION 5-3-7 Response Code List.
Test message
Returns the test message received using commands.