> 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/curve_10xy_real_real.md).

# Curve\_10XY\_Real\_Real

## `Curve_10XY_Real_Real` (FB)

FUNCTION\_BLOCK Curve\_10XY\_Real\_Real

### Short description

> Input of 10 pairs of values (support points each with an X and Y value)\
> Boundary conditions:
>
> * The X values must continuously be either increasing or decreasing
> * Two consecutive X values must not be equal
>
> \
> Typical application: transfer of a characteristic curve with 10 support points

### Representation

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

### Interfaces

#### Outputs

| Name                          | Data type           | Value range | Initial value | Function                                                                         |
| ----------------------------- | ------------------- | ----------- | ------------- | -------------------------------------------------------------------------------- |
| <p><br>arData\_Real\_Real</p> | stCurve\_Real\_Real |             |               | Array with the support points (data type X value: REAL, data type Y value: REAL) |
| <p><br>xValidData</p>         | BOOL                |             | FALSE         | Validity of the data in the output array (TRUE = valid)                          |
| <p><br><br>xError</p>         | BOOL                |             | FALSE         | Error state of the input support points (TRUE = error)                           |

#### Setpoints / Parameters

| Name                | Data type | Value range | Initial value | Function                   |
| ------------------- | --------- | ----------- | ------------- | -------------------------- |
| <p><br>rSP1\_X</p>  | REAL      |             | 1             | Support point 1 - X value  |
| <p><br>rSP1\_Y</p>  | REAL      |             | 1             | Support point 1 - Y value  |
| <p><br>rSP2\_X</p>  | REAL      |             | 2             | Support point 2 - X value  |
| <p><br>rSP2\_Y</p>  | REAL      |             | 2             | Support point 2 - Y value  |
| <p><br>rSP3\_X</p>  | REAL      |             | 3             | Support point 3 - X value  |
| <p><br>rSP3\_Y</p>  | REAL      |             | 3             | Support point 3 - Y value  |
| <p><br>rSP4\_X</p>  | REAL      |             | 4             | Support point 4 - X value  |
| <p><br>rSP4\_Y</p>  | REAL      |             | 4             | Support point 4 - Y value  |
| <p><br>rSP5\_X</p>  | REAL      |             | 5             | Support point 5 - X value  |
| <p><br>rSP5\_Y</p>  | REAL      |             | 5             | Support point 5 - Y value  |
| <p><br>rSP6\_X</p>  | REAL      |             | 6             | Support point 6 - X value  |
| <p><br>rSP6\_Y</p>  | REAL      |             | 6             | Support point 6 - Y value  |
| <p><br>rSP7\_X</p>  | REAL      |             | 7             | Support point 7 - X value  |
| <p><br>rSP7\_Y</p>  | REAL      |             | 7             | Support point 7 - Y value  |
| <p><br>rSP8\_X</p>  | REAL      |             | 8             | Support point 8 - X value  |
| <p><br>rSP8\_Y</p>  | REAL      |             | 8             | Support point 8 - Y value  |
| <p><br>rSP9\_X</p>  | REAL      |             | 9             | Support point 9 - X value  |
| <p><br>rSP9\_Y</p>  | REAL      |             | 9             | Support point 9 - Y value  |
| <p><br>rSP10\_X</p> | REAL      |             | 10            | Support point 10 - X value |
| <p><br>rSP10\_Y</p> | REAL      |             | 10            | Support point 10 - Y value |

### Functional description

\
The array at output arData\_Real\_Real is filled with the entered data of the 10 support points, if<br>

1. there is no active error in the input of the support points (xError = FALSE) AND
2. a change in value has occurred in the input data

\
The output **xValidData** is active (= TRUE) if the data in the output array is valid. The data in the output array can differ from the entered data if the entered data contains an error.\
\
The following boundary conditions apply when defining the X values:\
\
1\) The X values must be continuously either ascending or descending\
2\) Two consecutive X values must not be equal\
\
The output **xError** is active (= TRUE) if at least one of these two conditions is not met.\
It is not active (= FALSE) if both conditions are met.

### Representation of an example characteristic curve

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

### CODESYS

InOut:

| Scope       | Name               | Type                                  | Initial |
| ----------- | ------------------ | ------------------------------------- | ------- |
| Output      | `arData_Real_Real` | ARRAY \[1..10] OF stCurve\_Real\_Real |         |
| Output      | `xValidData`       | `BOOL`                                | FALSE   |
| Output      | `xError`           | `BOOL`                                | FALSE   |
| Input Const | `rSP10_Y`          | `REAL`                                | 0.0     |
| Input Const | `rSP10_X`          | `REAL`                                | 26.0    |
| Input Const | `rSP9_Y`           | `REAL`                                | 100.0   |
| Input Const | `rSP9_X`           | `REAL`                                | 25.0    |
| Input Const | `rSP8_Y`           | `REAL`                                | 100.0   |
| Input Const | `rSP8_X`           | `REAL`                                | 15.0    |
| Input Const | `rSP7_Y`           | `REAL`                                | 75.0    |
| Input Const | `rSP7_X`           | `REAL`                                | 14.0    |
| Input Const | `rSP6_Y`           | `REAL`                                | 75.0    |
| Input Const | `rSP6_X`           | `REAL`                                | 8.0     |
| Input Const | `rSP5_Y`           | `REAL`                                | 50.0    |
| Input Const | `rSP5_X`           | `REAL`                                | 7.0     |
| Input Const | `rSP4_Y`           | `REAL`                                | 50.0    |
| Input Const | `rSP4_X`           | `REAL`                                | -4.0    |
| Input Const | `rSP3_Y`           | `REAL`                                | 25.0    |
| Input Const | `rSP3_X`           | `REAL`                                | -5.0    |
| Input Const | `rSP2_Y`           | `REAL`                                | 25.0    |
| Input Const | `rSP2_X`           | `REAL`                                | -13.0   |
| Input Const | `rSP1_Y`           | `REAL`                                | 0.0     |
| Input Const | `rSP1_X`           | `REAL`                                | -14.0   |


---

# 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/curve_10xy_real_real.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.
