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

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

nitin_s
Not applicable
40 Views
21 Replies
Message 1 of 22

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

nitin_s
Not applicable

[ FlexSim 22.2.0 ]

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

0 Likes
41 Views
21 Replies
Replies (21)
Message 2 of 22

support5CRPZ
Advocate
Advocate

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

Message 3 of 22

nitin_s
Not applicable

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
Message 4 of 22

support5CRPZ
Advocate
Advocate

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

0 Likes
Message 5 of 22

nitin_s
Not applicable
but it isn't showing any server name in node ID even after successful connection.. any idea??
0 Likes
Message 6 of 22

nitin_s
Not applicable
@Steven Hamoen , @Phil BoBo , @Logan Gold

can you redirect me to the concerned person for my query?

0 Likes
Message 7 of 22

arunTTT2P
Explorer
Explorer
Please show the screenshot of the connections tab.
0 Likes
Message 8 of 22

nitin_s
Not applicable

Configurations is successful as you can see below:

1674806345546.png


Do we need to install and configure the above using third party software to communicate with PLC as mentioned in your OPC UA Server example (https://docs.flexsim.com/en/23.0/Reference/Tools/Emulation/ConnectingToOpcUA/ConnectingToOpcUA.html)

0 Likes
Message 9 of 22

arunTTT2P
Explorer
Explorer

If you are using v23, then you need an emulation license. Modbus and OPC DA connections are freely available. The other connection types require an Emulation license.

https://docs.flexsim.com/en/23.0/Reference/Tools/Emulation/EmulationOverview/EmulationOverview.html

If you don't have an emulation license, you can go back to an older version and test the connection like Flexsim 2022 Update 2,update 1 etc

0 Likes
Message 10 of 22

nitin_s
Not applicable

I am using FlexSim v22 and testing emulation on the same

1674815335459.png

0 Likes
Message 11 of 22

arunTTT2P
Explorer
Explorer
You may try connecting with the third-party OPC server.
Message 12 of 22

support5CRPZ
Advocate
Advocate
The connected your OPC UA server was made by you, you need first to connect to it using a client application not FlexSim.

When I connected to the third-party UA server and my developed UA server using FlexSim 22.2., all was OK.

Your OPC UA server need to be checked again using anther client program.

Message 13 of 22

jason_lightfootVL7B4
Autodesk
Autodesk
For example UA Expert.
Message 14 of 22

lcavallero
Explorer
Explorer

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
Message 15 of 22

nitin_s
Not applicable

i am using KEPServerEX 6 OPC-UA server connection

0 Likes
Message 16 of 22

nitin_s
Not applicable

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
Message 17 of 22

lcavallero
Explorer
Explorer
Hi Sharan,

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

0 Likes
Message 18 of 22

lcavallero
Explorer
Explorer

Hi Sharan,

The message "BadIdentityTokenInvalid " refer to a invalid username or password you provided in the connection configuration when using "User Identify" set to "User Name"

1676032353934.png

The "Check configuration" button verify that the provided configuration is supported by the OPC UA server, but doesn't check username/password validity.

Username/password are sent to the OPC UA server when FlexSim establish a new connection like when you run a simulation, or, as you experimented, browse the servers.

Let me know if this solve your problem.

0 Likes
Message 19 of 22

sudhir_l
Not applicable

Hello Luciano,

Thanks for the revert. Filling in for Nitin
We tried the same user name and password while connecting to the PLC via UA Expert.

We were able to make successful connection with the same credentials. I don't know why we are not able to do the same with Flexsim. The credentials have been double checked.

Are we missing something here?

0 Likes
Message 20 of 22

Jeanette_Fullmer
Community Manager
Community Manager
Hello @Luciano Cavallero, are you able to provides support for this?
0 Likes