Import LinuxCNC source tree
This commit is contained in:
3
configs/by_machine/sherline/README
Normal file
3
configs/by_machine/sherline/README
Normal file
@@ -0,0 +1,3 @@
|
||||
Sherline Proucts
|
||||
|
||||
www.sherline.com
|
||||
7
configs/by_machine/sherline/Sherline3Axis/README
Normal file
7
configs/by_machine/sherline/Sherline3Axis/README
Normal file
@@ -0,0 +1,7 @@
|
||||
This configuration step is intended for Sherline 3-axis stepper machines.
|
||||
|
||||
Sherline3Axis_inch.ini
|
||||
inch units
|
||||
|
||||
Sherline3Axis_mm.ini
|
||||
metric units
|
||||
205
configs/by_machine/sherline/Sherline3Axis/Sherline3Axis_inch.ini
Normal file
205
configs/by_machine/sherline/Sherline3Axis/Sherline3Axis_inch.ini
Normal file
@@ -0,0 +1,205 @@
|
||||
# EMC controller parameters for generic controller. Make these what you need
|
||||
# for your system.
|
||||
# General note: Comments can either be preceded with a # or ; - either is
|
||||
# acceptable, although # is in keeping with most linux config files.
|
||||
# Settings with a + at the front of the comment are likely needed to get
|
||||
# changed by the user.
|
||||
# Settings with a - at the front are highly unneeded to be changed
|
||||
###############################################################################
|
||||
# General section
|
||||
###############################################################################
|
||||
|
||||
[EMC]
|
||||
#- Version of this INI file
|
||||
VERSION = 1.1
|
||||
#+ Name of machine, for use with display, etc.
|
||||
MACHINE = LinuxCNC-HAL-STEP-IN
|
||||
#+ Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others
|
||||
DEBUG = 0
|
||||
# DEBUG = 0x00000007
|
||||
# DEBUG = 0x7FFFFFFF
|
||||
###############################################################################
|
||||
# Sections for display options
|
||||
###############################################################################
|
||||
|
||||
[DISPLAY]
|
||||
DISPLAY = axis
|
||||
# DISPLAY = tklinuxcnc
|
||||
# Cycle time, in seconds, that display will sleep between polls
|
||||
CYCLE_TIME = 0.200
|
||||
#- Path to help file
|
||||
HELP_FILE = tklinuxcnc.txt
|
||||
#- Initial display setting for position, RELATIVE or MACHINE
|
||||
POSITION_OFFSET = RELATIVE
|
||||
#- Initial display setting for position, COMMANDED or ACTUAL
|
||||
POSITION_FEEDBACK = ACTUAL
|
||||
#+ Highest value that will be allowed for feed override, 1.0 = 100%
|
||||
MAX_FEED_OVERRIDE = 1.2
|
||||
#- Prefix to be used
|
||||
PROGRAM_PREFIX = ../../nc_files/
|
||||
#- Introductory graphic
|
||||
INTRO_GRAPHIC = linuxcnc.gif
|
||||
INTRO_TIME = 5
|
||||
###############################################################################
|
||||
# Task controller section
|
||||
###############################################################################
|
||||
|
||||
[FILTER]
|
||||
#No Content
|
||||
|
||||
[RS274NGC]
|
||||
#- File containing interpreter variables
|
||||
PARAMETER_FILE = stepper.var
|
||||
###############################################################################
|
||||
# Motion control section
|
||||
###############################################################################
|
||||
|
||||
[EMCMOT]
|
||||
#- Name of the motion controller to use (only one exists for nontrivkins)
|
||||
EMCMOT = motmod
|
||||
#- Timeout for comm to emcmot, in seconds
|
||||
COMM_TIMEOUT = 1.0
|
||||
#+ Base task period, in nanosecs - this is the fastest thread in the machine
|
||||
BASE_PERIOD = 50000
|
||||
#- Servo task period, in nanosecs - will be rounded to an int multiple of BASE_PERIOD
|
||||
SERVO_PERIOD = 1000000
|
||||
###############################################################################
|
||||
# Hardware Abstraction Layer section
|
||||
###############################################################################
|
||||
|
||||
[TASK]
|
||||
# Name of task controller program, e.g., milltask
|
||||
TASK = milltask
|
||||
#- Cycle time, in seconds, that task controller will sleep between polls
|
||||
CYCLE_TIME = 0.010
|
||||
###############################################################################
|
||||
# Part program interpreter section
|
||||
###############################################################################
|
||||
|
||||
[HAL]
|
||||
# The run script first uses halcmd to execute any HALFILE
|
||||
# files, and then to execute any individual HALCMD commands.
|
||||
#
|
||||
# list of hal config files to run through halcmd
|
||||
#+ files are executed in the order in which they appear
|
||||
HALFILE = core_stepper.hal
|
||||
#HALFILE = xylotex_pinout.hal
|
||||
HALFILE = standard_pinout.hal
|
||||
#- list of halcmd commands to execute
|
||||
# commands are executed in the order in which they appear
|
||||
#HALCMD = save neta
|
||||
###############################################################################
|
||||
# Trajectory planner section
|
||||
###############################################################################
|
||||
|
||||
[HALUI]
|
||||
#No Content
|
||||
|
||||
[TRAJ]
|
||||
#+ machine specific settings
|
||||
# COORDINATES = X Y Z A B C
|
||||
COORDINATES = X Y Z
|
||||
HOME = 0 0 0
|
||||
LINEAR_UNITS = inch
|
||||
ANGULAR_UNITS = degree
|
||||
DEFAULT_LINEAR_VELOCITY = 0.18
|
||||
MAX_LINEAR_VELOCITY = .36
|
||||
DEFAULT_LINEAR_ACCELERATION = 2.0
|
||||
MAX_LINEAR_ACCELERATION = 2.0
|
||||
###############################################################################
|
||||
# Axes sections
|
||||
###############################################################################
|
||||
#+ First axis
|
||||
|
||||
[EMCIO]
|
||||
#- tool table file
|
||||
TOOL_TABLE = stepper.tbl
|
||||
|
||||
[KINS]
|
||||
KINEMATICS = trivkins
|
||||
JOINTS = 3
|
||||
|
||||
[AXIS_X]
|
||||
MIN_LIMIT = -10
|
||||
MAX_LIMIT = 10.0
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2
|
||||
|
||||
[JOINT_0]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.000
|
||||
MAX_VELOCITY = .36
|
||||
# NOTE: the step generator module applies its own limits to
|
||||
# acceleration and velocity. We have discovered that it needs
|
||||
# to have a little "headroom" over the accel by the trajectory
|
||||
# planner, otherwise it can fall slightly behind during accel
|
||||
# and later overshoot as it catches up. In the long term we
|
||||
# hope to come up with a clean fix for this problem. In the
|
||||
# meantime, please set STEPGEN_MAXACCEL below to a few percent
|
||||
# higher than the regular acceleration limit MAX_ACCELERATION
|
||||
MAX_ACCELERATION = 2
|
||||
STEPGEN_MAXACCEL = 2.2
|
||||
BACKLASH = 0.000
|
||||
SCALE = 16000
|
||||
MIN_LIMIT = -10
|
||||
MAX_LIMIT = 10.0
|
||||
FERROR = 01.00
|
||||
MIN_FERROR = 0.01
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Second axis
|
||||
|
||||
[AXIS_Y]
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2.0
|
||||
|
||||
[JOINT_1]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.000
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2.0
|
||||
STEPGEN_MAXACCEL = 2.20
|
||||
BACKLASH = 0.000
|
||||
SCALE = -16000
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
FERROR = 1
|
||||
MIN_FERROR = .01
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Third axis
|
||||
|
||||
[AXIS_Z]
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2
|
||||
|
||||
[JOINT_2]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2
|
||||
STEPGEN_MAXACCEL = 2.20
|
||||
BACKLASH = 0.000
|
||||
SCALE = -16000
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
FERROR = 01.00
|
||||
MIN_FERROR = 0.010
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
###############################################################################
|
||||
# section for main IO controller parameters
|
||||
###############################################################################
|
||||
205
configs/by_machine/sherline/Sherline3Axis/Sherline3Axis_mm.ini
Normal file
205
configs/by_machine/sherline/Sherline3Axis/Sherline3Axis_mm.ini
Normal file
@@ -0,0 +1,205 @@
|
||||
# EMC controller parameters for generic controller. Make these what you need
|
||||
# for your system.
|
||||
# General note: Comments can either be preceded with a # or ; - either is
|
||||
# acceptable, although # is in keeping with most linux config files.
|
||||
# Settings with a + at the front of the comment are likely needed to get
|
||||
# changed by the user.
|
||||
# Settings with a - at the front are highly unneeded to be changed
|
||||
###############################################################################
|
||||
# General section
|
||||
###############################################################################
|
||||
|
||||
[EMC]
|
||||
#- Version of this INI file
|
||||
VERSION = 1.1
|
||||
#+ Name of machine, for use with display, etc.
|
||||
MACHINE = LinuxCNC-HAL-STEP-MM
|
||||
#+ Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others
|
||||
DEBUG = 0
|
||||
# DEBUG = 0x00000007
|
||||
# DEBUG = 0x7FFFFFFF
|
||||
###############################################################################
|
||||
# Sections for display options
|
||||
###############################################################################
|
||||
|
||||
[DISPLAY]
|
||||
DISPLAY = axis
|
||||
# DISPLAY = tklinuxcnc
|
||||
# Cycle time, in seconds, that display will sleep between polls
|
||||
CYCLE_TIME = 0.200
|
||||
#- Path to help file
|
||||
HELP_FILE = tklinuxcnc.txt
|
||||
#- Initial display setting for position, RELATIVE or MACHINE
|
||||
POSITION_OFFSET = RELATIVE
|
||||
#- Initial display setting for position, COMMANDED or ACTUAL
|
||||
POSITION_FEEDBACK = ACTUAL
|
||||
#+ Highest value that will be allowed for feed override, 1.0 = 100%
|
||||
MAX_FEED_OVERRIDE = 1.2
|
||||
#- Prefix to be used
|
||||
PROGRAM_PREFIX = ../../nc_files/
|
||||
#- Introductory graphic
|
||||
INTRO_GRAPHIC = linuxcnc.gif
|
||||
INTRO_TIME = 5
|
||||
###############################################################################
|
||||
# Task controller section
|
||||
###############################################################################
|
||||
|
||||
[FILTER]
|
||||
#No Content
|
||||
|
||||
[RS274NGC]
|
||||
#- File containing interpreter variables
|
||||
PARAMETER_FILE = stepper.var
|
||||
###############################################################################
|
||||
# Motion control section
|
||||
###############################################################################
|
||||
|
||||
[EMCMOT]
|
||||
#- Name of the motion controller to use (only one exists for nontrivkins)
|
||||
EMCMOT = motmod
|
||||
#- Timeout for comm to emcmot, in seconds
|
||||
COMM_TIMEOUT = 1.0
|
||||
#+ Base task period, in nanosecs - this is the fastest thread in the machine
|
||||
BASE_PERIOD = 50000
|
||||
#- Servo task period, in nanosecs - will be rounded to an int multiple of BASE_PERIOD
|
||||
SERVO_PERIOD = 1000000
|
||||
###############################################################################
|
||||
# Hardware Abstraction Layer section
|
||||
###############################################################################
|
||||
|
||||
[TASK]
|
||||
# Name of task controller program, e.g., milltask
|
||||
TASK = milltask
|
||||
#- Cycle time, in seconds, that task controller will sleep between polls
|
||||
CYCLE_TIME = 0.010
|
||||
###############################################################################
|
||||
# Part program interpreter section
|
||||
###############################################################################
|
||||
|
||||
[HAL]
|
||||
# The run script first uses halcmd to execute any HALFILE
|
||||
# files, and then to execute any individual HALCMD commands.
|
||||
#
|
||||
# list of hal config files to run through halcmd
|
||||
#+ files are executed in the order in which they appear
|
||||
HALFILE = core_stepper.hal
|
||||
#HALFILE = xylotex_pinout.hal
|
||||
HALFILE = standard_pinout.hal
|
||||
#- list of halcmd commands to execute
|
||||
# commands are executed in the order in which they appear
|
||||
#HALCMD = save neta
|
||||
###############################################################################
|
||||
# Trajectory planner section
|
||||
###############################################################################
|
||||
|
||||
[HALUI]
|
||||
#No Content
|
||||
|
||||
[TRAJ]
|
||||
#+ machine specific settings
|
||||
# COORDINATES = X Y Z A B C
|
||||
COORDINATES = X Y Z
|
||||
HOME = 0 0 0
|
||||
LINEAR_UNITS = mm
|
||||
ANGULAR_UNITS = degree
|
||||
DEFAULT_LINEAR_VELOCITY = 4.6
|
||||
MAX_LINEAR_VELOCITY = 8
|
||||
DEFAULT_LINEAR_ACCELERATION = 50
|
||||
MAX_LINEAR_ACCELERATION = 50
|
||||
###############################################################################
|
||||
# Axes sections
|
||||
###############################################################################
|
||||
#+ First axis
|
||||
|
||||
[EMCIO]
|
||||
#- tool table file
|
||||
TOOL_TABLE = stepper.tbl
|
||||
|
||||
[KINS]
|
||||
KINEMATICS = trivkins
|
||||
JOINTS = 3
|
||||
|
||||
[AXIS_X]
|
||||
MIN_LIMIT = -400
|
||||
MAX_LIMIT = 400.0
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
|
||||
[JOINT_0]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.000
|
||||
MAX_VELOCITY = 8
|
||||
# NOTE: the step generator module applies its own limits to
|
||||
# acceleration and velocity. We have discovered that it needs
|
||||
# to have a little "headroom" over the accel by the trajectory
|
||||
# planner, otherwise it can fall slightly behind during accel
|
||||
# and later overshoot as it catches up. In the long term we
|
||||
# hope to come up with a clean fix for this problem. In the
|
||||
# meantime, please set STEPGEN_MAXACCEL below to a few percent
|
||||
# higher than the regular acceleration limit MAX_ACCELERATION
|
||||
MAX_ACCELERATION = 50
|
||||
STEPGEN_MAXACCEL = 60
|
||||
BACKLASH = 0.000
|
||||
SCALE = 800
|
||||
MIN_LIMIT = -400
|
||||
MAX_LIMIT = 400.0
|
||||
FERROR = 26
|
||||
MIN_FERROR = 0.26
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Second axis
|
||||
|
||||
[AXIS_Y]
|
||||
MIN_LIMIT = -300.0
|
||||
MAX_LIMIT = 300.0
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
|
||||
[JOINT_1]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.000
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
STEPGEN_MAXACCEL = 60
|
||||
BACKLASH = 0.000
|
||||
SCALE = -800
|
||||
MIN_LIMIT = -300.0
|
||||
MAX_LIMIT = 300.0
|
||||
FERROR = 26
|
||||
MIN_FERROR = 0.26
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Third axis
|
||||
|
||||
[AXIS_Z]
|
||||
MIN_LIMIT = -300.0
|
||||
MAX_LIMIT = 300.0
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
|
||||
[JOINT_2]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
STEPGEN_MAXACCEL = 60
|
||||
BACKLASH = 0.000
|
||||
SCALE = -800
|
||||
MIN_LIMIT = -300.0
|
||||
MAX_LIMIT = 300.0
|
||||
FERROR = 26
|
||||
MIN_FERROR = 0.26
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
###############################################################################
|
||||
# section for main IO controller parameters
|
||||
###############################################################################
|
||||
@@ -0,0 +1,77 @@
|
||||
# standard pinout config file for 3-axis steppers
|
||||
# using a parport for I/O
|
||||
#
|
||||
# first load the parport driver
|
||||
loadrt hal_parport cfg="0x0378"
|
||||
#
|
||||
# next connect the parport functions to threads
|
||||
# read inputs first
|
||||
addf parport.0.read base-thread 1
|
||||
# write outputs last
|
||||
addf parport.0.write base-thread -1
|
||||
#
|
||||
# finally connect physical pins to the signals
|
||||
net Xstep => parport.0.pin-03-out
|
||||
net Xdir => parport.0.pin-02-out
|
||||
net Ystep => parport.0.pin-05-out
|
||||
net Ydir => parport.0.pin-04-out
|
||||
net Zstep => parport.0.pin-07-out
|
||||
net Zdir => parport.0.pin-06-out
|
||||
|
||||
# create a signal for the estop loopback
|
||||
net estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in
|
||||
|
||||
# create signals for tool loading loopback
|
||||
net tool-prep-loop iocontrol.0.tool-prepare iocontrol.0.tool-prepared
|
||||
net tool-change-loop iocontrol.0.tool-change iocontrol.0.tool-changed
|
||||
|
||||
# connect "spindle on" motion controller pin to a physical pin
|
||||
net spindle-on spindle.0.on => parport.0.pin-09-out
|
||||
|
||||
###
|
||||
### You might use something like this to enable chopper drives when machine ON
|
||||
### the Xen signal is defined in core_stepper.hal
|
||||
###
|
||||
|
||||
# net Xen => parport.0.pin-01-out
|
||||
|
||||
###
|
||||
### If you want active low for this pin, invert it like this:
|
||||
###
|
||||
|
||||
# setp parport.0.pin-01-out-invert 1
|
||||
|
||||
###
|
||||
### A sample home switch on the X axis (axis 0). make a signal,
|
||||
### link the incoming parport pin to the signal, then link the signal
|
||||
### to EMC's axis 0 home switch input pin
|
||||
###
|
||||
|
||||
# net Xhome parport.0.pin-10-in => joint.0.home-sw-in
|
||||
|
||||
###
|
||||
### Shared home switches all on one parallel port pin?
|
||||
### that's ok, hook the same signal to all the axes, but be sure to
|
||||
### set HOME_IS_SHARED and HOME_SEQUENCE in the ini file. See the
|
||||
### user manual!
|
||||
###
|
||||
|
||||
# net homeswitches <= parport.0.pin-10-in
|
||||
# net homeswitches => joint.0.home-sw-in
|
||||
# net homeswitches => joint.1.home-sw-in
|
||||
# net homeswitches => joint.2.home-sw-in
|
||||
|
||||
###
|
||||
### Sample separate limit switches on the X axis (axis 0)
|
||||
###
|
||||
|
||||
# net X-neg-limit parport.0.pin-11-in => joint.0.neg-lim-sw-in
|
||||
# net X-pos-limit parport.0.pin-12-in => joint.0.pos-lim-sw-in
|
||||
|
||||
###
|
||||
### Just like the shared home switches example, you can wire together
|
||||
### limit switches. Beware if you hit one, EMC will stop but can't tell
|
||||
### you which switch/axis has faulted. Use caution when recovering from this.
|
||||
###
|
||||
|
||||
# net Xlimits parport.0.pin-13-in => joint.0.neg-lim-sw-in joint.0.pos-lim-sw-in
|
||||
4
configs/by_machine/sherline/Sherline3Axis/stepper.tbl
Normal file
4
configs/by_machine/sherline/Sherline3Axis/stepper.tbl
Normal file
@@ -0,0 +1,4 @@
|
||||
T1 P1 D0.125000 Z+0.511000 ;1/8 end mill
|
||||
T2 P2 D0.062500 Z+0.100000 ;1/16 end mill
|
||||
T3 P3 D0.201000 Z+1.273000 ;#7 tap drill
|
||||
T99999 P99999 Z+0.100000 ;big tool number
|
||||
7
configs/by_machine/sherline/Sherline4Axis/README
Normal file
7
configs/by_machine/sherline/Sherline4Axis/README
Normal file
@@ -0,0 +1,7 @@
|
||||
This configuration step is intended for Sherline 4-axis stepper machines.
|
||||
|
||||
Sherline4Axis_inch.ini
|
||||
inch units
|
||||
|
||||
Sherline4Axis_mm.ini
|
||||
metric units
|
||||
243
configs/by_machine/sherline/Sherline4Axis/Sherline4Axis_inch.ini
Normal file
243
configs/by_machine/sherline/Sherline4Axis/Sherline4Axis_inch.ini
Normal file
@@ -0,0 +1,243 @@
|
||||
# EMC controller parameters for generic controller. Make these what you need
|
||||
# for your system.
|
||||
# General note: Comments can either be preceded with a # or ; - either is
|
||||
# acceptable, although # is in keeping with most linux config files.
|
||||
# Settings with a + at the front of the comment are likely needed to get
|
||||
# changed by the user.
|
||||
# Settings with a - at the front are highly unneeded to be changed
|
||||
###############################################################################
|
||||
# General section
|
||||
###############################################################################
|
||||
|
||||
[EMC]
|
||||
#- Version of this INI file
|
||||
VERSION = 1.1
|
||||
#+ Name of machine, for use with display, etc.
|
||||
MACHINE = LinuxCNC-HAL-STEP-XYZA-IN
|
||||
#+ Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others
|
||||
DEBUG = 0
|
||||
# DEBUG = 0x00000007
|
||||
# DEBUG = 0x7FFFFFFF
|
||||
###############################################################################
|
||||
# Sections for display options
|
||||
###############################################################################
|
||||
|
||||
[DISPLAY]
|
||||
DISPLAY = axis
|
||||
# DISPLAY = tklinuxcnc
|
||||
# Cycle time, in seconds, that display will sleep between polls
|
||||
CYCLE_TIME = 0.200
|
||||
#- Path to help file
|
||||
HELP_FILE = doc/help.txt
|
||||
#- Initial display setting for position, RELATIVE or MACHINE
|
||||
POSITION_OFFSET = RELATIVE
|
||||
#- Initial display setting for position, COMMANDED or ACTUAL
|
||||
POSITION_FEEDBACK = ACTUAL
|
||||
#+ Highest value that will be allowed for feed override, 1.0 = 100%
|
||||
MAX_FEED_OVERRIDE = 1.20
|
||||
#- Prefix to be used
|
||||
PROGRAM_PREFIX = ../../nc_files/
|
||||
#- Introductory graphic
|
||||
INTRO_GRAPHIC = linuxcnc.gif
|
||||
INTRO_TIME = 5
|
||||
GEOMETRY = AXYZ
|
||||
###############################################################################
|
||||
# Task controller section
|
||||
###############################################################################
|
||||
|
||||
[FILTER]
|
||||
#No Content
|
||||
|
||||
[RS274NGC]
|
||||
#- File containing interpreter variables
|
||||
PARAMETER_FILE = stepper.var
|
||||
###############################################################################
|
||||
# Motion control section
|
||||
###############################################################################
|
||||
|
||||
[EMCMOT]
|
||||
#- Name of the motion controller to use (only one exists for nontrivkins)
|
||||
EMCMOT = motmod
|
||||
#- Timeout for comm to emcmot, in seconds
|
||||
COMM_TIMEOUT = 1.0
|
||||
#+ Base task period, in nanosecs - this is the fastest thread in the machine
|
||||
BASE_PERIOD = 50000
|
||||
#- Servo task period, in nanosecs - will be rounded to an int multiple of BASE_PERIOD
|
||||
SERVO_PERIOD = 1000000
|
||||
###############################################################################
|
||||
# Hardware Abstraction Layer section
|
||||
###############################################################################
|
||||
|
||||
[TASK]
|
||||
#- Name of task controller program, e.g., bridgeporttask
|
||||
TASK = milltask
|
||||
# TASK = minimilltask
|
||||
#- Cycle time, in seconds, that task controller will sleep between polls
|
||||
CYCLE_TIME = 0.010
|
||||
###############################################################################
|
||||
# Part program interpreter section
|
||||
###############################################################################
|
||||
|
||||
[HAL]
|
||||
# The run script first uses halcmd to execute any HALFILE
|
||||
# files, and then to execute any individual HALCMD commands.
|
||||
#
|
||||
# list of hal config files to run through halcmd
|
||||
#+ files are executed in the order in which they appear
|
||||
HALFILE = stepper_xyza.hal
|
||||
#HALFILE = xylotex_pinout.hal
|
||||
HALFILE = standard_pinout.hal
|
||||
#- list of halcmd commands to execute
|
||||
# commands are executed in the order in which they appear
|
||||
#HALCMD = save neta
|
||||
###############################################################################
|
||||
# Trajectory planner section
|
||||
###############################################################################
|
||||
|
||||
[HALUI]
|
||||
#No Content
|
||||
|
||||
[TRAJ]
|
||||
#+ machine specific settings
|
||||
# COORDINATES = X Y Z R P W
|
||||
COORDINATES = X Y Z A
|
||||
HOME = 0 0 0
|
||||
LINEAR_UNITS = inch
|
||||
ANGULAR_UNITS = degree
|
||||
DEFAULT_LINEAR_VELOCITY = .2
|
||||
DEFAULT_ANGULAR_VELOCITY = 25
|
||||
MAX_LINEAR_VELOCITY = 25
|
||||
MAX_ANGULAR_VELOCITY = 25
|
||||
DEFAULT_LINEAR_ACCELERATION = 2.0
|
||||
MAX_LINEAR_ACCELERATION = 2.0
|
||||
# for gui only
|
||||
MAX_LINEAR_VELOCITY = .36
|
||||
DEFAULT_LINEAR_VELOCITY = .2
|
||||
MAX_ANGULAR_VELOCITY = 25
|
||||
DEFAULT_ANGULAR_VELOCITY = 25
|
||||
###############################################################################
|
||||
# Axes sections
|
||||
###############################################################################
|
||||
#+ First axis
|
||||
|
||||
[EMCIO]
|
||||
#- tool table file
|
||||
TOOL_TABLE = stepper.tbl
|
||||
|
||||
[KINS]
|
||||
KINEMATICS = trivkins
|
||||
JOINTS = 4
|
||||
|
||||
[AXIS_X]
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2
|
||||
|
||||
[JOINT_0]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.000
|
||||
MAX_VELOCITY = .36
|
||||
# NOTE: the step generator module applies its own limits to
|
||||
# acceleration and velocity. We have discovered that it needs
|
||||
# to have a little "headroom" over the accel by the trajectory
|
||||
# planner, otherwise it can fall slightly behind during accel
|
||||
# and later overshoot as it catches up. In the long term we
|
||||
# hope to come up with a clean fix for this problem. In the
|
||||
# meantime, please set STEPGEN_MAXACCEL below to a few percent
|
||||
# higher than the regular acceleration limit MAX_ACCELERATION
|
||||
MAX_ACCELERATION = 2
|
||||
STEPGEN_MAXVEL = .4
|
||||
STEPGEN_MAXACCEL = 2.2
|
||||
BACKLASH = 0.000
|
||||
INPUT_SCALE = 16000
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
FERROR = 01.00
|
||||
MIN_FERROR = 0.0100
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Second axis
|
||||
|
||||
[AXIS_Y]
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2.0
|
||||
|
||||
[JOINT_1]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.000
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2.0
|
||||
STEPGEN_MAXVEL = .4
|
||||
STEPGEN_MAXACCEL = 2.2
|
||||
BACKLASH = 0.000
|
||||
INPUT_SCALE = -16000
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
FERROR = 01.00
|
||||
MIN_FERROR = 0.010
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Third axis
|
||||
|
||||
[AXIS_Z]
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2.0
|
||||
|
||||
[JOINT_2]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2.0
|
||||
STEPGEN_MAXVEL = .4
|
||||
STEPGEN_MAXACCEL = 2.2
|
||||
BACKLASH = 0.000
|
||||
INPUT_SCALE = -16000
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
FERROR = 01.00
|
||||
MIN_FERROR = 0.010
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Third axis
|
||||
|
||||
[AXIS_A]
|
||||
MIN_LIMIT = -36000.0
|
||||
MAX_LIMIT = 36000.0
|
||||
MAX_VELOCITY = 25.0
|
||||
MAX_ACCELERATION = 160.0
|
||||
|
||||
[JOINT_3]
|
||||
TYPE = ANGULAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = 25.0
|
||||
MAX_ACCELERATION = 160.0
|
||||
STEPGEN_MAXVEL = 26.0
|
||||
STEPGEN_MAXACCEL = 196.0
|
||||
BACKLASH = 0.000
|
||||
INPUT_SCALE = 160
|
||||
MIN_LIMIT = -36000.0
|
||||
MAX_LIMIT = 36000.0
|
||||
FERROR = 5.0
|
||||
MIN_FERROR = 1.0
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
###############################################################################
|
||||
# section for main IO controller parameters
|
||||
###############################################################################
|
||||
243
configs/by_machine/sherline/Sherline4Axis/Sherline4Axis_mm.ini
Normal file
243
configs/by_machine/sherline/Sherline4Axis/Sherline4Axis_mm.ini
Normal file
@@ -0,0 +1,243 @@
|
||||
# EMC controller parameters for generic controller. Make these what you need
|
||||
# for your system.
|
||||
# General note: Comments can either be preceded with a # or ; - either is
|
||||
# acceptable, although # is in keeping with most linux config files.
|
||||
# Settings with a + at the front of the comment are likely needed to get
|
||||
# changed by the user.
|
||||
# Settings with a - at the front are highly unneeded to be changed
|
||||
###############################################################################
|
||||
# General section
|
||||
###############################################################################
|
||||
|
||||
[EMC]
|
||||
#- Version of this INI file
|
||||
VERSION = 1.1
|
||||
#+ Name of machine, for use with display, etc.
|
||||
MACHINE = LinuxCNC-HAL-STEP-XYZA-IN
|
||||
#+ Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others
|
||||
DEBUG = 0
|
||||
# DEBUG = 0x00000007
|
||||
# DEBUG = 0x7FFFFFFF
|
||||
###############################################################################
|
||||
# Sections for display options
|
||||
###############################################################################
|
||||
|
||||
[DISPLAY]
|
||||
DISPLAY = axis
|
||||
# DISPLAY = tklinuxcnc
|
||||
# Cycle time, in seconds, that display will sleep between polls
|
||||
CYCLE_TIME = 0.200
|
||||
#- Path to help file
|
||||
HELP_FILE = doc/help.txt
|
||||
#- Initial display setting for position, RELATIVE or MACHINE
|
||||
POSITION_OFFSET = RELATIVE
|
||||
#- Initial display setting for position, COMMANDED or ACTUAL
|
||||
POSITION_FEEDBACK = ACTUAL
|
||||
#+ Highest value that will be allowed for feed override, 1.0 = 100%
|
||||
MAX_FEED_OVERRIDE = 1.20
|
||||
#- Prefix to be used
|
||||
PROGRAM_PREFIX = ../../nc_files/
|
||||
#- Introductory graphic
|
||||
INTRO_GRAPHIC = linuxcnc.gif
|
||||
INTRO_TIME = 5
|
||||
GEOMETRY = AXYZ
|
||||
###############################################################################
|
||||
# Task controller section
|
||||
###############################################################################
|
||||
|
||||
[FILTER]
|
||||
#No Content
|
||||
|
||||
[RS274NGC]
|
||||
#- File containing interpreter variables
|
||||
PARAMETER_FILE = stepper.var
|
||||
###############################################################################
|
||||
# Motion control section
|
||||
###############################################################################
|
||||
|
||||
[EMCMOT]
|
||||
#- Name of the motion controller to use (only one exists for nontrivkins)
|
||||
EMCMOT = motmod
|
||||
#- Timeout for comm to emcmot, in seconds
|
||||
COMM_TIMEOUT = 1.0
|
||||
#+ Base task period, in nanosecs - this is the fastest thread in the machine
|
||||
BASE_PERIOD = 50000
|
||||
#- Servo task period, in nanosecs - will be rounded to an int multiple of BASE_PERIOD
|
||||
SERVO_PERIOD = 1000000
|
||||
###############################################################################
|
||||
# Hardware Abstraction Layer section
|
||||
###############################################################################
|
||||
|
||||
[TASK]
|
||||
#- Name of task controller program, e.g., bridgeporttask
|
||||
TASK = milltask
|
||||
# TASK = minimilltask
|
||||
#- Cycle time, in seconds, that task controller will sleep between polls
|
||||
CYCLE_TIME = 0.010
|
||||
###############################################################################
|
||||
# Part program interpreter section
|
||||
###############################################################################
|
||||
|
||||
[HAL]
|
||||
# The run script first uses halcmd to execute any HALFILE
|
||||
# files, and then to execute any individual HALCMD commands.
|
||||
#
|
||||
# list of hal config files to run through halcmd
|
||||
#+ files are executed in the order in which they appear
|
||||
HALFILE = stepper_xyza.hal
|
||||
#HALFILE = xylotex_pinout.hal
|
||||
HALFILE = standard_pinout.hal
|
||||
#- list of halcmd commands to execute
|
||||
# commands are executed in the order in which they appear
|
||||
#HALCMD = save neta
|
||||
###############################################################################
|
||||
# Trajectory planner section
|
||||
###############################################################################
|
||||
|
||||
[HALUI]
|
||||
#No Content
|
||||
|
||||
[TRAJ]
|
||||
#+ machine specific settings
|
||||
# COORDINATES = X Y Z R P W
|
||||
COORDINATES = X Y Z A
|
||||
HOME = 0 0 0
|
||||
LINEAR_UNITS = mm
|
||||
ANGULAR_UNITS = degree
|
||||
DEFAULT_LINEAR_VELOCITY = 4.6
|
||||
DEFAULT_ANGULAR_VELOCITY = 25
|
||||
MAX_LINEAR_VELOCITY = 25
|
||||
MAX_ANGULAR_VELOCITY = 25
|
||||
DEFAULT_LINEAR_ACCELERATION = 50
|
||||
MAX_LINEAR_ACCELERATION = 50
|
||||
# for gui only
|
||||
MAX_LINEAR_VELOCITY = 8
|
||||
DEFAULT_LINEAR_VELOCITY = 4.6
|
||||
MAX_ANGULAR_VELOCITY = 25
|
||||
DEFAULT_ANGULAR_VELOCITY = 25
|
||||
###############################################################################
|
||||
# Axes sections
|
||||
###############################################################################
|
||||
#+ First axis
|
||||
|
||||
[EMCIO]
|
||||
#- tool table file
|
||||
TOOL_TABLE = stepper.tbl
|
||||
|
||||
[KINS]
|
||||
KINEMATICS = trivkins
|
||||
JOINTS = 4
|
||||
|
||||
[AXIS_X]
|
||||
MIN_LIMIT = -400.0
|
||||
MAX_LIMIT = 400.0
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
|
||||
[JOINT_0]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.000
|
||||
MAX_VELOCITY = 8
|
||||
# NOTE: the step generator module applies its own limits to
|
||||
# acceleration and velocity. We have discovered that it needs
|
||||
# to have a little "headroom" over the accel by the trajectory
|
||||
# planner, otherwise it can fall slightly behind during accel
|
||||
# and later overshoot as it catches up. In the long term we
|
||||
# hope to come up with a clean fix for this problem. In the
|
||||
# meantime, please set STEPGEN_MAXACCEL below to a few percent
|
||||
# higher than the regular acceleration limit MAX_ACCELERATION
|
||||
MAX_ACCELERATION = 50
|
||||
STEPGEN_MAXVEL = 10
|
||||
STEPGEN_MAXACCEL = 60
|
||||
BACKLASH = 0.000
|
||||
INPUT_SCALE = 800
|
||||
MIN_LIMIT = -400.0
|
||||
MAX_LIMIT = 400.0
|
||||
FERROR = 026.00
|
||||
MIN_FERROR = 0.2600
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Second axis
|
||||
|
||||
[AXIS_Y]
|
||||
MIN_LIMIT = -300.0
|
||||
MAX_LIMIT = 300.0
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
|
||||
[JOINT_1]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.000
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
STEPGEN_MAXVEL = 10
|
||||
STEPGEN_MAXACCEL = 60
|
||||
BACKLASH = 0.000
|
||||
INPUT_SCALE = -800
|
||||
MIN_LIMIT = -300.0
|
||||
MAX_LIMIT = 300.0
|
||||
FERROR = 026.00
|
||||
MIN_FERROR = 0.260
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Third axis
|
||||
|
||||
[AXIS_Z]
|
||||
MIN_LIMIT = -300.0
|
||||
MAX_LIMIT = 300.0
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
|
||||
[JOINT_2]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
STEPGEN_MAXVEL = 10
|
||||
STEPGEN_MAXACCEL = 60
|
||||
BACKLASH = 0.000
|
||||
INPUT_SCALE = -800
|
||||
MIN_LIMIT = -300.0
|
||||
MAX_LIMIT = 300.0
|
||||
FERROR = 026.00
|
||||
MIN_FERROR = 0.260
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Third axis
|
||||
|
||||
[AXIS_A]
|
||||
MIN_LIMIT = -36000.0
|
||||
MAX_LIMIT = 36000.0
|
||||
MAX_VELOCITY = 25.0
|
||||
MAX_ACCELERATION = 160.0
|
||||
|
||||
[JOINT_3]
|
||||
TYPE = ANGULAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = 25.0
|
||||
MAX_ACCELERATION = 160.0
|
||||
STEPGEN_MAXVEL = 26.0
|
||||
STEPGEN_MAXACCEL = 196.0
|
||||
BACKLASH = 0.000
|
||||
INPUT_SCALE = 160
|
||||
MIN_LIMIT = -36000.0
|
||||
MAX_LIMIT = 36000.0
|
||||
FERROR = 5.0
|
||||
MIN_FERROR = 1.0
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
###############################################################################
|
||||
# section for main IO controller parameters
|
||||
###############################################################################
|
||||
@@ -0,0 +1,43 @@
|
||||
# standard pinout config file for 3-axis steppers
|
||||
# using a parport for I/O
|
||||
#
|
||||
# first load the parport driver
|
||||
loadrt hal_parport cfg="0x0378"
|
||||
#
|
||||
# next connect the parport functions to threads
|
||||
# read inputs first
|
||||
addf parport.0.read base-thread 1
|
||||
# write outputs last
|
||||
addf parport.0.write base-thread -1
|
||||
#
|
||||
# finally connect physical pins to the signals
|
||||
#net estop-out => parport.0.pin-01-out
|
||||
net Xstep parport.0.pin-03-out
|
||||
net Xdir parport.0.pin-02-out
|
||||
net Ystep parport.0.pin-05-out
|
||||
net Ydir parport.0.pin-04-out
|
||||
net Zstep parport.0.pin-07-out
|
||||
net Zdir parport.0.pin-06-out
|
||||
net Astep parport.0.pin-09-out
|
||||
net Adir parport.0.pin-08-out
|
||||
|
||||
|
||||
# create a signal for the estop loopback
|
||||
|
||||
net estop-ext <= parport.0.pin-10-in
|
||||
net estop-out <= iocontrol.0.user-enable-out
|
||||
net estop-out => iocontrol.0.emc-enable-in
|
||||
# create signals for tool loading loopback
|
||||
#net ioctl-tool-prepare iocontrol.0.tool-prepare iocontrol.0.tool-prepared
|
||||
#net ioctl-tool-change iocontrol.0.tool-change iocontrol.0.tool-changed
|
||||
|
||||
# create a signal for "spindle on"
|
||||
#newsig spindle_on bit
|
||||
|
||||
# commented out till we resolve this issue
|
||||
# connect it to the iocontroller
|
||||
#linksp spindle_on spindle.0.on
|
||||
# connect it to a physical pin
|
||||
#linksp spindle_on parport.0.pin-01-out
|
||||
|
||||
|
||||
4
configs/by_machine/sherline/Sherline4Axis/stepper.tbl
Normal file
4
configs/by_machine/sherline/Sherline4Axis/stepper.tbl
Normal file
@@ -0,0 +1,4 @@
|
||||
T1 P1 D0.125000 Z+0.511000 ;1/8 end mill
|
||||
T2 P2 D0.062500 Z+0.100000 ;1/16 end mill
|
||||
T3 P3 D0.201000 Z+1.273000 ;#7 tap drill
|
||||
T99999 P99999 Z+0.100000 ;big tool number
|
||||
106
configs/by_machine/sherline/Sherline4Axis/stepper_xyza.hal
Normal file
106
configs/by_machine/sherline/Sherline4Axis/stepper_xyza.hal
Normal file
@@ -0,0 +1,106 @@
|
||||
# core HAL config file for steppers
|
||||
|
||||
# first load the core RT modules that will be needed
|
||||
# kinematics
|
||||
loadrt [KINS]KINEMATICS
|
||||
# motion controller, get name and thread periods from ini file
|
||||
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD
|
||||
# stepper module
|
||||
loadrt stepgen step_type=0,0,0,0
|
||||
|
||||
# hook its functions to realtime threads
|
||||
addf stepgen.make-pulses base-thread
|
||||
addf stepgen.capture-position servo-thread
|
||||
addf motion-command-handler servo-thread
|
||||
addf motion-controller servo-thread
|
||||
addf stepgen.update-freq servo-thread
|
||||
|
||||
# connect position commands from motion module to step generator
|
||||
net Xpos-cmd <= joint.0.motor-pos-cmd
|
||||
net Xpos-cmd => stepgen.0.position-cmd
|
||||
net Ypos-cmd <= joint.1.motor-pos-cmd
|
||||
net Ypos-cmd => stepgen.1.position-cmd
|
||||
net Zpos-cmd <= joint.2.motor-pos-cmd
|
||||
net Zpos-cmd => stepgen.2.position-cmd
|
||||
net Apos-cmd <= joint.3.motor-pos-cmd
|
||||
net Apos-cmd => stepgen.3.position-cmd
|
||||
|
||||
# connect position feedback from step generators
|
||||
# to motion module
|
||||
net Xpos-fb <= stepgen.0.position-fb
|
||||
net Xpos-fb => joint.0.motor-pos-fb
|
||||
net Ypos-fb <= stepgen.1.position-fb
|
||||
net Ypos-fb => joint.1.motor-pos-fb
|
||||
net Zpos-fb <= stepgen.2.position-fb
|
||||
net Zpos-fb => joint.2.motor-pos-fb
|
||||
net Apos-fb <= stepgen.3.position-fb
|
||||
net Apos-fb => joint.3.motor-pos-fb
|
||||
|
||||
# send the position commands thru differentiators to
|
||||
# generate velocity and accel signals
|
||||
# first 8 differentiators
|
||||
loadrt ddt count=8
|
||||
# link the differentiator functions into the code
|
||||
addf ddt.0 servo-thread
|
||||
addf ddt.1 servo-thread
|
||||
addf ddt.2 servo-thread
|
||||
addf ddt.3 servo-thread
|
||||
addf ddt.4 servo-thread
|
||||
addf ddt.5 servo-thread
|
||||
addf ddt.6 servo-thread
|
||||
addf ddt.7 servo-thread
|
||||
# define the signals, and hook them up
|
||||
net Xpos-cmd => ddt.0.in
|
||||
net Xvel <= ddt.0.out
|
||||
net Xvel => ddt.1.in
|
||||
net Xacc <= ddt.1.out
|
||||
net Ypos-cmd => ddt.2.in
|
||||
net Yvel <= ddt.2.out
|
||||
net Yvel => ddt.3.in
|
||||
net Yacc <= ddt.3.out
|
||||
net Zpos-cmd => ddt.4.in
|
||||
net Zvel <= ddt.4.out
|
||||
net Zvel => ddt.5.in
|
||||
net Zacc <= ddt.5.out
|
||||
net Apos-cmd => ddt.6.in
|
||||
net Avel <= ddt.6.out
|
||||
net Avel => ddt.7.in
|
||||
net Aacc <= ddt.7.out
|
||||
|
||||
# connect enable signals for step generators
|
||||
net Xen <= joint.0.amp-enable-out
|
||||
net Xen => stepgen.0.enable
|
||||
net Yen <= joint.1.amp-enable-out
|
||||
net Yen => stepgen.1.enable
|
||||
net Zen <= joint.2.amp-enable-out
|
||||
net Zen => stepgen.2.enable
|
||||
net Aen <= joint.3.amp-enable-out
|
||||
net Aen => stepgen.3.enable
|
||||
|
||||
# connect signals to step pulse generator outputs
|
||||
net Xstep stepgen.0.step
|
||||
net Xdir stepgen.0.dir
|
||||
net Ystep stepgen.1.step
|
||||
net Ydir stepgen.1.dir
|
||||
net Zstep stepgen.2.step
|
||||
net Zdir stepgen.2.dir
|
||||
net Astep stepgen.3.step
|
||||
net Adir stepgen.3.dir
|
||||
|
||||
# set stepgen module scaling - get values from ini file
|
||||
setp stepgen.0.position-scale [JOINT_0]INPUT_SCALE
|
||||
setp stepgen.1.position-scale [JOINT_1]INPUT_SCALE
|
||||
setp stepgen.2.position-scale [JOINT_2]INPUT_SCALE
|
||||
setp stepgen.3.position-scale [JOINT_3]INPUT_SCALE
|
||||
|
||||
# set stepgen module velocity limits - get values from ini file
|
||||
setp stepgen.0.maxvel [JOINT_0]STEPGEN_MAXVEL
|
||||
setp stepgen.1.maxvel [JOINT_1]STEPGEN_MAXVEL
|
||||
setp stepgen.2.maxvel [JOINT_2]STEPGEN_MAXVEL
|
||||
setp stepgen.3.maxvel [JOINT_3]STEPGEN_MAXVEL
|
||||
|
||||
# set stepgen module accel limits - get values from ini file
|
||||
setp stepgen.0.maxaccel [JOINT_0]STEPGEN_MAXACCEL
|
||||
setp stepgen.1.maxaccel [JOINT_1]STEPGEN_MAXACCEL
|
||||
setp stepgen.2.maxaccel [JOINT_2]STEPGEN_MAXACCEL
|
||||
setp stepgen.3.maxaccel [JOINT_3]STEPGEN_MAXACCEL
|
||||
7
configs/by_machine/sherline/SherlineLathe/README
Normal file
7
configs/by_machine/sherline/SherlineLathe/README
Normal file
@@ -0,0 +1,7 @@
|
||||
This configuration step is intended for Sherline stepper lathes.
|
||||
|
||||
SherlineLathe_inch.in
|
||||
inch units
|
||||
|
||||
SherlineLathe_mm.in
|
||||
metric units
|
||||
206
configs/by_machine/sherline/SherlineLathe/SherlineLathe_inch.ini
Normal file
206
configs/by_machine/sherline/SherlineLathe/SherlineLathe_inch.ini
Normal file
@@ -0,0 +1,206 @@
|
||||
# EMC controller parameters for generic controller. Make these what you need
|
||||
# for your system.
|
||||
# General note: Comments can either be preceded with a # or ; - either is
|
||||
# acceptable, although # is in keeping with most linux config files.
|
||||
# Settings with a + at the front of the comment are likely needed to get
|
||||
# changed by the user.
|
||||
# Settings with a - at the front are highly unneeded to be changed
|
||||
###############################################################################
|
||||
# General section
|
||||
###############################################################################
|
||||
|
||||
[EMC]
|
||||
#- Version of this INI file
|
||||
VERSION = 1.1
|
||||
#+ Name of machine, for use with display, etc.
|
||||
MACHINE = LinuxCNC-HAL-STEP-IN
|
||||
#+ Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others
|
||||
DEBUG = 0
|
||||
# DEBUG = 0x00000007
|
||||
# DEBUG = 0x7FFFFFFF
|
||||
###############################################################################
|
||||
# Sections for display options
|
||||
###############################################################################
|
||||
|
||||
[DISPLAY]
|
||||
DISPLAY = axis
|
||||
# DISPLAY = tklinuxcnc
|
||||
# Cycle time, in seconds, that display will sleep between polls
|
||||
CYCLE_TIME = 0.200
|
||||
LATHE = 1
|
||||
#- Path to help file
|
||||
HELP_FILE = tklinuxcnc.txt
|
||||
#- Initial display setting for position, RELATIVE or MACHINE
|
||||
POSITION_OFFSET = RELATIVE
|
||||
#- Initial display setting for position, COMMANDED or ACTUAL
|
||||
POSITION_FEEDBACK = ACTUAL
|
||||
#+ Highest value that will be allowed for feed override, 1.0 = 100%
|
||||
MAX_FEED_OVERRIDE = 1.2
|
||||
#- Prefix to be used
|
||||
PROGRAM_PREFIX = ../../nc_files/
|
||||
#- Introductory graphic
|
||||
INTRO_GRAPHIC = linuxcnc.gif
|
||||
INTRO_TIME = 5
|
||||
###############################################################################
|
||||
# Task controller section
|
||||
###############################################################################
|
||||
|
||||
[FILTER]
|
||||
#No Content
|
||||
|
||||
[RS274NGC]
|
||||
#- File containing interpreter variables
|
||||
PARAMETER_FILE = stepper.var
|
||||
###############################################################################
|
||||
# Motion control section
|
||||
###############################################################################
|
||||
|
||||
[EMCMOT]
|
||||
#- Name of the motion controller to use (only one exists for nontrivkins)
|
||||
EMCMOT = motmod
|
||||
#- Timeout for comm to emcmot, in seconds
|
||||
COMM_TIMEOUT = 1.0
|
||||
#+ Base task period, in nanosecs - this is the fastest thread in the machine
|
||||
BASE_PERIOD = 50000
|
||||
#- Servo task period, in nanosecs - will be rounded to an int multiple of BASE_PERIOD
|
||||
SERVO_PERIOD = 1000000
|
||||
###############################################################################
|
||||
# Hardware Abstraction Layer section
|
||||
###############################################################################
|
||||
|
||||
[TASK]
|
||||
# Name of task controller program, e.g., milltask
|
||||
TASK = milltask
|
||||
#- Cycle time, in seconds, that task controller will sleep between polls
|
||||
CYCLE_TIME = 0.010
|
||||
###############################################################################
|
||||
# Part program interpreter section
|
||||
###############################################################################
|
||||
|
||||
[HAL]
|
||||
# The run script first uses halcmd to execute any HALFILE
|
||||
# files, and then to execute any individual HALCMD commands.
|
||||
#
|
||||
# list of hal config files to run through halcmd
|
||||
#+ files are executed in the order in which they appear
|
||||
HALFILE = core_stepper.hal
|
||||
#HALFILE = xylotex_pinout.hal
|
||||
HALFILE = standard_pinout.hal
|
||||
#- list of halcmd commands to execute
|
||||
# commands are executed in the order in which they appear
|
||||
#HALCMD = save neta
|
||||
###############################################################################
|
||||
# Trajectory planner section
|
||||
###############################################################################
|
||||
|
||||
[HALUI]
|
||||
#No Content
|
||||
|
||||
[TRAJ]
|
||||
#+ machine specific settings
|
||||
# COORDINATES = X Y Z A B C
|
||||
COORDINATES = X Z
|
||||
HOME = 0 0 0
|
||||
LINEAR_UNITS = inch
|
||||
ANGULAR_UNITS = degree
|
||||
DEFAULT_LINEAR_VELOCITY = 0.18
|
||||
MAX_LINEAR_VELOCITY = .36
|
||||
DEFAULT_LINEAR_ACCELERATION = 2.0
|
||||
MAX_LINEAR_ACCELERATION = 2.0
|
||||
###############################################################################
|
||||
# Axes sections
|
||||
###############################################################################
|
||||
#+ First axis
|
||||
|
||||
[EMCIO]
|
||||
#- tool table file
|
||||
TOOL_TABLE = stepper.tbl
|
||||
|
||||
[KINS]
|
||||
KINEMATICS = trivkins
|
||||
JOINTS = 3
|
||||
|
||||
[AXIS_X]
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2
|
||||
|
||||
[JOINT_0]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.000
|
||||
MAX_VELOCITY = .36
|
||||
# NOTE: the step generator module applies its own limits to
|
||||
# acceleration and velocity. We have discovered that it needs
|
||||
# to have a little "headroom" over the accel by the trajectory
|
||||
# planner, otherwise it can fall slightly behind during accel
|
||||
# and later overshoot as it catches up. In the long term we
|
||||
# hope to come up with a clean fix for this problem. In the
|
||||
# meantime, please set STEPGEN_MAXACCEL below to a few percent
|
||||
# higher than the regular acceleration limit MAX_ACCELERATION
|
||||
MAX_ACCELERATION = 2
|
||||
STEPGEN_MAXACCEL = 2.2
|
||||
BACKLASH = 0.000
|
||||
SCALE = -16000
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
FERROR = 01.00
|
||||
MIN_FERROR = 0.5
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Second axis
|
||||
|
||||
[AXIS_Y]
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2.0
|
||||
|
||||
[JOINT_1]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.000
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2.0
|
||||
STEPGEN_MAXACCEL = 2.20
|
||||
BACKLASH = 0.000
|
||||
SCALE = -16000
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
FERROR = 1
|
||||
MIN_FERROR = .5
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Third axis
|
||||
|
||||
[AXIS_Z]
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2
|
||||
|
||||
[JOINT_2]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = .36
|
||||
MAX_ACCELERATION = 2
|
||||
STEPGEN_MAXACCEL = 2.20
|
||||
BACKLASH = 0.000
|
||||
SCALE = -16000
|
||||
MIN_LIMIT = -10.0
|
||||
MAX_LIMIT = 10.0
|
||||
FERROR = 01.00
|
||||
MIN_FERROR = 0.010
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
###############################################################################
|
||||
# section for main IO controller parameters
|
||||
###############################################################################
|
||||
206
configs/by_machine/sherline/SherlineLathe/SherlineLathe_mm.ini
Normal file
206
configs/by_machine/sherline/SherlineLathe/SherlineLathe_mm.ini
Normal file
@@ -0,0 +1,206 @@
|
||||
# EMC controller parameters for generic controller. Make these what you need
|
||||
# for your system.
|
||||
# General note: Comments can either be preceded with a # or ; - either is
|
||||
# acceptable, although # is in keeping with most linux config files.
|
||||
# Settings with a + at the front of the comment are likely needed to get
|
||||
# changed by the user.
|
||||
# Settings with a - at the front are highly unneeded to be changed
|
||||
###############################################################################
|
||||
# General section
|
||||
###############################################################################
|
||||
|
||||
[EMC]
|
||||
#- Version of this INI file
|
||||
VERSION = 1.1
|
||||
#+ Name of machine, for use with display, etc.
|
||||
MACHINE = LinuxCNC-HAL-STEP-MM
|
||||
#+ Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others
|
||||
DEBUG = 0
|
||||
# DEBUG = 0x00000007
|
||||
# DEBUG = 0x7FFFFFFF
|
||||
###############################################################################
|
||||
# Sections for display options
|
||||
###############################################################################
|
||||
|
||||
[DISPLAY]
|
||||
DISPLAY = axis
|
||||
# DISPLAY = tklinuxcnc
|
||||
# Cycle time, in seconds, that display will sleep between polls
|
||||
CYCLE_TIME = 0.200
|
||||
LATHE = 1
|
||||
#- Path to help file
|
||||
HELP_FILE = tklinuxcnc.txt
|
||||
#- Initial display setting for position, RELATIVE or MACHINE
|
||||
POSITION_OFFSET = RELATIVE
|
||||
#- Initial display setting for position, COMMANDED or ACTUAL
|
||||
POSITION_FEEDBACK = ACTUAL
|
||||
#+ Highest value that will be allowed for feed override, 1.0 = 100%
|
||||
MAX_FEED_OVERRIDE = 1.2
|
||||
#- Prefix to be used
|
||||
PROGRAM_PREFIX = ../../nc_files/
|
||||
#- Introductory graphic
|
||||
INTRO_GRAPHIC = linuxcnc.gif
|
||||
INTRO_TIME = 5
|
||||
###############################################################################
|
||||
# Task controller section
|
||||
###############################################################################
|
||||
|
||||
[FILTER]
|
||||
#No Content
|
||||
|
||||
[RS274NGC]
|
||||
#- File containing interpreter variables
|
||||
PARAMETER_FILE = stepper.var
|
||||
###############################################################################
|
||||
# Motion control section
|
||||
###############################################################################
|
||||
|
||||
[EMCMOT]
|
||||
#- Name of the motion controller to use (only one exists for nontrivkins)
|
||||
EMCMOT = motmod
|
||||
#- Timeout for comm to emcmot, in seconds
|
||||
COMM_TIMEOUT = 1.0
|
||||
#+ Base task period, in nanosecs - this is the fastest thread in the machine
|
||||
BASE_PERIOD = 50000
|
||||
#- Servo task period, in nanosecs - will be rounded to an int multiple of BASE_PERIOD
|
||||
SERVO_PERIOD = 1000000
|
||||
###############################################################################
|
||||
# Hardware Abstraction Layer section
|
||||
###############################################################################
|
||||
|
||||
[TASK]
|
||||
# Name of task controller program, e.g., milltask
|
||||
TASK = milltask
|
||||
#- Cycle time, in seconds, that task controller will sleep between polls
|
||||
CYCLE_TIME = 0.010
|
||||
###############################################################################
|
||||
# Part program interpreter section
|
||||
###############################################################################
|
||||
|
||||
[HAL]
|
||||
# The run script first uses halcmd to execute any HALFILE
|
||||
# files, and then to execute any individual HALCMD commands.
|
||||
#
|
||||
# list of hal config files to run through halcmd
|
||||
#+ files are executed in the order in which they appear
|
||||
HALFILE = core_stepper.hal
|
||||
#HALFILE = xylotex_pinout.hal
|
||||
HALFILE = standard_pinout.hal
|
||||
#- list of halcmd commands to execute
|
||||
# commands are executed in the order in which they appear
|
||||
#HALCMD = save neta
|
||||
###############################################################################
|
||||
# Trajectory planner section
|
||||
###############################################################################
|
||||
|
||||
[HALUI]
|
||||
#No Content
|
||||
|
||||
[TRAJ]
|
||||
#+ machine specific settings
|
||||
# COORDINATES = X Y Z A B C
|
||||
COORDINATES = X Z
|
||||
HOME = 0 0 0
|
||||
LINEAR_UNITS = mm
|
||||
ANGULAR_UNITS = degree
|
||||
DEFAULT_LINEAR_VELOCITY = 4.6
|
||||
MAX_LINEAR_VELOCITY = 8
|
||||
DEFAULT_LINEAR_ACCELERATION = 50
|
||||
MAX_LINEAR_ACCELERATION = 50
|
||||
###############################################################################
|
||||
# Axes sections
|
||||
###############################################################################
|
||||
#+ First axis
|
||||
|
||||
[EMCIO]
|
||||
#- tool table file
|
||||
TOOL_TABLE = stepper.tbl
|
||||
|
||||
[KINS]
|
||||
KINEMATICS = trivkins
|
||||
JOINTS = 3
|
||||
|
||||
[AXIS_X]
|
||||
MIN_LIMIT = -400
|
||||
MAX_LIMIT = 400.0
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
|
||||
[JOINT_0]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.000
|
||||
MAX_VELOCITY = 8
|
||||
# NOTE: the step generator module applies its own limits to
|
||||
# acceleration and velocity. We have discovered that it needs
|
||||
# to have a little "headroom" over the accel by the trajectory
|
||||
# planner, otherwise it can fall slightly behind during accel
|
||||
# and later overshoot as it catches up. In the long term we
|
||||
# hope to come up with a clean fix for this problem. In the
|
||||
# meantime, please set STEPGEN_MAXACCEL below to a few percent
|
||||
# higher than the regular acceleration limit MAX_ACCELERATION
|
||||
MAX_ACCELERATION = 50
|
||||
STEPGEN_MAXACCEL = 60
|
||||
BACKLASH = 0.000
|
||||
SCALE = -800
|
||||
MIN_LIMIT = -400
|
||||
MAX_LIMIT = 400.0
|
||||
FERROR = 26
|
||||
MIN_FERROR = 0.26
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Second axis
|
||||
|
||||
[AXIS_Y]
|
||||
MIN_LIMIT = -300.0
|
||||
MAX_LIMIT = 300.0
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
|
||||
[JOINT_1]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.000
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
STEPGEN_MAXACCEL = 60
|
||||
BACKLASH = 0.000
|
||||
SCALE = -800
|
||||
MIN_LIMIT = -300.0
|
||||
MAX_LIMIT = 300.0
|
||||
FERROR = 26
|
||||
MIN_FERROR = 0.26
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
#+ Third axis
|
||||
|
||||
[AXIS_Z]
|
||||
MIN_LIMIT = -400.0
|
||||
MAX_LIMIT = 400.0
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
|
||||
[JOINT_2]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = 8
|
||||
MAX_ACCELERATION = 50
|
||||
STEPGEN_MAXACCEL = 60
|
||||
BACKLASH = 0.000
|
||||
SCALE = -800
|
||||
MIN_LIMIT = -400.0
|
||||
MAX_LIMIT = 400.0
|
||||
FERROR = 26
|
||||
MIN_FERROR = 0.26
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.0
|
||||
HOME_LATCH_VEL = 0.0
|
||||
HOME_USE_INDEX = NO
|
||||
HOME_IGNORE_LIMITS = NO
|
||||
###############################################################################
|
||||
# section for main IO controller parameters
|
||||
###############################################################################
|
||||
@@ -0,0 +1,77 @@
|
||||
# standard pinout config file for 3-axis steppers
|
||||
# using a parport for I/O
|
||||
#
|
||||
# first load the parport driver
|
||||
loadrt hal_parport cfg="0x0378"
|
||||
#
|
||||
# next connect the parport functions to threads
|
||||
# read inputs first
|
||||
addf parport.0.read base-thread 1
|
||||
# write outputs last
|
||||
addf parport.0.write base-thread -1
|
||||
#
|
||||
# finally connect physical pins to the signals
|
||||
net Xstep => parport.0.pin-03-out
|
||||
net Xdir => parport.0.pin-02-out
|
||||
net Ystep => parport.0.pin-05-out
|
||||
net Ydir => parport.0.pin-04-out
|
||||
net Zstep => parport.0.pin-07-out
|
||||
net Zdir => parport.0.pin-06-out
|
||||
|
||||
# create a signal for the estop loopback
|
||||
net estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in
|
||||
|
||||
# create signals for tool loading loopback
|
||||
net tool-prep-loop iocontrol.0.tool-prepare iocontrol.0.tool-prepared
|
||||
net tool-change-loop iocontrol.0.tool-change iocontrol.0.tool-changed
|
||||
|
||||
# connect "spindle on" motion controller pin to a physical pin
|
||||
net spindle-on spindle.0.on => parport.0.pin-09-out
|
||||
|
||||
###
|
||||
### You might use something like this to enable chopper drives when machine ON
|
||||
### the Xen signal is defined in core_stepper.hal
|
||||
###
|
||||
|
||||
# net Xen => parport.0.pin-01-out
|
||||
|
||||
###
|
||||
### If you want active low for this pin, invert it like this:
|
||||
###
|
||||
|
||||
# setp parport.0.pin-01-out-invert 1
|
||||
|
||||
###
|
||||
### A sample home switch on the X axis (axis 0). make a signal,
|
||||
### link the incoming parport pin to the signal, then link the signal
|
||||
### to EMC's axis 0 home switch input pin
|
||||
###
|
||||
|
||||
# net Xhome parport.0.pin-10-in => joint.0.home-sw-in
|
||||
|
||||
###
|
||||
### Shared home switches all on one parallel port pin?
|
||||
### that's ok, hook the same signal to all the axes, but be sure to
|
||||
### set HOME_IS_SHARED and HOME_SEQUENCE in the ini file. See the
|
||||
### user manual!
|
||||
###
|
||||
|
||||
# net homeswitches <= parport.0.pin-10-in
|
||||
# net homeswitches => joint.0.home-sw-in
|
||||
# net homeswitches => joint.1.home-sw-in
|
||||
# net homeswitches => joint.2.home-sw-in
|
||||
|
||||
###
|
||||
### Sample separate limit switches on the X axis (axis 0)
|
||||
###
|
||||
|
||||
# net X-neg-limit parport.0.pin-11-in => joint.0.neg-lim-sw-in
|
||||
# net X-pos-limit parport.0.pin-12-in => joint.0.pos-lim-sw-in
|
||||
|
||||
###
|
||||
### Just like the shared home switches example, you can wire together
|
||||
### limit switches. Beware if you hit one, EMC will stop but can't tell
|
||||
### you which switch/axis has faulted. Use caution when recovering from this.
|
||||
###
|
||||
|
||||
# net Xlimits parport.0.pin-13-in => joint.0.neg-lim-sw-in joint.0.pos-lim-sw-in
|
||||
4
configs/by_machine/sherline/SherlineLathe/stepper.tbl
Normal file
4
configs/by_machine/sherline/SherlineLathe/stepper.tbl
Normal file
@@ -0,0 +1,4 @@
|
||||
T1 P1 D0.125000 Z+0.511000 ;1/8 end mill
|
||||
T2 P2 D0.062500 Z+0.100000 ;1/16 end mill
|
||||
T3 P3 D0.201000 Z+1.273000 ;#7 tap drill
|
||||
T99999 P99999 Z+0.100000 ;big tool number
|
||||
Reference in New Issue
Block a user