Robots in Architecture Forum

KUKA|prc - parametric robot control for Grasshopper => Support => Topic started by: OXIDO on November 12, 2025, 06:54:01 PM

Title: View Code line while running the program.
Post by: OXIDO on November 12, 2025, 06:54:01 PM
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
Title: Re: View Code line while running the program.
Post by: Johannes @ Robots in Architecture on November 12, 2025, 10:54:30 PM
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
Title: Re: View Code line while running the program.
Post by: OXIDO on November 13, 2025, 11:24:50 AM
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.
Title: Re: View Code line while running the program.
Post by: Johannes @ Robots in Architecture on November 13, 2025, 01:03:43 PM
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