Import LinuxCNC source tree
This commit is contained in:
5
configs/by_machine/tormach/README
Normal file
5
configs/by_machine/tormach/README
Normal file
@@ -0,0 +1,5 @@
|
||||
Tormach
|
||||
|
||||
www.tormach.com
|
||||
|
||||
Configurations for the Tormach PCNC-1100 Series II and the PCNC-770.
|
||||
9
configs/by_machine/tormach/custom_postgui.hal
Normal file
9
configs/by_machine/tormach/custom_postgui.hal
Normal file
@@ -0,0 +1,9 @@
|
||||
# Include your customized HAL commands here
|
||||
# The commands in this file are run after the AXIS GUI (including PyVCP panel)
|
||||
# starts
|
||||
net togout toggle.0.out not.0.in gearchange.0.sel pyvcp.highgear-led
|
||||
net logear not.0.out pyvcp.lowgear-led
|
||||
net gearswap toggle.0.in pyvcp.gearchange-button
|
||||
net spindle-speed-raw pyvcp.spindle-speed-meter
|
||||
net spindle-speed-raw pyvcp.spindle-speed-number
|
||||
|
||||
157
configs/by_machine/tormach/pcnc-1100-seriesII.ini
Normal file
157
configs/by_machine/tormach/pcnc-1100-seriesII.ini
Normal file
@@ -0,0 +1,157 @@
|
||||
[EMC]
|
||||
# The version string for this INI file.
|
||||
VERSION = 1.1
|
||||
MACHINE = PCNC-1100
|
||||
DEBUG = 0
|
||||
|
||||
[DISPLAY]
|
||||
DISPLAY = axis
|
||||
POSITION_OFFSET = RELATIVE
|
||||
POSITION_FEEDBACK = ACTUAL
|
||||
MAX_FEED_OVERRIDE = 1.2
|
||||
INTRO_GRAPHIC = linuxcnc.gif
|
||||
INTRO_TIME = 5
|
||||
PROGRAM_PREFIX = ../../nc_files
|
||||
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
|
||||
PYVCP = pcnc-1100.xml
|
||||
DEFAULT_LINEAR_VELOCITY = 0.2
|
||||
DEFAULT_ANGULAR_VELOCITY = 0.1
|
||||
|
||||
[FILTER]
|
||||
PROGRAM_EXTENSION = .nc,.NC G-Code file
|
||||
PROGRAM_EXTENSION = .tap,.TAP G-Code file
|
||||
PROGRAM_EXTENSION = .txt,.TXT G-Code file
|
||||
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
|
||||
png = image-to-gcode
|
||||
gif = image-to-gcode
|
||||
jpg = image-to-gcode
|
||||
PROGRAM_EXTENSION = .py Python Script
|
||||
py = python3
|
||||
|
||||
[RS274NGC]
|
||||
PARAMETER_FILE = emc.var
|
||||
|
||||
[EMCMOT]
|
||||
EMCMOT = motmod
|
||||
COMM_TIMEOUT = 1.0
|
||||
BASE_PERIOD = 33333
|
||||
SERVO_PERIOD = 1000000
|
||||
|
||||
[TASK]
|
||||
TASK = milltask
|
||||
CYCLE_TIME = 0.010
|
||||
|
||||
[HAL]
|
||||
HALFILE = pcnc-1100.hal
|
||||
POSTGUI_HALFILE = custom_postgui.hal
|
||||
|
||||
[HALUI]
|
||||
#No Content
|
||||
|
||||
[TRAJ]
|
||||
COORDINATES = X Y Z A
|
||||
MAX_ANGULAR_VELOCITY = 30.00
|
||||
DEFAULT_ANGULAR_VELOCITY = 3.00
|
||||
LINEAR_UNITS = inch
|
||||
ANGULAR_UNITS = degree
|
||||
DEFAULT_LINEAR_VELOCITY = 0.13
|
||||
MAX_LINEAR_VELOCITY = 1.50
|
||||
NO_FORCE_HOMING = 1
|
||||
|
||||
[EMCIO]
|
||||
TOOL_TABLE = tool.tbl
|
||||
|
||||
[KINS]
|
||||
KINEMATICS = trivkins
|
||||
JOINTS = 4
|
||||
|
||||
[AXIS_X]
|
||||
MIN_LIMIT = -0.000001
|
||||
MAX_LIMIT = 18.0
|
||||
MAX_VELOCITY = 1.5
|
||||
MAX_ACCELERATION = 9.0
|
||||
|
||||
[JOINT_0]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = 1.5
|
||||
MAX_ACCELERATION = 9.0
|
||||
STEPGEN_MAXACCEL = 9.45
|
||||
SCALE = 10000.0
|
||||
FERROR = 0.05
|
||||
MIN_FERROR = 0.01
|
||||
MIN_LIMIT = -0.000001
|
||||
MAX_LIMIT = 18.0
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = -0.750000
|
||||
HOME_LATCH_VEL = 0.050000
|
||||
HOME_IGNORE_LIMITS = YES
|
||||
HOME_SEQUENCE = 1
|
||||
|
||||
[AXIS_Y]
|
||||
MIN_LIMIT = -0.000001
|
||||
MAX_LIMIT = 9.5
|
||||
MAX_VELOCITY = 1.5
|
||||
MAX_ACCELERATION = 9.0
|
||||
|
||||
[JOINT_1]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = 1.5
|
||||
MAX_ACCELERATION = 9.0
|
||||
STEPGEN_MAXACCEL = 9.45
|
||||
SCALE = 10000.0
|
||||
FERROR = 0.05
|
||||
MIN_FERROR = 0.01
|
||||
MIN_LIMIT = -0.000001
|
||||
MAX_LIMIT = 9.5
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = -0.750000
|
||||
HOME_LATCH_VEL = 0.050000
|
||||
HOME_IGNORE_LIMITS = YES
|
||||
HOME_SEQUENCE = 1
|
||||
|
||||
[AXIS_Z]
|
||||
MIN_LIMIT = -20.0
|
||||
MAX_LIMIT = 0.000001
|
||||
MAX_VELOCITY = 1.083
|
||||
MAX_ACCELERATION = 6.0
|
||||
|
||||
[JOINT_2]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = 1.083
|
||||
MAX_ACCELERATION = 6.0
|
||||
STEPGEN_MAXACCEL = 6.3
|
||||
SCALE = 10000.0
|
||||
FERROR = 0.05
|
||||
MIN_FERROR = 0.01
|
||||
MIN_LIMIT = -20.0
|
||||
MAX_LIMIT = 0.000001
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.600000
|
||||
HOME_LATCH_VEL = -0.050000
|
||||
HOME_IGNORE_LIMITS = YES
|
||||
HOME_SEQUENCE = 0
|
||||
|
||||
[AXIS_A]
|
||||
MIN_LIMIT = -9999.0
|
||||
MAX_LIMIT = 9999.0
|
||||
MAX_VELOCITY = 30.0
|
||||
MAX_ACCELERATION = 400.0
|
||||
|
||||
[JOINT_3]
|
||||
TYPE = ANGULAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = 30.0
|
||||
MAX_ACCELERATION = 400.0
|
||||
STEPGEN_MAXACCEL = 420.0
|
||||
SCALE = 500.0
|
||||
FERROR = 1
|
||||
MIN_FERROR = .25
|
||||
MIN_LIMIT = -9999.0
|
||||
MAX_LIMIT = 9999.0
|
||||
HOME_OFFSET = 0.000000
|
||||
HOME_SEARCH_VEL = 0.00000
|
||||
HOME_LATCH_VEL = 0.00000
|
||||
HOME_SEQUENCE = 1
|
||||
160
configs/by_machine/tormach/pcnc-1100.hal
Normal file
160
configs/by_machine/tormach/pcnc-1100.hal
Normal file
@@ -0,0 +1,160 @@
|
||||
|
||||
loadrt [KINS]KINEMATICS
|
||||
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
|
||||
loadrt hal_parport cfg=0x378
|
||||
setp parport.0.reset-time 4000
|
||||
loadrt stepgen step_type=0,0,0,0,0 ctrl_type=p,p,p,p,v
|
||||
|
||||
loadrt estop_latch
|
||||
net charge-pump <= estop-latch.0.watchdog
|
||||
|
||||
addf parport.0.read base-thread
|
||||
addf stepgen.make-pulses base-thread
|
||||
addf estop-latch.0 base-thread
|
||||
addf parport.0.write base-thread
|
||||
addf parport.0.reset 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
|
||||
net spindle-cw <= spindle.0.forward
|
||||
net coolant-flood <= iocontrol.0.coolant-flood
|
||||
net spindle-on spindle.0.on stepgen.4.enable
|
||||
|
||||
|
||||
#
|
||||
# Spindle gear selection code.
|
||||
#
|
||||
# emc2 (rpm) => gearchange => stepgen (step & dir) => spindle
|
||||
# low gear: 100-2000 rpm, 327 ppr, 10900 Hz => 2000 rpm, 5.450 Hz/rpm
|
||||
# high gear: 250-5140 rpm, 127 ppr, 10900 Hz => 5140 rpm, 2.121 Hz/rpm
|
||||
# low/high ppr = 327/127 = 2.575
|
||||
#
|
||||
|
||||
setp stepgen.4.maxaccel 20000
|
||||
setp stepgen.4.maxvel 2000
|
||||
setp stepgen.4.position-scale 5.450
|
||||
net spindle-pwm stepgen.4.step parport.0.pin-01-out
|
||||
setp stepgen.4.stepspace 0
|
||||
setp stepgen.4.steplen 1
|
||||
setp parport.0.pin-01-out-reset 1
|
||||
loadrt or2 count=1
|
||||
net spindle-cw or2.0.in0
|
||||
net spindle-ccw spindle.0.reverse or2.0.in1
|
||||
|
||||
loadrt toggle count=1
|
||||
loadrt not count=1
|
||||
loadrt gearchange count=1
|
||||
addf toggle.0 servo-thread
|
||||
addf not.0 servo-thread
|
||||
addf gearchange.0 servo-thread
|
||||
setp toggle.0.debounce 0
|
||||
setp gearchange.0.min1 100
|
||||
setp gearchange.0.max1 2000
|
||||
setp gearchange.0.min2 250
|
||||
setp gearchange.0.max2 5140
|
||||
setp gearchange.0.scale2 2.575
|
||||
# we're not controlling the direction with the gearchanger, so reverse isn't set
|
||||
# and the dir-in and dir-out pins aren't linked
|
||||
net spindle-speed-raw spindle.0.speed-out gearchange.0.speed-in
|
||||
net spindle-speed gearchange.0.speed-out stepgen.4.velocity-cmd
|
||||
|
||||
net xdir => parport.0.pin-02-out
|
||||
setp parport.0.pin-03-out-invert 1
|
||||
net xstep => parport.0.pin-03-out
|
||||
setp parport.0.pin-03-out-reset 1
|
||||
net ydir => parport.0.pin-04-out
|
||||
setp parport.0.pin-05-out-invert 1
|
||||
net ystep => parport.0.pin-05-out
|
||||
setp parport.0.pin-05-out-reset 1
|
||||
setp parport.0.pin-06-out-invert 1
|
||||
net zdir => parport.0.pin-06-out
|
||||
setp parport.0.pin-07-out-invert 1
|
||||
net zstep => parport.0.pin-07-out
|
||||
setp parport.0.pin-07-out-reset 1
|
||||
net adir => parport.0.pin-08-out
|
||||
setp parport.0.pin-09-out-invert 1
|
||||
net astep => parport.0.pin-09-out
|
||||
setp parport.0.pin-09-out-reset 1
|
||||
net coolant-flood => parport.0.pin-14-out
|
||||
net spindle-cw => parport.0.pin-16-out
|
||||
net charge-pump => parport.0.pin-17-out
|
||||
|
||||
net both-home-x <= parport.0.pin-10-in
|
||||
net both-home-y <= parport.0.pin-11-in
|
||||
net both-home-z <= parport.0.pin-12-in
|
||||
net home-a <= parport.0.pin-13-in
|
||||
net machine-ok <= parport.0.pin-15-in-not
|
||||
|
||||
setp stepgen.0.position-scale [JOINT_0]SCALE
|
||||
setp stepgen.0.steplen 1
|
||||
setp stepgen.0.stepspace 0
|
||||
setp stepgen.0.dirhold 45000
|
||||
setp stepgen.0.dirsetup 26000
|
||||
setp stepgen.0.maxaccel [JOINT_0]STEPGEN_MAXACCEL
|
||||
net xpos-cmd joint.0.motor-pos-cmd => stepgen.0.position-cmd
|
||||
net xpos-fb stepgen.0.position-fb => joint.0.motor-pos-fb
|
||||
net xstep <= stepgen.0.step
|
||||
net xdir <= stepgen.0.dir
|
||||
net xenable joint.0.amp-enable-out => stepgen.0.enable
|
||||
net both-home-x => joint.0.home-sw-in
|
||||
net both-home-x => joint.0.neg-lim-sw-in
|
||||
net both-home-x => joint.0.pos-lim-sw-in
|
||||
|
||||
setp stepgen.1.position-scale [JOINT_1]SCALE
|
||||
setp stepgen.1.steplen 1
|
||||
setp stepgen.1.stepspace 0
|
||||
setp stepgen.1.dirhold 45000
|
||||
setp stepgen.1.dirsetup 26000
|
||||
setp stepgen.1.maxaccel [JOINT_1]STEPGEN_MAXACCEL
|
||||
net ypos-cmd joint.1.motor-pos-cmd => stepgen.1.position-cmd
|
||||
net ypos-fb stepgen.1.position-fb => joint.1.motor-pos-fb
|
||||
net ystep <= stepgen.1.step
|
||||
net ydir <= stepgen.1.dir
|
||||
net yenable joint.1.amp-enable-out => stepgen.1.enable
|
||||
net both-home-y => joint.1.home-sw-in
|
||||
net both-home-y => joint.1.neg-lim-sw-in
|
||||
net both-home-y => joint.1.pos-lim-sw-in
|
||||
|
||||
setp stepgen.2.position-scale [JOINT_2]SCALE
|
||||
setp stepgen.2.steplen 1
|
||||
setp stepgen.2.stepspace 0
|
||||
setp stepgen.2.dirhold 45000
|
||||
setp stepgen.2.dirsetup 26000
|
||||
setp stepgen.2.maxaccel [JOINT_2]STEPGEN_MAXACCEL
|
||||
net zpos-cmd joint.2.motor-pos-cmd => stepgen.2.position-cmd
|
||||
net zpos-fb stepgen.2.position-fb => joint.2.motor-pos-fb
|
||||
net zstep <= stepgen.2.step
|
||||
net zdir <= stepgen.2.dir
|
||||
net zenable joint.2.amp-enable-out => stepgen.2.enable
|
||||
net both-home-z => joint.2.home-sw-in
|
||||
net both-home-z => joint.2.neg-lim-sw-in
|
||||
net both-home-z => joint.2.pos-lim-sw-in
|
||||
|
||||
setp stepgen.3.position-scale [JOINT_3]SCALE
|
||||
setp stepgen.3.steplen 1
|
||||
setp stepgen.3.stepspace 0
|
||||
setp stepgen.3.dirhold 45000
|
||||
setp stepgen.3.dirsetup 26000
|
||||
setp stepgen.3.maxaccel [JOINT_3]STEPGEN_MAXACCEL
|
||||
net apos-cmd joint.3.motor-pos-cmd => stepgen.3.position-cmd
|
||||
net apos-fb stepgen.3.position-fb => joint.3.motor-pos-fb
|
||||
net astep <= stepgen.3.step
|
||||
net adir <= stepgen.3.dir
|
||||
net aenable joint.3.amp-enable-out => stepgen.3.enable
|
||||
net home-a => joint.3.home-sw-in
|
||||
|
||||
#linksp xenable estop-latch.0.ok-out
|
||||
net estop-out <= iocontrol.0.user-enable-out
|
||||
net machine-ok => estop-latch.0.ok-in
|
||||
net estop estop-latch.0.ok-out => iocontrol.0.emc-enable-in
|
||||
net estop-reset iocontrol.0.user-request-enable => estop-latch.0.reset
|
||||
|
||||
loadusr -W hal_manualtoolchange
|
||||
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
|
||||
net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
|
||||
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
|
||||
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
|
||||
|
||||
net probe parport.0.pin-13-in-not => motion.probe-input
|
||||
52
configs/by_machine/tormach/pcnc-1100.xml
Normal file
52
configs/by_machine/tormach/pcnc-1100.xml
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<pyvcp>
|
||||
|
||||
<labelframe text="Spindle Speed">
|
||||
<font>("Helvetica",16)</font>
|
||||
<vbox>
|
||||
<meter>
|
||||
<halpin>"spindle-speed-meter"</halpin>
|
||||
<subtext>"RPM"</subtext>
|
||||
<size>150</size>
|
||||
<min_>0</min_>
|
||||
<max_>5140</max_>
|
||||
<majorscale>1000</majorscale>
|
||||
<minorscale>100</minorscale>
|
||||
</meter>
|
||||
|
||||
<number>
|
||||
<halpin>"spindle-speed-number"</halpin>
|
||||
<font>("Helvetica",14)</font>
|
||||
<format>"4.1f"</format>
|
||||
</number>
|
||||
</vbox>
|
||||
</labelframe>
|
||||
|
||||
<labelframe text="Spindle Gear">
|
||||
<font>("Helvetica",16)</font>
|
||||
|
||||
<vbox>
|
||||
<hbox>
|
||||
<label><text>"High"</text></label>
|
||||
<led>
|
||||
<halpin>"highgear-led"</halpin>
|
||||
<size>20</size>
|
||||
</led>
|
||||
</hbox>
|
||||
|
||||
<hbox>
|
||||
<label><text>"Low"</text></label>
|
||||
<led>
|
||||
<halpin>"lowgear-led"</halpin>
|
||||
<size>20</size>
|
||||
</led>
|
||||
</hbox>
|
||||
|
||||
<button>
|
||||
<text>"Change Gears"</text>
|
||||
<halpin>"gearchange-button"</halpin>
|
||||
</button>
|
||||
</vbox>
|
||||
</labelframe>
|
||||
|
||||
</pyvcp>
|
||||
160
configs/by_machine/tormach/pcnc-770.hal
Normal file
160
configs/by_machine/tormach/pcnc-770.hal
Normal file
@@ -0,0 +1,160 @@
|
||||
|
||||
loadrt [KINS]KINEMATICS
|
||||
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
|
||||
loadrt hal_parport cfg=0x378
|
||||
setp parport.0.reset-time 4000
|
||||
loadrt stepgen step_type=0,0,0,0,0 ctrl_type=p,p,p,p,v
|
||||
|
||||
loadrt estop_latch
|
||||
net charge-pump <= estop-latch.0.watchdog
|
||||
|
||||
addf parport.0.read base-thread
|
||||
addf stepgen.make-pulses base-thread
|
||||
addf estop-latch.0 base-thread
|
||||
addf parport.0.write base-thread
|
||||
addf parport.0.reset 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
|
||||
net spindle-cw <= spindle.0.forward
|
||||
net coolant-flood <= iocontrol.0.coolant-flood
|
||||
net spindle-on spindle.0.on stepgen.4.enable
|
||||
|
||||
|
||||
#
|
||||
# Spindle gear selection code.
|
||||
#
|
||||
# emc2 (rpm) => gearchange => stepgen (step & dir) => spindle
|
||||
# low gear: 175-3250 rpm, 201.3 ppr, 10900 Hz => 3250 rpm, 3.354 Hz/rpm
|
||||
# high gear: 525-10200 rpm, 64.1 ppr, 10900 Hz => 10200 rpm, 1.069 Hz/rpm
|
||||
# low/high ppr = 201.3/64.1 = 3.140
|
||||
#
|
||||
|
||||
setp stepgen.4.maxaccel 20000
|
||||
setp stepgen.4.maxvel 3250
|
||||
setp stepgen.4.position-scale 3.354
|
||||
net spindle-pwm stepgen.4.step parport.0.pin-01-out
|
||||
setp stepgen.4.stepspace 0
|
||||
setp stepgen.4.steplen 1
|
||||
setp parport.0.pin-01-out-reset 1
|
||||
loadrt or2 count=1
|
||||
linksp spindle-cw or2.0.in0
|
||||
net spindle-ccw spindle.0.reverse or2.0.in1
|
||||
|
||||
loadrt toggle count=1
|
||||
loadrt not count=1
|
||||
loadrt gearchange count=1
|
||||
addf toggle.0 servo-thread
|
||||
addf not.0 servo-thread
|
||||
addf gearchange.0 servo-thread
|
||||
setp toggle.0.debounce 0
|
||||
setp gearchange.0.min1 175
|
||||
setp gearchange.0.max1 3250
|
||||
setp gearchange.0.min2 525
|
||||
setp gearchange.0.max2 10200
|
||||
setp gearchange.0.scale2 3.140
|
||||
# we're not controlling the direction with the gearchanger, so reverse isn't set
|
||||
# and the dir-in and dir-out pins aren't linked
|
||||
net spindle-speed-raw spindle.0.speed-out gearchange.0.speed-in
|
||||
net spindle-speed gearchange.0.speed-out stepgen.4.velocity-cmd
|
||||
|
||||
net xdir => parport.0.pin-02-out
|
||||
setp parport.0.pin-03-out-invert 1
|
||||
net xstep => parport.0.pin-03-out
|
||||
setp parport.0.pin-03-out-reset 1
|
||||
net ydir => parport.0.pin-04-out
|
||||
setp parport.0.pin-05-out-invert 1
|
||||
net ystep => parport.0.pin-05-out
|
||||
setp parport.0.pin-05-out-reset 1
|
||||
setp parport.0.pin-06-out-invert 1
|
||||
net zdir => parport.0.pin-06-out
|
||||
setp parport.0.pin-07-out-invert 1
|
||||
net zstep => parport.0.pin-07-out
|
||||
setp parport.0.pin-07-out-reset 1
|
||||
net adir => parport.0.pin-08-out
|
||||
setp parport.0.pin-09-out-invert 1
|
||||
net astep => parport.0.pin-09-out
|
||||
setp parport.0.pin-09-out-reset 1
|
||||
net coolant-flood => parport.0.pin-14-out
|
||||
net spindle-cw => parport.0.pin-16-out
|
||||
net charge-pump => parport.0.pin-17-out
|
||||
|
||||
net both-home-x <= parport.0.pin-10-in
|
||||
net both-home-y <= parport.0.pin-11-in
|
||||
net both-home-z <= parport.0.pin-12-in
|
||||
net home-a <= parport.0.pin-13-in
|
||||
net machine-ok <= parport.0.pin-15-in-not
|
||||
|
||||
setp stepgen.0.position-scale [JOINT_0]SCALE
|
||||
setp stepgen.0.steplen 1
|
||||
setp stepgen.0.stepspace 0
|
||||
setp stepgen.0.dirhold 45000
|
||||
setp stepgen.0.dirsetup 26000
|
||||
setp stepgen.0.maxaccel [JOINT_0]STEPGEN_MAXACCEL
|
||||
net xpos-cmd joint.0.motor-pos-cmd => stepgen.0.position-cmd
|
||||
net xpos-fb stepgen.0.position-fb => joint.0.motor-pos-fb
|
||||
net xstep <= stepgen.0.step
|
||||
net xdir <= stepgen.0.dir
|
||||
net xenable joint.0.amp-enable-out => stepgen.0.enable
|
||||
net both-home-x => joint.0.home-sw-in
|
||||
net both-home-x => joint.0.neg-lim-sw-in
|
||||
net both-home-x => joint.0.pos-lim-sw-in
|
||||
|
||||
setp stepgen.1.position-scale [JOINT_1]SCALE
|
||||
setp stepgen.1.steplen 1
|
||||
setp stepgen.1.stepspace 0
|
||||
setp stepgen.1.dirhold 45000
|
||||
setp stepgen.1.dirsetup 26000
|
||||
setp stepgen.1.maxaccel [JOINT_1]STEPGEN_MAXACCEL
|
||||
net ypos-cmd joint.1.motor-pos-cmd => stepgen.1.position-cmd
|
||||
net ypos-fb stepgen.1.position-fb => joint.1.motor-pos-fb
|
||||
net ystep <= stepgen.1.step
|
||||
net ydir <= stepgen.1.dir
|
||||
net yenable joint.1.amp-enable-out => stepgen.1.enable
|
||||
net both-home-y => joint.1.home-sw-in
|
||||
net both-home-y => joint.1.neg-lim-sw-in
|
||||
net both-home-y => joint.1.pos-lim-sw-in
|
||||
|
||||
setp stepgen.2.position-scale [JOINT_2]SCALE
|
||||
setp stepgen.2.steplen 1
|
||||
setp stepgen.2.stepspace 0
|
||||
setp stepgen.2.dirhold 45000
|
||||
setp stepgen.2.dirsetup 26000
|
||||
setp stepgen.2.maxaccel [JOINT_2]STEPGEN_MAXACCEL
|
||||
net zpos-cmd joint.2.motor-pos-cmd => stepgen.2.position-cmd
|
||||
net zpos-fb stepgen.2.position-fb => joint.2.motor-pos-fb
|
||||
net zstep <= stepgen.2.step
|
||||
net zdir <= stepgen.2.dir
|
||||
net zenable joint.2.amp-enable-out => stepgen.2.enable
|
||||
net both-home-z => joint.2.home-sw-in
|
||||
net both-home-z => joint.2.neg-lim-sw-in
|
||||
net both-home-z => joint.2.pos-lim-sw-in
|
||||
|
||||
setp stepgen.3.position-scale [JOINT_3]SCALE
|
||||
setp stepgen.3.steplen 1
|
||||
setp stepgen.3.stepspace 0
|
||||
setp stepgen.3.dirhold 45000
|
||||
setp stepgen.3.dirsetup 26000
|
||||
setp stepgen.3.maxaccel [JOINT_3]STEPGEN_MAXACCEL
|
||||
net apos-cmd joint.3.motor-pos-cmd => stepgen.3.position-cmd
|
||||
net apos-fb stepgen.3.position-fb => joint.3.motor-pos-fb
|
||||
net astep <= stepgen.3.step
|
||||
net adir <= stepgen.3.dir
|
||||
net aenable joint.3.amp-enable-out => stepgen.3.enable
|
||||
net home-a => joint.3.home-sw-in
|
||||
|
||||
#linksp xenable estop-latch.0.ok-out
|
||||
net estop-out <= iocontrol.0.user-enable-out
|
||||
net machine-ok => estop-latch.0.ok-in
|
||||
net estop estop-latch.0.ok-out => iocontrol.0.emc-enable-in
|
||||
net estop-reset iocontrol.0.user-request-enable => estop-latch.0.reset
|
||||
|
||||
loadusr -W hal_manualtoolchange
|
||||
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
|
||||
net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
|
||||
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
|
||||
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
|
||||
|
||||
net probe parport.0.pin-13-in-not => motion.probe-input
|
||||
157
configs/by_machine/tormach/pcnc-770.ini
Normal file
157
configs/by_machine/tormach/pcnc-770.ini
Normal file
@@ -0,0 +1,157 @@
|
||||
[EMC]
|
||||
# The version string for this INI file.
|
||||
VERSION = 1.1
|
||||
MACHINE = PCNC-770
|
||||
DEBUG = 0
|
||||
|
||||
[DISPLAY]
|
||||
DISPLAY = axis
|
||||
POSITION_OFFSET = RELATIVE
|
||||
POSITION_FEEDBACK = ACTUAL
|
||||
MAX_FEED_OVERRIDE = 1.2
|
||||
INTRO_GRAPHIC = linuxcnc.gif
|
||||
INTRO_TIME = 5
|
||||
PROGRAM_PREFIX = ../../nc_files
|
||||
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
|
||||
PYVCP = pcnc-770.xml
|
||||
DEFAULT_LINEAR_VELOCITY = 0.2
|
||||
DEFAULT_ANGULAR_VELOCITY = 0.1
|
||||
|
||||
[FILTER]
|
||||
PROGRAM_EXTENSION = .nc,.NC G-Code file
|
||||
PROGRAM_EXTENSION = .tap,.TAP G-Code file
|
||||
PROGRAM_EXTENSION = .txt,.TXT G-Code file
|
||||
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
|
||||
png = image-to-gcode
|
||||
gif = image-to-gcode
|
||||
jpg = image-to-gcode
|
||||
PROGRAM_EXTENSION = .py Python Script
|
||||
py = python3
|
||||
|
||||
[RS274NGC]
|
||||
PARAMETER_FILE = emc.var
|
||||
|
||||
[EMCMOT]
|
||||
EMCMOT = motmod
|
||||
COMM_TIMEOUT = 1.0
|
||||
BASE_PERIOD = 33333
|
||||
SERVO_PERIOD = 1000000
|
||||
|
||||
[TASK]
|
||||
TASK = milltask
|
||||
CYCLE_TIME = 0.010
|
||||
|
||||
[HAL]
|
||||
HALFILE = pcnc-770.hal
|
||||
POSTGUI_HALFILE = custom_postgui.hal
|
||||
|
||||
[HALUI]
|
||||
#No Content
|
||||
|
||||
[TRAJ]
|
||||
COORDINATES = X Y Z A
|
||||
MAX_ANGULAR_VELOCITY = 30.00
|
||||
DEFAULT_ANGULAR_VELOCITY = 3.00
|
||||
LINEAR_UNITS = inch
|
||||
ANGULAR_UNITS = degree
|
||||
DEFAULT_LINEAR_VELOCITY = 0.13
|
||||
MAX_LINEAR_VELOCITY = 2.25
|
||||
NO_FORCE_HOMING = 1
|
||||
|
||||
[EMCIO]
|
||||
TOOL_TABLE = tool.tbl
|
||||
|
||||
[KINS]
|
||||
KINEMATICS = trivkins
|
||||
JOINTS = 4
|
||||
|
||||
[AXIS_X]
|
||||
MIN_LIMIT = -0.000001
|
||||
MAX_LIMIT = 14.0
|
||||
MAX_VELOCITY = 2.25
|
||||
MAX_ACCELERATION = 15
|
||||
|
||||
[JOINT_0]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = 2.25
|
||||
MAX_ACCELERATION = 15
|
||||
STEPGEN_MAXACCEL = 15.75
|
||||
SCALE = 10900.0
|
||||
FERROR = 0.05
|
||||
MIN_FERROR = 0.01
|
||||
MIN_LIMIT = -0.000001
|
||||
MAX_LIMIT = 14.0
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = -0.750000
|
||||
HOME_LATCH_VEL = 0.050000
|
||||
HOME_IGNORE_LIMITS = YES
|
||||
HOME_SEQUENCE = 1
|
||||
|
||||
[AXIS_Y]
|
||||
MIN_LIMIT = -0.000001
|
||||
MAX_LIMIT = 7.5
|
||||
MAX_VELOCITY = 2.25
|
||||
MAX_ACCELERATION = 15
|
||||
|
||||
[JOINT_1]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = 2.25
|
||||
MAX_ACCELERATION = 15
|
||||
STEPGEN_MAXACCEL = 15.75
|
||||
SCALE = 10900.0
|
||||
FERROR = 0.05
|
||||
MIN_FERROR = 0.01
|
||||
MIN_LIMIT = -0.000001
|
||||
MAX_LIMIT = 7.5
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = -0.750000
|
||||
HOME_LATCH_VEL = 0.050000
|
||||
HOME_IGNORE_LIMITS = YES
|
||||
HOME_SEQUENCE = 1
|
||||
|
||||
[AXIS_Z]
|
||||
MIN_LIMIT = -13.25
|
||||
MAX_LIMIT = 0.000001
|
||||
MAX_VELOCITY = 1.666
|
||||
MAX_ACCELERATION = 10.0
|
||||
|
||||
[JOINT_2]
|
||||
TYPE = LINEAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = 1.666
|
||||
MAX_ACCELERATION = 10.0
|
||||
STEPGEN_MAXACCEL = 10.5
|
||||
SCALE = 10900.0
|
||||
FERROR = 0.05
|
||||
MIN_FERROR = 0.01
|
||||
MIN_LIMIT = -13.25
|
||||
MAX_LIMIT = 0.000001
|
||||
HOME_OFFSET = 0.0
|
||||
HOME_SEARCH_VEL = 0.600000
|
||||
HOME_LATCH_VEL = -0.050000
|
||||
HOME_IGNORE_LIMITS = YES
|
||||
HOME_SEQUENCE = 0
|
||||
|
||||
[AXIS_A]
|
||||
MIN_LIMIT = -9999.0
|
||||
MAX_LIMIT = 9999.0
|
||||
MAX_VELOCITY = 30.0
|
||||
MAX_ACCELERATION = 400.0
|
||||
|
||||
[JOINT_3]
|
||||
TYPE = ANGULAR
|
||||
HOME = 0.0
|
||||
MAX_VELOCITY = 30.0
|
||||
MAX_ACCELERATION = 400.0
|
||||
STEPGEN_MAXACCEL = 420.0
|
||||
SCALE = 500.0
|
||||
FERROR = 1
|
||||
MIN_FERROR = .25
|
||||
MIN_LIMIT = -9999.0
|
||||
MAX_LIMIT = 9999.0
|
||||
HOME_OFFSET = 0.000000
|
||||
HOME_SEARCH_VEL = 0.00000
|
||||
HOME_LATCH_VEL = 0.00000
|
||||
HOME_SEQUENCE = 1
|
||||
52
configs/by_machine/tormach/pcnc-770.xml
Normal file
52
configs/by_machine/tormach/pcnc-770.xml
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<pyvcp>
|
||||
|
||||
<labelframe text="Spindle Speed">
|
||||
<font>("Helvetica",16)</font>
|
||||
<vbox>
|
||||
<meter>
|
||||
<halpin>"spindle-speed-meter"</halpin>
|
||||
<subtext>"RPM"</subtext>
|
||||
<size>150</size>
|
||||
<min_>0</min_>
|
||||
<max_>10200</max_>
|
||||
<majorscale>1000</majorscale>
|
||||
<minorscale>100</minorscale>
|
||||
</meter>
|
||||
|
||||
<number>
|
||||
<halpin>"spindle-speed-number"</halpin>
|
||||
<font>("Helvetica",14)</font>
|
||||
<format>"4.1f"</format>
|
||||
</number>
|
||||
</vbox>
|
||||
</labelframe>
|
||||
|
||||
<labelframe text="Spindle Gear">
|
||||
<font>("Helvetica",16)</font>
|
||||
|
||||
<vbox>
|
||||
<hbox>
|
||||
<label><text>"High"</text></label>
|
||||
<led>
|
||||
<halpin>"highgear-led"</halpin>
|
||||
<size>20</size>
|
||||
</led>
|
||||
</hbox>
|
||||
|
||||
<hbox>
|
||||
<label><text>"Low"</text></label>
|
||||
<led>
|
||||
<halpin>"lowgear-led"</halpin>
|
||||
<size>20</size>
|
||||
</led>
|
||||
</hbox>
|
||||
|
||||
<button>
|
||||
<text>"Change Gears"</text>
|
||||
<halpin>"gearchange-button"</halpin>
|
||||
</button>
|
||||
</vbox>
|
||||
</labelframe>
|
||||
|
||||
</pyvcp>
|
||||
4
configs/by_machine/tormach/tool.tbl
Normal file
4
configs/by_machine/tormach/tool.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