Mitsubishi Electric MELSEC iQ-R Series Manual page 96

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

Advertisement

mdrRandRLabel
This function reads devices corresponding to labels randomly.
■ Format
short mdrRandRLabel (long lPath, short sRoute, long lNetNo, long lIoNo, long lStNo, short sCPU, long* plDev, short* psBuf,
long lBufSize, unsigned long long ullLbCode)
■ Argument
Argument
lPath
sRoute
lNetNo
lIoNo
lStNo
sCPU
plDev
psBuf
lBufSize
ullLbCode
The specification method of the randomly selected device (plDev) is as follows:
Stored information
position
plDev[0]
plDev[1]
plDev[2]
plDev[3]
plDev[4]
plDev[5]
plDev[6]
plDevLst[3n+1]
plDevLst[3n+2]
plDevLst[3n+3]
• One block comprises of three elements such as device type, start device number, and number of read points, the total
number of blocks will be stored in the first element of the randomly-specified device (plDev).
3 DETAILS OF FUNCTION
94
3.2 MELSEC iQ-R Series Data Link Functions
Name
Path of channel
Access route
Network number
Start I/O number
Station number
CPU number
Randomly selected device
Read data storage destination
Read data storage destination size
Label code
Stored information
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 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 number of blocks, device type, start device number, and points of
devices to be read.
(Specify the value acquired with the mdrGetLabelInfo function.)
Specify the storage destination (address) of read data.
Specify the size of area reserved in the read data storage destination in byte
units.
Specify the label code acquired with the mdrGetLabelInfo function.
IN/OUT
IN
IN
IN
IN
IN
IN
IN
OUT
IN
IN
Block
Block 1
Block 2
Block n

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents