Function (FC): 1 Alarm Bit ID - v2.0
This function is used to load the triggered alarm ID into
abstractAlarmLevel.
This function is part of a set of functions that allow managing
multiple alarm bits, each with a different number of alarm IDs.
See the following functions to manage different numbers of alarms:
-
_alarmBit02Id()for managing 2 alarms. -
_alarmBit04Id()for managing 4 alarms. -
_alarmBit08Id()for managing 8 alarms. -
_alarmBit16Id()for managing 16 alarms.
If you need to manage a different number of alarms, you can chain multiple of these functions. For example, to manage 3 alarms you can use:
-
_alarmBit01Id(),_alarmBit01Id()and_alarmBit01Id(). -
_alarmBit01Id()and_alarmBit02Id().
_objectContainer└─ alarm ├─ level # USINT │ ├─ a?? # STRUCT │ ├─ triggered # UINT → _alarmBit01Id() reads this variable │ ├─ id # UINT ← _alarmBit01Id() updates this variable │ ├─ map # Array[n] of INT │ ├─ a00_name # BOOL → _alarmBit01Id() reads this variable │ ├─ a01_name # BOOL → _alarmBit01Id() reads this variable │ ├─ ... │ └─ aNN_name # BOOL → _alarmBit01Id() reads this variable ...Use cases
Section titled “Use cases”- When the system needs to manage alarm IDs.
Parameters
Section titled “Parameters”| Parameter | Declaration | Type | Description |
|---|---|---|---|
triggered | Input | UInt | 0=No alarm 1..N=Number of triggered alarms |
a00 | Input | Bool | 1=Alarm bit triggered |
a00_id | Input | Int | 0= No alarm ID; Other=Alarm ID |
id | InOut | Int | 0= No alarm ID; Other=Alarm ID |