FB_ListenerBase2
The function block serves as the basic implementation of an event listener.
New messages and state changes of alarms can be recognized through the overwriting of the event-driven methods.
Syntax
Definition:
FUNCTION_BLOCK FB_ListenerBase2 IMPLEMENTS I_Listener2
Methods
Name | Definition location | Description |
---|---|---|
Local | Must be called cyclically so that the event queue can be processed. | |
Local | Subscribes messages. | |
Local | Unsubscribes messages. |
Event-driven methods (callback methods)
Name | Definition location | Description |
---|---|---|
I_Listener2 | Called when the state of an alarm changes from "Raised" to "Clear". | |
I_Listener2 | Called when an alarm has been confirmed. | |
I_Listener2 | Called when an alarm instance has been released again. | |
I_Listener2 | Called when the state of an alarm changes from "Clear" to "Raised". | |
I_Listener2 | Called when a message has been sent. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.17 | PC or CX (x64, x86, ARM) | Tc3_EventLogger (>= v3.1.27.0) |