Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 111

Vxworks
Hide thumbs Also See for MELIPC MI5000 Series:
Table of Contents

Advertisement

mdReceiveEx
Reads data from 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 for 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 size exceeds the device range, the readable device size (the maximum value that can be specified for the
read size (plSize) when '0 was specified for the start device number (lDevNo)) is returned to the read data size (plSize).
Return value
Return value
0(0000H)
Other than 0
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 99 mdClose
Page 103 mdOpen
Page 112 mdSendEx
Description
Specify the path of the opened channel.
Specify the network number of target module.
Page 16 Network number and station number
Specify the station number of target module.
Page 16 Network number and station number
Specifies the device type for the device to be read in batch.
Specifies the start device number for the device to be read in batch.
(For bit devices, specify the device number in multiples of 8.)
Specify the read size in byte units.
(Specifies the value in multiples of 4 when a double-word device (LZ, LTN,
LCN, LSTN) is specified and specifies the value in multiples of 2 when a
word device or bit device is specified. If other values are specified, a size
error occurs.) )
Specify the storage destination (address) of read data.
Description
Normal
Error
IN/OUT
IN
IN
IN
IN
IN
IN/OUT
OUT
3 DETAILS OF FUNCTIONS
3.3 MELSEC Data Link Functions
3
109

Advertisement

Table of Contents
loading

Table of Contents