FB_BA_PuCtl

The template is used to control and regulate a speed-controlled pump with analog and binary inputs and outputs. It mainly consists of the base classFB_BA_MotCtl, the switch-off delay DlyOff and the anti-blocking protection function Ablk. The template FlowMonit stands for the monitoring of the flow monitor FlowSwi.
The pump is switched on externally by the priorities of the command structure stCmd of the base class FB_BA_MotCtl or internally by the anti-blocking protection function Ablk. The external request via the priority "Program" is switched off with a delay by the template DlyOff.
![]() | The initialization of the template takes place within the method FB_Init. |
Block diagram

Syntax
FUNCTION_BLOCK FB_BA_PuCtl EXTENDS FB_BA_MotCtl
VAR_INPUT
bAblkLock : BOOL;
END_VAR
VAR_INPUT CONSTANT
ThOvrld : FB_BA_BI_Raw
MntnSwi : FB_BA_BI_Raw;
FlowSwi : FB_BA_BI_Raw;
FlowMonit : FB_BA_FdbBinary;
DlyOff : FB_BA_DlyOff;
Ablk : FB_BA_AntiBlocking;
END_VAR
VAR
PrioSwiPgm : FB_BA_PrioSwi_UDI04;
tonAblkLock : TON;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
bAblkLock | BOOL | A TRUE at this input variable interrupts the anti-blocking protection function Ablk. It should be prevented that pumps and valves get an anti-blocking protection pulse at the same time. |
Inputs CONSTANT
Name | Type | Description |
---|---|---|
ThOvrld | The binary input object is used to process the "Thermal overload" fault. | |
MntnSwi | The binary input object is used to process a maintenance switch. | |
FlowSwi | The binary input object is used to process a flow monitor. | |
FlowMonit | Template for monitoring the flow monitor. | |
DlyOff | The template serves as a delayed pump shutdown. | |
Ablk | Anti-blocking protection. |
Variables
Name | Type | Description |
---|---|---|
PrioSwiPgm | The priority switch PrioSwiPgm uses the switch-off delay DlyOff, the anti-lock protection function Ablk and the priority program of the command structure stCmd of the base class FB_BA_MotCtl to determine the current modulation value for the base class FB_BA_MotCtl. | |
tonAblkLock | TON | Switch-off delay of the anti-blocking protection pulse. |
Requirements
Development environment | Necessary function |
---|---|
TwinCAT from v3.1.4024.35 | TF8040 | TwinCAT Building Automation from V5.2.1.0 |