2 motors for the same axis
I have a short question before configure my new CNC 3-axis.
I have 2 motors for the axis X, and each motors have its own limit switch.
Of course, to move, the 2 motors must be synchronized.
At the moment my configuration with the parallel port is like that => X Y Z X(A)
I read lot of things on the forum and all subjects corresponds to previous version of LinuxCnc.
My question is, with current version of LinuxCnc, is there something simple to make this kinf of configuration ?
If not, could you confirm me that I have to use Kins ? using this way ?
Hope you can help me to start in the right way.
thanks
Please Log in or Create an account to join the conversation.
- LearningLinuxCNC
- Offline
- Platinum Member
- Posts: 320
- Thank you received: 48
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- LearningLinuxCNC
- Offline
- Platinum Member
- Posts: 320
- Thank you received: 48
Please Log in or Create an account to join the conversation.
This can be done through the menu in Axis, or with the $ keyboard shortcut.
You will see that in Joint mode the GUI shows joints 0, 1, 2, 3 and in World mode it shows XYZ.
This makes a lot of sense for a robot, but is a bit weird for a gantry.
Other ways to do this include using the Joint-Axes branch of LinuxCNC (which is experimental, so you might need to compile it) and the "Gentrivkins" kinematics module which allows joint mapping like gantrykins but does not lead to the separate joint mode / world mode.
Alternatively you may well prefer to just route the step-dir signals in HAL from one axis to two drivers.
Please Log in or Create an account to join the conversation.
I will try to configure the machine this evening. Just to be sure that I have clearly understand.
With routing step-dir signal: it's seems to be the easy way. But As I undestand this is a non sense to have limit switch on both X axis. And if I have a jump of step on an axis, I will need to recalibrate manually the position of axis. Is it correct ?
In case of gantrykins. Do you know if a person has already do a script to switch automatically to "Word mode" after homing. Or maybe if it's possible to add on the PyVCP panel a message to "alert" or give the state of this mode ? Because I'm sure I will forget it each time !
Please Log in or Create an account to join the conversation.
Yes, that is correct. The other side of this is that if you home the Joints separately then there is likely to be a moment when the two sides of the X axis are heading in different directions. Homing slaved axes (especially to encoder index) in a truly general manner is a puzzle that has defied easy solution so far.With routing step-dir signal: it's seems to be the easy way. But As I undestand this is a non sense to have limit switch on both X axis. And if I have a jump of step on an axis, I will need to recalibrate manually the position of axis. Is it correct ?
It has been done as a modification to the Axis GUI, but I don't know how well it works.In case of gantrykins. Do you know if a person has already do a script to switch automatically to "Word mode" after homing. Or maybe if it's possible to add on the PyVCP panel a message to "alert" or give the state of this mode ? Because I'm sure I will forget it each time !
sourceforge.net/p/emc/mailman/emc-users/....com.au/#msg28307696
If you look under the message titles one of them has a patch file, and other messages say how to use it.
Alternatively I can imagine that a simple userspace HAL component could watch for all the axis.N.is-homed pins going to "true" and issue a command to enter world mode. That may already have been done too.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I'm back to you because I'm always trying to work my machine without success.
Regarding the example, I modify my conf.ini. For me it seems ok. I can switch the 2 mode with $ and make the home position. But I have a joint error when I want to use in manual.
I haven't modify the hal file except for "loadrt gantrykins coordinates=XYZX" because I really don't understand what I have to do.
Could you help me again ?
Please Log in or Create an account to join the conversation.
What is the exact error message?
Please Log in or Create an account to join the conversation.