Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 113

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

Advertisement

mdRemBufWriteEx
Writes data to the buffer memory of a remote device station on CC-Link IE Field Network.
Format
long mdRemBufWriteEx(long lPath, long lNetNo, long lStNo, long lOffset, long* plSize, short* psData)
Argument
Argument
Name
lPath
Path of channel
lNetNo
Network number
lStNo
Station number
lOffset
Offset
plSize
Write byte size
psData
Write data
Description
• Writes data to the buffer memory of a remote device station on CC-Link IE Field Network specified by the network number
(lNetNo) and station number (lStNo).
• If a value outside the range or an odd number is specified for the write byte size (plSize), '0 is stored as the write byte size
(plSize) value.
• Make sure that the write target range does not exceed the buffer memory range of the remote device station. When the
buffer memory range is exceeded, a timeout error may occur or the remote device station may no longer operate normally.
For details on the range of the buffer memory of remote device stations, refer to the manual of each remote device station.
• Data can be written only to the buffer memory of a remote device station on CC-Link IE Field Network by this function. Data
cannot be written to the buffer memory of an intelligent function module controlled by a head module on CC-Link IE Field
Network.
• To write data to the buffer memory of an intelligent function module that is controlled by a head module on CC-Link IE Field
Network, apply the mdSendEx/mdSend function.
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 110 mdRemBufReadEx
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
Specifies the start address of the buffer memory of the remote device
station to write data.
Specifies the byte size of the write data as an even number. (2 to 480)
Specifies the write data as a single integer array.
Description
Normal
Error
IN/OUT
IN
IN
IN
IN
IN/OUT
IN
3 DETAILS OF FUNCTIONS
3.3 MELSEC Data Link Functions
3
111

Advertisement

Table of Contents
loading

Table of Contents