3 DETAILS OF FUNCTION
3.1 C Intelligent Function Module Dedicated Functions
31
3
CITL_FromBuf
This function reads data from the buffer memory of a C intelligent function module.
■ Format
short CITL_FromBuf (unsigned long ulOffset, unsigned long ulSize, unsigned short* pusDataBuf, unsigned long ulBufSize)
■ Argument
■ Description
This function reads data for the size specified to the data size (ulSize) from the buffer memory of a C intelligent function
module, and stores it in the data storage destination (pusDataBuf). Data is read by specifying an offset address from the start
of the buffer memory of a C intelligent function module.
Note that the size of data storage destination (ulBufSize) should be equal to or bigger than the data size (ulSize).
■ Return value
■ Relevant function
Page 59 CITL_ToBuf
Argument Name Description IN/OUT
ulOffset Offset Specify the offset in word units. 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 (0000H) Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST