# 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:** 1\
**Showing post:** 11

<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.

---

_[View the full topic](https://forums.maslowcnc.com/t/where-do-you-adjust-the-plunge-rate-in-gcode/2080)._
