EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 80

Mitsubishi Electric MELSEC iQ-R Series
126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
78
3 DETAILS OF FUNCTION
3.1 C Intelligent Function Module Dedicated Functions
CITL_ToBuf_ISR
This function writes data to the buffer memory of a C intelligent function module.
Format
short CITL_ToBuf_ISR (unsigned long ulOffset, unsigned long ulSize, unsigned short* pusDataBuf)
Argument
Description
This function writes data in the data storage destination (pusDataBuf) for the size specified to the data size (ulSize) to the
buffer memory of a C intelligent function module. Data is written by specifying an offset address from the start of the buffer
memory of a C intelligent function module.
Do not execute CITL_ToBuf_ISR function in a routine other than the one registered in the interrupt.
When data is written to the same buffer memory from a routine other than an interrupt routine, the output
value may be overlapped, resulting in an invalid value. Manage the resource so that data is not written to
the same buffer memory.
WARNING
CITL_ToBuf_ISR function does not check the specified argument.
Create a program with the following conditions in mind.
The offset (ulOffset) is a multiple of 2.
Do not specify outside the buffer memory or system area.
Return value
Relevant function
Page 73 CITL_FromBuf_ISR
Argument Name Description IN/OUT
ulOffset Offset Specify the offset in word units. 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
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

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals