118
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
CCPU_WriteLinkDevice
This function writes data to the own station link devices of CC-Link IE Controller Network module, CC-Link IE Field Network
module, Ethernet module (when CC-Link IE Field Network is selected), and MELSECNET/H network module.
■
Format
short CCPU_WriteLinkDevice (unsigned short usIoNo, short sDevType, unsigned long ulDevNo, unsigned long ulSize,
unsigned short* pusDataBuf, unsigned long ulBufSize)
■
Argument
■
Description
• This function writes data in the data storage destination (pusDataBuf) for the size specified to the data size (ulSize) to a
device, which is after one specified to the device type (sDevType) and the start device number (ulDevNo), of a CC-Link IE
Controller Network module, CC-Link IE Field Network module, Ethernet module (when CC-Link IE Field Network is
selected), and MELSECNET/H network module which are specified to the module position (usIoNo).
■
Return value
■
Relevant functions
Argument
Name
Description
IN/OUT
usIoNo
Module position
Specify the module position as follows.
Start I/O number divided by 16 (0H to FFH)
IN
sDevType
Device type
Specify the device type.
IN
ulDevNo
Start device number
Specify the start device number.
(Only multiples of 16 can be specified for bit devices.)
IN
ulSize
Data size
Specify the write data size in word units.
IN
pusDataBuf
Data storage destination
Specify the storage destination of write data.
IN
ulBufSize
Data storage destination size
Specify '0'.
IN
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Summary of Contents for MELSEC iQ-R C
Page 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Page 2: ......
Page 201: ...I 199 MEMO ...
Page 203: ...I 201 MEMO ...
Page 207: ......