124
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
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
■
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.
■
Return value
■
Relevant functions
• Page 119 CCPU_X_In_BitEx
• Page 120 CCPU_X_In_WordEx
• Page 123 CCPU_Y_Out_BitEx
• 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
Start output signal
Specify a start output signal (Y).
(Specify a multiple of 16.)
IN
usSize
Output size
Specify the output size in word units.
IN
pusDataBuf
Data storage destination
Specify the storage destination of output data.
IN
usBufSize
Data storage destination size
Specify '0'.
IN
pusDataBuf
Description
pusDataBuf[0]
Data of usYNo+FH to usYNo
pusDataBuf[1]
Data of usYNo+1FH to usYNo+10H
pusDataBuf[usSize-1]
Data of usYNo+(usSize-1)
16+FH to usYNo+(usSize-1)
16
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Summary of Contents for MELSEC iQ-R C
Page 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Page 2: ......
Page 201: ...I 199 MEMO ...
Page 203: ...I 201 MEMO ...
Page 207: ......