Help with gantry 3-d printer setup
- chowderhead
- Offline
- Senior Member
-
Less
More
- Posts: 60
- Thank you received: 12
07 May 2019 17:38 #133064
by chowderhead
Help with gantry 3-d printer setup was created 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.
Any help is most appreciated.
Please Log in or Create an account to join the conversation.
- aleksamc
-
- Offline
- Platinum Member
-
Less
More
- Posts: 568
- Thank you received: 67
07 May 2019 17:49 #133065
by aleksamc
Replied by aleksamc on topic Help with gantry 3-d printer setup
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.
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 or Create an account to join the conversation.
- chowderhead
- Offline
- Senior Member
-
Less
More
- Posts: 60
- Thank you received: 12
07 May 2019 19:27 #133083
by chowderhead
Replied by chowderhead on topic Help with gantry 3-d printer setup
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 or Create an account to join the conversation.
- Todd Zuercher
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5012
- Thank you received: 1464
07 May 2019 19:58 #133085
by Todd Zuercher
Replied by Todd Zuercher on topic Help with gantry 3-d printer setup
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:
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:
#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 or Create an account to join the conversation.
- chowderhead
- Offline
- Senior Member
-
Less
More
- Posts: 60
- Thank you received: 12
07 May 2019 20:12 #133086
by chowderhead
Replied by chowderhead on topic Help with gantry 3-d printer setup
Thank you. Placed the additional AXIS sections in the ini, updated the hal to point to AXIS_6. Same issue.

Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5012
- Thank you received: 1464
07 May 2019 20:24 #133088
by Todd Zuercher
Replied by Todd Zuercher on topic Help with gantry 3-d printer setup
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
Like this
#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 or Create an account to join the conversation.
- chowderhead
- Offline
- Senior Member
-
Less
More
- Posts: 60
- Thank you received: 12
07 May 2019 20:32 #133089
by chowderhead
Replied by chowderhead on topic Help with gantry 3-d printer setup
Yep, did that, too (mentioned that in previous reply). Same error.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5012
- Thank you received: 1464
07 May 2019 20:51 #133092
by Todd Zuercher
Replied by Todd Zuercher on topic Help with gantry 3-d printer setup
Argh, missed some stuff in the U section.
Try this.
Try this.
#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 or Create an account to join the conversation.
- chowderhead
- Offline
- Senior Member
-
Less
More
- Posts: 60
- Thank you received: 12
08 May 2019 16:39 #133167
by chowderhead
Replied by chowderhead on topic Help with gantry 3-d printer setup
The screen name is no accident. Thanks for pointing out the errors in my ways! Working like a charm.
Please Log in or Create an account to join the conversation.
Time to create page: 0.064 seconds