Hello Guest it is March 28, 2024, 10:13:51 AM

Author Topic: ANDing motor index pulse and a second switch to detect home position  (Read 2944 times)

0 Members and 1 Guest are viewing this topic.

Is it possible in Mach3 to "AND" two signals together to detect home position. My lathe has a proximity switch on the leadscrew pulley that pulses every 5mm and I'd like to add a second switch as something like a limit switch. I'd like Mach to detect home position when both of these switches are triggered. Can this be done in Mach or would it have to be some in hardware?

Thanks, Drew
Re: ANDing motor index pulse and a second switch to detect home position
« Reply #1 on: July 02, 2014, 12:51:53 AM »
Hi Drew,

Yeah sure. Connect the two switches in series as shown here;
http://www.accentsensors.com/help2.aspx

Assumes that the new switch will also be a proximity switch.

Cheers,

Peter
----------------------------------------------------
Homann Designs
http://www.homanndesigns.com
email: peter at homanndesigns.com
Re: ANDing motor index pulse and a second switch to detect home position
« Reply #2 on: July 02, 2014, 03:12:07 AM »
Thanks Peter.

From cruzing Amazon I see that switches can come in NO or NC configurations. My current switch is 3-wire but I don't know if it's NO or NC. In the 3-wire series example in the PDF are the switches NO?

Drew
Re: ANDing motor index pulse and a second switch to detect home position
« Reply #3 on: July 02, 2014, 05:51:54 AM »
Hi Drew,

Yes, they are NO. If you have NC switches, put them in parallel to achieve the same result.

Cheers,

Peter
----------------------------------------------------
Homann Designs
http://www.homanndesigns.com
email: peter at homanndesigns.com
Re: ANDing motor index pulse and a second switch to detect home position
« Reply #4 on: July 02, 2014, 10:35:03 AM »
Thanks again :-)

One final question. It looks like the majority of proximity switches are listed as taking between 6 and ~30 volts, will they run off of 5V? That's the voltage that's going to my current switch and I'm wondering if it's something special.

Drew
Re: ANDing motor index pulse and a second switch to detect home position
« Reply #5 on: July 02, 2014, 11:04:21 AM »
Hi,

I don't know but I would think not as it is outside their specifications.

There are 5V proximity sensors though.

Cheers,

Peter
----------------------------------------------------
Homann Designs
http://www.homanndesigns.com
email: peter at homanndesigns.com