Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 114

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

Advertisement

mdSendEx
Writes data to devices in a batch.
Format
long mdSendEx(long lPath, long lNetNo, long lStNo, long lDevType, long lDevNo, long* plSize, short* psData)
Argument
Argument
lPath
lNetNo
lStNo
lDevType
lDevNo
plSize
psData
Description
• Writes data to the module specified by the network number (lNetNo) and the station number (lStNo).
• Writes data in the size specified for the write data size (plSize) to the start of the device specified by the device type
(lDevType) and the start device number (lDevNo).
• It checks the arguments and verifies whether the address + size determined by the arguments is within the device memory
range.
• When the write data size exceeds the device range, the writable device size (the maximum value that can be specified for
the write data size (plSize) when '0' was specified for the start device number (lDevNo)) is returned to the write data size
(plSize).
• 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).
Return value
Return value
0(0000H)
Other than 0
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 99 mdClose
Page 103 mdOpen
Page 109 mdReceiveEx
3 DETAILS OF FUNCTIONS
112
3.3 MELSEC Data Link Functions
Name
Path of channel
Network number
Station number
Device type
Start device number
Write data size
Write data storage destination
Description
Normal
Error
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 device type for device to be written in batch.
Specify the start device number to be written in batch.
(For bit devices, specify the device number in multiples of 8.)
Specify the write data size in byte units.
(Specifies the value in multiples of 4 when a double-word device (LZ, LTN,
LCN, LSTN) is specified and specifies the value in multiples of 2 when a
word device or bit device is specified. If other values are specified, a size
error occurs. )
Specify the storage destination (address) of write data.
Reserve a continuous area for the write data storage destination.
IN/OUT
IN
IN
IN
IN
IN
IN/OUT
IN

Advertisement

Table of Contents
loading

Table of Contents