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

Controller module
Table of Contents

Advertisement

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
Argument
Name
sFlg
Access flag
usYNo
Output signal
usData
Data storage destination
Description
• This function outputs (turns ON/OFF) an output signal (Y) specified to the output signal (usYNo) in bit (1-point) units.
• Specify 0 (OFF) or 1 (ON) for the data storage destination (usData). When a value other than 0 (OFF) or 1 (ON) is
specified, only a specified value on the 0th bit of data storage destination (usData) is enabled. (Values of bit 1 to 15 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
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 164 CCPU_Y_Out_WordEx
• Page 161 CCPU_Y_In_BitEx
• 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 output data.
(Specify the value of bit 0.)
• 0: OFF
• 1: ON
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
3
IN/OUT
IN
IN
IN
163

Advertisement

Table of Contents
loading

Table of Contents