Mitsubishi Electric MELSEC iQ-R Series Manual page 75

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

Advertisement

CITL_FromBuf_ISR
This function reads data from the buffer memory of a C intelligent function module.
■ Format
short CITL_FromBuf_ISR (unsigned long ulOffset, unsigned long ulSize, unsigned short* pusDataBuf)
■ Argument
Argument
Name
ulOffset
Offset
ulSize
Data size
pusDataBuf
Data storage destination
■ 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.
Do not execute the CITL_FromBuf_ISR function in a routine other than an interrupt routine.
WARNING
CITL_FromBuf_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.
• The data area for the size (words) of the read data is reserved.
■ Return value
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
■ Relevant function
Page 78 CITL_ToBuf_ISR
Description
Specify the offset in word units.
Specify the read data size in word units.
Specify the storage destination of read data.
3.1 C Intelligent Function Module Dedicated Functions
IN/OUT
IN
IN
OUT
3 DETAILS OF FUNCTION
3
73

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents