Skip to content

Instantly share code, notes, and snippets.

@justinledwards
Created July 25, 2014 19:07
Show Gist options
  • Save justinledwards/c915e735a68ee8d3510f to your computer and use it in GitHub Desktop.
Save justinledwards/c915e735a68ee8d3510f to your computer and use it in GitHub Desktop.
linuxcnc woes
# 200 steps/rev * 32 "1/32" microstepping * 25.4mm "to inches" / 0.8mm pitch = 203200 which makes no sense.
[AXIS_2]
TYPE = LINEAR
MAX_VELOCITY = 4.0
MAX_ACCELERATION = 80.0
# Set Stepgen max 20% higher than the axis
STEPGEN_MAX_VEL = 4.8
STEPGEN_MAX_ACC = 88.0
BACKLASH = 0.000
#SCALE = 1511.81102362
#SCALE = 130048
SCALE = 1511.81102362
MIN_LIMIT = -10.0
MAX_LIMIT = 200.0
FERROR = 1.0
MIN_FERROR = 0.25
HOME = 0.000
HOME_OFFSET = 0.00
HOME_IGNORE_LIMITS = YES
#HOME_USE_INDEX = NO
HOME_SEQUENCE = 1
# Set to zero if you don't have physical home/limit switches
# Set to the desired homing and latch velocity if you have switches
# See: http://www.linuxcnc.org/docs/2.5/html/config/ini_homing.html
HOME_SEARCH_VEL = -10.0
HOME_LATCH_VEL = 1.0
# these are in nanoseconds
DIRSETUP = 200
DIRHOLD = 200
STEPLEN = 1000
STEPSPACE = 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment