I am running an OPC server locally in ARSim on IP address 127.0.0.1. I would like to access this OPC server from an external PLC over the network.
According to the following post, it should be possible to change the ARSim binding address to 0.0.0.0:
However, I cannot find the “Simulation” menu mentioned in that discussion when using Automation Studio 6.7.
I also tried changing the IP address under Physical View → ETH → IP Address, but after doing so ARSim freezes and becomes unusable. In fact, I have to reinstall ARSim before I can use it again.
Has the procedure for configuring ARSim network interfaces changed in AS 6.7? How can I make the lokal OPC server accessible from another device on the network?
I just opened a random AS6.7 project → on my device, the Simulation element is under the CPU configuration. I haven’t tried to change or run it, I just wanted to check if it’s still there.
Which PLC type and what Automation Runtime you use in detail?
My actual goal is simply to verify whether my PLC application running on a CP3684 can read OPC UA variables.
I have prepared the following test setup:
X20CP3684 running a test application with an OPC UA client. The PLC is connected to my PC via Ethernet.
ARSim is running on the same PC and hosts an OPC UA server currently bound to 127.0.0.1.
I would like the OPC UA client on the CP3684 to connect to the OPC UA server running in ARSim.
Is there a way to make the ARSim OPC UA server accessible from the network, or is there an easier/recommended method for testing OPC UA communication between a real PLC and a simulated B&R target?
I would propose just using a “real hardware” configuration instead of the “Standard PC” hardware, configure it as OPC UA server, and use that configuration just in simulation → then you’re able to change the 127.0.0.1 to 0.0.0.0, and the OPC UA server should be exposed to the IP address of the PC where the ArSim is running on (could still be influenced by the Windows firewall)… I’m not aware of any disadvantages when using it in that way.
If you just want to have a OPC UA server on your Windows system as partner device for some generic testing, you could also use the following community tool:
This tool has a huge number of network protocols implemented for some basic testing.
I haven’t used it so far for OPC UA, just for plain UDP, plain TCP and ModbusTCP. But from the very detailed help PDF included it looks like that also OPC UA server and client is supported (and much more).
After spending some time to get familiar with it, I personally found it extremely helpful for many test cases I had in the past.