question

Przemysław BS avatar image
1 Like"
Przemysław BS asked Cass Z commented

Emulation PLC with OPC UA - Problem with connection

Hello,

I have a problem with connect FlexSim with siemens PLC S7-1500 via OPC UA. I am using FlexSim 20.1. I added emulation in toolbox in FlexSim model. I can see OPC server on PLC, i see whole data structure on PLC. But when i add this connection, i cannot start FlexSim simulation. I get exceptions in System Console:

"

exception: Exception Caught in ObjectFunction240__project_library_FlexSimEventHandler_behaviour_eventfunctions_OnReset object: /Tools/Emulation class: /Tools/Emulation


exception: Exception caught in TreeNode::receivemessage()

exception: Executive::__reset()

exception: int Executive::reset()

exception: reset


"

When i delete this connection, i can start simulation without errors. Have you any ideas where is the issue?

Best regards

FlexSim 20.1.2
flexsim 20.1.2exceptionplc emulationopc uaplc connection problem
1591785099043.png (48.2 KiB)
· 1
5 |100000

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

1 Answer

Benjamin W2 avatar image
0 Likes"
Benjamin W2 answered Cass Z commented

Hi @Przemysław BS, external connection bugs are almost impossible for us to debug without access to the hardware. The best we could do is point you to the documentation on OPC UA connections:

https://docs.flexsim.com/en/20.1/Reference/Tools/Emulation/


1591822032960.png (73.2 KiB)
· 2
5 |100000

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