Mitsubishi Electric MELSEC iQ-R Series Manual page 83

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

Advertisement

CITL_Y_In_Word_ISR
This function reads an output signal (Y) in word (16-point) units.
■ Format
short CITL_Y_In_Word_ISR (unsigned short usYNo, unsigned short usSize, unsigned short* pusDataBuf, unsigned short
usBufSize)
■ Argument
Argument
Name
usYNo
Start output signal
usSize
Read data size
pusDataBuf
Data storage destination
■ Description
• This function reads an output signal (Y) for the size specified to the read data size (usSize) from the start output signal
(usYNo), and stores it in the data storage destination (pusDataBuf).
• Read data is stored in the data storage destination (pusDataBuf) in ascending order from the lower bit as shown below.
Storage position
Description
pusDataBuf[0]
Data of usYNo+FH to usYNo
pusDataBuf[1]
Data of usYNo+1FH to usYNo+10H
Do not execute CITL_Y_In_Word_ISR function in a routine other than the one registered in the interrupt.
WARNING
CITL_Y_In_Word_ISR function does not check the specified argument.
Create a program with the following conditions in mind.
• The data area for the size (words) of the read data is reserved.
• The output signal (Y) within the range (0H to 1FH) is specified.
■ 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 79 CITL_X_In_Word_ISR
Page 80 CITL_X_Out_Word_ISR
Description
Specify a start output signal (Y).
(Only 0x00 and 0x10 can be specified.)
Specify the read data size in word units.
• When start output signal is 0x00: Only 1 and 2 can be specified.
• When start output signal is 0x10: Only 1 can be specified.
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
81

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents