FB_BA_Swi2P

Two-point switch

FB_BA_Swi2P 1:

Functional description

The function block FB_BA_Swi2P is a two-point switch with one switch-on point and one switch-off point.

A general function block enable can be implemented at input bEn. The output bQ is FALSE as long as bEn is FALSE. The direction of action of the block depends on the relative position of the switch-on/switch-off points.

If the switch-on point is greater than the switch-off point, the direction of action is direct/synchronous (cooling mode).

FB_BA_Swi2P 2:

Is the switch-off point is greater than the switch-on point, the direction of action is direct/reversed (heating mode).

FB_BA_Swi2P 3:

Inputs/outputs

VAR_INPUT

bEn    : BOOL;
rIn    : REAL;
rOn    : REAL;
rOff   : REAL;

bEn: general enable of the function block

rIn: input value

rOn: switch-on point

rOff: switch-off point

VAR_OUTPUT

bQ     : BOOL;

bQ: control output

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