FB_BA_SwiHys2P

Two-point switch around a switching point

FB_BA_SwiHys2P 1:

Functional description

The function block FB_BA_SwiHys2P is a two-point switch with adjustable hysteresis and hysteresis offset.

A general function block enable can be implemented at input bEn. If the function block is locked, the output bQ is FALSE. The setpoint for the two-point switch is connected at input rSp. The direction of action of the function block depends on the input variable bActn.

The active switching points result from the setpoint, the hysteresis and the hysteresis offset. They are output at rSwiHi and rSwiLo.

If bActn TRUE, the result is direct/synchronous direction of action (cooling mode).

FB_BA_SwiHys2P 2:

If bActn is FALSE, the result is indirect/reversed direction of action (heating mode).

FB_BA_SwiHys2P 3:

Inputs/outputs

VAR_INPUT

bEn      : BOOL;
rIn      : REAL;
rSp      : REAL;
rHys     : REAL;
rHysOffs : REAL;
bActn    : BOOL;

bEn: general enable of the function block

rIn: input value

rSp: setpoint input

rHys: hysteresis

rHysOffs: hysteresis offset

bActn: control direction

VAR_OUTPUT

bQ      : BOOL;
rSwiHi  : REAL;
rSwiLo  : REAL;

bQ: output

rSwiHi: upper switching point

rSwiLo: lower switching point

Requirements

Development environment

Target system

required library

required supplement

TwinCAT 2.11 R3/x64

PC/CX

TcBA library from V1.0.0

TS8040 | TwinCAT Building Automation from V1.0.0