Function (FC): Alarm Bit - v2.0
This function is used to manage each alarm bit of abstractAlarmLevel.
_objectContainer└─ alarm ├─ level # USINT │ ├─ a?? # STRUCT │ ├─ triggered # UINT ← _alarmBit() updates this variable │ ├─ id # UINT │ ├─ map # Array[n] of INT │ ├─ a00_name # BOOL ← _alarmBit() updates this variable │ ├─ a01_name # BOOL ← _alarmBit() updates this variable │ ├─ ... │ └─ aNN_name # BOOL ← _alarmBit() updates this variable ...Use cases
Section titled “Use cases”- For simple alarms where each bit represents a specific alarm, such as: “High temperature sensor” or “General protection”.
Parameters
Section titled “Parameters”| Parameter | Declaration | Type | Description |
|---|---|---|---|
incoming | Input | Bool | 1=Alarm triggered |
outcoming | Input | Bool | 1=No alarm |
acknNeeded | Input | Bool | 0=Auto acknowledgment 1=Acknowledgment required |
ackn | Input | Bool | 1=Alarm acknowledgment |
alarm | InOut | Bool | 1=Alarm bit triggered |
triggered | InOut | UInt | Increments by 1 when alarm is TRUE |