Re: Which Type of Limit Switch
Hi Ray,
You need NPN NC switches. I'm fairly sure, but not 100% that your BOB doesn't have opto-isolated inputs (the manual is useless), but maybe someone can confirm this. Do you have a voltmeter/multi-meter? If so measure the voltage from limit switch input to ground (with power on the BOB). If its more than 2v then its probably not opto-isolated and if it 5v it probably has an internal pull up. In which case wire the switch as:
.
Brown: +12 or 24v power supply
Black: To BOB limit input
Blue: to Ground on BOB limit input AND to Ground on 12/24v supply.
.
Now you need to decide for X and Y if home is at one end of table travel or in the middle (Z home is always the top). Since proximity sensors work on approach of ferrous material, if Home is in the middle of the movement range, Mach has the problem of knowing which side to approach the sensor from since approaching from either side will give the same result electrically but will be offset by potentially 8mm mechanically. I don't know how you tell Mach to home from a given direction, but I'm sure it can be done...
.
edit: Eddy types faster lol. But I want to reiterate the proximity sensor accuracy previously discussed is for material approaching axially (i.e. towards the end of the sensor). For this requirement the approach will have to be radially, i.e. across the face.
Re: Which Type of Limit Switch
Quote:
Originally Posted by
irving2008
edit: Eddy types faster lol.
Sometimes it's best to type it up into Notepad first then just paste it into a post. :glee:
Re: Which Type of Limit Switch
Quote:
Originally Posted by
irving2008
I don't know how you tell Mach to home from a given direction, but I'm sure it can be done...
.
In Mach3 there is a dialogue box to set the homing direction of each axis.
Re: Which Type of Limit Switch
Quote:
Originally Posted by
cropwell
In Mach3 there is a dialogue box to set the homing direction of each axis.
Right, not used it myself. Presumably you need to set up the nominal home location and Mach3 moves far enough to the appropriate side of that to approach from the right direction.
Re: Which Type of Limit Switch
Just a thought although all of the above is correct are we assuming that the sensor has a resistor built in of say about 10K If not would it be prudent to put a current limiting R in.. My sensors have 10K internal so not neaded.
Also if you home at the middle you have gcode with -ve and +ve code I find it more convenient to have the home switch at one end then all gcode is +ve (for me being a novice it's easier to read) ..Clive
Re: Which Type of Limit Switch
Ray
You need NPN NC switches. I'm fairly sure, but not 100% that your BOB doesn't have opto-isolated inputs (the manual is useless), but maybe someone can confirm this. Do you have a voltmeter/multi-meter? If so measure the voltage from limit switch input to ground (with power on the BOB). If its more than 2v then its probably not opto-isolated and if it 5v it probably has an internal pull up. In which case wire the switch as:
.
Brown: +12 or 24v power supply
Black: To BOB limit input
Blue: to Ground on BOB limit input AND to Ground on 12/24v supply.
.
Now you need to decide for X and Y if home is at one end of table travel or in the middle (Z home is always the top). Since proximity sensors work on approach of ferrous material, if Home is in the middle of the movement range, Mach has the problem of knowing which side to approach the sensor from since approaching from either side will give the same result electrically but will be offset by potentially 8mm mechanically. I don't know how you tell Mach to home from a given direction, but I'm sure it can be done...
.
edit: Eddy types faster lol. But I want to reiterate the proximity sensor accuracy previously discussed is for material approaching axially (i.e. towards the end of the sensor). For this requirement the approach will have to be radially, i.e. across the face
Re: Which Type of Limit Switch
Hi Irving, i have stated already, my BoB is only 5 volts, are you now saying i can wire a 3 wire sensor direct on to the Bob?
Ray
Quote:
Originally Posted by
manofgresley
Ray
You need NPN NC switches. I'm fairly sure, but not 100% that your BOB doesn't have opto-isolated inputs (the manual is useless), but maybe someone can confirm this. Do you have a voltmeter/multi-meter? If so measure the voltage from limit switch input to ground (with power on the BOB). If its more than 2v then its probably not opto-isolated and if it 5v it probably has an internal pull up. In which case wire the switch as:
.
Brown: +12 or 24v power supply
Black: To BOB limit input
Blue: to Ground on BOB limit input AND to Ground on 12/24v supply.
.
Now you need to decide for X and Y if home is at one end of table travel or in the middle (Z home is always the top). Since proximity sensors work on approach of ferrous material, if Home is in the middle of the movement range, Mach has the problem of knowing which side to approach the sensor from since approaching from either side will give the same result electrically but will be offset by potentially 8mm mechanically. I don't know how you tell Mach to home from a given direction, but I'm sure it can be done...
.
edit: Eddy types faster lol. But I want to reiterate the proximity sensor accuracy previously discussed is for material approaching axially (i.e. towards the end of the sensor). For this requirement the approach will have to be radially, i.e. across the face
Re: Which Type of Limit Switch
Hi Eddy. I'm confused, why do i need a separate 5 volt psu, when my BoB is already putting out 5 volt. On the board there are terminals for 5 limits but only two wire each, + & -, Am i reading it wrong or what?
Ray
Quote:
Originally Posted by
EddyCurrent
This is the drawing. You will have to make sure the 0v terminals of both power supplies are connected together otherwise it will not work. Where it shows a 24v dc PSU you could use a 12V dc PSU instead if desired.
Colours of the proximity switch wires are for the ones I used but I think they are pretty standard.
Because these are home switches I was not overly concerned about N/O, N/C, so for example mine are 'off' and 'open' until they are activated whereupon they are 'on' and 'closed'. If you get yours wired up and they operate the wrong way you thought they would you can just 'invert' their operation in the software.
Attachment 12831
Re: Which Type of Limit Switch
Quote:
Originally Posted by
irving2008
Right, not used it myself. Presumably you need to set up the nominal home location and Mach3 moves far enough to the appropriate side of that to approach from the right direction.
All Mach3 does is have a set direction to move an axis when heading for home (the home sensor). After detecting the sensor Mach3 then backs off a little and zeroes the DRL. This, presumably, is not intended for having a home position in the centre of the table. I could give you some screenshots, but my Mach3 computer is disconnected whilst I rebuild the control box. If you had an input set to 0/1 depending on which half of the axis you were in, then I am sure some clever sod could write a macro to centre the axis.
I think you mentioned previously that proximity switches work on detecting ferrous metal, which is true, but mine also work on ali and brass. The ones I use are 4mm axial detection, but I use them in bypass mode, where the detection position is not necessarily 4mm, but it is consistent. In axial mode you have a great danger of jogging onto the switch and crushing the end, which kills it. (That is why I have the spares, bought as a lot of 8 from china.)
To Ray:- You have to regard a proximity switch as an off/on (ie normally open) push button switch, but it needs 6 to 36v to make it work. The ground connection is common to the switch and the electronics in there. 5v won't cause it to switch, either not at all or not reliably.
PM me with your phone number if you want to talk it through. I have got 5 LJ12A3-4-Z/BX switches and some 12v power supplies, which are intended to be used in my next build.
Re: Which Type of Limit Switch
Quote:
Originally Posted by
manofgresley
Hi Eddy. I'm confused, why do i need a separate 5 volt psu, when my BoB is already putting out 5 volt. On the board there are terminals for 5 limits but only two wire each, + & -, Am i reading it wrong or what?
Ray
I don't know your BOB but you have to power it from somewhere I and others are assuming it is powered from a 5V source if it is powered from 12V then you can use that to drive your sensors.
Can you confirm what the BOB is powered from? ..Clive