Mitsubishi MELSEC L Series User Manual page 213

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

Advertisement

9 - 6
9 CONTENTS AND REGISTRATION OF THE USER FRAMES FOR DATA COMMUNICATION
• 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. (In the case of the
example)
"1" (31
H
"2" (32
"3" (33
"4" (34
"ETX" (03
4) Transmission/reception data corresponding to register codes FF
and FF
+17
H
The two's complement sum check code that calculates the subject
range for transmission/reception data (message) is expressed as two-
character data in ASCII code, then transmitted and received from the
upper digit.
The difference between (FF
between the calculation ranges.
An example of the contents (arrangement) of the transmission and
reception of the two's complement sum check code is shown below.
(Example) Arrangement of data transmitted and received with the
User frame register code
Transmission/reception
data code
• How to calculate the two's complement sum check code
The lower 1 byte of the value obtained by adding the subject data as
binary data is converted to a two's complement, then converted to a
hexadecimal ASCII code.
(In the case of the example)
02
+00
+3B
+31
+32
+33
H
H
H
H
H
) 0011 0001
XOR
0011 0010 = 0000 0011
H)
XOR
)
0011 0011 = 0011 0000
H
)
H
)
H
H
+11
H
register code FF
+17
H
User frame
(first frame)
02
FF
+01
3B
H
H
H
H
S
Station
;
T
No.
X
02
00
3B
H
H
H
Calculation range
+34
+03
=10A
Data in the subject range are added
H
H
H
H
as binary data (hexadecimal)
00001010
The lower 1 byte of the above numeric value
is expressed as a binary number
11110110
Reversed, then converted to a two's complement
F6
Converted to a hexadecimal ASCII code
H
"F"
"6"
(46
) (36
)
H
H
XOR
0011 0100 = 0000 0100
XOR
0000 0011 = 0000 0111
ASCII code
) and (FF
+17
) is the difference
H
H
H
(one first frame and one last frame)
H
Arbitrary data
User frame
(last frame)
03
FF
+17
0D
H
H
H
E
C
1
2
3
4
T
X
R
31
32
33
34
03
46
36
0D
H
H
H
H
H
H
H
"0"
"7"
(30
) (37
)
H
H
+11
H
H
0A
H
H
L
F
0A
H
H
9 - 6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec q seriesQj71c24Qj71c24-r2Lj71c24-r2Lj71c24Qj71c24n ... Show all

Table of Contents