Drag Knife Parameters

Hi all, this must probably (to my best recall), be the first time in ask on a forum.

The question is the following:

I’ve noticed that on the left panel when selecting Drag as the mode i see Cut Depth, but when i go to configure the machines i cannot see any variable to select the drag knifht depth that would allow me to work on the material and to raise the blade when finishing or when switching paths

Your help is much appreciate it as it is my default CNC app

Best Regards

I just reviewed this code for the first time in years and am surprised by the implementation. I had thought the down/up macros were to engage/retract the knife, which is intuitive. But this is not the case.

Between the start of discrete closed polylines, a G0Z5 is emitted. When a new polyline is started, a hardcoded G0Z-{depth} is emitted. Then the down macro is injected for each segment of cut with variable substitution. The up macro works as you would expect. But then there’s the G0Z5 as mentioned above.

Upon reflection, the reason for this becomes a little more clear. The code path for drag knife is shared with laser. And for a laser this makes more sense because you want color/power/speed substitutions on a per-segment basis.

So I’m going to assume this isn’t what you would want. I’m going to have to refactor this a little bit to bring it in line with expectations.

@stewart , first of all, thanks for replying this quickly. secondly i would like to know if i can use the G0Z-{depth} macro when using the knife down command and knife up (assuming the only thing is the absolute vertical position of the tool when issuing the G0 Z command, thus only changing if this is a negative [down] or a positive [up].

Thanks in advance

I assume that i’ve answered my own question and unfortunately this does not work, any quick turnaround?

I’ll have time to look into this tomorrow