Configurate Slave Axis
- fedemecanica
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
20 Sep 2012 16:34 #24483
by fedemecanica
Replied by fedemecanica on topic Re:Configurate Slave Axis
that's right is not really a 4th axis....
but is connected in other pins than Yaxis
im gonna try what JT said
but is connected in other pins than Yaxis
im gonna try what JT said
Please Log in or Create an account to join the conversation.
- Pysiek
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
28 Dec 2013 00:29 #42067
by Pysiek
Replied by Pysiek on topic Configurate Slave Axis
I have same problem here. Except I use two motors and two ballscrews to run my Y axis. This setup preventing bending. I use Mach3 trial version and would like to try Linuxcnc also. How do I slave the two motors together? I Mach3 it was very easy but in LinuxCNC I do not see an option. Both motors are connected to separate pins on my breakout board.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23543
- Thank you received: 5015
28 Dec 2013 02:01 #42069
by andypugh
To _literally_ slave the two motors together, allocate Y-step and Y-dir to both sets of pins.
The complications arise when you want to auto-square to the limit switches, and if it is absolutely necessary to _never_ rack the gantry at all.
It then becomes really complicated if you have encoders with index, and horrible if the indexes are not aligned.
If we ever work out the perfect way to home a gantry then I think we will see it implemented as an automatic behaviour.
Replied by andypugh on topic Configurate Slave Axis
How do I slave the two motors together?
To _literally_ slave the two motors together, allocate Y-step and Y-dir to both sets of pins.
The complications arise when you want to auto-square to the limit switches, and if it is absolutely necessary to _never_ rack the gantry at all.
It then becomes really complicated if you have encoders with index, and horrible if the indexes are not aligned.
If we ever work out the perfect way to home a gantry then I think we will see it implemented as an automatic behaviour.
Please Log in or Create an account to join the conversation.
- Pysiek
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
28 Dec 2013 02:30 #42071
by Pysiek
Replied by Pysiek on topic Configurate Slave Axis
I will try that and let you know if it worked.
Please Log in or Create an account to join the conversation.
- mwe
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
01 Jan 2014 13:57 #42256
by mwe
Replied by mwe on topic Configurate Slave Axis
I too am looking for a solution to drive this two steppers on a gantry axis configuration. I would have thought this would be common enough to have a solution implemented already (having been away from EMC for about 10 years). One configuration of the machine parts I have has two steppers and two home switches. So there is no built in code to home and check both switches for skew, missed step accumulation and fix it automatically? Slaving two drives together off common outputs is not going to cut it. Please tell me I am not going to have to write code before I can use EMC.

Please Log in or Create an account to join the conversation.
- Mike_Eitel
-
- Offline
- Platinum Member
-
Less
More
- Posts: 1126
- Thank you received: 184
01 Jan 2014 19:29 #42260
by Mike_Eitel
Replied by Mike_Eitel on topic Configurate Slave Axis
Hi
I do not have 2 motors on one axis..... But i read that problem quite often. Here a hack I'd do it.
Use two configs.
In the first you have only the two axis (x/y) you want to home. U use this only in case you fear to be none square!
With normal g code run both slowly into home=end switch. G1 Fslow Xbig Ybig. Until one of the switches produce the expected error.
Then retract both axis parallel a bit out of switch. Than hit home button.
Home first x than y . Slowly in short distance so you do not bent too much.
After that you use the normal configuration with one home switch and parallel end switches..
See no reason to square again if you only want to find home position.
My 5 cents.
Mike
I do not have 2 motors on one axis..... But i read that problem quite often. Here a hack I'd do it.
Use two configs.
In the first you have only the two axis (x/y) you want to home. U use this only in case you fear to be none square!
With normal g code run both slowly into home=end switch. G1 Fslow Xbig Ybig. Until one of the switches produce the expected error.
Then retract both axis parallel a bit out of switch. Than hit home button.
Home first x than y . Slowly in short distance so you do not bent too much.
After that you use the normal configuration with one home switch and parallel end switches..
See no reason to square again if you only want to find home position.
My 5 cents.
Mike
Please Log in or Create an account to join the conversation.
- Rick G
-
- Offline
- Junior Member
-
Less
More
- Posts: 27
- Thank you received: 155
01 Jan 2014 20:03 #42262
by Rick G
Replied by Rick G on topic Configurate Slave Axis
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23543
- Thank you received: 5015
01 Jan 2014 21:34 #42264
by andypugh
Have a look in the sample configs at sim/gantry. Gantry-hs should give a better demonstration of how homing to the limit switches works.
There is also a stepper-gantry sample configuration with a parallel port setup included.
The 5axis/5axis sample configuration is also a gantry arrangement which includes a vismach simulation of the machine too.
All these examples have one thing in common, they use the non-trivial gantrykins setup which means that the machines starts up with all axes independent, and they need to be homed before you can switch to the XYZ coordinate system.
(Which you do with the $ key or from the "View" menu.)
For a simple cartesian gantry this is all a little over-complex, and one of the development branches (joints_axes4) contains a "gentrivkins" kinematics module that allows arbitrary mapping of joints to axes without having to switch between "Joint" and "World" mode.
Replied by andypugh on topic Configurate Slave Axis
I too am looking for a solution to drive this two steppers on a gantry axis configuration.
Have a look in the sample configs at sim/gantry. Gantry-hs should give a better demonstration of how homing to the limit switches works.
There is also a stepper-gantry sample configuration with a parallel port setup included.
The 5axis/5axis sample configuration is also a gantry arrangement which includes a vismach simulation of the machine too.
All these examples have one thing in common, they use the non-trivial gantrykins setup which means that the machines starts up with all axes independent, and they need to be homed before you can switch to the XYZ coordinate system.
(Which you do with the $ key or from the "View" menu.)
For a simple cartesian gantry this is all a little over-complex, and one of the development branches (joints_axes4) contains a "gentrivkins" kinematics module that allows arbitrary mapping of joints to axes without having to switch between "Joint" and "World" mode.
The following user(s) said Thank You: mwe
Please Log in or Create an account to join the conversation.
- mwe
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
02 Jan 2014 00:16 #42268
by mwe
Replied by mwe on topic Configurate Slave Axis
Thanks for the reply's. I remember now, the kinematics and HAL stuff was being written when I last checked in. I see I have some reading to do to understand how to edit the kins scripts. gentrivkins and the other one are a good place to start. Thanks for the leg up.

Mark

Mark
Please Log in or Create an account to join the conversation.
- Clive S
- Offline
- Platinum Member
-
Less
More
- Posts: 2247
- Thank you received: 483
03 Jan 2014 18:42 #42315
by Clive S
I started a post here www.linuxcnc.org/index.php/english/forum...with-x-axis-2-joints and from what little I understand that there is no solution as yet (for me anyway with no programming knowledge) to get this sorted.
I have reluctantly had to go to Mach3 for my router. But I wait in hope a solution will come along.
I still would like to thank the people on here that are trying to sort the problem out.
Happy New Year to one and all. ..Clive
Replied by Clive S on topic Configurate Slave Axis
Thanks for the reply's. I remember now, the kinematics and HAL stuff was being written when I last checked in. I see I have some reading to do to understand how to edit the kins scripts. gentrivkins and the other one are a good place to start. Thanks for the leg up.
Mark
I started a post here www.linuxcnc.org/index.php/english/forum...with-x-axis-2-joints and from what little I understand that there is no solution as yet (for me anyway with no programming knowledge) to get this sorted.
I have reluctantly had to go to Mach3 for my router. But I wait in hope a solution will come along.
I still would like to thank the people on here that are trying to sort the problem out.
Happy New Year to one and all. ..Clive
Please Log in or Create an account to join the conversation.
Time to create page: 0.746 seconds