User`s manual
228
• How to calculate the two's complement sum check code
The lower 1 byte of the value obtained by adding the subject data as binary data is converted to a two's
complement, then converted to a hexadecimal ASCII code.
(In the case of the example)
5) Transmission/reception data corresponding to register codes FFH+EEH to FFH+F9H
The sum check code that calculates the subject range for transmission/reception data (message) is expressed
as the binary code/ ASCII code data listed below, then transmitted and received.
An example of the contents (arrangement) of the transmission and reception of the sum check code is given
below.
Arrangement of data transmitted and received (one first frame and one last frame)
• How to calculate the sum check code and data contents transmitted and received
This is a numeric value obtained by adding data in the above range as binary data.
(In the case of the example [Range 1]) (H) (L)
41H+ 31H + ABH + 12H + 03H = 0132H
Register code Data contents transmitted and received
FFH + EEH or FFH + F4H
The lower 2 bytes of the calculated sum check code are transmitted and received as 2-byte binary
code data.
FFH + F0H or FFH + F6H
The lower byte of the calculated sum check code is transmitted and received as 1-byte binary code
data.
FFH + F1H or FFH + F7H
The lower byte of the calculated sum check code is converted to 2-digit ASCII code, then transmitted
and received.
FFH + F3H or FFH + F9H
The lower 4 bits of the calculated sum check code is converted to 1-digit ASCII code, then transmitted
and received.
Register code Data contents transmitted and received (arrangement)
FFH + EEH 01H and 32H are transmitted and received, beginning from 32H.
FFH + F0H 32H is transmitted and received.
FFH + F1H "3" and "2" are transmitted and received, beginning from "3."
FFH + F3H "2" is transmitted and received.
02H+00H+3BH+31H+32H+33H+34H+03H=10AH
00001010
F6H
"F" "6"
11110110
(46H) (36H)
Data in the subject range are added
as binary data (hexadecimal)
The lower 1 byte of the above numeric value
is expressed as a binary number
Reversed, then converted to a two's complement
Converted to a hexadecimal ASCII code
02H 00H 3BH
02H FFH+01H
;
3BH
A
31H
1
03H 0DH
03H FFH+F1H 0DH 0AH
32H 01H 0AH
(12ABH)
41H ABH 12H
S
T
X
E
T
X
C
R
L
F
Station
No.
User frame
(last frame)
Arbitrary data
User frame register code
Transmission/reception
data code
User frame
(first frame)
Range 1
Range 2
Sum
check
code