Help with gantry 3-d printer setup

More
7 years 5 months ago #133064 by chowderhead
Love LinuxCNC, and fighting a lot of frustration as I can't seem to get a gantry printer setup. Attached are ini and hal files. X- and Y-axes work, but a joint 2 following error occurs immediately upon attempting to move the Z-axis, same error for joint 6 after a couple seconds of leaning on the jog buttons.

Any help is most appreciated.

Please Log in to join the conversation.

More
7 years 5 months ago #133065 by aleksamc
As I anderstood right. You have problem with Y1 axis when move Z axis, yes?
At your place, I would rather make standart config from stepconfig and joint Y1 (step and dir) wired phisicly parallel to Y drive.
Such solution works perfectly and makes for few seconds.

Please Log in to join the conversation.

More
7 years 5 months ago #133083 by chowderhead
I did that, but there should be a solution in software. I'm not a fan of connecting two motors to one controller. Regardless, I still get the following error with joint 6, so there's clearly something wrong in my configuration.

Please Log in to join the conversation.

More
7 years 5 months ago #133085 by Todd Zuercher
You really should probably move your configuration to the Master version of Linuxcnc (2.8-pre). In that version of Linuxcnc you can assign multiple joints to an axis and home and square a gantry axis with separate joints. Also joint numbers are not as specifically tied to axis letters.

Your joint 6 following error problem is probably because you have specified an axis U. In versions before 2.8, joint numbers are specifically tied to axis letters, You must have an [AXIS_N] section in the ini file for every joint even ones not used. In your config you specified 7 joints, so you must have 7 of those [AXIS_N] sections in your ini file (0-6). You don't need to have anything under the ones you are not using, but the headings must all exist in your ini file.
like this:
Code:
#X-axis [AXIS_0] TYPE = LINEAR HOME = 0.0 MAX_VELOCITY = 200.0 MAX_ACCELERATION = 750.0 STEPGEN_MAXACCEL = 1500 SCALE = 68.35 FERROR = 1 MIN_FERROR = .25 MIN_LIMIT = -1500 MAX_LIMIT = 1500 HOME_OFFSET = 0.0 #Y-axis [AXIS_1] TYPE = LINEAR HOME = 0.0 MAX_VELOCITY = 200.0 MAX_ACCELERATION = 750.0 STEPGEN_MAXACCEL = 1500 SCALE = 68.35 FERROR = 1 MIN_FERROR = .25 MIN_LIMIT = -2000 MAX_LIMIT = 2000 HOME_OFFSET = 0.0 #Z-axis [AXIS_2] TYPE = LINEAR HOME = 0.0 MAX_VELOCITY = 25.0 MAX_ACCELERATION = 750.0 STEPGEN_MAXACCEL = 1500 SCALE = 78.74 FERROR = 1 MIN_FERROR = .25 MIN_LIMIT = -800 MAX_LIMIT = 800 HOME_OFFSET = 0.0 [AXIS_3] [AXIS_4] [AXIS_5] #U-axis [AXIS_6] TYPE = LINEAR HOME = 0.0 MAX_VELOCITY = 80.0 MAX_ACCELERATION = 750.0 STEPGEN_MAXACCEL = 1500 SCALE = 95 FERROR = 1 MIN_FERROR = .25 MIN_LIMIT = -1e99 MAX_LIMIT = 1e99 HOME_OFFSET = 0.0

Please Log in to join the conversation.

More
7 years 5 months ago #133086 by chowderhead
Thank you. Placed the additional AXIS sections in the ini, updated the hal to point to AXIS_6. Same issue. :(

Please Log in to join the conversation.

More
7 years 5 months ago #133088 by Todd Zuercher
You also need to change the U section in your hal file to match so it points to the [AXIS_6] section of your ini.
Like this
Code:
#U-axis******* setp stepgen.4.position-scale [AXIS_6]SCALE setp stepgen.4.steplen 1 setp stepgen.4.stepspace 0 setp stepgen.4.dirhold 35335 setp stepgen.4.dirsetup 35335 setp stepgen.4.maxaccel [AXIS_6]STEPGEN_MAXACCEL net upos-cmd axis.4.motor-pos-cmd => stepgen.4.position-cmd net upos-fb stepgen.4.position-fb => axis.4.motor-pos-fb net ustep <= stepgen.4.step net udir <= stepgen.4.dir net uenable axis.4.amp-enable-out => stepgen.4.enable

Please Log in to join the conversation.

More
7 years 5 months ago #133089 by chowderhead
Yep, did that, too (mentioned that in previous reply). Same error.

Please Log in to join the conversation.

More
7 years 5 months ago #133092 by Todd Zuercher
Argh, missed some stuff in the U section.
Try this.
Code:
#U-axis******* setp stepgen.4.position-scale [AXIS_6]SCALE setp stepgen.4.steplen 1 setp stepgen.4.stepspace 0 setp stepgen.4.dirhold 35335 setp stepgen.4.dirsetup 35335 setp stepgen.4.maxaccel [AXIS_6]STEPGEN_MAXACCEL net upos-cmd axis.6.motor-pos-cmd => stepgen.4.position-cmd net upos-fb stepgen.4.position-fb => axis.6.motor-pos-fb net ustep <= stepgen.4.step net udir <= stepgen.4.dir net uenable axis.6.amp-enable-out => stepgen.4.enable

Please Log in to join the conversation.

More
7 years 5 months ago #133167 by chowderhead
The screen name is no accident. Thanks for pointing out the errors in my ways! Working like a charm.

Please Log in to join the conversation.

Time to create page: 0.278 seconds
Powered by Kunena Forum