FB_BA_StepCtrlAgg16
The function block FB_BA_StepCtrlAgg16 represents the higher-level control unit of a step sequence control of aggregates.
The control unit FB_BA_StepCtrlAgg16 can be used to sequentially switch on (stAgg01 > stAgg02 > stAgg03 > stAgg04 ... stAgg16) or switch off (stAgg16 > stAgg15 > stAgg14 > stAgg13 ... stAgg01) individual aggregates of a plant in a specific order.
Data exchange between the receive blocks of the step sequence control (FB_BA_StepBinary, FB_BA_StepMdlt) and the control unit FB_BA_StepCtrlAgg16 takes place via the data and command structures stAggxx.
Illustration
FUNCTION_BLOCK FB_BA_StepCtrlAgg16
VAR_INPUT
bEnUpDown : BOOL;
nNumOfAgg : UDINT;
END_VAR
VAR_OUTPUT
nStep : UDINT;
bUp : BOOL;
bDown : BOOL;
nRemSecStepOn : UDINT;
nRemSecStepOff : UDINT;
END_VAR
VAR_IN_OUT
stAgg01-16 : ST_BA_Step;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
bEnUpDown | BOOL | A rising edge means an increasing switch-on sequence of the aggregates from 1 to 16. FALSE means a decreasing switch-off sequence from the highest, active aggregate towards 0. 0 means that no aggregate of the step sequence control is active. |
nNumOfAgg | UDINT | Input of the number of aggregates of the step sequence control. A limit only allows values from 1 - 16. |
Outputs
Name | Type | Description |
---|---|---|
nStep | UDINT | Display in which step the step sequence control is located. 0 means that no aggregate of the step sequence control is active. |
bUp | BOOL | Indicates that the sequence of the step sequence control is in the rising state. |
bDown | BOOL | Indicates that the sequence of the step sequence control is in the falling state. |
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 |
---|---|---|
stAgg01-16 | Data and command structure between the individual sequence controllers FB_BA_SeqCtrl and the function block FB_BA_SequenceLinkBase. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.22 | Tc3_BA2 from v5.2.5.0 |