WWW.SSTCOMM.COM
19
and 1 or 2 stop bits.
3.3.2.2 Communication Message Format
3.3.2.2.1 Request Frame Message
[Output data length] [High byte of output data start address] [Low byte of output data start address] [Input data
length] [High byte of input data start address] [Low byte of input data start address] [Output data 1]…… [Output data
n] [Parity]
Notes: Output means the data that users device writes to GT200-PN-RS, input means the data that users device
gets from GT200-PN-RS.
Data number n equals output data length.
Output data address range: 0x0000-0x03FF, 0x4000-0x43FF;
Input data address range: 0x0000-0x03FF, 0x4000-0x43FF;
3.3.2.2.2 Response Frame Message
Correct response:
[Input data length] [High byte of input data start address] [Low byte of input data start address] [Input data
1]…… [Input data n] [Parity]
Data number n equals input data length.
Wrong response:
[0x00] [0xFF] [0xFF] [error code] [parity]
3.3.2.3 Parity
Accumulated sum of 8 bits of all data, ignore the flow bit. That is:
[Message parity code] = [output data length] + [high byte of output data start address] + [low byte of output data
start address] + [input data length] + [high byte of input data start address] + [low byte of input data start address] +
[output data 1] +……+ [output data n].
[Response parity code] = [input data length] + [high byte of input data start address] + [low byte of input data
start address] + [output data 1] +……+ [output data n].
3.3.2.4 Error Code
Error Code
Meaning
0x01
Output data length error
0x02
Accumulated sum parity error
Summary of Contents for GT200-PN-RS
Page 53: ...WWW SSTCOMM COM 53...