FB_BA_Aggregate

FB_BA_Aggregate 1:

The aggregate function block represents a receive block of a step sequence controller.

It communicates via the data and command structure stAggregate with the higher-level plant control unit of the step sequence control FB_BA_PlantControl.

The function block is used to evaluate the structure stAggregate. The result is output at the inputs and outputs of the function block.

Syntax

FUNCTION_BLOCK FB_BA_Aggregate
VAR_INPUT
  bFdbUp             : BOOL;
  bFdbDown           : BOOL;
END_VAR
VAR_OUTPUT
  arrPriorities      : ARRAY [0..BA_Param.nMaxPriority] OF BOOL;
  nPrio              : UDINT;
  bPriorityActive    : BOOL; 
  bValue             : BOOL;
  nValue             : UDINT;
  fValue             : REAL;
END_VAR
VAR_IN_OUT
  stAggregate        : ST_BA_Aggregate;
END_VAR

FB_BA_Aggregate 2: Inputs

Name

Type

Description

bFdbUp

BOOL

A feedback from the aggregate is applied to the input. It is used within the step sequence control to switch up to the next higher step.

The feedback is transmitted to the plant control unit via the data and command structure stAggregate.

bFdbDown

BOOL

A feedback from the aggregate is applied to the input. It is used to switch down to the next lower step.

The feedback is transmitted to the plant control unit via the data and command structure stAggregate.

FB_BA_Aggregate 3: Outputs

Name

Type

Description

arrPriorities

BOOL

The binary array outputs the enables of the priorities. Only one priority is active at a time. nPrio indicates which one it is.

nPrio

UDINT

Indicates which priority is active.

bPriorityActive

BOOL

One priority is enabled.

bValue

BOOL

Binary switching value for the aggregate.

nValue

UDINT

Multi-stage switching value for the aggregate.

fValue

REAL

Analog control value for the aggregate.

FB_BA_Aggregate 4: / FB_BA_Aggregate 5: Inputs Outputs

Name

Type

Description

stAggregate

ST_BA_Aggregate

The aggregate structure is used for bidirectional communication between the connected aggregate FB_BA_Aggregate and the plant control FB_BA_PlantControl.

FB_BA_Aggregate 6:

FB_BA_Aggregate 7: Properties

Name

Type

Access

Description

Down

BOOL

Get

Indicates that the sequence of the step sequence control is in the falling state.

OpMode

UDINT

Get

Displays the current operation mode of the plant control.

Prio

UDINT

Get

Indicates which priority is the active one in the plant control.

Step

UDINT

Get

Indicates the current step of the plant control.

Up

BOOL

Get

Indicates that the sequence of the step sequence control is in the rising state.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.55

Tc3_BA2 from v5.3.19.0