Greetings Everyone,
New to Rapid programing. I recently encountered this issue on my program. After the cycles have been completed (lines 486-488) I was expecting the tool will extract the way it comes in, per line positions 494-495. Instead, the robot executes and easiest path to “Home” position (Line 497) which is too close to my part? What Instructions should I add on the bottom lines, to make sure it retracts safely away from the part as defined by lines 494-495. Thanks in advance.
Thank you for responding. the P150 at the end was earlier entered before line 482 as a perched position prior to starting the motions, coming from Home position. I just repeat the step process but somehow skips.
Okay. The robot ends the work cycle at p110 and then has p110 as the beginning of the path to get to the “home” routine. Perhaps it ought to be p100? Then p150.
Hi …
“492: IF CyclesRemaining > 0 THEN”
It seems to me that your code will go through the points you mentioned correctly, however, “After the cycles have been completed” the program will go straight to the beginning.
Try changing the instruction:
“492: IF CyclesRemaining > 0 THEN” to “492: IF CyclesRemaining >= 0 THEN”.
This way you will also indent the last cycle.
Lee,
Moving the two-line positions 494-495 after the ENDIF solved the issue. Thanks!
Madolas,
I will try your suggestion too, Since I am having issue with my cycle counter. Maybe I need to indent the last cycle to make the counter work. Thanks!
This sounds amazing as I found it very much useful and informative to be honest. Also, I have gone through this post which definitely helped me out a lot as a new member I am looking forward for more such discussions.