3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
101
3
CCPU_SetRTC
This function sets the clock data (local time) of C Controller module.
■
Format
short CCPU_SetRTC(short* psSetData)
■
Argument
• Specify the clock data (local time) to the clock data (psSetData) as follows.
(Available range: January 1, 1980 to December 31, 2079)
■
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
■
Relevant function
Argument
Name
Description
IN/OUT
psSetData
Clock data
Specify the clock data (local time) to be set.
IN
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)
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Содержание MELSEC iQ-R C
Страница 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Страница 2: ......
Страница 201: ...I 199 MEMO ...
Страница 203: ...I 201 MEMO ...
Страница 207: ......