FB_BA_Pu1st

FB_BA_Pu1st 1:

The template is used to control a single-stage pump with binary inputs and outputs. It mainly consists of the base class FB_BA_Mot1st, the switch-off delay DlyOff and the anti-blocking protection function Ablk.

The pump is switched on externally by the priorities of the command structure stCmd of the base class FB_BA_Mot1st 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.

FB_BA_Pu1st 2:

The initialization of the template takes place within the method FB_Init.

Block diagram

FB_BA_Pu1st 3:

Syntax

FUNCTION_BLOCK FB_BA_Pu1st EXTENDS FB_BA_Mot1st
VAR_INPUT
  bAblkLock      : BOOL;
END_VAR
VAR_INPUT CONSTANT
  DlyOff         : FB_BA_DlyOff;
  Ablk           : FB_BA_AntiBlocking;
END_VAR
VAR
  PrioSwiPgm     : FB_BA_PrioSwi_B04;
  tonAblkLock    : TON;
END_VAR

FB_BA_Pu1st 4: 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.

FB_BA_Pu1st 5: Inputs CONSTANT

Name

Type

Description

DlyOff

FB_BA_DlyOff

The template serves as a delayed pump shutdown.

Ablk

FB_BA_AntiBlocking

Anti-blocking protection.

Variables

Name

Type

Description

PrioSwiPgm

FB_BA_PrioSwi_B04

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