FB_BA_DlyOff
![FB_BA_DlyOff 1:](Images/png/12344624139__Web.png)
The template implements a switch-off delay and can be used for the overrun control of pumps.
![]() | The initialization of the template takes place within the method FB_Init. |
Block diagram
![FB_BA_DlyOff 3:](Images/png/16002574731__Web.png)
Syntax
FUNCTION_BLOCK FB_BA_DlyOff EXTENDS FB_BA_View
VAR_INPUT
bVal : BOOL;
END_VAR
VAR_OUTPUT
bQ : BOOL;
nRT : UDINT;
END_VAR
VAR_INPUT CONSTANT
TiDly : FB_BA_AV_Op;
END_VAR
VAR
tofDlyOff : TOF;
END_VAR
Outputs
Name | Type | Description |
---|---|---|
bQ | BOOL | State of the switch-off delay. |
nRT | UDINT | Remaining time of the switch-off delay. After this time has elapsed, bQ is set to FALSE. |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
TiDly | AV object for entering the value of the switch-off delay. |
Variables
Name | Type | Description |
---|---|---|
tofDlyOff | TOF | The timing element is the core of this template for switch-off delay. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.0.0.0 |