Mitsubishi Electric MELSEC iQ-R C Programming Manual page 84

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

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
Argument
Name
psGetData
Clock data storage destination
ulBufSize
Clock data storage destination
size
■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)
psGetData
psGetData[0]
psGetData[1]
psGetData[2]
psGetData[3]
psGetData[4]
psGetData[5]
psGetData[6]
*1
psGetData[7]
*1
psGetData[8]
*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
Return value
0 (0000H)
Other than 0
■Relevant function
• Page 101 CCPU_SetRTC
3 DETAILS OF FUNCTION
82
3.1 C Controller Module Dedicated Functions
Description
Specify the storage destination of the clock data (local time).
Specify the clock data (local time) storage destination size in word units.
(When '0' is specified, this function ends normally without processing.)
Description
Year data (1980 to 2079)
Month data (1 to 12)
Day data (1 to 31)
Hour data (0 to 23)
Minute data (0 to 59)
Second data (0 to 59)
Day data (0 to 6)
('0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday)
Time zone (Unit: minute)
Daylight saving time status flag (0 to 1)
(0: Not during daylight saving time, 1: During daylight saving time)
Description
Normal
Error
For details on the error, refer to the following chapter.
Page 174 ERROR CODE LIST
IN/OUT
OUT
IN

Advertisement

Table of Contents
loading

Table of Contents