Alarm Clock


Operator Menu Location: Generic Hardware Operators Time


Operator Bitmap:


Functional Description:
The Alarm Clock generic hardware operator provides access to a real-time clock resource in the physical hardware. When the generic operator is linked to a specific hardware resource, the operator provides alarming functionality based on the time of day.


The operator can be configured to "alarm" at a user-specified time-of-day, with user-specified frequency and user-specified duration. An alarm condition is reflected with a HIGH output value; the output remains LOW otherwise.
The time of day to alarm can be fixed (defined in the operator properties), or can be set by external inputs, (hour), (minute), (second). The duration of the alarm can also be fixed (property settings), or set by external inputs (hours), (minutes), and (seconds). The external inputs have precedence over the property settings---if one of these inputs is connected, its corresponding property setting is ignored.


The operator can be configured to signal a single time alarm event, or repeat the alarm at user-specified intervals. The operator can be configured to alarm every day (at the time of day and for the duration defined by the property settings or external input values), every weekday, every weekend day, once per week, once per month, or once per year.
Enable input activates (HIGH) or deactivates (LOW) the alarm. The alarm output remains LOW whenever the enable input is LOW, even if the alarm condition is met (e.g., the current time of day matches the alarming setting).
For example, suppose the operator is configured to alarm at 10:30AM for 30 minutes. If at 10:30AM enable input is LOW, output y will remain LOW. If at 10:45AM enable input switches to HIGH, output y will also switch to HIGH (since the alarming condition is being met). The output will remain HIGH for 15 minutes provided that the operator remains enabled ( ).


User-Defined Properties:
Object Name. A string label that identifies the operator


Alarm Frequency. Defines the periodicity of alarming. It can assume the following values: 'Once per day', 'Weekdays', 'Weekends', 'Monthly on specified day', 'Weekly on specified day of week', 'Yearly on specified day and month', or 'Once on specified day, month, and year'.


Day. Used in conjunction with the Alarm Frequency setting above to define the day that the operator is to alarm. Applies only when Alarm Frequency setting is 'Monthly on specified day', 'Yearly on specified day and month', or 'Once on specified day, month and year'.


Day of Week. Used in conjunction with the Alarm Frequency setting above to define the day of week that the operator is to alarm. Applies only when Alarm Frequency setting is 'Weekly on specified day of week'.


Month. Used in conjunction with the Alarm Frequency setting above to define the month that the operator is to alarm. Applies only when Alarm Frequency setting is 'Yearly on specified day and month', or 'Once on specified day, month and year'.


Year. Used in conjunction with the Alarm Frequency setting above to define the year that the operator is to alarm. Applies only when Alarm Frequency setting is 'Once on specified day, month, and year'.
Display Start Time Inputs. This property determines if input pins , , and are visible in the schema diagram. Design Pad issues a warning upon processing the schema when the pins are visible but not connected. The warning message is not issued when the pin is not visible (when this property is not checked). When the pins are connected, the Start Time properties listed below are ignored.
Start Time (hr). The hour (of day) that the alarm is to be triggered. Value must be in the range 0-23 and is ignored if input is connected.
Start Time (min). The minute (of the hour) that the alarm is to be triggered. Value must be in the range 0-59 and is ignored if input is connected.
Start Time (sec). The second (of the minute) that the alarm is to be triggered. Value must be in the range 0-59 and is ignored if input is connected.
Display Duration Inputs. This property determines if input pins , , and are visible in the schema diagram. Design Pad issues a warning upon processing the schema when the pins are visible but not connected. The warning message is not issued when the pin is not visible (when this property is not checked). When the pins are connected, the Alarm Duration properties listed below are ignored.
Alarm Duration (hr). The number of hours that the alarm is to remain triggered. Value must be in the range 0-23 and is ignored if input is connected.
Alarm Duration (min). The number of minutes that the alarm is to remain triggered. Value must be in the range 0-59 and is ignored if input is connected.
Alarm Duration (sec). The number of seconds that the alarm is to remain triggered. Value must be in the range 0-59 and is ignored if input is connected.
Display Enabled Input. This property determines if the enable input pin is visible in the schema diagram. Design Pad issues a warning upon processing the schema when the pin is visible but not connected. The warning message is not issued when the pin is not visible (when this property is not checked).


Comments: None.


See Also: Stop Watch, Calendar, Time-of-Day Clock