82
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
CCPU_GetRTC
This function acquires the clock data (local time) of a C Controller module.
■
Format
short CCPU_GetRTC(short* psGetData,unsigned long ulBufSize)
■
Argument
■
Description
• This function acquires the clock data (local time) of a C Controller 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 clock data (local time) are stored in the clock data storage destination (psGetData) as follows.
(Available range: January 1, 1980 to December 31, 2079)
*1 Information can be acquired when using a C Controller module with the firmware version '06' or later. For the firmware version '05' or
earlier, the area is not overwritten even when information is acquired.
■
Return value
■
Relevant function
Argument
Name
Description
IN/OUT
psGetData
Clock data storage destination
Specify the storage destination of the clock data (local time).
OUT
ulBufSize
Clock data storage destination
size
Specify the clock data (local time) storage destination size in word units.
(When '0' is specified, this function ends normally without processing.)
IN
psGetData
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)
psGetData[7]
Time zone (Unit: minute)
psGetData[8]
Daylight saving time status flag (0 to 1)
(0: Not during daylight saving time, 1: During daylight saving time)
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Summary of Contents for MELSEC iQ-R C
Page 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Page 2: ......
Page 201: ...I 199 MEMO ...
Page 203: ...I 201 MEMO ...
Page 207: ......