FB_BA_SwiHys2P_Dly
Two-point switch around a switching point with delay
Functional description
The function block FB_BA_SwiHys2P_Dly is a two-point switch with hysteresis. In contrast to FB_BA_SwiHys2P, a change in the output signal is delayed.
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.
- The upper switching point results from rSp + rHys/2 + rHysOffs.
- The lower switching point results from rSp + rHys/2 + rHysOffs.
If bActn TRUE, the result is direct/synchronous direction of action (cooling mode).
If bActn is FALSE, the result is indirect/reversed direction of action (heating mode).
Inputs/outputs
VAR_INPUT
bEn : BOOL;
rIn : REAL;
rSp : REAL;
rHys : REAL;
rHysOffs : REAL;
udiDlyOn : UDINT;
udiDlyOff : UDINT;
bActn : BOOL;
bEn: general enable of the function block
rIn: input value
rSp: setpoint input
rHys: hysteresis
rHysOffs: hysteresis offset
udiDlyOn: start-up delay [s]
nDlyOff: switch-off delay [s]
bActn: control direction
VAR_OUTPUT
bQ : BOOL;
rSwiHi : REAL;
rSwiLo : REAL;
bQ: output
rSwiHi: upper switching point
rSwiLo: lower switching point
udiRemTiDlyOn: countdown start-up delay [s]
udiRemTiDlyOff: countdown switch-off delay [s]
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 |