Hello twedlake, good to hear that you are trying to understand it.
The calculation of the feedrates is somewhat interesting and at the same time total nonsense.
There are also other formulas that could have been written easier.
For example here, but at the end of the day newY - newY is nothing, so there is nothing to worry about
- nonsense.png (10.09 KiB) Viewed 876 times
So back at the feedrate calculation, writing it in a more familiar way and rearranging the terms we end up with a formula (first one) that looks the same as the speed of an object in free fall (last one).
In other words, the macro is calculating the initial speed were the Z axis can come to a stop, with a constant deceleration, in 0.02mm. We are also using that SAME speed for EVERY other axis.
Then it calculates the slow feedrate, but now it uses a stop distance of 0.17/(Z steps per unit). Same for imperial and metric units, I'm not sure why.
StopDistance is 0.02mm, dAccel is the acceleration of Z axis and dSteps is the Z axis steps per unit.
What are your Z acceleration and step/units values?