# EXPECTED\_TYPE

## `EXPECTED_TYPE` (`ENUM`)

`TYPE` EXPECTED\_TYPE: TYPE\_BOOLEAN, `TYPE`\_BYTE, // 1 Word 0 - 255 2Byte TYPE\_SBYTE, // 1 Word -128 - 127 2Byte `TYPE`\_UINT16, // 1 Word 0 - 65535 TYPE\_INT16, // 1 Word -32768 - 32767 `TYPE`\_INT32, // 2 Word -2147483648 - 2147483647 TYPE\_UINT32, // 2 Word 0 - 4294967295 TYPE\_FLOAT32, // 2 Word 1.0E-44 - 3.402823E+38 `TYPE`\_UINT64, // 4 Word 0 - 2E+64 TYPE\_INT64, // 4 Word -2E+63 - 2E+63 TYPE\_DOUBLE, // 4 Word 5.0E-324 - 1.7E+308 `TYPE`\_STRING // x Word

)

This enum is defined to request a value, based on the expected type. Use this enum as an input to the function blocks “SimpleReadValue” to get the value in the expected format. e.g. If the register modbus value is expected as a UINT64 value, for example for long measurement values, then the request is split into 4 words

InOut:

| Name          | Comment                         |
| ------------- | ------------------------------- |
| TYPE\_BOOLEAN |                                 |
| TYPE\_BYTE    | 1 Word 0 - 255 2Byte            |
| TYPE\_SBYTE   | 1 Word -128 - 127 2Byte         |
| TYPE\_UINT16  | 1 Word 0 - 65535                |
| TYPE\_INT16   | 1 Word -32768 - 32767           |
| TYPE\_INT32   | 2 Word -2147483648 - 2147483647 |
| TYPE\_UINT32  | 2 Word 0 - 4294967295           |
| TYPE\_FLOAT32 | 2 Word 1.0E-44 - 3.402823E+38   |
| TYPE\_UINT64  | 4 Word 0 - 2E+64                |
| TYPE\_INT64   | 4 Word -2E+63 - 2E+63           |
| TYPE\_DOUBLE  | 4 Word 5.0E-324 - 1.7E+308      |
| TYPE\_STRING  | x Word                          |


---

# 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-modbus-library/datatypes/enumerations/expected_type.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.
