I found a bug of robot program.
Flow of robot program returns to the start when “return” statement is insufficient due to the conditional branch in the ur script.
Robot type: UR3
Controller version: SW3.12.1
We have seen the same issue in both 3.X and 5.X versions of the software
We are also experiencing this
Temporary work around for us was to put a statement in between the final end statements. We use sync() or sleep(0).
if (a ==1):
The behavior is confirm and reported. Thanks!