Mitsubishi Melsec-L Series User Manual page 378

Communication module
Hide thumbs Also See for Melsec-L Series:
Table of Contents

Advertisement

STX
"Q"
Code type
ASCII
"D"
hexadecimal
(44
H
"9"
ASCII decimal
(39
H
HEX
FD
H
Code type
ASCII
"2"
hexadecimal
(32
H
"6"
ASCII decimal
(36
H
HEX
02
H
Code type
ASCII
"3"
hexadecimal
(33
H
"7"
ASCII decimal
(37
H
HEX
03
H
App. - 49
(3) Procedure for calculating sum check
The following show procedures for calculating sum check codes using the
following sample data.
"J"
"7"
"1"
Calculating range
(For the data shown above)
Sum check = 51
(a) Data flow: Forward direction
1)
"Complement calculation" is 'No complement calculation'
(1FD
1 byte
"FD"
)
(46
"09"
)
(30
01FD
2)
"Complement calculation" is 'One's complement'
(One's complement of 0000 01FD
When "Code type" is 'ASCII decimal', the last one word is extracted
and converted from hexadecimal to decimal.
(FF02
1 byte
"02"
)
(30
"26"
)
(32
FE02
3)
"Complement calculation" is 'Two's complement'
(Two's complement of 0000 01FD
When "Code type" is 'ASCII decimal', the last one word is extracted
and converted from hexadecimal to decimal.
(FE03
1 byte
"03"
)
(30
"27"
)
(32
FE03
"C"
"2"
+ 4A
+ 37
+ 31
+ 43
H
H
H
H
in hexadecimal is 509 in decimal)
H
Data length
2 bytes
"1FD"
44
)
(31
H
H
"509"
39
)
(35
H
H
0001FD
H
in hexadecimal is 65026 in decimal)
H
Data length
2 bytes
"E02"
32
)
(45
H
H
"026"
36
)
(30
H
H
FFFE02
H
in hexadecimal is 65027 in decimal)
H
Data length
2 bytes
"E03"
33
)
(45
H
H
"027"
37
)
(30
H
H
FFFE03
H
"4"
"N"
ETX
+ 32
+ 34
+ 4E
H
H
H
3 bytes
"01FD"
46
44
)
(30
H
H
H
"0509"
30
39
)
(30
H
H
H
000001FD
H
is FFFF FE02
H
3 bytes
"FE02"
30
32
)
(46
H
H
H
"5026"
32
36
)
(35
H
H
H
FFFFFE02
H
is FFFF FE03
H
3 bytes
"FE03"
30
33
)
(46
H
H
H
"5027"
32
37
)
(35
H
H
H
FFFFFE03
H
APPENDIXES
Sum
check
+ 03
= 1FD
H
H
H
4 bytes
31
46
44
)
H
H
H
H
35
30
39
)
H
H
H
H
H
)
H
4 bytes
45
30
32
)
H
H
H
H
30
32
36
)
H
H
H
H
H
)
H
4 bytes
45
30
33
)
H
H
H
H
30
32
37
)
H
H
H
H
H
App. - 49

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lj71c24Lj71c24-r2

Table of Contents