3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
89
3
CCPU_ReadDevice
This function reads data from internal user devices and internal system devices of C Controller module.
■
Format
short CCPU_ReadDevice (short sDevType, unsigned long ulDevNo, unsigned long ulSize, unsigned short* pusDataBuf,
unsigned long ulBufSize)
■
Argument
■
Description
This function reads data in a device after one specified to the device type (sDevType) and the start device number (ulDevNo)
for the size specified to the data size (ulSize), and stores it in the data storage destination (pusDataBuf).
Precautions
Note that the size of data storage destination (ulBufSize) should be equal to or bigger than the data size (ulSize).
■
Return value
■
Relevant function
Argument
Name
Description
IN/OUT
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 read data size in word units.
IN
pusDataBuf
Data storage destination
Specify the storage destination of read data.
OUT
ulBufSize
Data storage destination size
Specify the data storage destination size in word units.
IN
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Содержание MELSEC iQ-R C
Страница 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Страница 2: ......
Страница 201: ...I 199 MEMO ...
Страница 203: ...I 201 MEMO ...
Страница 207: ......