# Sending values to Modbus

In this example we'll configure Clarity Gateway to send the value of an Iron Pi analog input to a Modbus output register.

In the page for your Modbus device, scroll down to the **Channels To Modbus** section and click the `+` button at the right:

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

The **Create Channel** page will appear. First enter the **System Tag**. This is the tag in **Clarity Gateway** whose value you want to send to the Modbus device. In this example, we'll enter **channel1**, which is configured as an analog input:

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

Then, select the **IO Type**, **Data Type**, and **Modbus Register**.

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

In this example, we'll select **Output Reg**, **float**, and register **0005** respectively. After that, click **Save**:

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

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

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