Mitsubishi Electric MELSEC iQ-R Series Manual page 100

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

Advertisement

mdrRandW
This function writes devices randomly.
■ Format
short mdrRandW(long lPath, short sRoute, long lNetNo, long lIoNo, long lStNo, short sCPU, long* plDev, short* psBuf, long
lBufSize)
■ Argument
Argument
lPath
sRoute
lNetNo
lIoNo
lStNo
sCPU
plDev
psBuf
lBufSize
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]
■ Description
• This function writes data to a device, which is specified to the randomly selected device (plDev), of a module specified to
the network number (lNetNo), the start I/O number (lIoNo), the station number (lStNo), and the CPU number (sCPU).
• The data to be written is stored to the write data storage destination (psBuf) in word units. 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 write points specified for each block is 10240 points or less. Otherwise, a size error (-5)
will occur.
• Note that the extension comment information will be deleted when the data is written to the block to which an extension
comment is assigned (extension file register).
• Also, note that sub 2 or sub 3 program will be deleted when data is written to a block (extension file register) overlapping
with the program setting area for sub 2 or sub 3.
3 DETAILS OF FUNCTION
98
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
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.
Specify the size of area reserved in the write data storage destination in byte
units.
IN/OUT
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