. .
Page 1 of 4 123 ... LastLast
  1. #1
    Hi Guys

    I am using NPN Proximity switches from here and a 5v BOB from Zapp Automation . I fitted a 2.4k ohm resistor between the black signal wire and the blue (-ve line) and connected up to a 24v dc power supply. When the switch is open, the voltage between the signal wire and the blue line is 4.5v ok I think for the input to the BOB. When the switch is closed, it drops to 0.7v - measured using a DMM and the LED on the back lights up. I connect the black wire to pin 10 of the BOB and the blue wire to the GND. When I activate the switch, the LED does'nt light and nothing is detected via the diagnostic screen of MACH3. And yes the port & pins is set for the Home to pin 10.
    The 24v power supply buzzes and the indicator LED on it goes out. What have I done wrong?

    Thanks
    MikeClick image for larger version. 

Name:	Proximity_Switch_24v_to_5v_1.jpg 
Views:	7533 
Size:	28.5 KB 
ID:	19436Click image for larger version. 

Name:	20161012_204916.jpg 
Views:	595 
Size:	148.3 KB 
ID:	19434Click image for larger version. 

Name:	20161012_204625_half_size.jpg 
Views:	512 
Size:	194.0 KB 
ID:	19435
    Last edited by MikeyC38; 12-10-2016 at 09:52 PM.

  2. #2
    Connect one end of the resistor to +24V, not to PSU -ve. What you then have is the BOB input driven from the 24V with the resistor lowering the voltage to the BOB to a nominal 5V. When the proximity switch operates, it shorts out the BOB input to ground. Should be OK although it's not quite a conventional way to wire things, and it might not work reliably as it depends on the proximity switch bringing the BOB input voltage close enough to ground to trip the BOB input. You will have to figure out whether you then want active high or active low configured in Mach3 to do want you want - probably active low.

    Unfortunately the ZP5A manual is very vague on the details of the input connections. I don't remember now if the limit switch inputs have a common ground or if they are separate. I used to use one of these BOBs myself but that machine didn't use any limit switches so I never had to sort this one out. Can you check with a meter if the limit switch input ground connections are all connected together? It's possible that they are not, and in that case there is a better way to wire the switches. Take +24 via the resistor to the BOB input. Then connect the BOB input ground to the black wire on the prox switch. Brown and blue wires stay as they are on your diagram. This would probably need active high in Mach3 and from an electrical point of view is the "right" way to do it. However, it does depend on the limit switch grounds being electrically isolated from each other.
    Last edited by Neale; 12-10-2016 at 10:48 PM.

  3. The Following User Says Thank You to Neale For This Useful Post:


  4. #3
    Some of these switches have a 10K inside and limit the current to a few mA I have used these on 5V inputs without any other R's without problems
    ..Clive
    The more you know, The better you know, How little you know

  5. The Following User Says Thank You to Clive S For This Useful Post:


  6. #4
    Quote Originally Posted by Neale View Post
    Connect one end of the resistor to +24V, not to PSU -ve. What you then have is the BOB input driven from the 24V with the resistor lowering the voltage to the BOB to a nominal 5V. When the proximity switch operates, it shorts out the BOB input to ground. Should be OK although it's not quite a conventional way to wire things, and it might not work reliably as it depends on the proximity switch bringing the BOB input voltage close enough to ground to trip the BOB input. You will have to figure out whether you then want active high or active low configured in Mach3 to do want you want - probably active low.

    Unfortunately the ZP5A manual is very vague on the details of the input connections. I don't remember now if the limit switch inputs have a common ground or if they are separate. I used to use one of these BOBs myself but that machine didn't use any limit switches so I never had to sort this one out. Can you check with a meter if the limit switch input ground connections are all connected together? It's possible that they are not, and in that case there is a better way to wire the switches. Take +24 via the resistor to the BOB input. Then connect the BOB input ground to the black wire on the prox switch. Brown and blue wires stay as they are on your diagram. This would probably need active high in Mach3 and from an electrical point of view is the "right" way to do it. However, it does depend on the limit switch grounds being electrically isolated from each other.
    Hi Neale
    Thanks for your response. It seems to tie up with what is on the switch label anyway. The ZPA5-INT has a seperate ground for each pin input. I'll give it a go.

    Regards
    Mike

  7. #5
    Quote Originally Posted by Clive S View Post
    Some of these switches have a 10K inside and limit the current to a few mA I have used these on 5V inputs without any other R's without problems
    Absolutely right. Here below is how to check if that is the case / credit goes to C23 BOB manual/

    Click image for larger version. 

Name:	sensors.PNG 
Views:	1507 
Size:	142.6 KB 
ID:	19439
    project 1 , 2, Dust Shoe ...

  8. #6
    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

  9. #7
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 2 Days Ago Forum Superstar, has done so much to help others, they deserve a medal. Has been a member for 9-10 years. Has a total post count of 2,908. Received thanks 360 times, giving thanks to others 8 times.
    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.

  10. The Following 2 Users Say Thank You to m_c For This Useful Post:


  11. #8
    Quote Originally Posted by Boyan Silyavski View Post
    Absolutely right. Here below is how to check if that is the case / credit goes to C23 BOB manual/

    Click image for larger version. 

Name:	sensors.PNG 
Views:	1507 
Size:	142.6 KB 
ID:	19439
    Useful post Boyan. Applied the formula to the NPN I had with the external 2.4K ohm resistor I used and got answer of 10.4K ohm for the switch internal resistance. This seems consistent Clive S post. The switch does have 300ma printed on it. But I think this is too much current for the BOB input. So back to the Neale's suggestion. Will let you guys know how it works out.

  12. #9
    Quote Originally Posted by MikeyC38 View Post
    The switch does have 300ma printed on it. But I think this is too much current for the BOB input.
    What that means is that the switch can source 300mA try putting a mA meter in circuit and see what you get.
    Last edited by Clive S; 14-10-2016 at 07:51 AM. Reason: corrections for the sake of ambiguity
    ..Clive
    The more you know, The better you know, How little you know

  13. #10
    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.

Page 1 of 4 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Proximity limit switch problems
    By davrich in forum General Electronics
    Replies: 16
    Last Post: 12-03-2018, 01:58 PM
  2. Wiring 3 wire proximity switches in series
    By mikem in forum General Electronics
    Replies: 6
    Last Post: 02-05-2016, 09:33 AM
  3. 3 wire proximity switch help
    By mikem in forum General Electronics
    Replies: 24
    Last Post: 06-10-2015, 03:24 AM
  4. Proximity switch NPN or PNP
    By Matt81 in forum General Electronics
    Replies: 9
    Last Post: 19-04-2014, 11:38 AM
  5. Proximity Wiring Problem
    By Bruce in forum General Electronics
    Replies: 7
    Last Post: 13-01-2014, 07:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •