For this example was used X20CP1584 and X20CP1382 processors and there were connected with Ethernet Powerlink. Hereinafter I will refer to them as managing node and controlled node.
-
In the Ethernet configuration of the managing node, change the Port number in the INA parameters to an unused value (e.g. the original is 11159 and the new one will be 11158).
-
In the PowerLink configuration on the managing node, in the POWERLINK parameters section, we check that the Mode is set in the state of the managing node, and that the Cycle time is identical to that in the controlled node. In Ethernet parameters, we set the IP address to, for example, 192.168.200.1 and the Subnet Mask to 255.255.255.0. In the ANSL parameter, we activate online communication.
-
In the controlled node, set POWERLINK parameters → Mode to controlled node. For Ethernet parameters, add IP address, for example, to 192.168.200.2 and Subnet Mask to 255.255.255.0 and enable online communication in ANSL parameters.
-
In the configuration of the cpu controlled node in Ethernet parameters → Static routing → Route 1, set Internet address destination 1 to 10.42.30.0, Subnet mask 1 to 255.255.255.0 and Gateway 1 to 192.168.200.1.
-
We upload the configurations to the processors.
-
Start Windows Command Prompt in administrator mode and type
route add 192.168.200.0 mask 255.255.255.0 10.42.30.113
(10.42.30.113 = Ethernet IP address of the managing node) and press Enter. It should appear OK!
-
In Online Settings, just create a new connection and enter the IP address from the Powerlink Ethernet controlled node (example 192.168.200.2) and now you can connect directly via PowerLink without having to be connected via Ethernet in exactly the same way as if you were connected directly via Ethernet.
-
After the work is finished, you can remove the route using the
route delete 192.168.200.0
command in the Windows Command Prompt in administrator mode.
In addition I want to mention, that this does not only allows a Automation Studio Online-Connection, since it’s IP routing it could also be used for any other TCP/IP or UDP/IP based communication to the controller connected via POWERLINK like SDM, Ping, and so on.
Note: Topic description is based on original source from my colleague + comment from community channel question.