Data Reception; Receive Data - Mitsubishi Electric MELSEC iQ-R Series User Manual

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

Advertisement

15.2

Data Reception

When receiving data using a user frame, the reception method on C24 side includes Method 0 and Method 1.
The following explains data reception for each method.

Receive data

In data reception using a user frame, data arranged as indicated below can be received.
Reception
method
Format-0
With the first
frame ( *1)
Format-1
Without the first
Format-0
frame ( *1)
*1 User frames for receiving
 The user frame for data reception can be set to a maximum of four combinations of the start frame and the final frame, regardless of
whether there is a specification.
 For a combination that specifies the start frame (with a start frame), specifying the start frame is required even in other combinations.
 For a combination that does not specify the start frame (without a start frame), the start frame cannot be specified even in other
combinations.
 A combination with the start frame and a combination without the start frame cannot be combined.
*2 If data of other than 30H to 39H and 41H to 46H are received as the data code of the arbitrary data area (including the transparent code
data), an error will occur after the C24 ASCII-BIN conversion processing.
*3 Arbitrary data portion of received data
When the arbitrary data portion is stored to the receive area, and the storage byte quantity is an odd number of bytes, the receive data
quantity shown below is stored to the receive data quantity storage area. (When ASCII-BIN conversion is enabled, the receive data
quantity is the storage byte count when the arbitrary data portion is converted to binary code and stored to the receive area.)
 Word units: Receive data quantity = Number of bytes stored to receive area  2 (Digits after a decimal points are rounded up.)
 Byte units: Receive data quantity = Number of bytes stored to receive area
(00H is stored to the upper byte of the last data storage location of the receive area.)
When "ASCII-BIN conversion" is enabled, make the arbitrary data part of the receive data an even number of bytes excluding the
additional code.
15 DATA COMMUNICATIONS USING USER FRAMES
278
15.2 Data Reception
User frame
(first frame)
User frame
Combination
(first frame)
(1-A)
(1-B)
(1-C)
(1-D)
(1-E)
(2-A)
(2-B)
Arbitrary data
User frame
Arbitrary data
(last frame)
(When ASCII-BIN conversion is set to "Disable")
Codes that can
be received
00H to FFH
00H to FFH
(When ASCII-BIN conversion is set to "Enable")
Codes that can
be received
00H to FFH
*2
30H to 39H,
41H to 46H
User frame
(last frame)
Remarks
For data
reception,
mixed
settings
are possible.
: Specified data exists.
Codes stored to
reception area*3
(Not stored)
00H to FFH
Codes stored to
reception area*3
(Not stored)
0H to 9H, AH to FH

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents