Stepper Motor Configuration

Based on the leadscrew and gearing of the stepper motor, the relevant files will need to be updated.

The files to be updated are in this folder: /home/cnc/linuxcnc/configs/REB/REB_Axes.


Data Needed for the Calculation

  1. Within the relevant axis file, note the UNITS in the [JOINT_#] section. This is the basis for many calculations. The typical settings are:
    • linear axes (X, Y, Z, U, V, & W) - inch
    • rotary axis (B) - degree
  2. Stepper motors used are typically 1.8 deg / step. If different on your configuration, this needs to be identified.
  3. The drivers (StepperOnline DM542T) are set to
    • Microsteps = 32
    • Steps / rev = 6,400
Based on that:
  32 microsteps = 17.778 microsteps (1)


1.8 deg deg
  1. Conversion of metric to imperial:
  1 inch = 25.4 mm (2)
  1. The leadscrew's relevant information:
    • Pitch = 2 mm
    • Starts = 4
  1 revolution = 2 mm X 4 (3)
= 8 mm
  1. The relevant information regarding gearing:
    • Motor gear = 12 teeth
    • Driven gear = 108 teeth
Based on that:
  108 teeth = 9 motor gear rev (4)


12 teeth 1 driven gear rev

Calculations for Axis File

  STEP_SCALE = 6,400 microsteps X 1 rev X 25.4 mm X 9 motor gear rev (5)




rev 8 mm inch 1 driven gear rev
 
    = 182,880 microsteps  

inch
  ENCODER_SCALE = STEP_SCALE (6)

Note: Do not include the comma (",") when setting the value in the file.


Linear Axis Resolution

For the item noted above with an 8mm/rev leadscrew and a 9:1 gearing ratio (182,880 microsteps/in):

  Axis Indexing Resolution = 0.000 005 47 inch (7)

microstep

A more typical ratio for a NEMA 17 stepper motor is a 2mm/rev leadscrew and a 1:1 gearing ratio (81,280 microsteps/in):

  Axis Indexing Resolution = 0.000 012 31 inch (8)

microstep

Spindle Indexing Resolution

For a spindle with a 9:1 gearing ratio,

  STEP_SCALE = 6,400 microsteps X 9 motor gear rev (9)


rev 1 driven gear rev
 
    = 57,600 microsteps  

spindle rev

 

  Spindle Indexing Resolution = 360 deg (10)

57,600 microsteps
 
    = 0.00625 deg

microstep
########## Standard Footer for all pages ##########
spacer line

About the Rose Engine Butler System
Terms of Use

eMail comments to
ColvinTools @ Gmail [period] com -> mailto:ColvinTools [snail] Gmail [period] com