Mitsubishi Electric MELSEC iQ-R C Programming Manual page 123

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

CCPU_Y_In_BitEx
This function reads an output signal (Y) in bit (1-point) units.
■Format
short CCPU_Y_In_BitEx (short sFlg, unsigned short usYNo, unsigned short* pusData)
■Argument
Argument
Name
sFlg
Access flag
usYNo
Output signal
pusData
Data storage destination
■Description
• This function reads an output signal (Y) specified to the output signal (usYNo) in bit (1-point) units.
• A read value of an output signal (Y) is stored in the data storage destination (pusData).
• This function operates to the mounted module corresponding to the specified output signal (usYNo) regardless of the type
of the parameter setting (I/O assignment). When the specified area is "empty", this function ends normally without
processing (read data: 0). When it is "input module", the I/O assignment error occurs.
• No error will occur even if this function is executed when the operating status of a CPU module is STOP or PAUSE. An
output signal (Y) is read at execution of this function.
■Return value
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Page 174 ERROR CODE LIST
■Relevant functions
• Page 119 CCPU_X_In_BitEx
• Page 120 CCPU_X_In_WordEx
• Page 123 CCPU_Y_Out_BitEx
• Page 124 CCPU_Y_Out_WordEx
• Page 122 CCPU_Y_In_WordEx
Description
Specify an access flag.
• 0: Normal access
• Others: Reserved
Specify an output signal (Y).
Specify the storage destination of read data.
Either of the following values is stored depending on the value of the output signal (Y).
• 0: OFF
• 1: ON
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
IN/OUT
3
IN
IN
OUT
121

Advertisement

Table of Contents
loading

Table of Contents