Mitsubishi Electric MELSEC iQ-R Series Manual page 70

Intelligent function module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

CITL_X_Out_Word
This function writes to an input signal (X) in word (16-point) units.
■ Format
short CITL_X_Out_Word (unsigned short usXNo, unsigned short usSize, unsigned short* pusDataBuf, unsigned short
usBufSize)
■ Argument
Argument
usXNo
usSize
pusDataBuf
usBufSize
■ Description
• This function writes data in the data storage destination (pusDataBuf) from a start input signal (X) specified to the start input
signal (usXNo) to an input signal (X) for the size specified to the data size (usSize).
• When 0x10 is specified to the start input signal (usXNo) and two words are specified to the write data size (usSize), the
CITL_X_In_Word function returns an I/O access size error and the value is not written.
• 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 as shown below.
Storage position
pusDataBuf[0]
pusDataBuf[1]
■ Return value
Return value
0 (0000H)
Other than 0 (0000H)
■ Relevant function
Page 65 CITL_X_In_Bit
Page 66 CITL_X_In_Word
Page 67 CITL_X_Out_Bit
Page 69 CITL_Y_In_Bit
Page 70 CITL_Y_In_Word
3 DETAILS OF FUNCTION
68
3.1 C Intelligent Function Module Dedicated Functions
Name
Start input signal
Write data size
Data storage destination
Data storage destination size
Description
Data of usXNo+FH to usXNo
Data of usXNo+1FH to usXNo+10H
Description
Normal
Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST
Description
Specify a start input signal (X).
(Only 0x00 and 0x10 can be specified.)
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.
Specify the storage destination of write data.
Specify '0'.
IN/OUT
IN
IN
IN
IN

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents