Home switches wiring / setup
- remon_v
- Offline
- Premium Member
- Posts: 97
- Thank you received: 7
For my MPCNC (Mostly Printed CNC) machine, I'm setting up LinuxCNC for the first time.
I'm pretty far with the basic HAL file and INI file.
The machine has 5 motors and 5 drivers (2 for X, 2 for Y and 1 for Z).
I have 4 cheap switches on my machine (2 for X and 2 for Y), also used for auto squaring the Axis:
Now I can use up 4 inputs on my 5 Axis BOB, but it's also possible to use 1 input for all the switches right?
Which one is preferred and does one has advantages over the other?
And is this possible with the switches I got and how to wire it?
Thanks in advance!
Please Log in or Create an account to join the conversation.
- Clive S
- Offline
- Platinum Member
- Posts: 2241
- Thank you received: 476
You will need at least two (1 each for one side of the X and the same for Y) You might be able to do it with 3 inputs.
It's hard enough as it is. Personally I would go with separate switches for each one.
So if you are using a PPort you could use two of them. Or use a Mesa card.
Others brighter than me might be able to guide you better.
Please Log in or Create an account to join the conversation.
- remon_v
- Offline
- Premium Member
- Posts: 97
- Thank you received: 7
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
- Posts: 5009
- Thank you received: 1443
Please Log in or Create an account to join the conversation.
- remon_v
- Offline
- Premium Member
- Posts: 97
- Thank you received: 7
Please Log in or Create an account to join the conversation.
- Clive S
- Offline
- Platinum Member
- Posts: 2241
- Thank you received: 476
Thanks for the reply. I wouldn't mind if simultaneously homing is not possible, but I think I will use 4 inputs for the 4 switches. I can always change it later, if I need another input.
As I said before and you were not convinced if you want gantry squaring you will need a switch on either side (they can also be used as limit switches) so in your case you will need 4 for two lots of gantry squaring\ plus one for the Z.
It would be helpful if you posted the hal and ini files.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
- Posts: 5009
- Thank you received: 1443
Please Log in or Create an account to join the conversation.
- Clive S
- Offline
- Platinum Member
- Posts: 2241
- Thank you received: 476
For squaring a gantry he would need a minimum of two inputs (4 is not required). If the gantry is the Y axis, X and Z could share inputs with them selves and or the Y joints. So Z and Y1 and X1 could share a home input and X2 and Y2 could share. Limits are not nessisary or can also share the home inputs. The two gantry joints in a pair are the only ones that must have home inputs separate from each other, but not necessarily separate from other switches.
Todd
I am under the impression that he has two gantries ie. X and y are both gantries.
From his first post:-
The machine has 5 motors and 5 drivers (2 for X, 2 for Y and 1 for Z).
I have 4 cheap switches on my machine (2 for X and 2 for Y), also used for auto squaring the Axis:
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
- Posts: 5009
- Thank you received: 1443
If the switches are wired using normally open contacts then they would need to be wired in parallel instead of in series.
Please Log in or Create an account to join the conversation.
- remon_v
- Offline
- Premium Member
- Posts: 97
- Thank you received: 7
Clive S is right, it is a machine with 2 gantries:
I'm not sure if the switch are NO or NC, it has a S, V and G input.
So should I wire X1 + Y1 and X2 + Y2 in series or parallel?
I have no Z homing switch (yet).
I have attached my INI and HAL file
Please Log in or Create an account to join the conversation.