-
Proximity switches or limit switches
Hi everyone.
I'm at the stage of my build where I am about to buy electrical items. Could anyone cast any light on the differences between proximity switches and limit switches? Where would one be chosen over the other, advantages and recommendations.
My design is s 4 foot by 2 foot gantry style router made from aluminium extrusion.
Regards Chris.
-
Re: Proximity switches or limit switches
A proximity switch is a type of switch. A limit switch is a designated use of a switch. Limit and Home switches can be either electronic, like a proximity switch or mechanical, like a microswitch.
My personal preference is for Homing using proximity switches and Limits using microswitches.
-
Re: Proximity switches or limit switches
Thank's, cropwell so you have separate switches for homing and limits? From what I've gathered you can use the limit switches also as home switches (the home command initiates the desired directions of each axis). Is your design based on increasing safety / reducing risk of damage to the machine? As in the limit switches are placed slightly beyond the position of the home switches.
-
Re: Proximity switches or limit switches
I think design is a bit of a strong term to apply to my machine. I bought it from a company in Devon!. It came with proximity switches to act as homing reference only. These were mounted axially and I found it too easy to jog into them and crush them. So I went mad and put X++, X--, Y++, Y-- and Z++ homes and limits mounted so they operated by the axis traversing the switch. At the moment I have only one set on each axis as I had a wiring fault and disabled them temporarily (about a year ago!!)
-
Re: Proximity switches or limit switches
Quote:
Originally Posted by
chillybo
Thank's, cropwell so you have separate switches for homing and limits? From what I've gathered you can use the limit switches also as home switches (the home command initiates the desired directions of each axis). Is your design based on increasing safety / reducing risk of damage to the machine? As in the limit switches are placed slightly beyond the position of the home switches.
The main advantage of using separate Limit switches is that you are protected while Homing. When the switches are shared for both Homing and limits then Limits are Ignored While Homing so it's not quite as safe.
That Said the advantages of using Shared switches, Esp if you use Single switch that travels with axis and searches for Targets at each end of travel is much simpler wiring with less chance of wiring errors, Also lower costs.
Regards which switch type to use then it's a personal choice. My personal preference is the Proximity switch because they are accurate and cheap. Also simple to mount.and don't have some of the issues mechanical switches can have.
-
Re: Proximity switches or limit switches
Quote:
Originally Posted by
JAZZCNC
That Said the advantages of using Shared switches, Esp if you use Single switch that travels with axis and searches for Targets at each end of travel is much simpler wiring with less chance of wiring errors, Also lower costs.
AND I would add, less to go wrong over time.
-
Re: Proximity switches or limit switches
Ah right, so would this be a proximity switch that could be mounted midway between say a gantry side. So its a single switch that detects a metalic reference point as it travels to the side of it at the ends of each axis. Or is there also a mechanical switch that could do this?
I like this idea it makes a lot of sense.
-
Re: Proximity switches or limit switches
Thanks for this Jazz this makes a lot of sense and gives more flexibility of where to locate the proximity switch on my machine.
-
Re: Proximity switches or limit switches
Quote:
Originally Posted by
chillybo
Ah right, so would this be a proximity switch that could be mounted midway between say a gantry side. So its a single switch that detects a metalic reference point as it travels to the side of it at the ends of each axis. Or is there also a mechanical switch that could do this?
I like this idea it makes a lot of sense.
You can use the same approach with simple mechanical switches but they tend to slide over a ramped trigger plate to prevent damage to switch. Or you can buy Lever type mechanical switches with end stop that flicks the lever.
Proximity switches are my preferred switch type because they are none contact cheap and simple to use and fit.
-
Re: Proximity switches or limit switches
I will probably use proximity switches for homing and mechanical switches for limits just to add another layer of protection. Im not sure if I should buy normally open or normally closed proximity switches. My controller is the CSIO IPM and I'm using Mach 3. If I set the limit input to accept a normally closed circuit and the home / proximity switches to normally open on a different input to the controller would this work?
Thanks in advance...
-
Re: Proximity switches or limit switches
The danger with normally open switches is that a bad connection doesn't show up until your machine crashes straight through them. They must be connected in parallel. Wiring faults with normally closed switches will show up immediately. They need to be connected in series.
Kit
-
Re: Proximity switches or limit switches
If your taking this route using separate mechanical Limits to homes then Go with NC for the Limits and wire in series using just 1 input like as been suggested.
For the Homes, it doesn't really matter because you can set Mach3 to see trigger when goes low and you will need them on separate inputs for IP/M to see them. My pref is NO for Homes.
Also, note You cannot wire the Home switches in series with the IP/M controller and use 1 input for all the homes like can be done with some Mach setups.
I'm going to guess at your next question regards Proximity which will be NPN or PNP. It doesn't matter is the answer because the IP/M will allow you to use either. NPN tends to be more available than PNP, esp in NC type.
-
Re: Proximity switches or limit switches
Thanks Jazz. Have just had a NPN normally closed proximity switch delivered from Amazon. Im guessing then that with this device I would set the input for it to active high? Im going to have a play with it at the weekend. I have wired a couple of steppers and drivers up to the IPM to get them moving and to get familiar with Mach and the hardware. I'l connect the proximity switch up and see how it works. The electrics and the machine haven't come together yet.
-
Re: Proximity switches or limit switches
Quote:
Originally Posted by
chillybo
Thanks Jazz. Have just had a NPN normally closed proximity switch delivered from Amazon. Im guessing then that with this device I would set the input for it to active high?
No that would be Active Low.
Because the type is N/C Mach sees the signal all the time(High) and when signal disappears (low) the pin goes active. So it's (Active Low)
If it was N/O type it would be the reverse. The pin is low and goes Active when the signal is High. (Active high)
Word of caution with the IP/M and it's inputs. They are Non-isolated which means the don't tolerate being miss wired so before you go connecting anything up to them be sure you fully understand what your doing, they don't take prisoners.!
-
Re: Proximity switches or limit switches
Actually, taking each home switch into separate inputs on the CSMIO isn't a big issue as it has plenty of inputs available. It also means that you can set Mach3 to home more than one axis at a time, which saves a bit of time on a larger machine. I home Z by itself (to get it to highest level above bed) and then X and Y together.
I also use proximity switches for combined home/limits although I have wired upper and lower limits in series on each axis partly to save one input channel but also to reduce wiring through cable chains a little. You have 24V available and proximity switches in series work fine with that. Because they are also limit switches I use NC throughout for the safety reasons mentioned.
-
Re: Proximity switches or limit switches
Nice one. Thanks for explaining this Jazz
-
2 Attachment(s)
Re: Proximity switches or limit switches
So before i attempt to wire a mock home proximity switch into one of the the inputs can anyone please confirm I am understanding the wiring correctly. The brown wire from the proximity switch should be wired to positive side of the 24 PSU that supplies the IPM. The blue wire is wired to the negative side of the same PSU. The black signal wire then goes into one of the inputs on the IPM for instance pin ten. Then I designate pin 10 as the home input (X in this case) and set the pin to active low as in the picture. Is this correct? Thanks in advance
Attachment 26863Attachment 26864
-
Re: Proximity switches or limit switches
I can't comment on the switch wire colours without a diagram in front of me, but you do need to take a wire from the -ve pin for your chosen input to the common negative - on the IP/M both sides of the inputs are floating. In Mach3 I seem to remember that you need to select the correct port as well as pin - can't remember it offhand but I think it's either 1 or 10. It's in the manual. Also, be very careful with pin numbering - it's not quite what you might think! Mach3 input 10 is actually physical pin 11 on the CSMIO and its corresponding negative connection is pin 24. Again, this is all in the manual but it's easy to miss (don't ask me how I know, etc...)
-
Re: Proximity switches or limit switches
Quote:
Originally Posted by
Neale
I can't comment on the switch wire colours without a diagram in front of me, but you do need to take a wire from the -ve pin for your chosen input to the common negative - on the IP/M both sides of the inputs are floating. In Mach3 I seem to remember that you need to select the correct port as well as pin - can't remember it offhand but I think it's either 1 or 10. It's in the manual. Also, be very careful with pin numbering - it's not quite what you might think! Mach3 input 10 is actually physical pin 11 on the CSMIO and its corresponding negative connection is pin 24. Again, this is all in the manual but it's easy to miss (don't ask me how I know, etc...)
You are using NPN type switch so what you actually need to do is Take the Black signal wire to the (-) input and run 24v+ to the (+) input.
The port in Mach3 is 10 and select the input number, not the Pin number because as Neale says they are numbered differently.
-
1 Attachment(s)
Re: Proximity switches or limit switches
Attachment 26867 Thanks Jazz and Neal. Should it be like this then?
-
Re: Proximity switches or limit switches
Quote:
Originally Posted by
chillybo
Yes that's correct.
-
Re: Proximity switches or limit switches
So I have wired the proximity switch as per my diagram and it seems to be working as an E stop rather than a home switch. Its very confusing. Although its an NC proximity switch it seems to be working the opposite way round. When no metal is near the sensor the light on the back of it is on and the message external E stop requested appears and I can not reset Mach 3. If metal is placed near the proximity sensor the light goes off and I am able to select reset and I can jog. As soon as I remove the metal object the steppers stop and the reset button is activated again.
To my mind its as if its set up as an E stop and its acting as a normally open switch. Confused.com
Anyone have any ideas?
-
Re: Proximity switches or limit switches
Despite all of this when I go into diagnostics the proximity switch is identified as a home switch as per video
https://www.youtube.com/watch?v=nb6dIlxtino
-
Re: Proximity switches or limit switches
Quote:
Originally Posted by
chillybo
So I have wired the proximity switch as per my diagram and it seems to be working as an E stop rather than a home switch. Its very confusing. Although its an NC proximity switch it seems to be working the opposite way round. When no metal is near the sensor the light on the back of it is on and the message external E stop requested appears and I can not reset Mach 3. If metal is placed near the proximity sensor the light goes off and I am able to select reset and I can jog. As soon as I remove the metal object the steppers stop and the reset button is activated again.
To my mind its as if its set up as an E stop and its acting as a normally open switch. Confused.com
Anyone have any ideas?
Switch the active Lo and it will work correctly. Why it's throwing e-stop I'm not sure, the only reason I can think of is that the E-stop input# is set to same as Limit input #.
The light is on because it's NC and should go out when tripped.
-
Re: Proximity switches or limit switches
I managed to get it working and its acting like a home switch now. Jazz I think your right about it having something to do with the E stop input. When I scrolled down and looked at the E-stop port it was not set to port 10. I set the E stop to port 10 (because I'm only experimenting with the electrics and Mach to find out how things work there is no physical E stop). Anyhows if i jog forward and then press home the stepper reverses and when I put a screwdriver near it it stops and rotates the opposite direction briefly. So thats me gaining an understanding of this part of things thanks of everyones advice on here.
Thanks.
-
Re: Proximity switches or limit switches
https://www.youtube.com/watch?v=AvlpkAbFUgY
I think its time to ask Santa for a control cabinet.
-
1 Attachment(s)
Re: Proximity switches or limit switches
Attachment 26925
I 3d printed a mount.
Thanks again for all the advice.
-
Re: Proximity switches or limit switches
You may wish to revise the end-on approach, the first time you jog into and crush a switch. Don't ask me how I know. They work just as well when the profile just glides in from the side.
:biggrin:
Rob-T
-
Re: Proximity switches or limit switches
Quote:
Originally Posted by
cropwell
You may wish to revise the end-on approach, the first time you jog into and crush a switch. Don't ask me how I know. They work just as well when the profile just glides in from the side.
:biggrin:
Rob-T
+ one
-
Re: Proximity switches or limit switches
Hmm, I could mount it sideways on. Im planning on using it as one of the home switches and just using mechanical switches for the limits that I would mount on the other side.
-
Re: Proximity switches or limit switches
Cropwell I've just been playing with the homing function and guess what? I did manage to run into the proximity switch. No damage though because I had my cursor on the reset button in Mach 3 and the switch mount wasn't fastened down. What I can't understand is why is the proximity switch detecting the gantry, stopping and backing off as it should but then moving forward crashing into the proximity switch. Could it be because I haven't set my steps per mm properly yet?
-
Re: Proximity switches or limit switches
Long time since I've used Mach 3, but likely you have the direction of the final homing move or the position of the switch (in software) set wrong.
Mach 3 thinks it needs to do a final move in that direction.
I could solve it if you were using LinuxCNC.
-
Re: Proximity switches or limit switches
Jogging seems to ignore home switches.
-
Re: Proximity switches or limit switches
Quote:
Originally Posted by
cropwell
Jogging seems to ignore home switches.
Time to set up the soft limits before bolting that end-stop in place.
-
Re: Proximity switches or limit switches
Ive changed homing settings in Mach and it woks fine now. Other problem was the steppers were stalling but I've increased the current output on the drivers and its flying along now.
Just need to learn how to work out steps per mm with my 2005 ball screws and 26 teeth driver pulley to 22 teeth driven ratio.
-
Re: Proximity switches or limit switches
-
Re: Proximity switches or limit switches
Quote:
Originally Posted by
chillybo
Ive changed homing settings in Mach and it woks fine now. Other problem was the steppers were stalling but I've increased the current output on the drivers and its flying along now.
Just need to learn how to work out steps per mm with my 2005 ball screws and 26 teeth driver pulley to 22 teeth driven ratio.
Don't fry your noodle trying to work it out just let mach3 do it.! . . Go to the Settings tab, just above Reset there's a button says "Set Steps per unit" this will work it out for you by moving a distance you tell it and by measuring the actual distance it moved it works out the Steps per required.
-
Re: Proximity switches or limit switches
Thanks for that information Jazz. My noodle is easily fried. I used a digital calliper and let the gantry push it up against a stop on the rail. Ive unwired it all now because my control enclosure was delivered today. Im going to use the proximity sensors for homing and mechanical switches for limits. I'l position the limit switch so the gantry just touches it without switching when its detected by the proximity sensor. That way if the gantry goes to close the sensor it'l trip the limit before it damages anything.
https://www.youtube.com/watch?v=HZF8jKtbkvo
-
Re: Proximity switches or limit switches
Quote:
Originally Posted by
chillybo
Thanks for that information Jazz. My noodle is easily fried. I used a digital calliper and let the gantry push it up against a stop on the rail. Ive unwired it all now because my control enclosure was delivered today. Im going to use the proximity sensors for homing and mechanical switches for limits. I'l position the limit switch so the gantry just touches it without switching when its detected by the proximity sensor. That way if the gantry goes to close the sensor it'l trip the limit before it damages anything.
Your setup is not a good one.? Often when you crash into limits it's not slow like your doing in testing, it's usually at rapid feeds or higher cutting feeds when machine loses position
by missed steps due to things like Sticktion or binding, etc. In cases like these, the gantry doesn't stop instantly and you get over travel which will smash your setup to pieces.
You need to ride over switches, not into them.!
-
Re: Proximity switches or limit switches
Point taken I'l change it when I put it back together. If what you say is a possibility of happening then how do we guard against other things getting damaged like BK / BF bearing blocks? Is it therefore wise to leave a good margin of rail / ballscrew for stopping distance?