I'm a complete newbie when it comes to CNC control systems. I'm not 100% sure how to calculate and convert the numbers for Counts per Unit.

Some details:

measurements: metric

motors: servos

encoders: AMT102-V quadrature set at 500 counts

output gear (on ballscrew): 60 tooth

input gear (on servo): 20 tooth

ballscrew pitch: 5mm

I'm really unsure if I have done the math correctly and if I multiple my 500 encoder counts by 4 because they are "quadrature encoders"?

The math:

((output_gear / input_gear) * encoder_count) / screw_pitch = counts_per_inch

Plugging in my numbers:

(60 / 20) * (500 * 4) = 6000

6000 / 5 = 1200

Now, I'm unsure if that is giving me a

*strange mash of metric and imperial*. So my second thought is that the screw pitch may need to be divided by an inch (25.4):

6000 / (25.4/5) = 1181.102

**I'm unsure which one is correct?** I think that the second calculation (1181) seems more logical as it takes into account the metric screw, but yet I'm still not sure

My Mach 4 is set to metric.