Using OpcUa_any in simulation

Hi,

Is it possible to use OpcUa_any in simulation mode?

I’m trying to connect to a OPC UA server on an ABB Omnicore C30 and I want to test this connection when using the simulation mode in AS. I have set the simulation IP address to 0.0.0.0 in the configuration, and I’m able to connect to the OPC UA server when using AsOpcUac. So I already know that the security settings and certificates are ok at both ends.

But when I try to use OpcUa_any it doesn’t work. ModuleOk is TRUE, but the connection to the server doesn’t seem to work at all and there are no errors in the logger.

Could the NodeId be wrong?

I’ve used UaExpert to find the path. For instance, I’ve used this path: /0:Root/0:Objects/3:Robots/3:OmniCore/2:RAPID/3:T_ROB1/3:GU_MachineConfig/3:GripCmd_PowerOn
Here are some examples from UaExpert:

Is it correctly to use the number found at the ‘BrowseName’ attribute?

I’ve experimented with both ‘NodeId’ and ‘BrowsePath’.

Can anybody explain to me how to use the ‘BrowsePath’ setting? I can’t find any good examples in the help.

Am I doing something wrong, or could it be that it’s not possible to use OpcUa_any in simulation mode?

I’m using:

  • Automation Studio 6.3.4.31
  • X20CP1684 AR 6.5.1
  • mapp Services 6.5.1
  • mapp Cockpit 5.0
  • OPC UA C/S 6.5.0

The OPC UA server requires :

  • SecurityPolicy = UASP_Basic256Sha256
  • SecurityMsgMode = UASMM_SignEncrypt
  • UserIdentityTokenType = UAUITT_Username

It is possible to use the OpcUa_Any in simulation mode, for this to work you need to set the “Simulate OPC UA devices” to off in the PLC’s Simulation configuration.

I have not tested with the simulation IP as 0.0.0.0, you might need to set it to the actual IP address of the Ethernet interface you want to use.

To me it looks like you have configured the browse path correctly by following the BrowseNames of the nodes starting from the root until your target node. The number in the BrowseName is the NamespaceIndex. Some more information here in the community below.

‘Simulate OPC UA devices’ setting is selected.

Then I’ll have to try to use the IP of my Ethernet interface. Thank you for confirming the browse path!

You need to set the “Simulate OPC UA devices” to OFF in order to get the OpcUa_Any to try and connect to real HW.

This is also explained in the comment of the setting, please see my screenshot in my previous post.

When using the simulation mode, simulate OPC UA devices [on] or use real hardware [off]

Oh sorry, I misread. :face_with_open_eyes_and_hand_over_mouth: I will try again when simulation is set to OFF then!

By using IP address = 0.0.0.0 and simulate = off, I can use the OpcUa_any when simulation is active.

Now I just need to get the browse path correctly. But that is another matter.

Thanks


Edit by moderator:
Topic moved → Difference between identification methods ‘BrowsePath’ and ‘NodeId’ - please do post new questions in new topics so other people can find the answers later as well

1 Like