Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 69

Vxworks
Hide thumbs Also See for MELIPC MI5000 Series:
Table of Contents

Advertisement

CCPU_SetRTC
Sets the clock data (local time) of a MELIPC.
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
psSetData[0]
psSetData[1]
psSetData[2]
psSetData[3]
psSetData[4]
psSetData[5]
Description
• This function sets the time (local time) specified to the clock data (psSetData) to the MELIPC.
• If a clock data (psSetData) value 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 adjust clock for daylight saving time settings is enabled, if a time (local time) that is less than one hour from the
starting time of the daylight saving time is specified to the clock data (psSetData), an error will be returned.
Precautions
The clock data (local time) set with this function is not applied to the clock of the operating system (VxWorks).
Return value
Return value
0(0000H)
-240(FF10H)
-264(FEF8H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 49 CCPU_GetRTC
Description
Specify the clock data (local time) to be set.
Description
Normal
Clock data incorrect error
Pointer error
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)
3.1 C Controller Module Dedicated Functions
IN/OUT
IN
3 DETAILS OF FUNCTIONS
3
67

Advertisement

Table of Contents
loading

Table of Contents