3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
123
3
CCPU_Y_Out_BitEx
This function outputs an output signal (Y) in bit (1-point) units.
■
Format
short CCPU_Y_Out_BitEx (short sFlg, unsigned short usYNo, unsigned short usData)
■
Argument
■
Description
• This function outputs (turns ON/OFF) an output signal (Y) specified to the output signal (usYNo) in bit (1-point) units.
• An output signal (Y) turns ON/OFF according to a value specified to bit 0 in the data storage destination (usData). (Values
of bit 1 to 7 are ignored.)
• When executing this function while the operating status of a CPU module is not RUN, the STOP/PAUSE error occurs.
• When this function is executed to "input module", the I/O assignment error occurs.
• Do not specify an output module controlled by other CPUs to the output signal (usYNo).
If it is specified, no operation is performed to the output module.
■
Return value
■
Relevant functions
• Page 119 CCPU_X_In_BitEx
• Page 120 CCPU_X_In_WordEx
• Page 124 CCPU_Y_Out_WordEx
• Page 121 CCPU_Y_In_BitEx
• 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
usData
Data storage destination
Specify the storage destination of output data.
(Specify the value of bit 0.)
• 0: OFF
• 1: ON
IN
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: ......