Mitsubishi Electric MELSEC iQ-R Series User Manual page 258

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

Advertisement

■C24 processing to registered codes FFH+EEH to FFH+F9H
The sum check code that calculates the range for data (message) to be transmitted/received is expressed as the binary code/
ASCII code data listed below, then transmitted and received.
Registered code
FFH + EEH or FFH + F4H
FFH + F0H or FFH + F6H
FFH + F1H or FFH + F7H
FFH + F3H or FFH + F9H
An example of the contents (arrangement) of the transmission and reception of the sum check code is given below.
Ex.
Arrangement of data transmitted and received (one start frame and one final frame)
User frame register
code
Transmission/reception
data code
• How to calculate the sum check code and data contents transmitted and received
This is a numeric value obtained by adding data in the above range as binary data.
Ex.
For Range 1: 41H+ 31H + ABH + 12H + 03H = 0132H
For Range 2: 02H + 00H + 3BH + 41H + 31H + ABH + 12H + 03H = 016FH
Calculating
Registered code
range
Range 1
FFH + EEH
FFH + F0H
FFH + F1H
FFH + F3H
Range 2
FFH + F4H
FFH + F6H
FFH + F7H
FFH + F9H
13 CONTENTS AND REGISTRATION OF USER FRAMES FOR DATA COMMUNICATION
256
13.1 User Frame Types and Contents During Communication
Data contents transmitted and received
The lower 2 bytes of the calculated sum check code are transmitted and received as 2-byte binary code data.
The lower byte of the calculated sum check code is transmitted and received as 1-byte binary code data.
The lower byte of the calculated sum check code is converted to 2-digit ASCII code, then transmitted and received.
The lower 4 bits of the calculated sum check code is converted to 1-digit ASCII code, then transmitted and received.
User frame
Arbitrary
(first frame)
data
02H FFH+01H
3BH
03H FFH+F1H 0DH 0AH
S
;
A
1
(12ABH)
T
X
02H
00H
3BH
03H
41H
31H
ABH 12H
Range 1
Range 2
User frame
(last frame)
E
C
L
T
X
R
F
32H 01H
0DH
0AH
Data contents transmitted and received (arrangement)
01H and 32H are transmitted and received, beginning from 32H.
32H is transmitted and received.
"3" and "2" are transmitted and received, beginning from "3."
"2" is transmitted and received.
01H and 6FH are transmitted and received, beginning from 6FH.
6FH is transmitted and received.
"6" and "F" are transmitted and received, beginning from "6".
"F" is transmitted and received.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents