FB_BA_Swi2P
![FB_BA_Swi2P 1:](Images/gif/9275340427__Web.gif)
The function block FB_BA_Swi2P is a two-point switch with one switch-on point and one switch-off point.
A binary output signal is generated based on a comparison of the input signal fIn with the switch-on point fOn and the switch-off point fOff.
A general function block enable can be implemented at input bEn. If bEn is FALSE, the output bQ is also 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:](Images/png/11418045195__Web.png)
If the switch-off point is greater than the switch-on point, the control direction is indirect/reversed (heating mode).
![FB_BA_Swi2P 3:](Images/png/11418047115__Web.png)
Inputs
VAR_INPUT
bEn : BOOL;
fIn : REAL;
fOn : REAL;
fOff : REAL;
nDlyOn : UDINT;
nDlyOff : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
bEn | BOOL | General enable of the function block. |
fIn | REAL | Input value |
fOn | REAL | Switch-on point |
fOff | REAL | Switch-off point |
nDlyOn | UDINT | Start-up delay [s] |
nDlyOff | UDINT | Switch-off delay [s] |
Outputs
VAR_OUTPUT
bQ : BOOL;
nRemTiDlyOn : UDINT;
nRemTiDlyOff : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
bQ | BOOL | Calculated output value of the characteristic curve. |
nRemTiDlyOn | UDINT | Remaining time of the start-up delay [s]. |
nRemTiDlyOff | UDINT | Remaining time of the switch-off delay [s]. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.22 | Tc3_BA2 from v5.2.5.0 |