EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 44

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...
42
3 DETAILS OF FUNCTION
3.1 C Intelligent Function Module Dedicated Functions
CITL_GetTime
This function acquires the clock data (local time) of a C intelligent function module.
Format
short CITL_GetTime(short* psGetData, unsigned long ulBufSize)
Argument
Description
This function acquires the clock data (local time) of a C intelligent function module, and stores it in the clock data storage
destination (psGetData).
It also acquires the information for the size specified to the clock data storage destination size (ulBufSize).
The information to be stored in the clock data storage destination (psGetData) is as follows.
(Available range: January 1, 1980 to December 31, 2079)
Return value
Argument Name Description IN/OUT
psGetData Clock data storage destination Specify the storage destination of the clock data. OUT
ulBufSize Clock data storage destination size Specify the clock data storage destination size in word units.
(When '0' is specified, this function ends normally without processing.)
IN
Storage position Description
psGetData[0] Year data (1980 to 2079)
psGetData[1] Month data (1 to 12)
psGetData[2] Day data (1 to 31)
psGetData[3] Hour data (0 to 23)
psGetData[4] Minute data (0 to 59)
psGetData[5] Second data (0 to 59)
psGetData[6] Day data (0 to 6)
(0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday)
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