Mitsubishi Electric MELSEC iQ-R Series User Manual page 256

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

Advertisement

■C24 processing to registered codes FFH+04H, FFH+05H, FFH+0AH, and FFH+0BH
• For FFH + 04H and FFH + 0AH
The horizontal parity code that calculates the range for the data to be transmitted/received (message) is expressed as 1
byte binary data and then transmitted and received.
The difference between FFH + 04H and FFH + 0AH is the difference in the calculating range.
• For FFH + 05H and FFH + 0BH
The horizontal parity code that calculates the range for the data to be transmitted/received (message) is expressed as 2-
byte ASCII code data and then transmitted and received from the upper digit.
The difference between FFH + 05H and FFH + 0BH is the difference in the calculating range.
Ex.
Examples of data arrangement when the horizontal parity code is transmitted/received are shown below. (The start frame and
final frame are equivalent to one frame respectively.)
• For registered code FFH + 04H
User frame
(first frame)
User frame
register
02H FFH+01H
code
S
T
X
Transmission/
reception
02H
00H
data code
• 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.
Ex.
For message example above
"1" (31H) 0011 0001
XOR
"2" (32H) 0011 0010 = 0000 0011
"3" (33H)
"4" (34H)
"ETX" (03H)
13 CONTENTS AND REGISTRATION OF USER FRAMES FOR DATA COMMUNICATION
254
13.1 User Frame Types and Contents During Communication
Arbitrary data
User frame
(last frame)
3BH
03H FFH+04H 0DH 0AH
E
;
1
2
3
4
T
X
3BH
31H
32H 33H 34H
03H
07H
Calculation
range
XOR
0011 0011 = 0011 0000
XOR
0011 0100 = 0000 0100
XOR
0000 0011 = 0000 0111
ASCII code
• For registered code FFH + 05H
User frame
register
code
C
L
R
F
Transmission/
reception
0DH
0AH
data code
"0"
"7"
(30H) (37H)
User frame
Arbitrary data
(first frame)
02H FFH+01H
3BH
03H FFH+05H 0DH 0AH
S
;
1
2
3
4
T
X
02H
00H
3BH
03H
31H
32H 33H 34H
Calculation
range
User frame
(last frame)
E
C
L
T
X
R
F
30H 37H
0DH
0AH

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents