Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 154

Controller module
Table of Contents

Advertisement

CCPU_WriteDevice
This function writes data to internal user devices and internal system devices of C Controller module.
Format
short CCPU_WriteDevice (short sDevType, unsigned long ulDevNo, unsigned long ulSize, unsigned short* pusDataBuf,
unsigned long ulBufSize)
Argument
Argument
Name
sDevType
Device type
ulDevNo
Start device number
ulSize
Data size
pusDataBuf
Data storage destination
ulBufSize
Data storage destination size
Description
This function writes data in the data storage destination (pusDataBuf) for the size specified to the data size (ulSize) to a
device after the one specified to the device type (sDevType) and the start device number (ulDevNo).
Return value
Return value
0 (0000H)
Other than 0
Relevant functions
• Page 120 CCPU_ReadDevice
3 DETAILS OF FUNCTION
152
3.1 C Controller Module Dedicated Functions
Description
Specify the device type.
Page 13 Argument specification
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'.
Description
Normal
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
IN/OUT
IN
IN
IN
IN
IN

Advertisement

Table of Contents
loading

Table of Contents