Alarm (with output of the remaining time)
Contents

1.Description

The alarm module replicates the alarm block of the function module. It works like an alarm clock. In the case of a rising edge at the trigger input, an internal counter is set to the value that is present at the time input. At the same time, the counter starts to count backwards. When the counter has reached zero, Output 1 is set for a second to 1 (afterwards the zero is sent). If the cycle input is set to 1 after the time expires, the counter is started again. A cyclical output is thus created, whereby the cycle time always depends on the time input. The meter reading is frozen when the freeze input is 1. If the input is reset, the counter continues with the last value. If a second rising edge is at the trigger input before the counter is 0, the counter is set back to the value at the time input (retriggerable). If the trigger input is initialised at the start of value 1, this is interpreted as a rising edge after HS/FS is restarted and the alarm module started. The module is only started when the value at the time input > 0. The alarm module also has a further output that sends the remaining time in seconds after each second at the bus.

2.Inputs

No.NameInitialisationDescription
1Trigger (start=1)0
Trigger (start of module =1)
2Time0
Time (after expiry of time in sec. Output 1 is set for 1 sec.
3Cycle0
Cycle (Cycle=1, after expiry of time, the module restarts)
4freeze0
Freeze (Freeze=1; the module is frozen until freeze=0)

3.Outputs

No.NameInitialisationSBCDescription
1Output 10s
Alarm output (is set to 1 after expiry of time for exactly 1 second, then the output is 0 again)
2remaining time sec.0s
Remaining time in sec. (the value is reset every sec.)
s = send, sbc = send by change

4.Other

Recalculation during start:Yes
Module is retentive:Yes
Internal designation:19020
Category:Time functions

5.Similar functions

Current time (text)
Time difference
Time stamp
Time format
Distinguish short/long button press