EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 70

Mitsubishi Electric MELSEC iQ-R Series
126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
68
3 DETAILS OF FUNCTION
3.1 C Intelligent Function Module Dedicated Functions
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
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.
Return value
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
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
usBufSize Data storage destination size Specify '0'. 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

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals