View Code line while running the program.

Started by OXIDO, November 12, 2025, 06:54:01 PM

Previous topic - Next topic

OXIDO

Hello,
We are operating a KUKA performing additive manufacturing. The programs are super large because of this; some programs exceed 148K lines. Running this program is a problem because if the robot stops in the middle, or we pause the program for some reason. Apparently, the line displayed by the display does not match the robot's actual position. We have to get the real position of the robot from outside and then find the closest XYZ point in the program and cut the program.

Does someone have a solution for this?
Regards,
OXIDO

Johannes @ Robots in Architecture

Hello,
I'm not sure if I got the question right, but KUKA|prc by default puts larger programs into a fold, which is like a folder in the SRC file. You can use Open Fold so that it expands and the little arrow will show you where the robot is at the moment. Is that what you are looking for?
If the program is not within a fold, we got weird problems in dense toolpaths where the GUI would lag behind the robot.
Best,
Johannes

OXIDO

I can try this. I had unchecked this in the core settings.

Alternatively, and I know this can be complex, but can I connect KUKA with a Grasshopper file where KUKA, while printing, sends out the slider value (0.000 to 1.000) for the Simulation slider? This can also solve a lot of my other problems at this point.

Johannes @ Robots in Architecture

Not really, the simulation slider is relative to the calculated simulation time, and the simulation time is only a rough approximation. You could use the Tag component or the Custom KRL component to add some comments into the file. Or you add a variable that you increment, that way you can check the state when it was last written, even if the program is cancelled.

Best,
Johannes