Variable Thread Pitch

For threads with variable thread pitch, you need to use the K value directly in the post processor.

To add the K value you need to use the template based post processor.

Example, in the post editor, configure Threading Pass Template like this :

G34 X<END_X> Z<END_Z> F<PITCH> K0.04

and the output for every pass will output like this :

...
G00 Z0.3110
G00 X3.9785
G34 X3.9785 Z-3.5430 F0.25 K0.04
G00 X4.0000
G00 Z0.3010
G00 X3.9785
G34 X3.9785 Z-3.5430 F0.25 K0.04
...

There are two methods for calculating the K value (Δ Pitch) in variable pitch threading.

To find the K value, use the calculator below and enter the length of the thread and starting and ending pitch.

Average Pitch
Uses the average of start and end pitch to calculate the number of revolutions. This method accounts for the continuously changing pitch throughout the cut and is commonly used in CAM software. Formula:

Starting Pitch
Uses only the starting pitch to calculate the number of revolutions. This is the traditional approach and simpler to calculate manually. Formula:

The Average Pitch method produces slightly different K values because it accounts for the pitch changing during the cut. For small pitch variations, the difference is minimal. For larger variations, the Average Pitch method is more accurate.