FB_BA_Swi2P

FB_BA_Swi2P 1:

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 control direction of the function 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 control direction is direct/synchronous (cooling mode).

FB_BA_Swi2P 2:

Is the switch-off point is greater than the switch-on point, the control direction is indirect/reversed (heating mode).

FB_BA_Swi2P 3:

VAR_INPUT

bEn           : BOOL;
rIn           : REAL;
rOn           : REAL;
rOff          : REAL;
udiDlyOn_sec  : UDINT;
udiDlyOff_sec : UDINT;

bEn: General enable of the function block.

rIn: Input value.

rOn: Switch-on point.

rOff: Switch-off point.

udiDlyOn_sec: Switch-on delay.

udiDlyOff_sec: Switch-off delay.

VAR_OUTPUT

bQ                 : BOOL;
udiRemTiDlyOn_sec  : UDINT;
udiRemTiDlyOff_sec : UDINT;

bQ: Control output.

udiRemTiDlyOn_sec: Remaining time of the switch-on delay.

udiRemTiDlyOff_sec: Remaining time of the switch-off delay.

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.7

Tc3_BA from v1.1.6.0