Hello everyone!
I am new to programming Fanuc Robots and I am struggeling with my rather specific setup. I have 10 PRs that can contain points. The number of points that I actually want to drive is not fixed, so it can be anything between 1 to 10 points. When I run this code the robot moves to all points but the more points I drive, the slower the robot movement gets (for all points!). The slowdown is really significant, so I was wondering if I am doing something wrong or if there is a better approach. What do you usually do if you have to drive through many points that are close to each other, to get high execution speed?
Here is the code I have:
R[36:adj nr of pts] = R[32:nr pts to drive] - 1
FOR R[37:iterator]=0 TO R[36:adj nr of pts] ;
R[30:curr pr] = R[37:iterator] + R[40:first pr] ;
J PR[R[30:curr pr]] 100% CNT 100 ;
ENDFOR ;
Please let me know if I need to clarify anything, any help is greatly appreciated.
Thanks!