# Curve\_10XY\_Real\_Real

## `Curve_10XY_Real_Real` (FB)

FUNCTION\_BLOCK Curve\_10XY\_Real\_Real

### Short description

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

### Representation

<figure><img src="/files/5b9c8be4e0e0391c1e0a662d917ceaaf04bc1a94" 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 entered 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 |

### Function description

\
The array at the 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 entry of the support points (xError = FALSE) AND
2. a value change has occurred in the entered data

\
The output **xValidData** is active (= TRUE) if the data in the output array are valid. The data in the output array may differ from the entered data if the entered data contain an error.\
\
When specifying the X-values, the following boundary conditions apply:\
\
1\) The X-values must be consecutive either increasing or decreasing\
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 fulfilled.\
It is not active (= FALSE) if both conditions are fulfilled.

### Representation of an example characteristic curve

<figure><img src="/files/e6091978a6cb52c78cbc851a70e1a41f94bc85b4" 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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
