Infinite loop

Also checkout the new CB3 forum

Infinite loop error messages:

Sometimes when you program – and try to test run your program you will see an error messages something like this “Infinite loop detected”. This is because the program is syntax checking your program so if you have an IF expression for a condition to happen, but never programmed what to do if the conditions is not present – then you might see this error messages. The trick is to insert a “dummy” Wait instruction for what to do IF the expression is not present – just choose a very low value of the Wait e.g. 0.01 Seconds which pass very fast and the program will loop until the IF expression is true.


Disclaimer: While the Zacobria Pte. Ltd. believes that information and guidance provided is correct, parties must rely upon their skill and judgement when making use of them. Zacobria Pte. Ltd. assumes no liability for loss or damage caused by error or omission, whether such an error or omission is the result of negligence or any other cause. Where reference is made to legislation it is not to be considered as legal advice. Any and all such liability is disclaimed.

If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.

By Zacobria Lars Skovsgaard
Accredited Universal Robots support Centre and Forum.

Also check out the CB3 forum

2 thoughts on “Infinite loop

  1. Kevin Stokes


    I am having difficulties with my UR5. I have a program with some loops in it. This program worked prior to updating my UR5′s software. Now, after updating, I get the “RuntimeError: Infinite loop detected in program” message any time I try to run it. I have tried placing “wait’s” and/or “sync()’s” in the loops, but I still get the error. Is there another way to ignore this error and run my program?

    Thank you,

    1. zacopressadmin Post author

      Hi Kevin

      Also try to insert wait outside the loop and outside If statements. I dont know your program, but if the condition for the loop or “If” is not present then maybe there is an infinite loop outside the loop and If statements.

      By Zacobria Lars Skovsgaard
      Authorised Universal-Robots Distributor.


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>