FB_RemoteListenerBase
The function block serves as the basic implementation of an event listener of a remote system. New messages and state changes of alarms can be recognized through the overwriting of the event-driven methods.
This function block provides access to the EventLogger of a remote system and can be used to send events there or receive events from there.
Syntax
FUNCTION_BLOCK FB_RemoteListenerBase IMPLEMENTS I_RemoteListener
Methods
Name | Description |
---|---|
Must be called cyclically so that the event queue can be processed. | |
Subscribes notifications. | |
Unsubscribes notifications. |
Event-driven methods
Name | Description |
---|---|
Called when the state of an alarm changes from "Raised" to "Clear". | |
Called when an alarm has been confirmed. | |
Called when an alarm instance has been released again. | |
Called when the state of an alarm changes from "Clear" to "Raised". | |
Called when the connection to the remote system changes state. | |
Called if the database has changed, e.g. if a ClearLoggedEvents() has been called | |
Called if an ADS error occurs during communication. | |
Called when a message has been sent. |
Properties
Name | Type | Access | Description |
---|---|---|---|
bSubscribed | BOOL | Get | Returns TRUE if the function block has registered notifications and event monitoring is active. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4026.0 | PC or CX (x64, x86, ARM) | Tc3_EventLogger (>=3.3.7.0) |