Comment on page
Sending values to EtherNet/IP
In this example we'll configure Clarity Gateway to send the value of an Iron Pi analog input to an EtherNet/IP connection.
Read / Write channels are read from the device on every scan cycle, but can also be written in response to a user or software command. This is useful for control setpoints and other user-settable values.
To enable read / write behavior on a channel, set up a "From EtherNet/IP" channel, and then turn on the "Settable" switch in the channel settings.
Read / Write EtherNet/IP channels are available in Clarity Gateway version 5.6.0 and higher.
In contrast to Read / Write channels, Channels To EtherNet/IP write data from a Clarity Gateway internal tag to an EtherNet/IP tag on every scan cycle.
In the page for your EtherNet/IP connection, scroll down to the Channels To EtherNet/IP section. Click the Show Detected switch if it is not already on:
All EtherNet/IP tags you can send to will then appear in the table. In this example we'll be sending to Real Tag 1:
First check the Enabled checkbox to enable this mapping:
Then enter the System Tag to send values from. In this example we'll use channel1:
Finally, click Save:
Once the mapping is applied, the arrow should change color from gray to blue to indicate that the mapping is active:
For more options when mapping a channel, click the
+icon in the Channels To EtherNet/IP section:
This will take you to a separate Create Channel page. In that page, first enter the Clarity Gateway System Tag you would like to send to MQTT. In this example, we'll be using channel1, which is configured as a Local I/O analog input:
Optionally, you can enter a Slope and Offset to transform the values that get sent to EtherNet/IP. In this example we will enter 2 and 3:
Finally, enter the EtherNet/IP Tag to send to. In this example, we'll send values to Real Tag 1:
Finally, click Save to create the channel:
Once the channel has been created, you will return to the connection page. The new channel should appear in the Channels To EtherNet/IP table.