BAC_Uni_Vlv_01_xx

Functional description

The template BAC_Uni_Vlv_01_xx is used for controlling an analog control valve. It basically consists of an AO object including a trend object, an MV object for manual control, and the associated AV object for entering the manual position. The template is complemented through optional BACnet objects, see table with version overview.

BAC_Uni_Vlv_01_xx 1:

The two output variables rPrVal / bSync are only active, if the valve position feedback Fdb exists in the template that is used. If this is not the case, the two versions return the value zero. The interface of the templates BAC_Uni_Vlv3P_01_xx / BAC_Uni_Vlv_01_xx is the same. For this reason, in the Project Builder in a call template a three-point valve can be replaced with an analog valve, without having to adjust the PLC code.

Versions

The template BAC_Uni_Vlv_01_xx is available in different versions.
The control valve versions are identified by means of a key. The identification key is derived from the table below.

Options

Blocking protection



(Block)

Feedback
Valve position
with monitoring

(Rm)

mechanical priority operation position feedback potentiometer
(Rm-output)

mechanical priority operation position feedback hand switch
(A-H)

Instance

AblkFnct

Fdb

FdbOut

LocSwi

Data point type

-

AI

AI

BI

 

8

4

2

1

BAC_Uni_Vlv_01_00

0

0

0

0

BAC_Uni_Vlv_01_01

0

0

0

1

BAC_Uni_Vlv_01_03

0

0

1

1

BAC_Uni_Vlv_01_04

0

1

0

0

BAC_Uni_Vlv_01_05

0

1

0

1

BAC_Uni_Vlv_01_08

1

0

0

0

BAC_Uni_Vlv_01_09

1

0

0

1

BAC_Uni_Vlv_01_11

1

0

1

1

BAC_Uni_Vlv_01_12

1

1

0

0

BAC_Uni_Vlv_01_13

1

1

0

1

Interface

BAC_Uni_Vlv_01_xx 2:

Block diagram version BAC_Uni_Vlv_01_13

BAC_Uni_Vlv_01_xx 3:

VAR_INPUT

rValPgm  : REAL; 
bEnSfty  : BOOL; 
bValSfty : BOOL; 
bEnDst   : BOOL;
bValDst  : BOOL; 

rValPgm: analog value program priority

bEnSfty: safety priority enable

rValSfty: analog value safety priority

bEnDst: disturbance priority enable

rValDst: analog value disturbance priority

bDisAblk: blocking protection function locked. Prevents simultaneous activation of the blocking protection of the pump and the control valve, e.g. at a heat exchanger

VAR_OUTPUT

rPrVal   : REAL;
bSync    : BOOL; 

rPrVal : Current position of the control valve.

bSync: Output of a pulse to synchronize the controller associated with the valve during reset from manual to automatic operation to the current valve position.
The synchronizing pulse bSync should only be used if the template used contains the valve position feedback Fdb.

VAR CONSTANT

PLT_NUM    : BYTE := 1;

PLT_NUM: all alarms and events of all plant components within a controller are included in a global alarm and event list. The assignment of events and alarms to a plant is defined by the assignment of a PLT_NUM plant number.
The recording and processing of an alarm from an aggregate or a device takes place within the templates by means of the alarm function block FB_BA_Alarm.
The evaluation of the alarms of a plant, e.g. for the generation of a collective message or for plant shutdown in case of relevant faults, takes place within the template BAC_PltAlm_01 by means of the function block FB_BA_AlarmPlt.
The evaluation of different plant events within the templates of a plant, takes place within the template BAC_PltComnMsg_01 by means of the function block FB_BA_ComnMsg.

Important! The assignment and evaluation of the alarms and events of a plant can only be done correctly if all templates of a plant have the same plant number!

The plant number can be assigned in the Project Builder in the parameter menu for the templates or via a column in the Excel import.

Program description

Instance

Type

optional

Task

OpMod

FB_BACnetMVSetpoint

 

MV object for manual control of the control valve via the MCL or a local operator display 

IdlePrd

FB_BACnetAVSetpoint

X

AV object for input of the maximum valve standstill duration until a blocking protection pulse is issued.

ManPos

FB_BACnetAVSetpoint

 

AV object for entering the valve position with manual override

FdbMonitHys

FB_BACnetAVSetpoint

X

AV object for entering the hysteresis for the function monitoring of the control valve via the position feedback

Fdb

FB_BACnetAI1203

X

AI object for logging the position feedback from the valve.

FdbOut

FB_BACnetAI1203

X

AI object for logging the mechanical priority operation position feedback potentiometer

FdbMonitTiDly

FB_BACnetAVSetpoint

X

AV object for entering the response delay of the function monitoring via position feedback.

LocSwi

FB_BACnetBI1203

X

BI object for logging the mechanical priority operation feedback hand switch

AO

FB_BACnetAO1203

 

AO object for controlling the control valve.

Priority:

Enable

Value

Comment

PRIO_SAFETY (1)

Input bEnSfty

Input rValSfty

 

PRIO_DISTURBANCE (3)

Input bEnDst

Input rValDst

 

PRIO_LOCAL (8)

OpMod_udiPrVal = OPMOD_MAN

ManPos_rPrVal

In manual mode, value of AV object ManPos

PRIO_PROGRAM (15)

TRUE

AblkFnct_bQ or rValPgm

Value of input rValPgm or 100% of blocking protection

 

EQ

 

TRUE if the active priority is PRIO_PROGRAM (15). Can be used for synchronizing the controller on return to automatic mode

FdbMonitFnct

FB_BA_SldgLmtMonit

X

Function monitoring of the control valve through comparison of the control output and the position feedback.

AlmFdbMonit

FB_BA_Alarm

X

Logging and further processing of an error from the position feedback monitoring

FdbMonit

FB_BACnetBV1204

X

Reports position feedback error to the MCL

AblkFnct

FB_BA_AntBlkg

X

Generates a blocking protection pulse if in the last time interval of IdlePrd the valve has moved no more than 70% of its travel path. Pulse duration 180 seconds.

TLogAO

FB_BACnetTLog1201

 

Logs the present value of the AO object

IO linking

Variables for linking with the terminals

Parameter

Type

optional

Process image

 

BI_Valve_LocalSwitch

BOOL

X

Input

Digital input - switch manual valve - message - manual/auto

AI_Valve_Feedback

INT

X

Input

Analog input - valve - measured value - position feedback

AI_Feeback_Position_Poti

INT

X

Input

Analog input - manual potentiometer - feedback - control value

AO_Valve_Position_Value

INT

 

Output

Analog output - valve - control value position

Version history

Version number

Comments

1.0.1

First release