Download MELSEC-Q/L Serial Communication Module User`s Manual

Transcript
9 CONTENTS AND REGISTRATION OF THE USER FRAMES FOR DATA COMMUNICATION
6) Transmission/reception data corresponding to register code FFH+E5H
The sum check code resulted from the calculation of the
transmission/reception data (message) codes except the first one frame
and last one frame is expressed as the ASCII code data and
transmitted or received.
• How to calculate the sum check code
Lower one byte of the sum check value calculated is converted into
2-digit ASCII code data, and used for data transfer.
(Example) Arrangement of data when received
User frame
(First frame)
User frame
(Last frame)
Arbitrary data
User frame register
code
03H FFH+E5H
02H
S
T
X
Station
No.
0
Transmission/
reception data code
1
E
T
X
Read data
1
7
7
0
Sum
check
code
3
0
02H 30H 31H 31H 37H 37H 30H 03H 33H 30H
Calculation range
30H+31H+31H+37H+37H+30H
=130H
7) Transmission/reception data corresponding to register code FFH+EBH
The sum check code resulted from the calculation of the
transmission/reception data (message) codes, including the first one
frame and excluding the last one frame, is expressed as the ASCII
code data and transmitted or received.
• How to calculate the sum check code
Lower one byte of the sum check value calculated is converted into
2-digit ASCII code data, and used for data transfer.
(Example) Arrangement of data when received
User frame
(First frame)
User frame
(Last frame)
Arbitrary data
User frame register
code
03H FFH+EBH
02H
S
T
X
Station
No.
0
Transmission/
reception data code
1
E
T
X
Read data
1
7
7
0
Sum
check
code
3
2
02H 30H 31H 31H 37H 37H 30H 03H 33H 32H
Calculation range
02H+30H+31H+31H+37H+37H+30H
=132H
9-8
9-8