### straight plunges versus ramp plunges

Добавлено:

**25 ноя 2010, 23:07**I am wondering about the feasibility of implementing some sort of simple ramping plunge code into gcodetools. As you probably know, straight plunges are not that great for end mills, and as a result currently when I am using gcodetools I have to set my layer thickness quite a bit smaller than it really needs to be in order to be kind to the bit.

One very simple, but somewhat inefficient ramping plunge algorithm would be to take the first gcode segment after a plunge, do it in reverse including a plunge, and then perform the rest of the cutting as usual.

So, for example if there was a path to do a square with a straight plunge:

G00 Z5.000000

G00 X1.00 Y1.00

G01 Z-1.0 F100.0

G01 X2.00 Y1.00 Z-1.0 F125.000000

G01 X2.00 Y2.00 Z-1.0 F125.000000

G01 X1.00 Y2.00 Z-1.0 F125.000000

G01 X1.00 Y1.00 Z-1.0 F125.000000

G00 Z5.000000

You could implement a ramping plunge by doing the first segment in reverse, then doing the path as normal:

G00 Z5.000000

G00 X2.00 Y1.00 (go to the end of the first segment)

G01 Z0.0 F100 (go to the surface)

G01 X2.00 Y1.00 Z-1.0 F125.000000 (then ramp plunge)

G01 X2.00 Y1.00 Z-1.0 F125.000000 (then do the rest of the path as usual)

G01 X2.00 Y2.00 Z-1.0 F125.000000

G01 X1.00 Y2.00 Z-1.0 F125.000000

G01 X1.00 Y1.00 Z-1.0 F125.000000

G00 Z5.000000

I think the same idea would work with arcs, only the path reversal part becomes a bit more complicated. If the first segment of the cut is very short or very long, then this might not work the greatest.

This could in theory be implemented as a post-processor.

Thoughts?

Scott

One very simple, but somewhat inefficient ramping plunge algorithm would be to take the first gcode segment after a plunge, do it in reverse including a plunge, and then perform the rest of the cutting as usual.

So, for example if there was a path to do a square with a straight plunge:

G00 Z5.000000

G00 X1.00 Y1.00

G01 Z-1.0 F100.0

G01 X2.00 Y1.00 Z-1.0 F125.000000

G01 X2.00 Y2.00 Z-1.0 F125.000000

G01 X1.00 Y2.00 Z-1.0 F125.000000

G01 X1.00 Y1.00 Z-1.0 F125.000000

G00 Z5.000000

You could implement a ramping plunge by doing the first segment in reverse, then doing the path as normal:

G00 Z5.000000

G00 X2.00 Y1.00 (go to the end of the first segment)

G01 Z0.0 F100 (go to the surface)

G01 X2.00 Y1.00 Z-1.0 F125.000000 (then ramp plunge)

G01 X2.00 Y1.00 Z-1.0 F125.000000 (then do the rest of the path as usual)

G01 X2.00 Y2.00 Z-1.0 F125.000000

G01 X1.00 Y2.00 Z-1.0 F125.000000

G01 X1.00 Y1.00 Z-1.0 F125.000000

G00 Z5.000000

I think the same idea would work with arcs, only the path reversal part becomes a bit more complicated. If the first segment of the cut is very short or very long, then this might not work the greatest.

This could in theory be implemented as a post-processor.

Thoughts?

Scott