FB_BA_Vlv

FB_BA_Vlv 1:

The template is used to control a continuous valve with analog inputs and outputs. It mainly consists of the base class FB_BA_ActuatorAnalog, the anti-blocking protection function Ablk and the AI object Fdb for recording the position feedback from the valve.

The valve is switched on externally by the priorities of the command structure stCmd of the base class FB_BA_ActuatorAnalog or internally by the anti-blocking protection function Ablk.

FB_BA_Vlv 2:

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

Block diagram

FB_BA_Vlv 3:

Syntax

FUNCTION_BLOCK FB_BA_Vlv EXTENDS FB_BA_ActuatorAnalog
VAR_INPUT
  bAblkLock    : BOOL;
END_VAR
VAR_INPUT CONSTANT
  Ablk         : FB_BA_AntiBlocking;
  Fdb          : FB_BA_AI_Raw;
END_VAR

FB_BA_Vlv 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_Vlv 5: Inputs CONSTANT

Name

Type

Description

Ablk

FB_BA_AntiBlocking

Anti-blocking protection.

Fdb

FB_BA_AI_Raw

Analog input object for logging the position feedback of the valve.

Requirements

Development environment

Necessary function

TwinCAT from v3.1.4024.35

TF8040 | TwinCAT Building Automation from V5.0.0.0