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

Controller module
Table of Contents

Advertisement

CCPU_Y_Out_WordEx
This function outputs an output signal (Y) in word (16-point) units.
Format
short CCPU_Y_Out_WordEx (short sFlg, unsigned short usYNo, unsigned short usSize, unsigned short* pusDataBuf,
unsigned short usBufSize)
Argument
Argument
Name
sFlg
Access flag
usYNo
Start output signal
usSize
Output size
pusDataBuf
Data storage destination
usBufSize
Data storage destination size
Description
• This function outputs (turns ON/OFF) data in the data storage destination (pusDataBuf) from a start output signal (Y)
specified to the start output signal (usYNo) to an output signal (Y) for the size specified to the data size (usSize).
• 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.
• Store output data in the data storage destination (pusDataBuf) in ascending order from the lower bit as shown below.
pusDataBuf
pusDataBuf[0]
pusDataBuf[1]
pusDataBuf[usSize-1]
Return value
Return value
0 (0000H)
Other than 0
Relevant functions
• Page 159 CCPU_X_In_BitEx
• Page 160 CCPU_X_In_WordEx
• Page 163 CCPU_Y_Out_BitEx
• Page 161 CCPU_Y_In_BitEx
• Page 162 CCPU_Y_In_WordEx
3 DETAILS OF FUNCTION
164
3.1 C Controller Module Dedicated Functions
Description
Specify an access flag.
• 0: Normal access
• Others: Reserved
Specify a start output signal (Y).
(Specify a multiple of 16.)
Specify the output size in word units.
Specify the storage destination of output data.
Specify '0'.
Description
Data of usYNo+FH to usYNo
Data of usYNo+1FH to usYNo+10H
Data of usYNo+(usSize-1)16+FH to usYNo+(usSize-1)16
Description
Normal
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
IN/OUT
IN
IN
IN
IN
IN

Advertisement

Table of Contents
loading

Table of Contents