- Configuring LinuxCNC
- Basic Configuration
- Limit and home swithces with multiplexing with diodes and mux16 component?
Limit and home swithces with multiplexing with diodes and mux16 component?
- jazzkramer
- Away
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 3
21 Dec 2025 19:11 #340377
by jazzkramer
Limit and home swithces with multiplexing with diodes and mux16 component? was created by jazzkramer
Hi all,
I have a diy Plasma with Linuxcnc (it has some mechanical problems and never got it to reliably work... due to modification of the original project due to not having the planned space in my previous location... I will solve...),
BUT I also had some wiring problems triggering limit switches...
AND, having all limit switches connected to one (or less than the total number) input in my 7i96,
I had to check every limit switch to find which wire was broken or had a loose connection (so triggering).
NOW, Hopefully in a few days, I'm going to be in another project (this NEEDS to work!
) adding Linuxcnc to a proper (not diy) milling machine by a Mesa 7i96S.
SO I WAS THINKING:
The Mesa 7i96S does not have enough inputs for 8 limits + 4 homing switches... SO
what if I make a diode schema to connect 8 limit switches (4 axis) + 4 homing switches to 4 7i96S inputs only and I multiplex these switches inside LinuxCNC?
I know there is a module called mux16 (or something similar, I have to check..), maybe I can connect it's output to the limit/home switches...
Has anyone tried that? Does it work?
This way if one limit or home switch get triggered when the machine is not there, I could already know the one to fix because the GUI would tell me which switch would be in error state...
Thanks for any reply,
Alberto.
I have a diy Plasma with Linuxcnc (it has some mechanical problems and never got it to reliably work... due to modification of the original project due to not having the planned space in my previous location... I will solve...),
BUT I also had some wiring problems triggering limit switches...
AND, having all limit switches connected to one (or less than the total number) input in my 7i96,
I had to check every limit switch to find which wire was broken or had a loose connection (so triggering).
NOW, Hopefully in a few days, I'm going to be in another project (this NEEDS to work!
SO I WAS THINKING:
The Mesa 7i96S does not have enough inputs for 8 limits + 4 homing switches... SO
what if I make a diode schema to connect 8 limit switches (4 axis) + 4 homing switches to 4 7i96S inputs only and I multiplex these switches inside LinuxCNC?
I know there is a module called mux16 (or something similar, I have to check..), maybe I can connect it's output to the limit/home switches...
Has anyone tried that? Does it work?
This way if one limit or home switch get triggered when the machine is not there, I could already know the one to fix because the GUI would tell me which switch would be in error state...
Thanks for any reply,
Alberto.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 21079
- Thank you received: 7195
21 Dec 2025 19:48 #340378
by tommylight
Replied by tommylight on topic Limit and home swithces with multiplexing with diodes and mux16 component?
You do not need 12 switches for a simple machine, you need only 4 for a 4 axis machine, or for 3 axis with one of those having 2 motors/joints like gantry machines.
LinuxCNC can use the same switch for both limits and homing, it can also do all kinds of combinations to the point of using a single input for all limits and home on a 9 axis machine, granted none are tandem axis.
Here is some inspiration for DIY plasma cutting machines, certainly not the only one, but has more details about switches and reductions and overall building of such machines:
forum.linuxcnc.org/show-your-stuff/38547...-5m-cnc-plasma-build
LinuxCNC can use the same switch for both limits and homing, it can also do all kinds of combinations to the point of using a single input for all limits and home on a 9 axis machine, granted none are tandem axis.
Here is some inspiration for DIY plasma cutting machines, certainly not the only one, but has more details about switches and reductions and overall building of such machines:
forum.linuxcnc.org/show-your-stuff/38547...-5m-cnc-plasma-build
Please Log in or Create an account to join the conversation.
- jazzkramer
- Away
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 3
21 Dec 2025 20:45 #340379
by jazzkramer
Replied by jazzkramer on topic Limit and home swithces with multiplexing with diodes and mux16 component?
Thanks Tommylight,
I know I can connect more limits/homing to the same input, but in case of a wiring problem/fault I will have a generic "Limit switch triggered error" and I would have to check all the switches wiring...
Instead if is it possible to multiplex limit and home switches inside LinuxCNC, by adding diodes connections between switches, it will reducing the all problem to 4 inputs only. This way, in the case of triggering I have the exact error like for example "Y Limit swtich triggered", so I can check only the Y wiring (in this example).
I know I can connect more limits/homing to the same input, but in case of a wiring problem/fault I will have a generic "Limit switch triggered error" and I would have to check all the switches wiring...
Instead if is it possible to multiplex limit and home switches inside LinuxCNC, by adding diodes connections between switches, it will reducing the all problem to 4 inputs only. This way, in the case of triggering I have the exact error like for example "Y Limit swtich triggered", so I can check only the Y wiring (in this example).
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17494
- Thank you received: 5112
21 Dec 2025 21:21 #340380
by PCW
Replied by PCW on topic Limit and home swithces with multiplexing with diodes and mux16 component?
A disadvantage of multiplexing is that the switch detection will be slower (by a factor of the servo thread period times the multiplex depth)
You could also use the parallel expansion port to add 17 more inputs (though 5V only and probable should have 220 Ohm or so
series resistors for protection)
You could also use the parallel expansion port to add 17 more inputs (though 5V only and probable should have 220 Ohm or so
series resistors for protection)
Please Log in or Create an account to join the conversation.
- jazzkramer
- Away
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 3
21 Dec 2025 21:40 #340381
by jazzkramer
Replied by jazzkramer on topic Limit and home swithces with multiplexing with diodes and mux16 component?
Thanks PCW,
that's interesting... so maybe I better think about an expansion card to connect more inputs... I Know 7i96 has RS-422/RS485 and there are cards expansion with many I/Os...
I will think about. My limit switches works at 24V but I can think for a solution if this card works at a lower voltage...
that's interesting... so maybe I better think about an expansion card to connect more inputs... I Know 7i96 has RS-422/RS485 and there are cards expansion with many I/Os...
I will think about. My limit switches works at 24V but I can think for a solution if this card works at a lower voltage...
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 21079
- Thank you received: 7195
21 Dec 2025 22:11 #340382
by tommylight
Replied by tommylight on topic Limit and home swithces with multiplexing with diodes and mux16 component?
You can also use a simple BOB on the expansion header, adding 5 more inputs (limited by BOB, not by Mesa).
And for RS422 see Mesa 7i84, it has 32 inputs and 16 outputs that work with 24V, but also work with 5V, i am pretty sure you can have half of IO with 5V and the other half with 12V or 24V or any combination of voltages as half and half. You might want to wait for confirmation of the half/half thing from PCW as i did something like that several years ago and i am a bit fuzzy.
And for RS422 see Mesa 7i84, it has 32 inputs and 16 outputs that work with 24V, but also work with 5V, i am pretty sure you can have half of IO with 5V and the other half with 12V or 24V or any combination of voltages as half and half. You might want to wait for confirmation of the half/half thing from PCW as i did something like that several years ago and i am a bit fuzzy.
Please Log in or Create an account to join the conversation.
- jazzkramer
- Away
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 3
22 Dec 2025 00:04 - 22 Dec 2025 00:12 #340386
by jazzkramer
Replied by jazzkramer on topic Limit and home swithces with multiplexing with diodes and mux16 component?
Thank you Tommylight,
looking at the 7i84 specs pdf, it seams the easiest solution.
Inputs and outputs works from 5V to 28V so it's ok (and yes you're right about the half/half voltage, as stated in the pdf).
There are two version of this board:
sourcing outputs: (7I84)
or sinking outputs: (7I84D)
I will use inputs only for now, but... I have to decide which one is better for any possible future expansion...
Any ideas? Better sourcing or a sinking outputs?
(Post Scriptum: probably Sourcing is better?)
Thanks
looking at the 7i84 specs pdf, it seams the easiest solution.
Inputs and outputs works from 5V to 28V so it's ok (and yes you're right about the half/half voltage, as stated in the pdf).
There are two version of this board:
sourcing outputs: (7I84)
or sinking outputs: (7I84D)
I will use inputs only for now, but... I have to decide which one is better for any possible future expansion...
Any ideas? Better sourcing or a sinking outputs?
(Post Scriptum: probably Sourcing is better?)
Thanks
Last edit: 22 Dec 2025 00:12 by jazzkramer.
Please Log in or Create an account to join the conversation.
- jazzkramer
- Away
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 3
22 Dec 2025 00:14 - 22 Dec 2025 00:26 #340387
by jazzkramer
Replied by jazzkramer on topic Limit and home swithces with multiplexing with diodes and mux16 component?
..AND, I see now, Mesa page says 7i84 is obsolite, there is the 7i84U now..
AND differences are:
1. Field outputs can be set to sourcing, sinking, or push pull modes on a per output basis.
2. Field outputs do not require flyback diodes for inductive loads regardless of load current.
3. 500 mA output current
So, nice!
Thanks!
AND differences are:
1. Field outputs can be set to sourcing, sinking, or push pull modes on a per output basis.
2. Field outputs do not require flyback diodes for inductive loads regardless of load current.
3. 500 mA output current
So, nice!
Thanks!
Last edit: 22 Dec 2025 00:26 by jazzkramer.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Basic Configuration
- Limit and home swithces with multiplexing with diodes and mux16 component?
Time to create page: 0.075 seconds