Clarity Gateway
  • Setup
    • Getting Started
      • Mounting and Wiring
        • Power and Ground Connections
        • Flexible I/O Connections
        • Serial Connections
        • USB and Ethernet
      • Network Layout
      • Accessing Clarity Gateway Web Interface
      • Setting Password
      • Entering License Key
      • Changing the IP address
      • Updating Software
      • 3rd Party Devices
        • Running the Installer Script
        • Moxa UC-8100-ME Setup
        • Runnning Clarity Gateway on a 3rd Party Device
        • Password Recovery on 3rd Party Devices
    • SSH Access
    • Serial Console Access
    • Adding USB Storage
  • Connections
    • EtherNet/IP
      • Adding an EtherNet/IP Connection
      • Receiving values from EtherNet/IP
      • Sending values to EtherNet/IP
    • MQTT
      • Adding a SparkPlug MQTT Connection
      • Adding a Text/JSON MQTT Connection
      • Sending values to MQTT
    • Modbus
      • Sending values to Modbus
      • Receiving values from Modbus
      • Adding a Modbus TCP Device
    • Local I/O
      • Configuring Analog Inputs
      • Configuring Digital Inputs
      • Configuring Digital Outputs
  • Transfer Data Between Connections
  • Channels
    • Setting Clarity Metadata
  • Other
    • Recovery
    • Settings Import/Export
      • Exporting Settings
      • Importing Settings
Powered by GitBook
On this page
  • Bulk mapping via the channels table
  • Advanced mapping
  • Read / Write Channels
  1. Connections
  2. EtherNet/IP

Receiving values from EtherNet/IP

PreviousAdding an EtherNet/IP ConnectionNextSending values to EtherNet/IP

Last updated 2 years ago

In this example we'll configure Clarity Gateway to receive a value from an EtherNet/IP tag, and drive an Iron Pi digital output with that value.

Bulk mapping via the channels table

In the page for your EtherNet/IP connection, scroll down to the Channels From EtherNet/IP section. Click the Show Detected switch if it is not already on:

All detected tags from EtherNet/IP will then appear in the table. In this example we'll be mapping the EtherNet/IP tag Bool Tag 1 to the system tag channel1, which is configured as a digital output.

First check the Enabled checkbox to enable this mapping:

Then enter the System Tag to send values to. 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 (the row may move to a different position)asdfa:

Advanced mapping

For more options when mapping a channel, click the + icon in the Channels To MQTT 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 MQTT. In this example we will enter 2 and 3:

Finally, enter the MQTT Tag to send to and Data Type to use. In this example, we'll send values to localio/channel1 as Floats:

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 MQTT table. Notice how the system value is 9.68, and the value sent to MQTT is 2 * 9.68 + 3 = 22.2:

Read / Write Channels

If you have a channel that comes from the device but occasionally needs to be set by a user or software action, you can make that From EtherNet/IP channel settable. Channels marked settable will still be read from the device on every scan cycle, and will be written to the device only when a user or software set action happens.

Read / Write EtherNet/IP channels are available in Clarity Gateway version 5.6.0 and higher.