- Posts: 97
- Thank you received: 0
Forum Header
Home switches wiring / setup
4 years 8 months ago #234100
by remon_v
Home switches wiring / setup was created by remon_v
Hello,
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!
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 to join the conversation.
4 years 8 months ago #234102
by Clive S
Replied by Clive S on topic Home switches wiring / setup
I don't think it's possible to just use one input for all the switches.
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.
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 to join the conversation.
4 years 8 months ago #234143
by remon_v
Replied by remon_v on topic Home switches wiring / setup
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
4 years 8 months ago #234171
by Todd Zuercher
Replied by Todd Zuercher on topic Home switches wiring / setup
There are 3 advantages to having separate inputs for All your home switches and limts. The first is easy identification of the source of a switch input, the 3rd is an axis may not have to be off of it's home switch before homing. The another is simultaneously homing is only possible with separate home inputs. So if you can live with homing one axis at a time, and make sure All axis are off the home switches before homing sharing isn't a problem.
Please Log in to join the conversation.
4 years 8 months ago #234334
by remon_v
Replied by remon_v on topic Home switches wiring / setup
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.
Please Log in to join the conversation.
4 years 8 months ago #234343
by Clive S
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.
Replied by Clive S on topic Home switches wiring / setup
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 to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
4 years 8 months ago #234354
by Todd Zuercher
Replied by Todd Zuercher on topic Home switches wiring / setup
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.
Please Log in to join the conversation.
4 years 8 months ago #234360
by Clive S
Todd
I am under the impression that he has two gantries ie. X and y are both gantries.
From his first post:-
Replied by Clive S on topic Home switches wiring / setup
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 to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
4 years 8 months ago #234373
by Todd Zuercher
Replied by Todd Zuercher on topic Home switches wiring / setup
Yes, for example to wire it using normally closed contacts using two input pins for the 5 joints, a wire would go from input1 to the X1 switch NC terminal, then from the com terminal to the Y1 NC terminal, then from that com to the Z NC terminal and from that com terminal back to the port or bob ground. Then input2 would be wired similarly chaining the switches for X2 and Y2 together. If additional limit switches are to be added they would simply be added to one or both chains.
If the switches are wired using normally open contacts then they would need to be wired in parallel instead of in series.
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 to join the conversation.
4 years 8 months ago #234379
by remon_v
Replied by remon_v on topic Home switches wiring / setup
Thanks guys for the replies, it becomes a bit more clearer now!I'll give some additional information.
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
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 to join the conversation.
Time to create page: 0.136 seconds
