Via the Flow Creator, we can write and read the EtherNet/IP data.
The used flow can be downloaded here and imported into the Flow Creator, that is running on the same IED as the Ethernet IP Connector.
To print out the Ethernet IP Connector metadata, follow these steps:
- create a mqtt in node
- set the server to 'ie-databus' with port 1883 and corresponding user name/password ('edge'/'edge')
- set the topic to
ie/m/j/simatic/v1/eip1/dp
- create a debug node and connecto to the mqtt in node
- deploy the flow and watch the debug window
Now you can see the configured datapoint according to the Ethernet IP settings:
- Counter_INT with unique id 1
- Var_BOOL with unique id 2
- Var_REAL with unique id 3
To print out the transfered Ethernet IP Connector data, follow these steps:
- create a mqtt in node
- set the server to "ie-databus" with port 1883 and corresponding user name/password ('edge'/'edge')
- set the topic to
ie/d/j/simatic/v1/eip1/dp/r/#
- create a debug node and connecto to the mqtt in node
- deploy the flow
- as soon as the value for a configured tag changes, you can see it in the debug window
Since the read payload only contains the tag ID and not the tag name, you need to assign the tag ID according to the metadata. Here the parameter Counter_INT (tag ID 1) is incremented automatically by the PLC, so we can read each single value:
To write some data on the Ethernet IP tag, you must fetch the tag ID from metadata payload based on the tag name. Here we want to write to the parameter Var_REAL (tag ID 3). Please follow these steps:
- create an inject node with this JSON payload:
{ "vals": [ { "id": "3", "val": "111" } ] }
- create a mqtt out node
- set the server to 'ie-databus' with port 1883 and corresponding user name/password ('edge'/'edge')
- set the topic to
ie/d/j/simatic/v1/eip1/dp/w/Compactlogix
- connect the inject node to the mqtt out node
- deploy the flow
- click the inject button, to write the value
The app IIH Essentials collects the data out of different connectors and stores it for a defined time period. This is a prerequisite for other apps like Performance Insight.
To activate the data transfer from the Ethernet IP Connector, proceed as following:
- open the IED web interface
- open the app IIH Essentials
- select the settings button and enter the user name and the password for the Databus user 'edge' and 'edge'
- go to tab 'Connectors' and select 'Ethernet IP Connector'
- activate the adapter and save
- go to tab 'Assets & Connectivity' and add the variables, that were configured within the Ethernet IP Connector
- data is now collected by the IIH Essentials and can be used by further apps