# Max8Fun

## `Max8Fun` (FUN)

FUNCTION Max8Fun : REAL

### Short description

> Formation of the maximum value from 8 numeric inputs\
> Typical application: Calculation of the highest temperature

### Function description

This function returns the maximum value from the 8 numeric inputs *rValue1* to *rValue8* returned in REAL format.

### CODESYS

InOut:

| Scope  | Name      | Type   |
| ------ | --------- | ------ |
| Return | `Max8Fun` | `REAL` |
| Input  | `rValue1` | `REAL` |
| Input  | `rValue2` | `REAL` |
| Input  | `rValue3` | `REAL` |
| Input  | `rValue4` | `REAL` |
| Input  | `rValue5` | `REAL` |
| Input  | `rValue6` | `REAL` |
| Input  | `rValue7` | `REAL` |
| Input  | `rValue8` | `REAL` |


---

# 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/funktionen/max8fun.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.
