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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @przemyslaw.bs, was ryosuke.s's or benjamin.w2's answer helpful? If so, please click the red "Accept" button on one of their answers. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept or comment back to reopen your question.

0 Likes 0 ·

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.

Cass Z avatar image Cass Z commented ·

Hi, @Przemysław BS , did you successfully connect the S7 with FlexSim via OPC UA? I am new to FlexSim, currently working on it.

Appreciate your time.

0 Likes 0 ·
Ryosuke S avatar image Ryosuke S Cass Z commented ·

Hi @Przemysław BS, Maybe you should leave the Discovery Server blank. Mine worked with Discovery Server blank.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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