Using different Gateways (Ethernet VS. Ethernet Powerlink)

Hello,
We’ve stumbled across the following problem.
We have a machine at our customers place. It is seperated of the customers network (not the same subnet). To communicate with the machine remotely we have installed a router. The IP of the router is normally our gateway.
The customer wants some data by OPCUA from us, so we installed the X20HB8815 module as well. So we use the powerlink connection and the module to send data via OPCUA. For the customer to get the infomation he wants, we need a different gateway ip.
So right now, we have to choose between remote access or sending data to our customer by changing the ip of the gateway “globally”.
Do you know a way, I can have both simultaneously? Thank you for your help!

Some more information:
AutomationStudio: 4.12.5
PLC: PPC2100 E3815 1C 1.46GHz 512kB 5W 1GB CB


Hello Bjorn,

You can use a Static Route within the PLC Configuration to configure a gateway for the OPC UA traffic (or technically the uplink connection, however you should use the route on the more specific/limited connection).

The static route can be used to tell the PLC to send a packet destined for a particular address or range of addresses, to a different address. The breakdown of the configuration is as follows:
Internet address destination: If a packet is destined for this address, then use this route to send it somewhere else. 0’s should be placed where there are 0’s in the subnet mask.
Subnet mask: How much of the destination address should match the packet.
Gateway: The IP address where the packet should be sent if the packet matches the above criteria.

Let’s try an example. The interface on your PLC is 10.30.150.10 /24 (/24 is IT notation for a subnet mask of 255.255.255.0). The device you want to connect to is at 10.43.218.100 /24, and you will be connecting through a router at 10.30.150.1. Your configuration would be as follows.

This tells the routing table (the map for where to send packets inside any device), if you see a packet destined for any IP address that starts with 10.43.218.xxx, then send it to 10.30.150.1. The packet would need to find its way back, but given that you can change your default gateway to allow OPC UA traffic, that indicates that the proper routing on the return side is already in place.

Happy routing!

-Austin

2 Likes