Mitsubishi Electric MELSEC iQ-R C Programming Manual page 125

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
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.
• 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
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 124 CCPU_Y_Out_WordEx
• Page 121 CCPU_Y_In_BitEx
• 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 output data.
(Specify the value of bit 0.)
• 0: OFF
• 1: ON
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
IN/OUT
3
IN
IN
IN
123

Advertisement

Table of Contents
loading

Table of Contents