Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 137

Controller module
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:
Page 225 ERROR CODE LIST
Relevant function
• Page 112 CCPU_GetRTC
Description
Specify the clock data (local time) to be set.
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
3
IN/OUT
IN
135

Advertisement

Table of Contents
loading

Table of Contents