FB_BA_PuMdltExt
The template is used to control a speed-controlled pump with analog and binary inputs and outputs. It mainly consists of the base class FB_BA_MotMdltExt, 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 via the priorities of the command structure stCmd of the base class FB_BA_MotMdltExt 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_PuMdlt EXTENDS FB_BA_MotMdlt
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 | FB_BA_FdbBinary | Template for monitoring the flow monitor. |
DlyOff | FB_BA_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-blocking protection function Ablk and the priority program of the command structure stCmd of the base class FB_BA_Mot1st to determine the current switch value for the base class FB_BA_Mot1st. | |
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 |