21
6-4-2. Responses
The characters at the beginning of the response show the command execution result. The reply is “ACK” if it was completed properly
or “NAK” if it ended in an error.
The characters at the end of the response can be set to either “CR” and “LF” or just “CR” (page 19).
Command execution result when completed properly
TD Format
HEX 0x06 0×30 0×31 0x33 0x30 0×30 0×32 0×0D 0×0A
ASCII ACK
0
1
3
0
0
2
CR
LF
ID number
Command No.
TD Format (BCC)
HEX 0x06 0×30 0×31 0x33 0x30 0×30 0×32 0×32 0×36 0×0D 0×0A
ASCII ACK
0
1
3
0
0
2
2
6
CR
LF
ID number
Command No.
Checksum
When there is response data, it is sent after the command number.
The data length will be 0 to 9 characters according to the command.
Checksum calculation is the same as in the “Commands” section above.
In the example above, the total of the ID number, command and data is as follows.
0x30+0x31+0x33+0x30+0x30+0x32
= 0x126
The checksum is the lower 8 bits, which is 0x26.
Command execution result when ended with error
TD Format
HEX
0x15 0×30 0×31 0x33 0x30 0×30 0×32 0×0D 0×0A
ASCII NAK
0
1
3
0
0
2
CR
LF
ID number
Command No.
TD Format (BCC)
HEX
0x15 0×30 0×31 0x33 0x30 0×30 0×32 0×32 0×36 0×0D 0×0A
ASCII NAK
0
1
3
0
0
2
2
6
CR
LF
ID number
Command No.
Checksum
The following are possible causes of errors.
o
Improper command number (unsupported command, etc.)
o
Overlapping commands issued
o
Improper command parameters (setting values)
o
Checksum error occurred (when TD Format (BCC) transmission mode is selected)
6. RS-485