Mitsubishi Electric MELSEC iQ-R Series Manual page 102

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

Advertisement

mdrRandWLabel
This function writes devices corresponding to labels randomly.
■ Format
short mdrRandWLabel (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]
plDev[3n+1]
plDev[3n+2]
plDev[3n+3]
• One block comprises of three elements such as device type, start device number, and number of write points, the total
number of blocks will be stored in the first element of the randomly-specified device (plDev).
3 DETAILS OF FUNCTION
100
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
Write data storage destination
Write data storage destination size
Label code
Stored information
Number of blocks
Device type
Start device number
Number of write points
Device type
Start device number
Number of write points
Device type
Start device number
Number of write 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 device
points of devices to be written.
Specify the storage destination (address) of write data.
Unused (Even if a value is specified, the operation is not affected.)
Specify the label code acquired with the mdrGetLabelInfo function.
IN/OUT
IN
IN
IN
IN
IN
IN
IN
IN
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