Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 163

Controller module
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:
Page 225 ERROR CODE LIST
Relevant functions
• Page 159 CCPU_X_In_BitEx
• Page 160 CCPU_X_In_WordEx
• Page 163 CCPU_Y_Out_BitEx
• Page 164 CCPU_Y_Out_WordEx
• Page 162 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
3
IN/OUT
IN
IN
OUT
161

Advertisement

Table of Contents
loading

Table of Contents