# Where do you adjust the plunge rate in Gcode?

**URL:** <https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080>\
**Category:** No Judgement\
**Created:** [January 27, 2018, 4:30pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080 "2018-01-27T16:30:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![TITTIGER\_MASLOWCNC](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@TITTIGER\_MASLOWCNC](https://forums.maslowcnc.com/u/TITTIGER_MASLOWCNC)\
**Post date:** [January 27, 2018, 4:30pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/1 "2018-01-27T16:30:39Z")

</div>

We have a .NC code that is super slow when doing a drill operation. I can’t find where to change this setting. we are using Vcarve Pro to generate the .NC code.

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [January 27, 2018, 4:42pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/2 "2018-01-27T16:42:58Z")

</div>

I don’t use vcarve pro, but googling some images suggest you set that value for each tool. So go to tool info for each tool and you should see a plunge rate value in the dialog box.

[https://discuss.inventables.com/t/v-bit-feed-speed-and-stepover/14187](https://discuss.inventables.com/t/v-bit-feed-speed-and-stepover/14187)

---

<div class="post-metadata">

**Author:** ![TITTIGER\_MASLOWCNC](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@TITTIGER\_MASLOWCNC](https://forums.maslowcnc.com/u/TITTIGER_MASLOWCNC)\
**Post date:** [January 27, 2018, 4:55pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/3 "2018-01-27T16:55:24Z")

</div>

Thanks. The tool in vCarve is set at .5 inch per second. I don’t know why the settings are moving to the Maslow. It’s moving about 1mm / 5 seconds

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [January 27, 2018, 4:57pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/4 "2018-01-27T16:57:07Z")

</div>

Is this a stock design maslow with stock z-axis kit?

---

<div class="post-metadata">

**Author:** ![mooselake](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/mooselake/32/6218_2.png) [@mooselake](https://forums.maslowcnc.com/u/mooselake)\
**Post date:** [January 27, 2018, 5:45pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/5 "2018-01-27T17:45:12Z")

</div>

Your 12mm/0.5" per minute may be the maximum Z feedrate. I couldn’t find the maximum rate discussed in the forum, but it’s excruciatingly slow, much slower than the other axes. It’s a high torque low speed motor. It’s simulating fingers turning a knob in a mechanism that wasn’t designed for CNC speeds.

Hopefully @bar or somebody who’s measured it will let us know how fast it’ll go

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [January 27, 2018, 5:55pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/6 "2018-01-27T17:55:34Z")

</div>

For an idea of how fast the z axis can go at it’s highest speed, run ‘Test Motors’ and watch it move. This test moves each motor at full speed, without software limits.

---

<div class="post-metadata">

**Author:** ![TITTIGER\_MASLOWCNC](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@TITTIGER\_MASLOWCNC](https://forums.maslowcnc.com/u/TITTIGER_MASLOWCNC)\
**Post date:** [January 27, 2018, 6:36pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/7 "2018-01-27T18:36:10Z")

</div>

Thanks. If I could get it to move at the speed it moves when you are setting the Zero, that would be great. There has to be a way to adjust this.

---

<div class="post-metadata">

**Author:** ![TITTIGER\_MASLOWCNC](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@TITTIGER\_MASLOWCNC](https://forums.maslowcnc.com/u/TITTIGER_MASLOWCNC)\
**Post date:** [January 27, 2018, 6:51pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/8 "2018-01-27T18:51:25Z")

</div>

When I test the motors, they move at a speed at which would be acceptable for me if we could get the z to move like the test in the program.

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [January 27, 2018, 8:19pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/9 "2018-01-27T20:19:59Z")

</div>

Post the first 20 or so lines of the gcode… maybe we can figure out what’s going on from it.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [January 27, 2018, 8:31pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/10 "2018-01-27T20:31:51Z")

</div>

This is the feed rate (in the gcode, it’s the number after the F in the Z  
movements)

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [January 27, 2018, 8:56pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/11 "2018-01-27T20:56:08Z")

</div>

The value that limits the z-axis speed is found in Settings.cpp of the firmware, on line ~86 - maxZRPM. It is currently declared as 12.6.  
You can try different values. Be advised, this setting may have strange results in gcode files that do coordinated x-y-z movements 😉  
The easy way to play with this setting is to program one of the GC macros to send the value.  
$18=12.6  
would send the default value. With a meter on the bench,  
$18=20.0 seemed to cause the drive voltage to maximum, higher values didn’t seem to make a difference.  
My sequence was to change the macro, use the macro button to send it, use the Z-axis panel to test it.  
Let us know what your find 😀

Once you settle on a $18 value, you can try values for F (feedrate) in your gcode file as @dlang suggests.

---

<div class="post-metadata">

**Author:** ![TITTIGER\_MASLOWCNC](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@TITTIGER\_MASLOWCNC](https://forums.maslowcnc.com/u/TITTIGER_MASLOWCNC)\
**Post date:** [January 27, 2018, 9:08pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/12 "2018-01-27T21:08:30Z")

</div>

Thanks. I searched the Gcode and there is no reference to the letter “f” in the entire file.

Here is the first 30 Lines

G20  
N0 G0 X0.0000 Y0.0000 Z0.7500  
N1 G0 X-4.2426 Y4.2426 Z0.2510  
N2 G1 X-4.2426 Y4.2426 Z-0.7500  
N3 G0 X-4.2426 Y4.2426 Z0.2510  
N4 G0 X-4.9497 Y4.9497 Z0.2510  
N5 G1 X-4.9497 Y4.9497 Z-0.7500  
N6 G0 X-4.9497 Y4.9497 Z0.2510  
N7 G0 X-7.2565 Y-3.9158 Z0.2510  
N8 G1 X-7.2565 Y-3.9158 Z-0.7500  
N9 G0 X-7.2565 Y-3.9158 Z0.2510  
N10 G0 X-3.9158 Y-7.2564 Z0.2510  
N11 G1 X-3.9158 Y-7.2564 Z-0.7500  
N12 G0 X-3.9158 Y-7.2564 Z0.2510  
N13 G0 X3.9159 Y-7.2564 Z0.2510  
N14 G1 X3.9159 Y-7.2564 Z-0.7500  
N15 G0 X3.9159 Y-7.2564 Z0.2510  
N16 G0 X7.2565 Y-3.9158 Z0.2510  
N17 G1 X7.2565 Y-3.9158 Z-0.7500  
N18 G0 X7.2565 Y-3.9158 Z0.2510  
N19 G0 X4.2427 Y4.2426 Z0.2510  
N20 G1 X4.2427 Y4.2426 Z-0.7500  
N21 G0 X4.2427 Y4.2426 Z0.2510  
N22 G0 X4.9498 Y4.9497 Z0.2510  
N23 G1 X4.9498 Y4.9497 Z-0.7500  
N24 G0 X4.9498 Y4.9497 Z0.2510  
N25 G0 X0.0025 Y-1.3750 Z0.2510  
N26 G1 X0.0025 Y-1.3750 Z-0.1875  
N27 G1 X0.0000 Y-1.3750 Z-0.1875  
N28 G1 X-0.0355 Y-1.3745 Z-0.1875

---

<div class="post-metadata">

**Author:** ![TITTIGER\_MASLOWCNC](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@TITTIGER\_MASLOWCNC](https://forums.maslowcnc.com/u/TITTIGER_MASLOWCNC)\
**Post date:** [January 27, 2018, 9:25pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/13 "2018-01-27T21:25:45Z")

</div>

So it’s taking about 35+ mins to drill one 3/4 deep hole. ☹

---

<div class="post-metadata">

**Author:** ![TITTIGER\_MASLOWCNC](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@TITTIGER\_MASLOWCNC](https://forums.maslowcnc.com/u/TITTIGER_MASLOWCNC)\
**Post date:** [January 27, 2018, 9:33pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/14 "2018-01-27T21:33:06Z")

</div>

@madgrizzle - Yes - Stock design w/ Stock Z-axis.

---

<div class="post-metadata">

**Author:** ![TITTIGER\_MASLOWCNC](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@TITTIGER\_MASLOWCNC](https://forums.maslowcnc.com/u/TITTIGER_MASLOWCNC)\
**Post date:** [January 27, 2018, 9:55pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/15 "2018-01-27T21:55:09Z")

</div>

Thank you @blurfl  
I appreciate your help. Unfortunately, I’m not that technical and don’t even know where to begin to modify the settings.cpp firmware file (latest as of Jan 1). I don’t even see this file on my PC when i search for it.

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [January 27, 2018, 9:58pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/16 "2018-01-27T21:58:19Z")

</div>

Here’s the first few lines of something from makercam. It’s a profile cut and does passes at 0.05 depth increments. Seems like Vcarve Pro is missing somethings (not all lines below are recognized by Maslow).

> (Generated by PartKam Version 0.05)  
> G20 G90 G40  
> (profile 1)  
> G0 Z0.5  
> T0 M6  
> G17  
> M3  
> G0 X9.375 Y8.125  
> G1 Z-0.05 F30

The F30 is 30 inches per minute…

G20 = programming in inches  
G0 = rapid position  
G1 = linear interpolation.

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [January 27, 2018, 10:19pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/17 "2018-01-27T22:19:35Z")

</div>

Looking into the Gcode file, it looks like some better settings choices in the V-carve program might be a help here. What is the bit size you’ve told V-carve to use? What is the hole size you want to drill? Should they be the same? It looks like V-carve is drilling holes .75" deep then moving 0.0001" and doing the same again. That doesn’t seem right…🤔

---

<div class="post-metadata">

**Author:** ![TITTIGER\_MASLOWCNC](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@TITTIGER\_MASLOWCNC](https://forums.maslowcnc.com/u/TITTIGER_MASLOWCNC)\
**Post date:** [January 27, 2018, 11:15pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/18 "2018-01-27T23:15:09Z")

</div>

@blurfl  
We are plunge drilling 1/4" holes to a depth of 3/4"  
The bit we are using is a 1/4 spiral cut end mill.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/1/17d074fc3b1a85e79afaf552751600164dec630e.jpg)

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [January 27, 2018, 11:32pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/19 "2018-01-27T23:32:22Z")

</div>

Try changing thhe line  
N0 G0 X0.0000 Y0.0000 Z0.7500  
to be  
N0 G0 X0.0000 Y0.0000 Z0.7500 F40

That will tell the firmware to use the maximum travel rate. How big is the file?

---

<div class="post-metadata">

**Author:** ![TITTIGER\_MASLOWCNC](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@TITTIGER\_MASLOWCNC](https://forums.maslowcnc.com/u/TITTIGER_MASLOWCNC)\
**Post date:** [January 27, 2018, 11:53pm UTC](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080/20 "2018-01-27T23:53:23Z")

</div>

@blurfl - Same result. The file size is 111kb

[Next page](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080.md?page=2)
