AlarmCounter (FB)¶
FUNCTION_BLOCK AlarmCounter
Short Descritpion¶
Reading out the active alarms from a predefined alarm groupTypical application: display of the number of active alarms
Portrayal¶
Interfaces¶
Inputs¶
Name Datatype
Range
Init-Value
Function
udiAlarmgroup UDINT Alarm group ID
sAlarmClass STRING Name of the alarm class
Outputs¶
Name Datatype
Range
Init-Value
Function
iTotalActiveAlarms INT Total Number of active alarms with the following states: “Active”,”Waiting for acknowledgement” and “Active, acknowledged”)
iActive INT Number of alarms in “Active” state
iActiveACK INT Number of alarms in the state “Active, acknowledged”
iWaitingForACK INT Number of alarms in the state “Waiting for acknowledgement”
Functional description¶
General¶
Determine the alarm group ID udiAlarmgroup
Determine the name of the alarm class sAlarmClass
Visualisation¶
Information¶
Element Authors
Date
Version Information
Function
Kevin Rohn 09.2016 1.0 Initial version
Programming
Kevin Rohn 09.2016 1.0 Initial version
Test Lukas Pfänder 10.2016 1.0 Initial version
Documentation
Kevin Rohn 11.2017 1.0 Initial version
Codesys¶
- InOut:
Scope Name Type Comment Input udiAlarmgroup UDINT Alarm group ID
sAlarmclass STRING Alarmklassen Name Output iTotalActiveAlarms INT Total Number of active alarms with the following states: “Active”,”Waiting for acknowledgement” and “Active, acknowledged”)
iActive INT Number of alarms in “Active” state
iActiveACK INT Number of alarms in the state “Active, acknowledged”
iWaitingForACK INT Number of alarms in the state “Waiting for acknowledgement”