Mitsubishi Electric MELSEC iQ-R C Programming Manual page 167

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

mdReceiveEx
This function reads devices in a batch.
■Format
long mdReceiveEx(long lPath, long lNetNo, long lStNo, long lDevType, long lDevNo, long* plSize, short* psData)
■Argument
Argument
Name
lPath
Path of channel
lNetNo
Network number
lStNo
Station 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 specified to the device type
(lDevType) and the start device number (lDevNo) of a module specified to the network number (lNetNo) and the station
number (lStNo).
• 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
Error
For details on the error, refer to the following chapter.
Page 174 ERROR CODE LIST
■Relevant functions
• Page 154 mdOpen
• Page 146 mdClose
• Page 168 mdSendEx (Device batch write function)
Description
Specify the path of the opened channel.
Specify the network number of target module.
Page 9 Argument specification
Specify the station number of target module.
Page 9 Argument 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 bit devices, specify the device number in multiples of 8.)
Specify the read data size in byte units.
(Specify the value in multiples of 4 when a 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.
IN/OUT
IN
IN
IN
IN
IN
IN/OUT
OUT
3 DETAILS OF FUNCTION
3.2 MELSEC Data Link Functions
3
165

Advertisement

Table of Contents
loading

Table of Contents