> 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/hvac-modbus-library/datatypes/enumerations/client_tcp_statecode.md).

# Client\_TCP\_StateCode

## `Client_TCP_StateCode` (`ENUM`)

`TYPE` Client\_TCP\_StateCode: IDLE

Attributes: `qualified_only`

InOut:

| Name              | Initial | Comment                                                                                      |
| ----------------- | ------- | -------------------------------------------------------------------------------------------- |
| IDLE              | 0       | <p>Leerlauf, Ausgänge initialisieren (direkt nach dem Start /<br>nach dem Zustand Error)</p> |
| READY             | 10      | Bereitschaft zur Übertragung von Modbus-Telegrammen                                          |
| CHECK\_INPUT      | 20      | Prüfung der Eingänge auf Veränderungen                                                       |
| RESOLVE           | 21      | Umwandlung von `sHostAddress` in eine IP-Adresse                                             |
| RESOLVED          | 22      | Erfolgreicher Abschluss der Namensauflösung                                                  |
| SET\_PARAMETER    | 23      | Konfiguration des Socket mit den TCP-Parametern                                              |
| PENDING           | 30      | <p>Konfiguration des Socket / Konfiguration der TCP-Keep-Alive<br>- Funktion</p>             |
| PREPARING         | 31      | Festlegung der IP-Adresse und des Ports des TCP-Servers                                      |
| CONNECT           | 40      | <p>Herstellung der Verbindung zwischen dem Client und dem<br>Server</p>                      |
| CONNECTION\_CHECK | 41      | Prüfung der erfolgreich hergestellten Verbindung                                             |
| CONNECTED         | 50      | <p>Verbindung zwischen dem Client und dem Server wurde<br>erfolgreich hergestellt</p>        |
| SEND              | 60      | Versand des Modbus-Anfragetelegramms (Request)                                               |
| CHECK\_SEND       | 61      | <p>Prüfung, ob ein Versand des Modbud-Anfragetelegramms (<br>Request) möglich ist</p>        |
| RECEIVE           | 70      | Empfang des Modbus-Antworttelegramms (Response)                                              |
| CHECK\_RECEIVE    | 71      | <p>Prüfung, ob ein Empfang des Modbus-Antworttelegramms (<br>Response) möglich ist</p>       |
| ERROR             | 99      | Fehlerzustand / Abbau der Verbindung                                                         |


---

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