3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
145
3
CCPU_Y_Out_Word_ISR
This function outputs an output signal (Y) in word (16-point) units.
■
Format
short CCPU_Y_Out_Word_ISR (unsigned short usYNo, unsigned short usSize, unsigned short* pusDataBuf)
■
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).
• Specify the start output signal (usYNo) in multiples of 16. (The remainder divided by 16 is discarded.)
• 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.
• Do not execute this function in a routine other than an interrupt routine.
• Do not execute this function to an I/O assignment on which an intelligent function module or an interrupt
module is mounted.
• When data is output to the same output signal (Y) from a routine other than an interrupt routine, the output
value may be overlapped, resulting in an invalid value. Manage the resource so that data is not output to the
same output signal (Y).
■
WARNING
• If any function in which an invalid argument is specified is executed, an error such as hardware failure (3C02H) may occur
on C Controller module.
• This function does not check the specified argument.
When creating a program, note the following:
An address specified to the write data is a multiple of 2.
An output signal (Y) which is out of the range (excluding 0H to FFFH) is not specified.
■
Return value
■
Relevant functions
• Page 143 CCPU_X_In_Word_ISR
• Page 144 CCPU_Y_In_Word_ISR
Argument
Name
Description
IN/OUT
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
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.
Содержание MELSEC iQ-R C
Страница 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Страница 2: ......
Страница 201: ...I 199 MEMO ...
Страница 203: ...I 201 MEMO ...
Страница 207: ......