Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 82

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

Advertisement

CCPU_WriteLinkDevice
Writes data to link devices of CC-Link IE Field Network.
Format
short CCPU_WriteLinkDevice(unsigned short usIoNo, short sDevType, unsigned long ulDevNo, unsigned long ulSize,
unsigned short* pusDataBuf, unsigned long ulBufSize)
Argument
Argument
usIoNo
sDevType
ulDevNo
ulSize
pusDataBuf
ulBufSize
Description
• Writes data in the data storage destination (pusDataBuf) for the size specified to the data size (ulSize) to the link device of
CC-Link IE Field Network after the one specified by the device type (sDevType) and the start device number (ulDevNo).
• When "0" was specified for the data size (ulSize), a specification size error occurs.
Return value
Return value
0(0000H)
-253(FF03H)
-254(FF02H)
-255(FF01H)
-264(FEF8H)
-28158(9202H)
-28632(9028H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 54 CCPU_ReadLinkDevice
3 DETAILS OF FUNCTIONS
80
3.1 C Controller Module Dedicated Functions
Name
Module position
Device type
Start device number
Data size
Data storage destination
Data storage destination size
Description
Normal
Device number specification error
Device type specification error
Size specification error
Pointer error
WDT error
Module position specification error
Description
Specify 0x03E0.
Specify the device type.
Page 8 Device type
Specify the start device number.
(Only multiples of 16 can be specified for bit devices.)
Specify the write data size in word units.
Specify the storage destination of write data.
Specify '0'.
IN/OUT
IN
IN
IN
IN
IN
IN

Advertisement

Table of Contents
loading

Table of Contents