FB_BA_EventObserver

FB_BA_EventObserver 1:

The function block is used to evaluate alarms/events in the project structure and acknowledge them.

Access to the project structure with a parent/child relationship takes place via an assignment to the property Parent.

Syntax

FUNCTION_BLOCK FB_BA_EventObserver
VAR_INPUT
  bAck               : BOOL;
END_VAR
VAR_OUTPUT
  bHasEvents         : BOOL;
  bHasUnackEvents    : BOOL;
END_VAR

FB_BA_EventObserver 2: Inputs

Name

Type

Description

bAck

BOOL

The signal for acknowledging alarms / events is applied to the input.

FB_BA_EventObserver 3: Outputs

Name

Type

Description

bHasEvents

BOOL

Display that events are pending.

bHasUnackEvents

BOOL

Display that unacknowledged events are pending.

FB_BA_EventObserver 4: Properties

Name

Type

Access

Description

Parent

I_BA_View

Get, Set

Access to the project structure (base framework) is realized via an assignment to the property.

If no assignment is made, the basis of the base framework is accessed. This means that all events / alarms are evaluated and their acknowledgement can be triggered accordingly. In addition, a warning is output to the error list of the TC3 development environment.

Valid

BOOL

Get

Indicates that a valid assignment is present at the interface iParent (parent).

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.2.1.0