Mitsubishi Electric MELSEC iQ-R Series User Manual page 255

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

Advertisement

■Calculating ranges for the registered codes
The following shows the calculating ranges for the registered codes.
Range 4
Range 3
User frame
User frame
(1st)
(2nd)
Range 1
Range 2
(Calculation range when transmitting data)
Calculating ranges
Target range
Range 1
When
Range from the data following the start frame (the user frame (1st) when multiple user frames are designated) to the one
transmitting
immediately before the registered code
When
Range from the data following the start frame to the one immediately before the registered code
receiving
Range 2
When
Range from the head of a message to the data immediately before the registered code
transmitting/
receiving
Range 3
When
Range from the data following the start frame (the user frame (1st) when multiple frames are designated) to the one
transmitting
immediately before the final frame (the user frame (nth) when multiple frames are designated)
When
Range from the data following the start frame to the one preceding the final frame
receiving
Range 4
When
Range from the head of a message to the data preceding the final frame
transmitting/
receiving
*1 The additional code data for the transparent code designation shown below is excluded.
Page 326 TRANSPARENT CODES AND ADDITIONAL CODES
Variable data registered code
■C24 processing to the registered code FFH+00H
The following shows an example to describe the processing performed by C24 when it receives a user frame portion
corresponding to registered codes FFH and 00H.
When setting a user frame containing the data codes 02H, FFH, 00H, and 3BH for a receive user frame as user frame
number, 3EAH
• C24 performs the reception processing as the user frame, 3EAH has been received when it receives 3 bytes of data, "STX,
arbitrary data (for 1 byte), ;".
• C24 does not check the 2 bytes described above.
S
1
;
Receive data
T
X
Receive data
02
31
3B
41
H
H
H
code
Check
If the 02H and 3BH data portions match, they are processed as if
user frame No. 3EAH mentioned above was received
■C24 processing to the registered code FFH+01H
C24 transmits and receives the user frame portion corresponding to registered code, FFH+01H by representing the station
number set in the parameter as 1-byte binary data.
For the usage example, refer to the start frame portion in the figures below.
Page 254 C24 processing to registered codes FFH+04H, FFH+05H, FFH+0AH, and FFH+0BH
User frame
User frame
("n-1"th)
("n"th)
Register
code
FFH
H
*1
A
B
42
H
H
13 CONTENTS AND REGISTRATION OF USER FRAMES FOR DATA COMMUNICATION
Range 4
Range 3
User frame
Arbitrary data
(First frame)
Range 1
Range 2
(Calculation range when receiving data)
13.1 User Frame Types and Contents During Communication
User frame
(Last frame)
Register
code
FFH
H
13
253

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents