Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 109

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

Advertisement

mdRandWEx
Writes data by specifying a device type and a range to be written.
Format
long mdRandWEx(long lPath, long lNetNo, long lStNo, long* plDev, short* psBuf, long lBufSize)
Argument
Argument
Name
lPath
Channel
lNetNo
Network number
lStNo
Station number
plDev
Randomly selected device
psBuf
Write data storage destination
lBufSize
Data storage destination size
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 writes data to a device, which is specified to the randomly selected device (plDev), of a module specified to
the network number (lNetNo) and the station number (lStNo).
• 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 10,240 points or less. Otherwise, a size error
occurs.
• Note that the extension comment information is 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.
Description
Specify the path of the 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 written.
Specify the storage destination (address) of write data.
Reserve a continuous area for the write data storage destination.
Unused (Even if a value is configured, operation is not affected.)
Description
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
IN/OUT
IN
IN
IN
IN
IN
IN
Block 1
Block 2
Block n
3 DETAILS OF FUNCTIONS
3.3 MELSEC Data Link Functions
3
107

Advertisement

Table of Contents
loading

Table of Contents