78
6-1-3-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.
Command execution result when completed properly
TD Format
HEX 0×06 0×30 0×30 0×37 0×30 0×30 0×30 0×0D 0×0A
ASCII ACK 0 0 7 0 0 0 CR LF
Fixed Command No.
TD Format (BCC)
HEX 0×06 0×30 0×30 0×37 0×30 0×30 0×30 0×32 0×37 0×0D 0×0A
ASCII ACK 0 0 7 0 0 0 2 7 CR LF
Fixed Command No. Checksum
When there is response data, it is sent after the command number.
The data length will be 0–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.
0×30+0×30+0×37+0×30+0×30+0x30
= 0×127
The checksum is the lower 8 bits, which is 0×27.
Command execution result when ended with error
TD Format
HEX 0×15 0×30 0×30 0×37 0×30 0×30 0×30 0×0D 0×0A
ASCII NAK 0 0 7 0 0 0 CR LF
Fixed Command No.
TD Format (BCC)
HEX 0×15 0×30 0×30 0×37 0×30 0×30 0×30 0×32 0×37 0×0D 0×0A
ASCII NAK 0 0 7 0 0 0 2 7 CR LF
Fixed 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. Communication functions