KYOWA WP-120A Instructions For Use Manual page 78

Instrumentation amplifier
Table of Contents

Advertisement

6. Communication functions
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
Fixed
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
Fixed
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
Fixed
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
Fixed
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)
78
7
0
0
0
CR
Command No.
7
0
0
0
2
Command No.
Checksum
7
0
0
0
Command No.
7
0
0
0
Command No.
LF
7
CR
LF
CR
LF
2
7
CR
LF
Checksum

Advertisement

Table of Contents
loading

Table of Contents