Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 112

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

Advertisement

mdRemBufReadEx
Reads data from the buffer memory of a remote device station on CC-Link IE Field Network.
Format
long mdRemBufReadEx(long lPath, long lNetNo, long lStNo, long lOffset, long* plSize, short* psData)
Argument
Argument
lPath
lNetNo
lStNo
lOffset
plSize
psData
Description
• Reads data from 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 read byte size (plSize), '0 is stored as the read byte size
(plSize) value.
• Make sure that the read target range does not exceed the buffer memory range of the remote device station. If the buffer
memory range is exceeded, a timeout error may occur or unintended data may be read. 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 read only from the buffer memory of a remote device station on CC-Link IE Field Network by this function. Data
cannot be read from the buffer memory of an intelligent function module controlled by a head module on CC-Link IE Field
Network.
• To read data from the buffer memory of an intelligent function module that is controlled by a head module on CC-Link IE
Field Network, apply the mdReceiveEx/mdReceive 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 111 mdRemBufWriteEx
3 DETAILS OF FUNCTIONS
110
3.3 MELSEC Data Link Functions
Name
Path of channel
Network number
Station number
Offset
Read byte size
Read data
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 start address of the buffer memory of the remote device station
to read data.
Specifies the byte size of the read data as an even number. (2 to 480)
Stores the data that was read.
IN/OUT
IN
IN
IN
IN
IN/OUT
OUT

Advertisement

Table of Contents
loading

Table of Contents