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
- 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
- Stepper motors used are typically 1.8 deg / step. If different on your configuration, this needs to be identified.
- 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
|
- Conversion of metric to imperial:
- The leadscrew's relevant information:
|
| 1 revolution
| =
| 2 mm X 4
| (3)
|
| =
| 8 mm
|
- 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 ##########