FB_AlarmHandler

The class implements a handling of pending alarms to influence the process sequence. This means, for example, that an alarm with the severity "Error" can be responded to by stopping the machine directly.
The handler can also be used to optimize the acknowledgement of alarms: If an alarm occurs again after a Reset()
within the AlarmClearingDelay
, it is not cleared.
Syntax:
FUNCTION_BLOCK FB_AlarmHandler EXTENDS FB_ListenerBase2
Properties
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
AlarmClearingDelay | LREAL | Get, Set | 10 * | Time that an alarm may not occur again until it is cleared. |
FB_AlarmHandler | ||||
AlarmCritical | BOOL | Get | FALSE | A critical alarm is present. |
AlarmError | BOOL | Get | FALSE | There is an error alarm. |
AlarmWarning | BOOL | Get | FALSE | There is a warning alarm. |
AlarmInfo | BOOL | Get | FALSE | There is an information alarm. |
Error | BOOL | Get | FALSE | The handler is in an error state. |
Tc3_EventLogger.FB_ListenerBase2 | ||||
<> | <> | <> | Implemented by FB_ListenerBase2 |
Methods
Name | Description |
---|---|
ClearAlarms() | Confirms and clears all pending alarms. |
Tc3_EventLogger.FB_ListenerBase2 | |
Implemented by FB_ListenerBase2 |
Interfaces
Type | Description |
---|---|
I_AlarmHandler | Standard interface on FB_AlarmHandler |
I_OneTaskInterface | Runtime interface for a PLC task |
I_Base | Standard interface on FB_Base |
Further interfaces | Implemented by FB_ListenerBase2 |
Requirements
Development Environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT 4026 >= v3.1.4026.16 | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v12.12.0.0) |