Mitsubishi Electric MELSEC iQ-R Series User Manual page 93

Serial communication module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■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 sum check code is enabled in the transmission setting of Engineering tool, it is necessary to add a sum check code at
the end of the message.
• Target device C24
C24 checks and processes the sum check code received. It cannot be read from the program.
When "None" is specified for "Sum check code", once 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.
• C24  target device
C24 calculates and adds the sum check code to be transmitted.
When "None" is specified, no sum check code is transmitted.
Ex.
Sum check code when "ABCDEFGHIJ " and the numeric value 100 are sent as data (when the unit is in bytes.)
Target device
C24
Contents of 0327H memory
■Error code
The error code indicates the definition of the error during NAK response.
For details on the error codes, refer to the following section.
Page 473 Error Code List
• Target device C24
For error codes from the target device, transmit the codes specified by the user.
The error codes (0022H to 005FH) that are not used by C24 can be used.
C24 stores the received error codes as a completion status in the control code for the BIDOUT instruction. They are also
stored in the 'data transmission result' (Un\G599).
• C24  target device
C24 adds an error code.
When an error code is transmitted, C24 writes the same error code in the 'data reception result' (Un\G600).
E
N
Data
A
B
C
Q
length
(000CH)
L
H
05
0C
00
41
42
43
H
H
H
H
H
H
0C
+00
H
(H)
b15
To
0
0
0
0
0
03
H
4 DATA COMMUNICATION USING BIDIRECTIONAL PROTOCOL
Arbitrary data
Data
D
E
F
G
H
I
44
45
46
47
48
49
H
H
H
H
H
H
+41
+42
+43
+44
+45
+46
+
H
H
H
H
H
H
H
47
+48
+49
+4A
+64
+00
H
H
H
H
H
H
Added value = 0327H
(L)
b8
b7
To
0
1
1
0
0
1
0
27
4.1 Receiving Data from Target Device
100
Sum
J
(0064H)
check
code
L
H
L
H
4A
64
00
27
03
H
H
H
H
H
b1 b0
0
1
1
1
H
(L)
(H)
4
91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents