CMTK OPC UA Server Integration with Ignition and NodeRED
1. Introduction
How to integrate CMTK into OPC UA with Ignition and NodeRED. In this test CMTK is an OPC UA server.
2. OPC UA Server application
First, the OPC UA server app must be installed on CMTK. To install the OPC UA Server, download the app from this link: App Store - Condition Monitoring Toolkit and install it on the CMTK in the App Manager.
3. CMTK configuration
In the settings tab on the Webserver from CMTK, click in: "IoT Communication" and next in: "OPC UA Server".
Enable the OPC UA Server communication, in this case we configured to: "Anonymous and without certificate".
4. Integration with Ignition
Access Ignition via the local host and log in.
In "Config", select the "OPC Connections" option on OPC Client.
Create a new OPC connection:
Select OPC UA and click "Next".
In "Endpoint URL", type:"opc.tcp://192.168.10.1:4840/discovery" and click "Next".
(If your IP is different from the CMTK default (192.168.10.1) change it in the endpoint)
On the screen below, click on Next only:
In "Select Endpoint" use the option "without security policy" and without "security mode", as shown below:
Then click "Next".
After the above steps, finish creating the OPC UA Client.
When finished, the screen below will appear:
Change the name to "CMTK OPC UA", the description to "Client" and click on "Create New OPC Connection":
If done correctly, the following message will appear and the status will be "Connected".
To view the CMTK information being collected, go to "config" and select the "OPC Quick Client" option.
The client you created will appear.
5. Integration with NodeRED
In NodeRed, you must install the library: https://flows.nodered.org/node/node-red-contrib-opcua.
In this example, we only want to retrieve the value "Vibration Velocity RMS v-RMS Z" from the CMTK as a client in Node Red
In the Inject node, you need to add a new "topic/path" with the NodeID you want to retrieve from the server
In this case our NodeID is ns=4;s=master1.port1.888|917764||ParameterSet:ProcessDataInput:Vibration Velocity, RMS Z
(Use UA Expert to find this).
In the settings of the OPC UA client node you have to add the endpoint of the OPCUA server. The other settings are not relevant for this example
In the endpoint settings, you will see the same settings as in the CMTK server options described. Here you must apply the same settings and log in with the user or load the certification
If the connection to the OPC-UA server is active, you can see this below the node
In the debug node, you can see the values of port 1: