How many uncoordinated axis can linuxcnc drive?
- jimmyrig
- Offline
- Premium Member
-
Less
More
- Posts: 125
- Thank you received: 39
12 Jun 2025 05:52 #330193
by jimmyrig
How many uncoordinated axis can linuxcnc drive? was created by jimmyrig
So we have the 9 normal ones.....problem is I need 16axis total.
Found a machine that needs a new controller and peaked my interest on how would I do it..... It has 20ish stepper motors on it
It's a machining version of a progressive stamping die. Where 4 drills and a tap station are positioned into place via steppers than ran pneumatically after that. Thus most of the axis are used at the start of the program... after that they aren't used. These do have working homing switches.
A saw, bar feeder, bar magazine, and prob the tap station are the things that need live axis/gcode control..... But none of the axis needs to be coordinated As everything fires (drill, tap, saw) then the bar feeder advances one station.
The lame way would be to have 8 solenoids (3PDT) connect the step, direction, and home switch pins for each of those 4 drills (2 axis each), then home and position it. So all 8 axis could be "one axis" in software..... Seems complex.
Surely a software solution exists. Custom M code?
Will use gcode for as much as possible but not opposed to Python or hal scripts.
Thanks
Found a machine that needs a new controller and peaked my interest on how would I do it..... It has 20ish stepper motors on it
It's a machining version of a progressive stamping die. Where 4 drills and a tap station are positioned into place via steppers than ran pneumatically after that. Thus most of the axis are used at the start of the program... after that they aren't used. These do have working homing switches.
A saw, bar feeder, bar magazine, and prob the tap station are the things that need live axis/gcode control..... But none of the axis needs to be coordinated As everything fires (drill, tap, saw) then the bar feeder advances one station.
The lame way would be to have 8 solenoids (3PDT) connect the step, direction, and home switch pins for each of those 4 drills (2 axis each), then home and position it. So all 8 axis could be "one axis" in software..... Seems complex.
Surely a software solution exists. Custom M code?
Will use gcode for as much as possible but not opposed to Python or hal scripts.
Thanks
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4446
- Thank you received: 1991
12 Jun 2025 06:15 #330195
by Aciera
Replied by Aciera on topic How many uncoordinated axis can linuxcnc drive?
Have a look at 'extra joints':
linuxcnc.org/docs/html/man/man9/motion.9.html
The maximum number of joints is 16.
linuxcnc.org/docs/html/man/man9/motion.9.html
The maximum number of joints is 16.
Please Log in or Create an account to join the conversation.
- jimmyrig
- Offline
- Premium Member
-
Less
More
- Posts: 125
- Thank you received: 39
13 Jun 2025 13:46 - 13 Jun 2025 13:47 #330250
by jimmyrig
Replied by jimmyrig on topic How many uncoordinated axis can linuxcnc drive?
Ahhh thanks, that extra joints is what I need for sure.
Hoping I can make a custom M code to control them
Also looks like the number of joints can be increased if recompiled. Per the docs.
The limits for the following items are compile-time settings:
num_joints: Maximum number of joints is set by EMCMOT_MAX_JOINTS.
Will give this a shot, thanks
Hoping I can make a custom M code to control them
Also looks like the number of joints can be increased if recompiled. Per the docs.
The limits for the following items are compile-time settings:
num_joints: Maximum number of joints is set by EMCMOT_MAX_JOINTS.
Will give this a shot, thanks
Last edit: 13 Jun 2025 13:47 by jimmyrig.
Please Log in or Create an account to join the conversation.
- jimmyrig
- Offline
- Premium Member
-
Less
More
- Posts: 125
- Thank you received: 39
11 Jul 2025 07:24 #331691
by jimmyrig
Replied by jimmyrig on topic How many uncoordinated axis can linuxcnc drive?
I tried setting up extra joints but am struggling to run them in gcode with custom M codes. Does anyone know the best way to do this? Just need to home and move into position.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4446
- Thank you received: 1991
11 Jul 2025 17:29 #331706
by Aciera
Replied by Aciera on topic How many uncoordinated axis can linuxcnc drive?
You will need a custom mcode that calls an executable script that uses 'halcmd' to set the appropriate hal pins.
Here is an example that does this but for different hal pins so you will need to modify to meet your needs:
forum.linuxcnc.org/21-axis/53531-change-the-axis-limit#307778
Here is an example that does this but for different hal pins so you will need to modify to meet your needs:
forum.linuxcnc.org/21-axis/53531-change-the-axis-limit#307778
Please Log in or Create an account to join the conversation.
Time to create page: 0.055 seconds