Seems like a buffer size limit on toolpath highlighting

More
28 Feb 2021 04:27 - 28 Feb 2021 04:28 #200370 by turbostew
Hello All,

When I am running Gcode on QtDragon, the toolpath display turns red wherever code has executed. Problem is on large files, the old executed highlighted toolpath turns back white again eventually as if there is a buffer size limit on the red highlighting. How do I fix this so code does so toolpath does not revert back to white???


I would also love to know how to do different colors of toolpath highlighting for different tools....
Last edit: 28 Feb 2021 04:28 by turbostew.

Please Log in or Create an account to join the conversation.

More
28 Feb 2021 06:38 #200375 by cmorley
I have not seen this problem before - do you have a gcode that you could share that shows this problem?

It is possible to change the colors by tool number (in master branch) - here is a hint:
class HandlerClass:
    def __init__(self, halcomp, widgets, paths):
        STATUS.connect('tool-in-spindle-changed', lambda w, t: self.change_tool_plot_color(t))
    #####################
    # GENERAL FUNCTIONS #
    #####################

    def change_tool_plot_color(self, t):
        if t == 1:
            self.w.gcodegraphics.set_plot_colors(jog=(255,0,0,255))
        elif t == 2:
            self.w.gcodegraphics.set_plot_colors(jog=(0,255,0,255))
        else:
            self.w.gcodegraphics.set_plot_colors()

Let me know how that works - I may include it in future versions.

Chris

Please Log in or Create an account to join the conversation.

More
28 Feb 2021 06:41 #200376 by cmorley
forgot:

key words can be:
jog=None,traverse=None,feed=None,
arc=None,toolchange=None,probe=None

color = (red, green, blue, alpha)
each are 0-255

Please Log in or Create an account to join the conversation.

More
28 Feb 2021 15:13 #200423 by turbostew
As usual...... Thanks Chris!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

So I have seen it on a few large code programs, both are bunches of nested parts. These are customer company logos so I don't want to share. The toolpath disappears in chunks, like 100 (total guess) lines of gcode at a time.....

Please Log in or Create an account to join the conversation.

More
28 Feb 2021 16:27 #200434 by cmorley
ok I got it - and deleted it from here. I'll do some testing a little later

Please Log in or Create an account to join the conversation.

More
01 Mar 2021 19:47 #200722 by turbostew
Hey Chris,

Find anything yet?

Please Log in or Create an account to join the conversation.

More
01 Mar 2021 22:52 #200745 by cmorley
sorry I've been help up looking at it

Please Log in or Create an account to join the conversation.

More
02 Mar 2021 12:59 #200779 by cmorley


Yes I see odd behaivour... the first colored circles slowly become un colored....
Attachments:

Please Log in or Create an account to join the conversation.

More
02 Mar 2021 15:29 #200791 by snowgoer540
FWIW, I see this same thing on large g-code runs in PathPilot. Seems there's some limit somewhere.

Please Log in or Create an account to join the conversation.

More
02 Mar 2021 16:30 #200800 by tommylight
If you mean the red color disappearing slowly from the path that has already been travelled, happens in Axis GUI also, i would call that normal.

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.105 seconds
Powered by Kunena Forum