> For the complete documentation index, see [llms.txt](https://docs.jcore.io/clarity-gateway/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jcore.io/clarity-gateway/connections/modbus/adding-a-modbus-tcp-device.md).

# Adding a Modbus TCP Device

You can add a Modbus device by clicking the `+` button next to `CONNECTIONS` in the sidebar:

![](/files/9eww6wOmBvIBIfDfQphG)

Then select the **Modbus TCP** protocol:

![](/files/eKw96upHUdJZC63sXw8m)

Then you'll need to enter a **Name** for the device and the **Hostname or IP Address** and **Port** to connect to. After entering those, click **Save**.

![](/files/qxKXdJXR7AYO21TfPocd) ![](/files/whp58tq42PVL8RiCknju)

![](/files/vuTnUWP0V8DZA3bHd5fk)

Once the device has been created, you will see the following screen. The status bar at the top will indicate if Clarity Gateway is connecting to the device, has connected, or failed to connect:

![](/files/YZ36ibVB6rrunRjUU4dE)

To return to your device settings from another page, click its name in the **MODBUS** section of the sidebar:

![](/files/Nj7cCg5mcxWKBdUPIs1X)


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.jcore.io/clarity-gateway/connections/modbus/adding-a-modbus-tcp-device.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
