User`s manual
227
CHAPTER 9 CONTENTS AND REGISTRATION OF THE USER FRAMES FOR DATA COMMUNICATION
9
9.1 User Frame Types and Contents During Communication
For register code FFH + 05H
• How to calculate the horizontal parity code
This is a numeric value obtained by calculating the XOR for the subject data and then converting it to ASCII
code.
(In the case of the example)
4) Transmission/reception data corresponding to register codes FFH+11H and FFH+17H
The two's complement sum check code that calculates the subject range for transmission/reception data
(message) is expressed as two-character data in ASCII code, then transmitted and received from the upper
digit.
The difference between (FFH+11H) and (FFH+17H) is the difference between the calculation ranges.
An example of the contents (arrangement) of the transmission and reception of the two's complement sum
check code is shown below.
Arrangement of data transmitted and received with the register code FFH+17H (one first frame and one
last frame)
02H 00H 3BH
02H FFH+01H
;
3BH
12
03H 0DH
03H FFH+05H 0DH 0AH
30H 37H 0AH
34
31H
E
T
X
S
T
X
C
R
L
F
32H 33H 34H
Station
No.
User frame
(last frame)
Horizontal
parity
code
Arbitrary data
Calculation
range
User frame
(first frame)
User frame
register code
Transmission/
reception data
code
0011 0001
0011 0010 = 0000 0011
0011 0011 = 0011 0000
0000 0011 = 0000 0111
XOR
XOR
XOR
XOR
(30H) (37H)
0011 0100 = 0000 0100
"0" "7"
"1" (31H)
"ETX" (03H)
"4" (34H)
"3" (33H)
"2" (32H)
ASCII code
02H 00H 3BH
02H FFH+01H
;
3BH
1
32H
2
03H 0DH
03H 0DH 0AH
46H 36H 0AH
34
31H
33H 34H
FFH+17H
E
T
X
S
T
X
C
R
L
F
User frame
(first frame)
Station
No.
User frame
(last frame)
Arbitrary data
User frame register code
Transmission/reception
data code
Two's complement
sum check code
Calculation range