Sending data from one connection to another
In this example we'll configure Clarity Gateway to send values from an EtherNet/IP connection to MQTT. To do so we have to use use System Tags as an intermediary. The EtherNet/IP connection will transfer the values from EtherNet/IP tags to the System Tags, and the MQTT connection will transfer the values from the System Tags to MQTT tags:
EtherNet/IP Tag | → System Tag | → MQTT Tag |
---|---|---|
CURING/HEATED_MIN_TEMP | → Site 1/Heated Min Temp | → heatedMinTemp |
CURING/HEATED_MAX_TEMP | → Site 1/Heated Max Temp | → heatedMaxTemp |
We'll assume an EtherNet/IP connection has been created and provides the tags
CURING/HEATED_MIN_TEMP
and CURING/HEATED_MAX_TEMP
:
First we'll set the System Tag Prefix to Site 1/:
.png?alt=media&token=2fe8e7d2-a7bc-4aeb-a159-5b4f3b556346)
Then we'll click the checkboxes at the left to enable and change the System Tags for these channels to Site 1/Heated Max Temp and Site 1/Heated Min Temp:
.png?alt=media&token=9720bc47-15c1-4d07-9c9b-771938cfe39d)
Finally, click Save:
.png?alt=media&token=f25fe79b-bb0c-4a58-94f0-08160263c0bf)
Once these changes have been saved, if EtherNet/IP is connected you should see the values getting routed to the system tags (you may need to change the search to see the channels again):
.png?alt=media&token=d27745a5-1a3c-467d-8532-cd5eefee076c)
Next we'll assume an MQTT connection has been created. Navigate to it by clicking it in the sidebar:
.png?alt=media&token=42883a40-2970-402a-8e23-03cf3cd83d54)
In the Channels To MQTT table, make sure that Show All Tags is turned on:
.png?alt=media&token=1a2748f8-c40c-442c-8206-5b6208f07011)
Then if you search or scroll down you should be able to find the System Tags we're writing from EtherNet/IP (Site 1/Heated Min Temp and Site 1/Heated Max Temp):
.png?alt=media&token=1660f75e-05db-425a-bca1-e891ac098b86)
Click the checkboxes at the left to enable these, then set the desired MQTT Tags (in this example, Heated Max Temp and Heated Min Temp):
.png?alt=media&token=696053a2-0e54-4921-aa1d-731ad2fd5923)
Finally, click Save:
.png?alt=media&token=0ee66283-b8b2-4582-995c-5e7103ee157b)
Once the changes have been saved, if MQTT is connected, you should see the values being sent to MQTT:
.png?alt=media&token=722ab71b-acbf-49c0-b65b-19a91398dc5b)
Last modified 10mo ago