Spark-Concepts / xPro-V5

xPro-V5 CNC Motion Control System Documentation and User Information
42 stars 19 forks source link

Unable to set steps per mm #162

Closed scifunk909 closed 2 years ago

scifunk909 commented 2 years ago

I've tried numerous equations to get the axis travel correct but nothing is working.

Spark-Concepts commented 2 years ago

If your screw goes 2mm per revolution. You would divide the number of steps per rev by that. So 200 steps/2mm.... eg 100 steps/mm

What machine are you configuring - also, belt or screw?

Spark-Concepts commented 2 years ago

if this helps...

You will need to change the following settings:

$100= (x, step/mm)
$101= (y, step/mm)
$102= (z, step/mm)

Type $$ in the command window and make note of the following micro step settings

$160 = (x, microsteps)
$161 = (y, microsteps)
$162 = (z, microsteps)

... and will depend on the stepper motor your using - for example: typical NEMA 17 motors are rated at 200 steps per revolution and you will need to do some math:

  1. Move each axis by rotating the the applicable stepper motor 1 revolution and measure the displacement in mm
  2. Divide 200 by the displacement in mm you determined in step 1
  3. Multiply and record the value from step 2 above with the applicable axis microstep value (this will be your $100, $101, and $102 value(s)

for example (x axis):