clockWeekAlarm (Functionblock) |
Top Previous Next |
clockWeekAlarm is a convenient way of setting an alarm at a specific time on a specific weekday.
Input:
enable : BOOL The timer will be initialized and started on the leading edge of the enable input.
dayofweek : SINT (1 .. 7) The day of the week the alarm should trigger. 1 is Monday, 7 is Sunday.
hour: SINT (0 .. 23) The hour for the alarm.
minute : SINT (0 .. 59) The minute for the alarm.
second : SINT (0 .. 59) The second for the alarm
Output: q : BOOL When the alarm time is reached, q will be TRUE.
Declaration: FUNCTION_BLOCK clockWeekAlarm;
Example: INCLUDE rtcu.inc |