Mitsubishi Electric MELSEC iQ-R Series Manual page 105

Intelligent function module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

mdrReceive
This function reads devices in a batch.
■ Format
short mdrReceive(long lPath, short sRoute, long lNetNo, long lIoNo, long lStNo, short sCPU, long lDevType, long lDevNo,
long* plSize, short* psData)
■ Argument
Argument
Name
lPath
Path of channel
sRoute
Access route
lNetNo
Network number
lIoNo
Start I/O number
lStNo
Station number
sCPU
CPU number
lDevType
Device type
lDevNo
Start device number
plSize
Read data size
psData
Read data storage destination
■ Description
• This function reads data for the size specified to the read data size (plSize) from a device, which is specified to the device
type (lDevType) and the start device number (lDevNo), of a module specified to the network number (lNetNo), the start I/O
number (lIoNo), the station number (lStNo), and the CPU number (sCPU).
• When the read data size exceeds the device range, a readable size is returned to the read data size (plSize).
■ Return value
Return value
Description
0 (0000H)
Normal
Other than 0 (0000H)
Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST
■ Relevant function
Page 82 mdrClose
Page 90 mdrOpen
Page 104 mdrSend
Description
Specify the path of the opened channel.
Specify the access route to target module.
• 0: CC-Link IE Controller Network
• 1: CC-Link IE Field Network
• 2: MELSECNET/H
• 3: CC-Link
• 4: Bus interface
Specify the network number of target module.
Page 14 Argument specification
Specify the start I/O number divided by 16 of the target module.
Page 14 Argument specification
Specify the station number of target module.
Page 14 Argument specification
Specify the target CPU number.
• 0: Control CPU specification
• 1 to 4: Multiple CPU specification
Specify the device type for device to be read in batch.
Specify the start device number for device to be read in batch.
(For a bit device, set a device number in multiples of 8).
Specify the read data size in byte units.
(Specify the value in multiples of 4 when double-word device (LZ, LTN, LCN,
LSTN) is specified, or specify the value in multiples of 2 when a word device
or bit device is specified. If the value other than that is specified, the size
error (-5) will occur.)
Specify the storage destination (address) of read data.
3.2 MELSEC iQ-R Series Data Link Functions
IN/OUT
IN
IN
IN
IN
IN
IN
IN
IN
IN/OUT
OUT
3 DETAILS OF FUNCTION
3
103

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents