-
1 Attachment(s)
3 wire proximity switch help
Hi guy's been reading this forum for a while now and it's been very informative. I built a 5 x 10 plasma table everything is running but the switches. I need some help on wiring a 3 wire proximity switch to a this BOBhttp://www.mycncuk.com/attachment.ph...504764&thumb=1The model switch is a LMP1-3005NA What I need to know is what wires go where.
Any help would be greatly appreciated
I'm using M542 drivers.
Motors
* Manufacturer Part Number: 23HS45-4204S
* Motor Type: Bipolar Stepper
* Step Angle: 1.8 deg.
* Holding Torque: 3.0Nm(425oz.in)
* Rated Current/phase: 4.2A
* Phase Resistance: 0.9ohms
* Inductance: 3.8mH+/-20%(1KHz)
BOB http://www.ebay.com/itm/Upgrade-Usb-...item2a4eceaf9b
Thanks
Mike
-
Re: 3 wire proximity switch help
Hi Mike,
You will not be able to wire the proximity switches directly to this BOB unless they are 5V. They will not connect to your motor drivers either.
The simplest diagram I can find is here: http://www.cnczone.com/forums/gecko-...12349-cnc.html
It shows a 4 wire version but that is only because the sensor there is more advanced.
It will also help if you have a look at "Transistor" in wikipedia and such.
Can you point us in the direction of a datasheet for your sensors?
-
Re: 3 wire proximity switch help
You can do this but will need a resistor or two.! . . . Thou can't help any more without knowing the switch type. ie NPN or PNP and date sheet on the switch.
Also what voltage you want to power the switch with.? Ie 12V, 24V most prox switch will take between 6 - 36v
-
3 Attachment(s)
Re: 3 wire proximity switch help
First of all thank you guys for replying.
it's a 6 - 36v switch the wiring diagram that came with the switch is attached and I also included a picture of the switch. Since I'm not and electronics person I'm trying to find which wires go to what pin numbers and if a transistor is needed which one and how to connect it. I
Im using a 12v transformer to power the switch.
Thanks again for the help if you need me to list something else I missed let me know.
-
Re: 3 wire proximity switch help
Quote:
Originally Posted by
mikem
First of all thank you guys for replying.
it's a 6 - 36v switch the wiring diagram that came with the switch is attached and I also included a picture of the switch. Since I'm not and electronics person I'm trying to find which wires go to what pin numbers and if a transistor is needed which one and how to connect it. I
Im using a 12v transformer to power the switch.
Thanks again for the help if you need me to list something else I missed let me know.
I thinks they are simply a +, - and a 'switch' wire.
I had a similier type, Brown to +5v, Blue to Ground (-5v), and the black wire to the 'Limit switch' terminal on my controller....
I used NC Studio.
-
Re: 3 wire proximity switch help
First of all you will need a 12v DC power supply.
The sensor is designed to work from a supply of 6 to 36v +V (Brown wire). 0V (ground) is connected to the Blue wire and the black wire is the sensor output, which switches to ground when triggered. When not triggered the black wire can be considered as not connected to anything internally in the sensor.
You will need a load resistor connected from 5v on the BoB to the black wire and to the input pin on the BoB. I use 10k ohm, the value is not critical but ideally should not be less than 1k or greater than 47k. The blue wire from the sensor should also be connected to ground on the BoB. The BoB must be supplied with a separate 5v power supply and I do not recommend using USB from the computer. This type of sensor acts as a switch between the black and blue wires. I have found that though rated 6-36v they do not work reliably below 10v.
Mach3 sees the input as triggered when it is at 0v.
http://www.mycncuk.com/image/png;bas...BJRU5ErkJggg==
-
1 Attachment(s)
Re: 3 wire proximity switch help
The Blue wire label should be underneath pointing to the 0v (ground) line.
I put a circuit diagram in here, but it got lost in the post. :disillusionment:http://www.mycncuk.com/attachment.ph...id=16197&stc=1
-
Re: 3 wire proximity switch help
That's an excellent answer Doc Cropwell:beer:
-
Re: 3 wire proximity switch help
I'd like to thank all you guys for the help. When I get home saturday I'll hook them up the way explained.
Mike
-
1 Attachment(s)
Re: 3 wire proximity switch help
cropwell
I connected them the way you said and it works. I conected the black wire to the imput and the 5v on the BOB. Now I'm trying to connect them in a junction box and the Y+ will trip but the Y- won't when there conected together. Can you tell what you think is wrong.
I used 1 4300 ohm transistor on the end at the BOB for both switches. I'm wondering if all the switches have to be run back to the board with seperate transistors.
They are the two blue switches on the bottom of the picture.
-
Re: 3 wire proximity switch help
Yes, each BoB input has to have its own resistor. The resistor pulls up the input to 5v (logic 'high') as its' normal state. When triggered the proximity switch pulls the input to 0v (logic low), so Mach3 has to see the input as 'active low'. Without the resistor you have a 'floating' input and the voltage on it could be anywhere, so it would not be predictable or reliable, and probably not work at all.
It is possible to configure switches as groups, but unless I was struggling for input pins, I wouldn't go there unless I had to.
Cheers,
Rob-T
-
Re: 3 wire proximity switch help
Quote:
Originally Posted by
mikem
Now I'm trying to connect them in a junction box and the Y+ will trip but the Y- won't when there conected together.
If those switches are traveling with the gantry then you only need one switch. Just put targets at each end to trip the switch.
Then Set Y++ and Y-- input to the same pin number.!
-
Re: 3 wire proximity switch help
JAZZCNC
I read what your saying as use two switches but conect them to the same input pin on the BOB like cropwell sugestead. Is that what your saying?
-
1 Attachment(s)
Re: 3 wire proximity switch help
Hi
JAZZ and I are saying different things.
JAZZ says that the two ends of travel actually only need one switch, but with a trigger point at each end. in the Mach3 config screen the ++ and -- inputs for that axis will have the same pin settings. Mach3 knows which direction it is travelling so it will recognise as ++ or -- accordingly.
What I am saying is that if you are using two switches it is a simpler practice to use two inputs on the BoB. Each input pin needs a pull-up resistor.http://www.mycncuk.com/attachment.ph...&stc=1&thumb=1
Here is a useful document - if you can't see it PM me with your email address and I will send it to you.
Cheers,
Rob
-
Re: 3 wire proximity switch help
Quote:
Originally Posted by
mikem
JAZZCNC
I read what your saying as use two switches but conect them to the same input pin on the BOB like cropwell sugestead. Is that what your saying?
No I'm saying just use One switch. These switches sense a metal object for the trigger so just place trigger at each end using only one switch and one input.
Then set the limit Inputs for both ends to the same pin number. Mach doesn't care or even Know which switch tripped it just watches the designated input.
You can even Share the same Switch and one end trigger for Home function if you like by just setting Mach Home input for that axis to same pin number. Then turn off the Home SW option in General config so turns off Limits while it's homing and you don't get a limit trip. After homing Mach turns limits back on so your safe again.
Doing this means you only need 3 inputs for all axis including homing.
Edit: Doh didn't see Rob beat me to reply.
-
Re: 3 wire proximity switch help
Jazz
That's exactly what I'm trying to do us 3 imputs for all axis. If I just use one swithh for the Y axis the switch is facing one way and picks up the metal object. What is going to trigger it going the other way if the switch isn't going to come in contact with the metal stop? How do I get to trigger it going the other way?
Mike
-
Re: 3 wire proximity switch help
Make the switch point down, not sideways, and set the trigger pieces of metal just below it at each end of travel. It sounds as if this wouldn't give such accurate results but Jazz did some experiments a little while ago that showed this to work well.
-
Re: 3 wire proximity switch help
Ok thanks make a lot of sence that way. I'll try it and see how it works.
Thanks Again
-
Re: 3 wire proximity switch help
Quote:
Originally Posted by
Neale
Make the switch point down, not sideways, and set the trigger pieces of metal just below it at each end of travel. It sounds as if this wouldn't give such accurate results but Jazz did some experiments a little while ago that showed this to work well.
Yes sorry I didn't look closely at the way you had the switches pointed. Neal is correct it does work very well I use the round type switch like this all the time.
Also saves the switches getting smashed by riding over the target rather than into end stops.
Keep the sensing distance small has possible for best accurecy.
-
Re: 3 wire proximity switch help
So why I got you I have another question. When I hook up on switch to the 5V on the BOB and to the imput lets say on the y it works.Then when I hook up the X and add another transistor to the 5v neither will work. just when it's a single resistor on the 5v do they work as soom as I add another nothing works.
Any thoughts?
-
Re: 3 wire proximity switch help
Are you powering up the BoB from the USB input or a separate power supply? The reason I ask is that USB supplies a limited current and you might not have enough power to work the BoB and more than 1 resistor. You may remember that I recommended that you did not use the USB port on the computer to power the BoB !
-
Re: 3 wire proximity switch help
Quote:
Originally Posted by
JAZZCNC
Also saves the switches getting smashed by riding over the target rather than into end stops.
.
Been there, done that :stupid:
-
Re: 3 wire proximity switch help
No I'm using a separate 5v PS. The lights don't light up when it makes contact either. But when I put the Blue wire on the 12v ps with the + it's lights up brite
-
Re: 3 wire proximity switch help
I think we have the problem !
The earth return paths are not connected. The blue wire from the sensor should be connected to the 0v (gnd) terminals on both power supplies and also (of course) to the 0v ground on the BoB. This is the most likely explanation of the symptoms.
-
Re: 3 wire proximity switch help
cropwell
I ran the brown + wire to the positive on the 12v transformer. Then I ran the blue - to the Ground on the 12v transformer and the BOB gnd then I put the black on the input signal and the switch lit up but wouldn't trigger. So I disconnected the blue just from the transformer to the BOB and it now works like it should. It's more sensitive and works great.
So no transistors.
Thanks Mike