11 - 8 11 - 8
11 DATA COMMUNICATION USING THE BIDIRECTIONAL PROTOCOL
(d) Sum check code
The sum check code expresses the numeric value for the lower two bytes
(16 bits) of the results (sum) from the addition of the data length and the
data portion in the message as binary code data.
When "Exist" is specified for "Sum check code" in the Transmission Setting
of GX Works2, it is necessary to add a sum check code at the end of the
message.
1) For data communication from the external device to the C24
The C24 checks and processes the sum check code received.
It cannot be read from the sequence program.
When "None" is specified for "Sum check code", once a data portion of
message corresponding to the data length is received, the succeeding
data received will be ignored up to the control code that follows (Refer to
(a)).
The following example shows the contents of a sum check code in the
message.
2) For data communication from the C24 to the external device
The sum check code to be transmitted is calculated and added by the
C24. When "None" is specified, no sum check code is transmitted.
E
N
Q
A
B
C
D
E
F
G
H
I
J
100
L
H
L
H
L
H
0
0
0
0
0
0
0
0
1
1
1
1
1
1
0
0
b15
b8 b7
b1 b0
(Example) The following shows the sum check code when "ABCDEFGHIJ " and the numeric value 100 are sent as data
(when the unit is in bytes).
External device side
C24 side
Arbitrary data
Data
Data
length
(000C
H
)
(0064
H
)
Sum
check
code
Contents of 0327
H
memory
03
H
27
H
(L)
(H)
(H)
0C
H
+ 00
H
+ 41
H
+ 42
H
+ 43
H
+ 44
H
+ 45
H
+ 46
H
+
47
H
+ 48
H
+ 49
H
+ 4A
H
+ 64
H
+ 00
H
Added value = 0327
H
(L)
to
to
0C
H
00
H
41
H
47
H
42
H
43
H
44
H
45
H
46
H
48
H
49
H
4A
H
64
H
00
H
27
H
03
H
05
H
Содержание MELSEC LJ71C24
Страница 1: ......
Страница 2: ......
Страница 18: ...A 16 A 16 INDEX REVISIONS WARRANTY...
Страница 22: ...A 20 A 20 2 LJ71C24 R2 LJ71C24 R2 Before Using the Product...
Страница 23: ...A 21 A 21 MEMO...
Страница 38: ...4 2 4 2 4 PROCEDURES PRIOR TO OPERATION MEMO 4...
Страница 105: ...7 30 7 30 7 SETTINGS FOR THE C24 MEMO...
Страница 391: ...App 62 App 62 APPENDIXES 3 Refresh parameter setting In Refresh Parameter set the following network parameters...
Страница 425: ......
Страница 426: ......
Страница 427: ......