FB_BA_ActuatorAV

FB_BA_ActuatorAV 1:

The template is used to control analog aggregates. It essentially consists of an AV object for controlling an aggregate and the PlantLock function block, which collects all safety-relevant faults.

FB_BA_ActuatorAV 2:

The initialization of the template takes place within the method FB_Init.

Block diagram

FB_BA_ActuatorAV 3:

Syntax

FUNCTION_BLOCK FB_BA_ActuatorAV EXTENDS FB_BA_View
VAR_INPUT
  stCmd            : ST_BA_Analog;
END_VAR
VAR_OUTPUT
  fPresentValue    : REAL;
  bDst             : BOOL;
  eActivePrio      : E_BA_Priority;
END_VAR
VAR_INPUT CONSTANT
  Val              : FB_BA_AV;
  PlantLock        : FB_BA_PlantLock;
END_VAR
VAR
  bPrioSfty        : BOOL;
  bPrioCrit        : BOOL;
END_VAR

FB_BA_ActuatorAV 4: Inputs

Name

Type

Description

stCmd

ST_BA_Analog

The enables and switching values are transmitted to the template via the command structure stCmd . The command with the highest priority is output at the analog value object Val.

FB_BA_ActuatorAV 5: Outputs

Name

Type

Description

fPresentValue

REAL

Current value of the analog value object.

bDst

BOOL

The variable is an evaluation of the lock priorities "Safety" and "Critical" of the project structure and indicates a triggered event.

eActivePrio

E_BA_Priority

Display of the active priority.

FB_BA_ActuatorAV 6: Inputs CONSTANT

Name

Type

Description

Val

FB_BA_AV

The analog value object determines the current control value.

PlantLock

FB_BA_PlantLock

The function block PlantLock collects all safety-relevant faults at this level of the project structure and triggers switching commands in the template accordingly.

Variables

Name

Type

Description

bPrioSfty

BOOL

The variable is an evaluation of the "Safety" lock priority of the project structure.

bPrioCrit

BOOL

The variable is an evaluation of the "Critical" lock priority of the project structure.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0