blockAlarmTrigger
Information
Logic for deciding whether any alarm should sound. The logic is defined in D. Harel's paper (see reference on package level) as:
T1 is the time set when alarm1 will sound.
T2 is the time set when alarm1 will sound.
P1 = alarm1 enabled and (alarm2 disabled or not T1 == T2)
P2 = alarm2 enabled and (alarm1 disabled or not T1 == T2)
P = alarm1 enabled and alarm2 enabled and T1 == T2
Alarm 1 will beep when time becomes equal to T1 and P1 is true.
Alarm 2 will beep when time becomes equal to T2 and P2 is true.
Both alarms will beep when time becomes equal to T1 and P is true.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanInput | alarm1_enabled | ||
| Modelica.Blocks.Interfaces.BooleanInput | alarm2_enabled | ||
| Modelica.Blocks.Interfaces.IntegerInput | T1 | ||
| Modelica.Blocks.Interfaces.IntegerInput | T2 | ||
| Modelica.Blocks.Interfaces.BooleanOutput | P1 | ||
| Modelica.Blocks.Interfaces.BooleanOutput | P2 | ||
| Modelica.Blocks.Interfaces.BooleanOutput | P | ||
| Modelica.Blocks.Interfaces.BooleanOutput | alarms_beep | ||
| Modelica.Blocks.Interfaces.BooleanInput | T_hits_T1 | ||
| Modelica.Blocks.Interfaces.BooleanInput | T_hits_T2 |