Hybrid View
-
13-10-2016 #1
-
13-10-2016 #2
These proximity switches come in so many flavours. The switch the OP is using switches to ground and an internal resistor makes no sense; the switch in the previous post switches to the supply rail and maybe an internal resistor is more useful.
If you use the NC version of the OP's switches, wired as suggested in series with the BOB input, you can connect a number of them to a single input. I have tested four in series, using 24V and a CSMIO, and that seems to work fine. Using the OP's NO switches, you would have to wire them in parallel but you lose the "fail safe" feature of NC switches.Last edited by Neale; 13-10-2016 at 08:58 AM. Reason: Corrections
-
13-10-2016 #3
People seem to be over complicating this.
.
Given the BOB in question requires switched to 0V to activate the input, all you need to do is wire 24V to BN, 0V to BU, then connect the BK to the BOB input. You may need to also connect the BOB 0V to the sensor, however I'd assume this BOB doesn't have fully isolated inputs, and the 24V and 5V supplies already have their 0V connected at some point.
.
An NPN sensor simply switches the output wire to 0V, and should go essentially open circuit when unactivated. You should not need any kind of pull up resistor on the sensor output.
However as has been mentioned already, the sensor may not switch perfectly to 0V, and may struggle to reliably switch the BOB input. In that case, adding a small relay into the circuit would be needed.
Alternatively, there's these simple sensors called switches... ;-)Avoiding the rubbish customer service from AluminiumWarehouse since July '13.
-
The Following 2 Users Say Thank You to m_c For This Useful Post:
-
13-10-2016 #4
NPN and PNP are transistor types. Transistors are like switches, strangely picky switches.
An NPN switches power to ground. A PNP switches power off the power rail.
So if you have an NPN output sensor it is going to switch something to ground.
If you wanted a Voltage, connect a resistor between and NPN output and the Voltage rail.
More likely you want a current. To avoid interference CNC folk tend to use opto-isolation, the output turns on an LED which shines on a detector, which probably has an NPN output, but someone else can worry about that one.
The only sensible way to drive an LED is with a resistor off the Voltage rail, through your LED, through the NPN output to ground.
If it is a silicon transistor you will have a 0.7V drop across it, probably another 1.2V drop across the LED, use whatever is left to calculate the resistor value.
-
14-10-2016 #5
Reason why I over-complicated things was that I had assumed that this BOB had opto-isolated inputs (I've been working with a CSMIO card recently which does things that way and I made a false assumption). I have been trying to test my own ZPA5 with Mach3 but after a couple of hours, remembered that the parallel port version of Mach3 doesn't work on 64-bit Windows. However, I did take a look at the card itself and it looks like the inputs go into a set of buffers, no opto-isolation, but with a pull-up resistor. So as m_c accurately says, just take the black wire to the BOB input. Make sure that the 0V of the 24V power supply (blue wire to prox switch) goes to the ground connection on the BOB. In fact, just as in your first diagram but the resistor is redundant. What is probably worth doing is checking that with the prox switch disconnected, just shorting the BOB input pin to ground does register with Mach3 (stick a small screwdriver blade in the two-pin socket next to the screw terminals). If that works and you see the Mach3 diagnostic "LED" go on and off, then you can connect the proper switch and see if that works.
For those who mentioned the possible 10K resistor in the switch - the BOB appears to have a current-limiting resistor in series with the input to the buffer inverter which also includes clamp diodes to restrict input voltage at the input pin. So the 10K resistor, if it does exist, is just going to act as another pull-up when the switch is open and can be ignored when the switch is closed. If it doesn't exist, it doesn't matter as the BOB has an onboard pull-up anyway.
See - some of us have been working this evening instead of drinkingLast edited by Neale; 14-10-2016 at 11:15 PM.
-
The Following User Says Thank You to Neale For This Useful Post:
-
15-10-2016 #6
-
The Following User Says Thank You to cropwell For This Useful Post:
-
15-10-2016 #7
Thanks for that, Rob - first time I've seen a representation of the switch internal circuit. I find those little extracts of both input and output circuits very useful in getting an understanding of how things go together, and especially when it comes to working out why something doesn't work! Too much detail for some, perhaps...
Now I'll have to draw out the combined circuit of four of those (NC versions) strung in series, so that I can use a single input for combined limit switches, just to reassure myself that it should work - even though I've wired it up on the bench and it does seem to.
Maybe some of us take a more theoretical approach where others just want to know where to stick the black wire
Just in case the OP is still with us and hasn't given up the will to live - this just confirms that your original wiring should be fine if you take out the resistor.
-
15-10-2016 #8Now I'll have to draw out the combined circuit of four of those (NC versions) strung in series, so that I can use a single input for combined limit switches, just to reassure myself that it should work - even though I've wired it up on the bench and it does seem to.
I think there will be an increasing delay put in to the circuit the more you connect...Clive
The more you know, The better you know, How little you know
-
15-10-2016 #9
Hi Neale - I'm still here! Just about. But I must be having a brain fade because when I connect the black wire to pin 10, the blue wire to the pin 10 GND, then run a wire back to the -ve 24v supply it buzzes and does'nt work. I checked the GNDS on the ZP5A-INT board (it has a 5v supply from my Leadshine PS408/5 ), all the gnds are connected by doing a continuity check with the BOB unpowered from the -5v pin. I guess I just need to sleep on this and start again tomorrow. I must be missing something in what you guys have said and suffering from a case of "Goldfish brain"
-
09-10-2017 #10
Hi Neale - I gave up on this for a while but now my machine is working nicely I really do need to get my "fish brain" around this and get the homing set up with these proximity switches so that I can do auto tool setting height etc. So if I understand your post correctly I need to do this as shown in the attached picture
Choosing the appropriate value of R drops the voltage down enough for the input and away we go (hopefully!) .
I really appreciate all the posts from you guys on this.
Kind Regards
Mike
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Proximity limit switch problems
By davrich in forum General ElectronicsReplies: 16Last Post: 12-03-2018, 01:58 PM -
Wiring 3 wire proximity switches in series
By mikem in forum General ElectronicsReplies: 6Last Post: 02-05-2016, 09:33 AM -
3 wire proximity switch help
By mikem in forum General ElectronicsReplies: 24Last Post: 06-10-2015, 03:24 AM -
Proximity switch NPN or PNP
By Matt81 in forum General ElectronicsReplies: 9Last Post: 19-04-2014, 11:38 AM -
Proximity Wiring Problem
By Bruce in forum General ElectronicsReplies: 7Last Post: 13-01-2014, 07:21 PM
Bookmarks