How to tunnel OPC DA – inbound
Summary
- Download and install Cogent DataHub software on the OPC server and OPC client machines.
- On the OPC server side, connect the DataHub to the OPC server.
- Then configure it to act as a tunnelling Master.
- On the OPC client side, connect that DataHub to the server-side DataHub as a tunnelling Slave.
- Then configure it to act as an OPC server.
- Connect your OPC client.
For more details and options, see the documentation.
Transcript
- How to tunnel OPC DA inbound, connecting the OPC client to the OPC server.
- First download and install Cogent DataHub software on both the server and client computers.
- We will start on the OPC DA server machine by connecting to the server.
- Start the DataHub, and from the Properties window, select the OPC DA option and click the Add button.
- Choose an OPC server.
- Set a maximum update of 100 milliseconds for now.
- Leave the other options at the default settings.
- Manually select the points you want to connect to.
- Or choose Load All Items on Server.
- Click OK and Apply.
- Click View Data to see your data in the Data Browser.
- Now we will configure this DataHub as the tunnel Master.
- Still on the OPC server computer, select the Tunnel/Mirror option, and make sure “Accept plain-text connections” is configured for port 4502. Click Apply.
- In the Properties window select Security and then click the Configure button.
- Under Users, click the Add button to add a Built-In User.
- Enter a username and password.
- Uncheck the Require TOTP Authentication box because this is a non-interactive connection. Then click OK.
- In the Roles, check the All Data Full Access box. Then click OK. The OPC server side is now configured as the Tunnel Master.
- Next we will connect the tunnel from the OPC client computer. Switch to that computer.
- On the OPC client computer, start the DataHub, and from the Properties window, select the Tunnel/Mirror option. Make sure the Act as a tunnel/mirror slave option is checked, and click the Add Master button.
- Enter the IP address or computer name for the primary host. That is the tunnel master, the computer where the other DataHub instance is running.
- For now, keep the local data domain here on the Slave as default, the same as the remote data domain on the Master.
- For the Data Flow Direction, choose which way you want the data to flow: from Master to here on the Slave, read-only, or from here on the Slave to the Master, write-only, or both, read-write.
- When the connection is initiated, when it first starts, you want to get all values from the Master. So choose that option.
- When the connection is lost, you want to mark the data quality for all points here on the Slave as “Not Connected”. So choose that option.
- You can ignore the rest of the options for now. Click OK and Apply.
- Click View Data to see the data, coming across the tunnel from the OPC server. The data is now updating on this DataHub on the OPC client computer.
- For the final step, we will connect the OPC DA client.
- In the DataHub Properties window on the OPC client machine, select OPC DA and check the box for Act as an OPC Server. Then click Apply.
- In your OPC client, connect to the OPC server named Cogent DataHub One. Add a group, then select your items.
- Now you are connected. OPC DA server data is being tunnelled across the network to the OPC DA client.
Background
Networking OPC DA requires DCOM, which is difficult to configure and not very secure. Learning how to tunnel OPC DA inbound, you can bypass DCOM altogether. The tunnel recovers quickly from network outages, and keeps all OPC servers and clients connected during that time.
Skkynet provides Cogent DataHub secure-by-design software and services to let you acquire, aggregate, monitor, control visualize, and network live process data in-plant or over insecure external networks, making it ideal for OT to IT and cloud connections. You can isolate control networks from cyber attacks and integrate industrial data under a unified namespace, all without compromising the plant.