Skip to content

Instantly share code, notes, and snippets.

@monkeypants
Created October 27, 2014 10:57
Show Gist options
  • Save monkeypants/216569e697b832d8027f to your computer and use it in GitHub Desktop.
Save monkeypants/216569e697b832d8027f to your computer and use it in GitHub Desktop.
linuxcnc sim of my 4 axis foam cutter
[EMC]
VERSION = $Revision$
MACHINE = Foamcutter
DEBUG = 0
[DISPLAY]
DISPLAY = axis
CYCLE_TIME = 0.100
HELP_FILE = doc/help.txt
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 2.0
MAX_SPINDLE_OVERRIDE = 1.0
PROGRAM_PREFIX = /home/chris/linuxcnc/nc_files
OPEN_FILE = ./foam.ngc
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
EDITOR = emacs
INCREMENTS = 1 mm, .1mm, .01 mm
GEOMETRY = YZ;VW
FOAM = 1
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
# Task controller section -----------------------------------------------------
[TASK]
TASK = milltask
CYCLE_TIME = 0.001
[RS274NGC]
PARAMETER_FILE = sim-9axis.var
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
SERVO_PERIOD = 1000000
[HAL]
HALFILE = sim.axis/core_sim9.hal
#HALFILE = sim.axis/axis_manualtoolchange.hal
HALFILE = sim.axis/simulated_home.hal
HALFILE = sim.axis/locking_indexer.hal
HALUI = halui
[TRAJ]
AXES = 9
COORDINATES = X Y U V
HOME = 0 0 0 0 0 0
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 25.0
DEFAULT_ANGULAR_VELOCITY = 45.0
POSITION_FILE = position9.txt
MAX_LINEAR_VELOCITY = 30
MAX_ANGULAR_VELOCITY = 90.0
[AXIS_0]
TYPE = LINEAR
HOME = 0.000
MAX_VELOCITY = 30
MAX_ACCELERATION = 500.0
BACKLASH = 0.000
INPUT_SCALE = 4000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -100.0
MAX_LIMIT = 1000.0
FERROR = 0.050
MIN_FERROR = 0.010
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 5.0
HOME_LATCH_VEL = 1.0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = NO
HOME_SEQUENCE = 1
HOME_IS_SHARED = 1
[AXIS_1]
TYPE = LINEAR
HOME = 0.000
MAX_VELOCITY =30
MAX_ACCELERATION = 500.0
BACKLASH = 0.000
INPUT_SCALE = 4000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -10000.0
MAX_LIMIT = 10000.0
FERROR = 0.050
MIN_FERROR = 0.010
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 5.0
HOME_LATCH_VEL = 1.0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = NO
HOME_SEQUENCE = 1
[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 30
MAX_ACCELERATION = 500.0
BACKLASH = 0.000
INPUT_SCALE = 4000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -200.0
MAX_LIMIT = 400.0
FERROR = 0.050
MIN_FERROR = 0.010
HOME_OFFSET = 0.0
HOME_SEQUENCE = 0
[AXIS_3]
TYPE = ANGULAR
HOME = 0.0
MAX_VELOCITY = 90.0
MAX_ACCELERATION = 1200.0
BACKLASH = 0.000
INPUT_SCALE = 40
OUTPUT_SCALE = 1.000
FERROR = 5.0
MIN_FERROR = 1.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = 0
[AXIS_4]
TYPE = ANGULAR
HOME = 0.0
MAX_VELOCITY = 90.0
MAX_ACCELERATION = 1200.0
BACKLASH = 0.000
INPUT_SCALE = 40
OUTPUT_SCALE = 1.000
FERROR = 5.0
MIN_FERROR = 1.0
HOME_OFFSET = 0
HOME_SEQUENCE = 0
[AXIS_5]
TYPE = ANGULAR
HOME = 0.0
MAX_VELOCITY = 90.0
MAX_ACCELERATION = 1200.0
BACKLASH = 0.000
INPUT_SCALE = 40
OUTPUT_SCALE = 1.000
FERROR = 5.0
MIN_FERROR = 1.0
HOME_OFFSET = 0.0
HOME_SEQUENCE = 0
[AXIS_6]
TYPE = LINEAR
HOME = 0.000
MAX_VELOCITY = 30
MAX_ACCELERATION = 500.0
BACKLASH = 0.000
INPUT_SCALE = 4000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -1000.0
MAX_LIMIT = 1000.0
FERROR = 0.050
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
HOME_SEQUENCE = 0
HOME_IS_SHARED = 0
[AXIS_7]
TYPE = LINEAR
HOME = 0.000
MAX_VELOCITY = 30
MAX_ACCELERATION = 500.0
BACKLASH = 0.000
INPUT_SCALE = 4000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -1000.0
MAX_LIMIT = 1000.0
FERROR = 0.050
MIN_FERROR = 0.010
HOME_OFFSET = 0.0
HOME_SEQUENCE = 0
HOME_IS_SHARED = 0
[AXIS_8]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 30
MAX_ACCELERATION = 500.0
BACKLASH = 0.000
INPUT_SCALE = 4000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -200.0
MAX_LIMIT = 400.00
FERROR = 0.050
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
HOME_SEQUENCE = 0
HOME_IS_SHARED = 0
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = sim.tbl
TOOL_CHANGE_POSITION = 0 0 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment