# 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:

![](https://1557066017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSPy42kVbNL57hubF20gF%2Fuploads%2Fgit-blob-051943eece73ba06ab5c72c047d676cc7fa37c61%2Flocalhost_50000_connections_7%20\(1\).png?alt=media)

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

![](https://1557066017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSPy42kVbNL57hubF20gF%2Fuploads%2Fgit-blob-96e7c02f0f9d553164847af11240f3f7706916f1%2Flocalhost_50000_connections_7%20\(2\).png?alt=media)

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

![](https://1557066017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSPy42kVbNL57hubF20gF%2Fuploads%2Fgit-blob-52323d0e1d705bbd645a5efc858a2ef1fd168dc1%2Flocalhost_50000_connections_7%20\(3\).png?alt=media)

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.

![](https://1557066017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSPy42kVbNL57hubF20gF%2Fuploads%2Fgit-blob-72fe01d744ad8948549cf23c3327f4fcaf82de15%2Flocalhost_50000_connections_7%20\(4\).png?alt=media)

Finally, click **Save**:

![](https://1557066017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSPy42kVbNL57hubF20gF%2Fuploads%2Fgit-blob-9e77ac116207a166673ca001ce509bce8c8a0733%2Flocalhost_50000_connections_7%20\(5\).png?alt=media)

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:

![](https://1557066017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSPy42kVbNL57hubF20gF%2Fuploads%2Fgit-blob-8d064614e1305ac8624291a6336515533829b4e0%2Flocalhost_50000_connections_7%20\(7\).png?alt=media)
