question

Sharan Nitin avatar image
0 Likes"
Sharan Nitin asked Jeanette F commented

Connecting Simulation Model to PLC using OPC UA - facing issue!!!

I am trying to connect my Simulation Model to PLC using OPC UA, it shows that model has successful configuration but its popping up with the following error while i am trying to browse the Node ID under variable section:

exception: Failed to connect the session: BadIdentityTokenInvalid on MyPLC. Error code 0x80200000 BadIdentityTokenInvalid

exception: Could not open OPC UA client connection on MyPLC. Error code 0x80200000 BadIdentityTokenInvalid

exception: FlexSim::MyPLC

FlexSim 22.2.0
plc emulationsql servermodule development
· 21
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

David Seo avatar image David Seo commented ·

The error looks like your process flow setting about OPC UA connection. The exact answer need your model uploaded.

1 Like 1 ·
Sharan Nitin avatar image Sharan Nitin David Seo commented ·

There is no process flow in the model as of now. i am just trying to connect the MODEL to PLC using OPC UA credentials given to me. the configuration seems to be successful but while browsing to Node ID variables section it shows "Server Browse Error" and pops with above exception error1674469970015.png

0 Likes 0 ·
1674469970015.png (21.3 KiB)
David Seo avatar image David Seo Sharan Nitin commented ·

If you connected to the OPC UA server successfully, you can browse the server name and tag id.

0 Likes 0 ·
Show more comments
Luciano Cavallero avatar image Luciano Cavallero commented ·

If correctly understand you installed the KEPServerEX 6 OPC-UA server, as mentioned into the FlexSim documentation.

I suppose that they are some configuration that inhibit the connection.

Could you share the configuration of your server?

1674838631440.png


0 Likes 0 ·
1674838631440.png (80.4 KiB)
Sharan Nitin avatar image Sharan Nitin Luciano Cavallero commented ·

Please find the configuration snap for OPC UA. so we have tried the default as well as ethernet option. i believe that we may have to change server address as it is not getting reflected in the configuration. unfortunately there is no option to change the server address/IP


1675413540821.png

0 Likes 0 ·
1675413540821.png (70.9 KiB)
Luciano Cavallero avatar image Luciano Cavallero Sharan Nitin commented ·
Hi Sharan,

thanks for the information, I'll try to replicate your configuration in order to better investigate your issue.

0 Likes 0 ·
Show more comments
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Sharan Nitin,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

0 Answers