Set Clock
Operator Menu Location: Generic Hardware Operators Time
Operator Bitmap:
Functional Description:
The Set Clock generic hardware operator provides access to a real-time clock (RTC) resource in the physical hardware. When the generic operator is linked to a specific module's hardware resource, it enables updating of that module's RTC.
The operator has six analog inputs ( ) and two digital inputs ( , ). If the operator is configured for a rising-edge trigger, it will update the RTC when digital input switches from LOW to HIGH. If it is configured for a falling-edge trigger, it will update the RTC when switches from HIGH to LOW.
Upon triggering, the operator will set the RTC with input values representing the desired date/time. The time to be set can be represented in 24-hour or 12-hour format. The inputs are:
Input Label |
Signal |
Range |
|
Year |
1970-2037 |
|
Month |
1-12 |
|
Day |
1-31 |
|
Hour |
0-23 (24-hour format) or 1-12 (12-hour format) |
|
Minutes |
0-59 |
|
Seconds |
0-59 |
|
AM/PM |
12hour format, LOW=AM, HIGH=PM |
Input is only applicable in 12-hour format (the input pin will not be visible in the schema when the operator is configured for 24-hour format). In 12-hour format, a LOW input value corresponds to an Ante Meridiem time (before noon). A HIGH input value represents a Post Meridiem time (after noon).
User-Defined Properties:
Object Name. A string label that identifies the operator
Time Format. The format that the time is expressed in; either 24-hour or 12-hour (with AM/PM designation)
Enable On. Indicates when the RTC update should occur. If enabled on Rising Edge, the RTC will be updated when input switches from LOW to HIGH. If enabled on Falling Edge, the RTC will be updated when input switches from HIGH to LOW.
Comments:
•If the input values do not adhere to the ranges in the table above, or if they do not represent a valid date/time, the RTC setting will not be modified.
See Also:
Time-of-Day Clock, Calendar, Alarm Clock, Stopwatch