FB_BA_StepBinary

FB_BA_StepBinary 1:

The function block is part of a step sequence control.

It communicates via the data and command structure stStep with the higher-level control unit of the step sequence control FB_BA_StepCtrlAgg16.

The command structure stPriorityEn contains the plant enable and the priorities.

The command structure stCmd controls the connected aggregate.

Switch-on conditions of the connected aggregate

FB_BA_StepBinary 2:

Step enabling condition within the step sequence

FB_BA_StepBinary 3:

Switch-off conditions of the active aggregate within the step sequence

FB_BA_StepBinary 4:

Illustration

FUNCTION_BLOCK FB_BA_StepBinary
VAR_INPUT
  stPriorityEn       : ST_BA_PriorityEn;
  bVal               : BOOL;
  bFdb               : BOOL;
  nDlyOn             : UDINT;
  nDlyOff            : UDINT;
END_VAR
VAR_OUTPUT
  stCmd              : ST_BA_Binary;
  nRemSecStepUp      : UDINT;
  nRemSecStepDown    : UDINT;
END_VAR
VAR_IN_OUT
  stStep             : ST_BA_Step;
END_VAR

FB_BA_StepBinary 5: Inputs

Name

Type

Description

stPriorityEn

ST_BA_PriorityEn

The command structure includes the plant enable and the priorities "Safety", "Critical" and "Program".

bVal

BOOL

Switch-on value for the connected aggregate.

bFdb

BOOL

Feedback of the connected aggregate. The feedback is required for switching to the next step.

bFdb is only considered if the aggregate is the active one in the step sequence control.

nDlyOn

UDINT

Time specification of start-up delay [s]. The time specification is required for switching to the next step.

nDlyOff

UDINT

Time specification of switch-off delay [s]. The time specification is needed to switch off the active step.

FB_BA_StepBinary 6: Outputs

Name

Type

Description

stCmd

ST_BA_Binary

The command structure stCmd transmits the enables and switching values of the priorities to the connected aggregate.

nRemSecStepUp

UDINT

Countdown switching to the next higher level [s].

nRemSecStepDown

UDINT

Countdown switching to the next lower level [s].

FB_BA_StepBinary 7: / FB_BA_StepBinary 8: Inputs Outputs

Name

Type

Description

stStep

ST_BA_Step

Data and command structure between the step sequence function block FB_BA_StepBinary and the control block of the step sequence FB_BA_StepCtrlAgg16.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.22

Tc3_BA2 from v5.2.5.0