FB_BA_Analog3Pnt
The template converts a continuous control signal for the positioning of a 3-point actuator into the binary switching commands Open/Close.
The initialization of the template takes place within the method FB_Init. |
Block diagram
Syntax
FUNCTION_BLOCK FB_BA_Analog3Pnt EXTENDS FB_BA_View
VAR_INPUT
fValPgm : REAL;
END_VAR
VAR_OUTPUT
bOpn : BOOL;
bCls : BOOL;
END_VAR
VAR_INPUT CONSTANT
HysPos : FB_BA_AV_Op;
TiOpn : FB_BA_AV_Op;
TiCls : FB_BA_AV_Op;
Pos : FB_BA_AV_Op;
END_VAR
VAR
Anlg3Pnt : FB_BA_Anlg3Pnt;
END_VAR
Outputs
Name | Type | Description |
---|---|---|
bOpn | BOOL | Output for opening the actuator. |
bCls | BOOL | Output for closing the actuator. |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
HysPos | AV object for entering the hysteresis value to start the position change. | |
TiOpn | FB_BA_AV_Op | AV object for entering the opening time value. |
TiCls | FB_BA_AV_Op | AV object for entering the closing time value. |
Pos | FB_BA_AV_Op | Display of the calculated position. |
VAR
Name | Type | Description |
---|---|---|
Anlg3Pnt | The function block is the core of the template and intended for controlling the three-point actuator. It converts an analog positioning signal into the binary open/close commands. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.0.0.0 |