FB_BA_StepBinary
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
Step enabling condition within the step sequence
Switch-off conditions of the active aggregate within the step sequence
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
Inputs
Name | Type | Description |
---|---|---|
stPriorityEn | 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. |
Outputs
Name | Type | Description |
---|---|---|
stCmd | 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]. |
/ Inputs Outputs
Name | Type | Description |
---|---|---|
stStep | 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 |