254
13 CONTENTS AND REGISTRATION OF USER FRAMES FOR DATA COMMUNICATION
13.1 User Frame Types and Contents During Communication
■C24 processing to registered codes FFH+04H, FFH+05H, FFH+0AH, and FFH+0BH
• For FFH + 04H and FFH + 0AH
The horizontal parity code that calculates the range for the data to be transmitted/received (message) is expressed as 1
byte binary data and then transmitted and received.
The difference between FFH + 04H and FFH + 0AH is the difference in the calculating range.
• For FFH + 05H and FFH + 0BH
The horizontal parity code that calculates the range for the data to be transmitted/received (message) is expressed as 2-
byte ASCII code data and then transmitted and received from the upper digit.
The difference between FFH + 05H and FFH + 0BH is the difference in the calculating range.
Examples of data arrangement when the horizontal parity code is transmitted/received are shown below. (The start frame and
final frame are equivalent to one frame respectively.)
• 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.
For message example above
• For registered code FFH + 04H • For registered code FFH + 05H
02H 00H 3BH
02H FFH+01H
;
3BH
12
03H 0DH
03H FFH+04H 0DH 0AH
07H 0AH
34
31H
C
R
L
F
32H 33H 34H
S
T
X
E
T
X
Arbitrary data
User frame
(first frame)
User frame
(last frame)
User frame
register
code
Horizontal
parity code
Station
No.
Transmission/
reception
data code
Calculation
range
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
Arbitrary data
User frame
(first frame)
User frame
(last frame)
User frame
register
code
Horizontal
parity code
Station
No.
Transmission/
reception
data code
Calculation
range
"1" (31H) 0011 0001
XOR
"2" (32H) 0011 0010 = 0000 0011
XOR
"3" (33H) 0011 0011 = 0011 0000
XOR
"4" (34H) 0011 0100 = 0000 0100
XOR
"ETX" (03H) 0000 0011 = 0000 0111
"0" "7"
(30H) (37H)ASCII code