FB_BA_Cont4Steps
The template determines the resulting control steps of a 4-level aggregate, depending on the continuous input signal fIn.
The initialization of the template takes place within the method FB_Init. |
Block diagram
Syntax
FUNCTION_BLOCK FB_BA_Cont4Steps EXTENDS FB_BA_View
VAR_INPUT
bEn : BOOL := TRUE;
fIn : REAL;
END_VAR
VAR_OUTPUT
bQ01 : BOOL;
bQ02 : BOOL;
bQ03 : BOOL;
bQ04 : BOOL;
END_VAR
VAR_INPUT CONSTANT
SwitchOn01 : FB_BA_AV_Op;
SwitchOn02 : FB_BA_AV_Op;
SwitchOn03 : FB_BA_AV_Op;
SwitchOn04 : FB_BA_AV_Op;
Hys : FB_BA_AV_Op;
ActiveStep : FB_BA_MV_Op;
END_VAR
VAR ContStp : FB_BA_ContStp;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
bEn | BOOL | General enable of the template. If bEn is FALSE, all message outputs bQ0x are also FALSE. |
fIn | REAL | Continuous input value from which the switching states are derived. |
Outputs
Name | Type | Description |
---|---|---|
bQ01 | BOOL | Shows status level 01 |
bQ02 | BOOL | Shows status level 02 |
bQ03 | BOOL | Shows status level 03 |
bQ04 | BOOL | Shows status level 04 |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
SwitchOn01 | AV object for entering the switch-on point step 01. | |
SwitchOn02 | AV object for entering the switch-on point step 02. | |
SwitchOn03 | AV object for entering the switch-on point step 03. | |
SwitchOn04 | AV object for entering the switch-on point step 04. | |
Hys | AV object for entering the hysteresis for the switch-on points. | |
ActiveStep | MV object for displaying how many steps are switched on. |
Variables
Name | Type | Description |
---|---|---|
ContStp | The function block determines the resulting control steps of a multi-stage aggregate depending on the continuous input signal fIn and is the core of this template |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.2.1.0 |