clockAlarm (Functionblock) |
Top Previous Next |
clockAlarm is a convenient way of setting an alarm at a specific time. This function block lets you set alarms that will occur periodically. If one or more of the input parameters to the function block are omitted, they are not used in setting the alarm time.
Input:
enable : BOOL Set to true to activate the timer.
month : INT (-1, 1 .. 12) (Default: -1 (not used in comparison)) The month.
day : INT (-1, 1 .. 31) (Default: -1 (not used in comparison)) The date.
hour: INT (-1 .. 23) (Default: -1 (not used in comparison)) The hour.
minute : INT (-1 .. 59) (Default: -1 (not used in comparison)) The minute.
second : INT (-1 .. 59) (Default: -1 (not used in comparison)) The second.
Output: q : BOOL When the time is reached, q will become TRUE.
Declaration: FUNCTION_BLOCK clockAlarm;
Example: INCLUDE rtcu.inc |