Mitsubishi Electric MELSEC iQ-R Series Manual page 80

Intelligent function module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

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
Argument
ulOffset
ulSize
pusDataBuf
■ 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
Return value
0 (0000H)
Other than 0 (0000H)
■ Relevant function
Page 73 CITL_FromBuf_ISR
3 DETAILS OF FUNCTION
78
3.1 C Intelligent Function Module Dedicated Functions
Name
Offset
Data size
Data storage destination
Description
Normal
Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST
Description
Specify the offset in word units.
Specify the write data size in word units.
Specify the storage destination of write data.
IN/OUT
IN
IN
IN

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents