joint 2 following error

More
12 years 11 months ago #40499 by garymcrobertpdx
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?

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #40501 by aike
Replied by aike on topic joint 2 following error
increase FERROR till 1,0

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #40502 by PCW
Replied by PCW on topic joint 2 following error
This looks quite strange:
DIRSETUP = 200000

Can your drives really have a 200 usec dir setup time?

Also this doesn't look right:

MAX_ACCELERATION = 3.0
and
setp hm2_5i25.0.stepgen.07.maxaccel 3.1

stepgen maxaccel is suggested to be 1.25 * machine maxaccel

so setp hm2_5i25.0.stepgen.07.maxaccel 3.75

may fix the problem

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #40503 by garymcrobertpdx
OK I will try tweaking the values. Is the wizard prone to generating
incorrect velocity and or acceleration values? Since I did not change
any of these values you see them as they were created by Pncconf.

Thanks

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #40515 by cmorley
Replied by cmorley on topic joint 2 following error
What version of linuxcnc are you using?
I would suggest the latest version. 2.5.3

Chris M

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #40517 by garymcrobertpdx
I adjusted setp hm2_5i25.0.stepgen.07.maxaccel to = 3.75
This improved things but still had a following error during rigid
tapping.

I Then set FERROR = 0.010 and MIN_FERROR = 0.001
so far so good no further errors.

I am using 2.6.0 pre it offers a remapping option which I need
for auto tool change.


Thanks much for the help

Please Log in or Create an account to join the conversation.

Time to create page: 0.110 seconds
Powered by Kunena Forum