A new problem has appeared, I am experiencing joint 2 following errors every
ten or twelve minutes about 3/4 of the way through drilling 37 holes causing
a machine shut down.
I am using a Mesa 5i25 board & step motors the configuration via Pncconfig
and mostly unaltered The ini for the axis looks like this.
#********************
# Axis Z
#********************
[AXIS_2]
TYPE = LINEAR
HOME = 0.0
FERROR = 0.005
MIN_FERROR = 0.0005
MAX_VELOCITY = 1.622
MAX_ACCELERATION = 3.0
# these are in nanoseconds
DIRSETUP = 200000
DIRHOLD = 1000
STEPLEN = 1000
STEPSPACE = 1000
STEP_SCALE = 20000.0
MIN_LIMIT = -10.0
MAX_LIMIT = 10.0
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 1.000000
HOME_LATCH_VEL = 0.100000
HOME_FINAL_VEL = 0.000000
HOME_USE_INDEX = NO
HOME_SEQUENCE = 0
The HAL looks like this:
#*******************
# AXIS Z
#*******************
# Step Gen signals/setup
setp hm2_5i25.0.stepgen.07.dirsetup [AXIS_2]DIRSETUP
setp hm2_5i25.0.stepgen.07.dirhold [AXIS_2]DIRHOLD
setp hm2_5i25.0.stepgen.07.steplen [AXIS_2]STEPLEN
setp hm2_5i25.0.stepgen.07.stepspace [AXIS_2]STEPSPACE
setp hm2_5i25.0.stepgen.07.position-scale [AXIS_2]STEP_SCALE
setp hm2_5i25.0.stepgen.07.step_type 0
setp hm2_5i25.0.stepgen.07.control-type 0
setp hm2_5i25.0.stepgen.07.maxaccel 3.1
setp hm2_5i25.0.stepgen.07.maxvel 2.1
net z-pos-fb axis.2.motor-pos-fb <= hm2_5i25.0.stepgen.07.position-fb
net z-pos-cmd axis.2.motor-pos-cmd => hm2_5i25.0.stepgen.07.position-cmd
net z-enable axis.2.amp-enable-out => hm2_5i25.0.stepgen.07.enable
# ---setup home / limit switch signals---
net home-z => axis.2.home-sw-in
net z-neg-limit => axis.2.neg-lim-sw-in
net z-pos-limit => axis.2.pos-lim-sw-in
Tried increasing FERROR = 0.005 to 0.010 this had no effect.
By the book [STEPLEN = 1000 + STEPSPACE = 1000 ] = 0.000002 sec / step
[1 / STEP_SCALE = 20000.0 ] = 0.000050 inch / step
[1 / 0.000002 sec / step] = 500,000 step / sec
0.000050 inch / step * 500,000 step / sec = 25 inches / second
Way faster than maxvel requires
Any ideas why this is happing and suggestions for a fix?