80
3 DETAILS OF FUNCTION
3.1 C Intelligent Function Module Dedicated Functions
CITL_X_Out_Word_ISR
This function writes to an input signal (X) in word (16-point) units.
■ Format
short CITL_X_Out_Word_ISR (unsigned short usXNo, unsigned short usSize, unsigned short* pusDataBuf)
■ Argument
■ Description
• This function writes to the input signal (X) with a specific write data size (usSize) from the start input signal (usXNo)
depending on the data storage destination (pusDataBuf). (Turns ON/OFF.)
• Only the area available for user can be written. Even though the data is written by the CITL_X_Out_Word function in the
area other than the area available for user, no error will occur, but the value will not be written.
• Store write data in the data storage destination (pusDataBuf) in ascending order from the lower bit.
Do not execute CITL_X_Out_Word_ISR function in a routine other than the one registered in the interrupt.
■ WARNING
CITL_X_Out_Word_ISR function does not check the specified argument.
Create a program with the following conditions in mind.
• The input signal (X) within the range (0H to 1FH) is specified.
■ Return value
■ Relevant function
Page 79 CITL_X_In_Word_ISR
Page 81 CITL_Y_In_Word_ISR
Argument Name Description IN/OUT
usXNo Start input signal Specify a start input signal (X).
(Only 0x00 and 0x10 can be specified.)
IN
usSize Write data size Specify the write data size in word units.
• When start input signal is 0x00: Only 1 and 2 can be specified.
• When start input signal is 0x10: Only 1 can be specified.
IN
pusDataBuf Data storage destination Specify the storage destination of write data. IN
Storage position Description
pusDataBuf[0] Data of usXNo+FH to usXNo
pusDataBuf[1] Data of usXNo+1FH to usXNo+10H
Return value Description
0 (0000H) Normal
Other than 0 (0000H) Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST