. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quote Originally Posted by Davek0974 View Post
    These ones, they seemed to be the most common type, NO, NPN.

    LJ12A3-4-Z/BX


    How are you connecting the switches to the BOB.? What pin does the Black wire go to.?

  2. #2
    On my CP0-10V bob from CNC4YOU it goes to pin 10 and i am using input 10 in P&P settings, you can see the LED on the back of the sensor flicker as the target is starting to cover the end of the sensor, when fully covered the LED is on stable.

    The sensors are powered from the 12v output on the BOB as shown in their diagrams.
    Last edited by Davek0974; 12-03-2016 at 06:33 PM.

  3. #3
    The manual shows PNP swithces and your using NPN. Take 12V to pin 10 and Put Black wire to Gnd. Then it will work.

  4. #4
    Quote Originally Posted by JAZZCNC View Post
    The manual shows PNP swithces and your using NPN. Take 12V to pin 10 and Put Black wire to Gnd. Then it will work.

    This is the manual i used http://cnc4you.co.uk/resources/CP0-10V.pdf, the switches and sensors pull the pins down to activate, I guess thats active low, and i thought NPN was sink or active low output i.e the pin is pulled high internally and the sensor pulls it low?

  5. #5
    Sorted

    These switches cannot be used for combined homing/limits - the flickering output immediately triggers a limit fault after homing as it sees the flicker as the next sense input. Probably just crap sensors.

    My fix was to use them for homing only, then add soft limits to control the position limits on all axes - the mill will always be homed when in use so this seems a safe option.

    However, as the sensors all use one input, it sees the flickering as the next axis sense and just zeros all the dro's - did i say these sensors are crap?

    The fix - modify the home-all button script to something like this for all axes...

    DoButton( 24 )
    While IsMoving()
    Wend
    DoOEMButton(133)
    While IsMoving()
    Wend
    Code "G53 G1 z-3 F500"
    While IsMoving()
    Wend

    This runs the home, zero's the DRO, then steps back 3mm which is enough to get the target clear of the sensors, then it moves onto the next axis and so on. It works perfectly but does leave the tool at X3, Y3, Z-3 but then you can jog back if it matters as the soft limits will stop a crash. It does NOT work without the While IsMoving lines in there. Debounce does NOT make any difference and is now set to zero.

    I guess I could add a move to zero on all axes after the homing finishes, just to park it all at zero.

    A video of homing working nicely...
    https://youtu.be/T2CeluqhRl4

    Now i can start final wiring and finish the build, damn good fun playing with it though

  6. #6
    Clive S's Avatar
    Lives in Marple Stockport, United Kingdom. Last Activity: 10 Hours Ago Forum Superstar, has done so much to help others, they deserve a medal. Has a total post count of 3,345. Received thanks 618 times, giving thanks to others 87 times. Made a monetary donation to the upkeep of the community. Is a beta tester for Machinists Network features.
    These switches cannot be used for combined homing/limits
    I don't think it is right to condemn the switches and say they don't work for combined use. Lots of people use them it all depends how they are wired. NPN and PNP are different and have to be wired different.
    ..Clive
    The more you know, The better you know, How little you know

  7. #7
    Dave these switches 100% do work for both I use them all the time. It's either your using them wrong or possible the BOB doesn't work like you think.?

    How you have worked around the problem may well work but I wouldn't trust for repeatabilty.

    I think the answer to the problem is you'll need to use 10k resistor to force the input high.
    Last edited by JAZZCNC; 13-03-2016 at 12:12 PM.

  8. #8
    Quote Originally Posted by Clive S View Post
    I don't think it is right to condemn the switches and say they don't work for combined use. Lots of people use them it all depends how they are wired. NPN and PNP are different and have to be wired different.
    I didn't mean "these" as in all sensors, just maybe these super cheap eBay ones possibly, they were only £2.50ea. Previous experience was that the LED & output was either ON or OFF, not flickering depending on how close the target is.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. BUILD LOG: First time build - Steel Frame CNC Router
    By examorph in forum DIY Router Build Logs
    Replies: 144
    Last Post: 19-10-2023, 06:25 PM
  2. BUILD LOG: Well here goes... Aluminium frame router design
    By CharlieRam in forum DIY Router Build Logs
    Replies: 186
    Last Post: 11-05-2020, 12:39 PM
  3. BUILD LOG: Steel frame cnc router design/build
    By CraftyGeek in forum DIY Router Build Logs
    Replies: 110
    Last Post: 06-05-2015, 10:00 PM
  4. WANTED: CNC Mill/Router for Cutting Aluminium
    By kylelnsn in forum Items Wanted
    Replies: 5
    Last Post: 09-08-2012, 09:54 PM
  5. BUILD LOG: Aluminium Extrusion CNC Router Build
    By joshendy in forum DIY Router Build Logs
    Replies: 9
    Last Post: 10-04-2012, 08:26 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
  •