> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/codesys-hvac/en/hvac-library/functionblocks/setpoint/setpointslide.md).

# SetPointSlide

## `SetPointSlide` (FB)

FUNCTION\_BLOCK SetPointSlide

### Short description

> Generation of a setpoint temperature depending on the outside temperature\
> Principle: Linear shift\
> Typical application: Adjustment of a room setpoint temperature in summer operation (energy saving)

### Representation

<figure><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2Fgit-blob-21d58b0be6fbf06aa032a7f41e4b6231ea11819a%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### Interfaces

#### Inputs

| Name       | Data type | Value range | Initial value | Function                    |
| ---------- | --------- | ----------- | ------------- | --------------------------- |
| *rOutTemp* | REAL      |             | 0             | Current outside temperature |

#### Outputs

| Name          | Data type | Value range | Initial value | Function                                            |
| ------------- | --------- | ----------- | ------------- | --------------------------------------------------- |
| *rSetPoint*   | REAL      |             |               | Current setpoint temperature                        |
| *bOverThrust* | BOOL      |             |               | Display - shift (FALSE = not active, TRUE = active) |

#### Setpoints / Parameters

| Name          | Data type | Value range               | Initial value | Function                                                                                                    |
| ------------- | --------- | ------------------------- | ------------- | ----------------------------------------------------------------------------------------------------------- |
| **rDeadZone** | REAL      |                           | 2             | Dead zone between the switch-on and switch-off point for the output *bOverThrust* at the start of the shift |
| **rMaxW**     | REAL      |                           | 25.0          | Maximum absolute setpoint temperature                                                                       |
| **rW2**       | REAL      |                           | 25.0          | Setpoint temperature at outside temperature point 2                                                         |
| **rTo2**      | REAL      |                           | 40.0          | Outside temperature at outside temperature point 2                                                          |
| **rW1**       | REAL      |                           | 20.0          | Setpoint temperature at outside temperature point 1                                                         |
| **rTo1**      | REAL      |                           | 30.0          | Outside temperature at outside temperature point 1                                                          |
| **rManValue** | REAL      |                           | 0.0           | Manual override: Manual value                                                                               |
| **eManModeN** | eMANNUM   | eMANNUM.Auto, eMANNUM.Man |               | Manual override: Operating mode                                                                             |

### Functional description

#### General

This function block is used to generate a setpoint temperature *rSetPoint* depending on the current outside temperature *rOutTemp*.\
The assignment is established by a linear function defined by two points (outside temperature point 2: **rTo2** and **rW2**, outside temperature point 1: **rTo1** and **rW1**) defined linear function.\
The setpoint temperature *rSetPoint* is limited upwards by the absolute maximum value **rMaxW** limited.\
The setpoint temperature *rSetPoint* is limited downwards by the setpoint temperature at outside temperature point 1 **rW1** limited.\
The setpoint temperature *rSetPoint* can be fixed by the operating mode **eManModeN** (**eManModeN** = eMANNUM.Man) to the fixed value **rManValue** be fixed.\
Each time the operating mode is switched to manual operation (**eManModeN** = eMANNUM.Man) the manual value **rManValue** is replaced by the current setpoint temperature *rSetPoint* replaced.\
If the outside temperature at outside temperature point 1 approaches **rTo1** the outside temperature at outside temperature point 2 **rTo2** to less than 0.5°C, then outside temperature point 1 **rTo1** is automatically corrected to a difference of 0.5°C (to avoid curves that are too steep).\
Outside temperature point 1 **rTo1** is therefore always numerically smaller than outside temperature point 2 **rTo2**.\
\
A temperature difference of 6°C between the outside temperature and the setpoint temperature is most commonly used.

<figure><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2Fgit-blob-66b13b1df14ffaecc8758a1e60bdde33fa02d07d%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

#### Display - shift *bOverThrust*

| Condition                               | *bOverThrust* | Notes                        |
| --------------------------------------- | ------------- | ---------------------------- |
| *rOutTemp* > **rTo1**                   | TRUE          | Setpoint shift is active     |
| *rOutTemp* < (**rTo1** - **rDeadZone**) | FALSE         | Setpoint shift is not active |

### CODESYS

InOut:

| Scope       | Name          | Type    | Initial      |
| ----------- | ------------- | ------- | ------------ |
| Input       | `rOutTemp`    | `REAL`  | 0            |
| Input Const | `rDeadZone`   | `REAL`  | 2            |
| Input Const | `rMaxW`       | `REAL`  | 25           |
| Input Const | `rW2`         | `REAL`  | 25           |
| Input Const | `rTo2`        | `REAL`  | 40           |
| Input Const | `rW1`         | `REAL`  | 20           |
| Input Const | `rTo1`        | `REAL`  | 30           |
| Input Const | `rManValue`   | `REAL`  | 0            |
| Input Const | `eManModeN`   | eManNum | eManNum.Auto |
| Output      | `rSetpoint`   | `REAL`  |              |
| Output      | `bOverthrust` | `BOOL`  |              |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-library/functionblocks/setpoint/setpointslide.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
