Alarm Trigger for Boolean Variables
Full Name
Lib.Mervis.v1_0.bool_to_alrtrig
Required Project References
- Lib.Mervis
Description
Auxiliary block used for generating an alarm from a boolean variable.
Usage in ST
program test var inp: lib.mervis.v1_0.bool_to_alrtrig; end_var inp(); end_program
Inputs
Inputs | Name | Data Type | Retain | Required Connection | Meaning |
Input | bool | No | Yes | Input value | |
Priority | AlarmPriorityType | No | No | Alarm priority | |
Delay | time | No | No | Alarm delay (if zero, no delay is applied) |
Outputs
Outputs | Name | Data Type | Meaning |
Alarm | AlarmTrigger | Output |
Detailed Function Description
The block generates an alarm if the Input is active for at least the duration of Delay with the priority defined by Priority.