3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
121
3
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
■
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
■
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
Argument
Name
Description
IN/OUT
sFlg
Access flag
Specify an access flag.
• 0: Normal access
• Others: Reserved
IN
usYNo
Output signal
Specify an output signal (Y).
IN
pusData
Data storage destination
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
OUT
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Содержание MELSEC iQ-R C
Страница 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Страница 2: ......
Страница 201: ...I 199 MEMO ...
Страница 203: ...I 201 MEMO ...
Страница 207: ......