Mitsubishi Electric MELSEC iQ-R C Programming Manual page 103

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

Advertisement

CCPU_SetRTC
This function sets the clock data (local time) of C Controller module.
■Format
short CCPU_SetRTC(short* psSetData)
■Argument
Argument
Name
psSetData
Clock data
• Specify the clock data (local time) to the clock data (psSetData) as follows.
(Available range: January 1, 1980 to December 31, 2079)
psSetData
Description
psSetData[0]
Year data (1980 to 2079)
psSetData[1]
Month data (1 to 12)
psSetData[2]
Day data (1 to 31)
psSetData[3]
Hour data (0 to 23)
psSetData[4]
Minute data (0 to 59)
psSetData[5]
Second data (0 to 59)
■Description
• This function sets the clock data (local time) specified to the clock data (psSetData) to C Controller module.
• If the clock data (psSetData) is out of the range, an error is returned.
• Once the clock data (local time) is set, the history set to the event history is registered.
• When the daylight saving time function is enabled, an error is returned if clock data less than one hour from the start date
and time of daylight saving time is set.
Precautions
• The clock data (local time) set with this function are not reflected to the clock of the operating system (VxWorks).
■Return value
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Page 174 ERROR CODE LIST
■Relevant function
• Page 82 CCPU_GetRTC
Description
Specify the clock data (local time) to be set.
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
IN/OUT
3
IN
101

Advertisement

Table of Contents
loading

Table of Contents