> 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/receiving-values-from-modbus.md).

# Receiving values from Modbus

In this example we'll configure Clarity Gateway to receive a value from a Modbus input register, and drive an Iron Pi digital output with that value.

In the page for your Modbus device, click the `+` button at the right of the **Channels From Modbus** section:

![](/files/dEPHWemIjDGDEJUxYvrc)

The **Create Channel** page will appear. First select the **IO Type** and **Modbus Register** you want Clarity Gateway to read:

![](/files/f6f8F6Nj5Fs9H9oCQFin)

In this example, we'll select **Discrete Input** and register **3**, respectively:

![](/files/IUxeLfbofwz037MQXvm3)

Then, enter the **System Tag** you want to route the values to.

In this example, we'll enter **channel1**, which we have configured to be a digital output on the Iron Pi.

![](/files/NefIBf6YeG6Dokzu3XVu)

Finally, click **Save**:

![](/files/hhzkOccp1AeIwpay1Yz4)

Once the channel has been created, you will return to the device page. The new channel should appear in the **Channels From Modbus** table, showing the value of the Modbus register on the left and the value sent to the Iron Pi digital output on the right:

![](/files/HD7KBhba8fAZK9nnPGhE)


---

# 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/receiving-values-from-modbus.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.
