Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 106

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

Advertisement

mdRandREx
Reads data by specifying a device type and a range to be read.
Format
long mdRandREx(long lPath, long lNetNo, long lStNo, long* plDev, short* psBuf, long lBufSize)
Argument
Argument
lPath
lNetNo
lStNo
plDev
psBuf
lBufSize
The specification method of the randomly selected device (plDev) is as follows:
plDev
plDev[0]
plDev[1]
plDev[2]
plDev[3]
plDev[4]
plDev[5]
plDev[6]
plDev[3(n-1)+1]
plDev[3(n-1)+2]
plDev[3(n-1)+3]
Description
• This function reads devices specified to the randomly selected device (plDev) from a module specified to the network
number (lNetNo) and the station number (lStNo).
• The read data is stored in the read data storage destination (psBuf) in word units in order of the specification to the
randomly selected device (plDev). A bit device is stored per 16 points, a word device is stored per 1 point, and a double-
word device is stored in word units.
• Specify so that the total number of read points specified for each block is 10,240 points or less. Otherwise, a size error
occurs.
• Communication time varies significantly depending on the contents specified to the randomly selected device (plDev).
To reduce communication time, use the mdReceiveEx function.
• To access the own station, set the station number to 255. When the actual station number is specified, an error occurs.
3 DETAILS OF FUNCTIONS
104
3.3 MELSEC Data Link Functions
Name
Path of channel
Network number
Station number
Randomly selected device
Read data storage destination
Read data storage destination
size
Description
Number of blocks
Device type
Start device number
Number of read points
Device type
Start device number
Number of read points
Device type
Start device number
Number of read points
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
Specify the number of blocks, device type, start device number, and device
points of devices to be read.
Specify the storage destination (address) of read data.
Specifies the area size reserved in the read data storage destination in word
units.
IN/OUT
IN
IN
IN
IN
OUT
IN
Block 1
Block 2
Block n

Advertisement

Table of Contents
loading

Table of Contents