EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 39

Mitsubishi Electric MELSEC iQ-R Series
498 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4 MESSAGES OF SERIAL COMMUNICATION MODULE
4.3 Details of Setting Data
37
4
Sum check range
The sum check range of each message format is as follows:
Calculation of a sum check code
For sum check code, set the numerical values of the lower 1 byte (8 bits) of the added result (sum) as binary data within the
sum check range.
Calculate sum check code except for the additional code. (Page 35 Additional code (10H))
Ex.
In the following case of 1C frame format 1, the sum check code will be 'C0'.
Formula: 30H + 30H + 46H + 46H + 42H + 52H + 33H + 4DH + 30H + 30H + 30H + 30H = 2C0H
Sum check code: 'C0' (ASCII code 43H, 30H)
In the following case of 4C frame format 5, the sum check code will be '05'.
Formula: 12H + 00H + F8H + 05H + 07H + 03H + 04H + 00H + 01H + 00H + 01H + 04H + 01H + 00H + 40H + 00H + 00H +
9CH + 05H + 00H = 205H
Sum check code: '05' (ASCII code 30H, 35H)
Format Message structure Reference
Format 1 to format 3 Page 29 Format 1
Page 30 Format 2
Page 31 Format 3
Format 4 Page 32 Format 4
Format 5 Page 33 Format 5
Control code Sum check code
Sum check range
CR
0D
H
LF
0A
H
Control code
Control code Sum check code
Sum check range
DLE
10
H
ETX
03
H
Control code
Control code Sum check code
Sum check range
05
H
30
H
30
H
46
H
46
H
42
H
52
H
33
H
4D
H
30
H
30
H
30
H
30
H
43
H
30
H
00FFBR M000 C003
E
N
Q
Station
No.
PC No.
Command
Message
wait
Character
area
Sum
check
code
Sum check range
10
H
02
H
12
H
00
H
F8
H
05
H
07
H
03
H
04
H
00
H
01
H
00
H
01
H
04
H
01
H
00
H
40
H
00
H
00
H
9C
H
05
H
00
H
10
H
03
H
30
H
35
H
LHLH LHLH L
L
H
H
LH
D
L
E
S
T
X
D
L
E
E
T
X
Subcommand
Number of
data bytes
Frame ID No.
Station No.
PC No.
Network
No.
Request destination
module I/O No.
Request destination
module Station No.
Self-station No.
Command
Head device
Device code
Number of device
points
Sum check Code
Sum check range (excluding additional codes)

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals