[SWI_2P] On/off switch with adjustable switch-on and switch-off point
Function block SWI_2P generates a binary output signal based on a comparison of the input signal and the switch-on and switch-off point.
SWI_2P generates a binary output signal based on a comparison of the input signal and the switch-on and switch-off point.
SWI_2P generates the binary output signal [Out] based on a comparison of the input signal [In] and the switch-on point [SwiOnPt] and the switch-off point [SwiOffPt].
Enabling and disabling the function
The function can be enabled/disabled via [EnFnct].
Direction of control action
The relative mutual position of the switch-on point [SwiOnPt] and the switch-off point [SwiOffPt] defines the direction of control action.
Direct

Reverse

Input | Description | Data type | Default value |
|---|---|---|---|
EnFnct | Enable function Enables the function. | Boolean | 1 |
0 - The function is disabled. | |||
In | Input | Real | 0.0 |
SwiOnPt | Switch-on point | Real | 0.0 |
The direction of control action is direct if [SwiOnPt] ≥ [SwiOffPt]. | |||
SwiOffPt | Switch-off point | Real | 0.0 |
The direction of control action is direct if [SwiOnPt] ≥ [SwiOffPt]. | |||
Output | Description | Data type | Default value |
|---|---|---|---|
Out | Output | Boolean | 0 |
0 - No | |||
- Heating and cooling control to disable (add or remove) components.
- Execution of switching functions with known and settable switch-on and switch-off point.

If a setpoint with any settable position relative to the switch-on and switch-off point for two-position switches/controllers is a known or adjustable variable, SWI_2PH is used.
SWI_2P is processed starting with the first process cycle using the values pending at the inputs. If value [In] is between the switch-on and switch-off point during start-up, the output is set to [Out] = Off.