# Simulation stops without any error messages

**URL:** <https://forum.visualcomponents.com/t/simulation-stops-without-any-error-messages/2500>\
**Category:** Python Programming\
**Created:** [May 7, 2021, 6:18am UTC](https://forum.visualcomponents.com/t/simulation-stops-without-any-error-messages/2500 "2021-05-07T06:18:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![razania60](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/r/b782af/32.png) [@razania60](https://forum.visualcomponents.com/u/razania60)\
**Post date:** [May 7, 2021, 6:18am UTC](https://forum.visualcomponents.com/t/simulation-stops-without-any-error-messages/2500/1 "2021-05-07T06:18:05Z")

</div>

Hi ,everyone.  
I’m making simulation with python script and OPC UA(CODESYS).  
But my simulation stops without error messages on output panel.  
I think my python script is something wrong but I can’t find which part is wrong.

Does anybody has any ideas to solve this problem?

Regards,  
razania60

[MyProject.vcmx](https://forum.visualcomponents.com/uploads/short-url/5lBgrsDvUPAni86TZCttcQIRFHB.vcmx) (6.3 MB)

 ![image1](https://forum.visualcomponents.com/uploads/default/original/2X/6/6f6f57ef9e6bda5675d6e31d40b9aade2887758f.png)

---

<div class="post-metadata">

**Author:** ![Este](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/este/32/760_2.png) [@Este](https://forum.visualcomponents.com/u/Este)\
**Post date:** [May 7, 2021, 6:23am UTC](https://forum.visualcomponents.com/t/simulation-stops-without-any-error-messages/2500/2 "2021-05-07T06:23:43Z")

</div>

Hi @razania60

Maybe the robot is going past joint limits or colliding with some obstacle?  
Check the program panel for Stop on Collision and Stop at Limits settings. You can also enable the Message Panel Output to see the messages printed to output panel.

 ![stop_simulation](https://forum.visualcomponents.com/uploads/default/original/2X/e/e81a84fb04d657a1028d24f69ea725fec8b613dd.jpeg)

---

<div class="post-metadata">

**Author:** ![razania60](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/r/b782af/32.png) [@razania60](https://forum.visualcomponents.com/u/razania60)\
**Post date:** [May 7, 2021, 6:41am UTC](https://forum.visualcomponents.com/t/simulation-stops-without-any-error-messages/2500/3 "2021-05-07T06:41:45Z")

</div>

Hi, Este.  
Thank you to your advise.

I checked my setting, but “stop on collision” is not disable and “Message Panel Output” is enabled.

 ![image2](https://forum.visualcomponents.com/uploads/default/original/2X/2/2f9cee4eac2896a2b9e8bf9de2d20d05dbeadfe8.png)

Any ideas?

Regards,  
razania60

---

<div class="post-metadata">

**Author:** ![Este](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/este/32/760_2.png) [@Este](https://forum.visualcomponents.com/u/Este)\
**Post date:** [May 7, 2021, 6:51am UTC](https://forum.visualcomponents.com/t/simulation-stops-without-any-error-messages/2500/4 "2021-05-07T06:51:54Z")

</div>

Seems to be a simple copy-paste error.  
I don’t know why you did not get any error message. I tested with KUKA Sim Pro 3.1.2 and got a proper error message about a missing variable.

 ![script_error](https://forum.visualcomponents.com/uploads/default/original/2X/a/a65b7c81ab1ec67d869086aba681c42426f89f77.jpeg)

---

<div class="post-metadata">

**Author:** ![razania60](https://forum.visualcomponents.com/letter_avatar_proxy/v4/letter/r/b782af/32.png) [@razania60](https://forum.visualcomponents.com/u/razania60)\
**Post date:** [May 7, 2021, 7:44am UTC](https://forum.visualcomponents.com/t/simulation-stops-without-any-error-messages/2500/5 "2021-05-07T07:44:03Z")

</div>

I fix wrong part of script and ran simulation.  
I still got same situation…  
Here is short video that shows what happened.

[![](https://img.youtube.com/vi/v5qCAdoq78A/maxresdefault.jpg "My simulation problem") ](https://www.youtube.com/watch?v=v5qCAdoq78A)
