Hybrid View
-
12-03-2016 #1
The manual shows PNP swithces and your using NPN. Take 12V to pin 10 and Put Black wire to Gnd. Then it will work.
-
12-03-2016 #2
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?
-
13-03-2016 #3
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
-
13-03-2016 #4These switches cannot be used for combined homing/limits..Clive
The more you know, The better you know, How little you know
-
13-03-2016 #5
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.
-
13-03-2016 #6
ok, but the inputs are already pulled high internally by 4k7 so surely another pull-up would be bad??
You can see the LED on the sensor flickering unless the tip is 100% covered by the target, this does not match my previous experience of inductive sensors where they are either on or off - NO flickering!
This is not a PNP/NPN issue, these are NPN and wired for NPN normally open.
JAZZ, you use sensors, does the LED flicker?
here's a video...
https://youtu.be/S5PP5sQh5Vk
-
13-03-2016 #7
Even the super cheap Ebay ones work ok dave.
You haven't wired the switch powers in series have you.? That flickering looks like struggling for volts.!
-
13-03-2016 #8
-
13-03-2016 #9
Thread Information
Users Browsing this Thread
There are currently 12 users browsing this thread. (0 members and 12 guests)
Similar Threads
-
BUILD LOG: First time build - Steel Frame CNC Router
By examorph in forum DIY Router Build LogsReplies: 144Last Post: 19-10-2023, 06:25 PM -
BUILD LOG: Well here goes... Aluminium frame router design
By CharlieRam in forum DIY Router Build LogsReplies: 186Last Post: 11-05-2020, 12:39 PM -
BUILD LOG: Steel frame cnc router design/build
By CraftyGeek in forum DIY Router Build LogsReplies: 110Last Post: 06-05-2015, 10:00 PM -
WANTED: CNC Mill/Router for Cutting Aluminium
By kylelnsn in forum Items WantedReplies: 5Last Post: 09-08-2012, 09:54 PM -
BUILD LOG: Aluminium Extrusion CNC Router Build
By joshendy in forum DIY Router Build LogsReplies: 9Last Post: 10-04-2012, 08:26 PM
Bookmarks