Updating the Axis Configuration File

Many values and activities used in this system are based on the respective axis’ configuration. Those configurations are in the respective axis file found in the directory:

/cnc/linuxcnc/configs/REB/REB_Axes

The settings you should consider changing are:

  • SCALE, and
  • STEP_SCALE

The calculations and notes for each setting used is in the comments fields in the file for the respective axis.

Notes:

  1. It is recommended that you make a copy the current line, and comment it out (add a “#” as the first character in the line). For example:
# SCALE = 17.778 ← The old value, commented out
SCALE = 25 ← The new value

Virtual desktop pager
  1. Debian Linux has a virtual desktop pager which allows for task switching easily. This is the set of 4 blocks shown at the top of the screen towards the right. Each of these blocks is a workspace (or virtual desktop). The selected desktop has a dark grey background; the unselected three are lighter grey.
What is relevant to know is that when you open a program, it will often revert back to the virtual desktop where it was last used. Let's use the scenario where you used an editor like Geany recently, in the right-most desktop. When you open it again, it will may revert to being opened in the same desktop.
So, before assumming it did not open, and trying again, check the top of your screen.
  1. When making changes, the recommended editor is Geany.

Setting the Scale

Stepper Motor Settings

The stepper motors typically used have these settings:

  1 step = 1.8°
1 motor rev = 360° = 200 steps
1.8°

Driver Settings

The DM542T Digital Stepper Driver is usually set to

1 step = 32 microsteps

Which means, based on and , that the item driven by this stepper motor moves at the rate of:

200 steps X 32 microsteps = 6,400 microsteps
motor rev step motor rev

Leadscrew Settings

The leadscrew used in this example has these parameters:

Pitch = 2 mm
Starts = 4

Therefore,

Linear Movement = 2 mm linear movement X 4 starts = 8 mm linear movement
motor rev motor rev

Now we can use the values from and in this formula to identify the needed values for the INC file.

STEP_SCALE = 6,400 microsteps X 1 motor rev = 800 microsteps
motor rev 8 mm linear movement mm linear movement

Or, expressed in imperial measurements:

STEP_SCALE = 6,400 microsteps X 1 motor rev X 25.4 mm = 20,320 microsteps
motor rev 8 mm linear movement inch inch linear movement
ENCODER_SCALE = STEP_SCALE

Therefore, the entries in the relevant include file are (no commas are used in the include file):

STEP_SCALE = 20320
ENCODER_SCALE = 20320

Reversing the Direction

If the axis is running in the wrong direction, you can reverse it by making the values negative.

STEP_SCALE = -20320
ENCODER_SCALE = -20320

Additional Information

Additional information about the files related to the axes is in the Rose Engine Butler Support Manual in the document about Files & Directories.

########## 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