Hi !
I am trying to build a OPC-UA connection. I can see the Server, the issue comes when I try to browse the server for a specific node.
I first had the same issue as in this post https://answers.flexsim.com/questions/125109/index.html
but when I don't activate the debug option AND do not display the System Console, then FlexSim does not hang anymore but I still have an issue with browsing..
By deactivating the debug option FlexSim shows an exception on trying to browse the Server nodes.
exception: Failed to connect the session: BadIdentityTokenInvalid on OPC UA Connection. Error code 0x80200000 BadIdentityTokenInvalid exception: Could not open OPC UA client connection on OPC UA Connection. Error code 0x80200000 BadIdentityTokenInvalid exception: FlexSim::OPC UA Connection
First I thought that something was wrong with the connection credentials but I tried it with UAExpert, same credentials, and it worked as I could browse the server.
Does anybody have a clue on how to fix this error ?
EDIT: I tried also with the newest FlexSim Express Version (23.0.1) but I get the same error. Also tried to run it as admin.
EDIT 2: I tried this with a simulation server. It works when I connect without username and password but when I setup the simulation server to enforce the username and password connection I get the same error. And it still works with UA Expert.
EDIT 3: Here is my OPC UA configuration in FlexSim.
And the error when browsing
The same data for connecting to the OPC UA Server works with UA Expert.
The OPC UA Server is on a Siemens Simatic S7 1500
And I also tried with a Prosys Simulation Server. I got the same error with FlexSim but it worked with UA Expert.