Confirmation required for wiring end stop switch with led
-
Update on this. If I try to home Z with the switch wired like this, when I trigger the switch, the bed rises slowly but continues to rise. Fortunately I had the bed well down which gave me enough time to kill the power before anything got mangled. What to do now?
-
Endstops and Z probes should always be tested using M119 or the DWC machine properties page before relying on them.
-
Yes OK but what can I try next to get this working? It sort of triggers because the in built LED illuminates and the bed rises at a slower rate. Like it does with your IR probe but the bed doesn't stop - it just carries on at a slower rate. For info I'm using a 550 ohm resistor because it is more or less in the middle of the 220 ohm to 1k ohm you suggested. Would a lower/higher value work?
What about my other questions? i.e. should the LED on the duet board change state with this configuration and can still use E0 as and emergency stop or should I reconfigure it?
I tried Misumi's site to see if I could buy a non LED version of this switch but it's been discontinued. The only version available is the LED version. It's a precision positioning switch, designed for homing machinery so I'd be disappointed if there is no way to get such a switch to work with the Duet.
-
What is the Z probe value shown in DWC when the switch is/isn't closed?
-
In it's "normal" state, the value is 0. When it is made (as in if the end stop limit was triggered), it is 474. According to the data sheet, it's a normally open switch.
Edit. Didn't know about the M119 command. Just tried it and with the switch triggered I get "Endstops - X: not stopped, Y: not stopped, Z: near min stop, Z probe: near min stop"
-
Got impatient so I tried a 1.2k ohm resistor and the probe value went up to 484. Tried a 4k7 and it went up to 500 and M119 now reports Z at min end stop. So seems to work with that value resistor. Is it safe to leave it like that?
Further edit. Just realised that I can change the trigger value in G31, as well as the trigger height. I've only ever used the mini height sensor so always had it set to 500 and completely forget that it can be set to any other value. So back to the 500 ohm resistor and setting a trigger value of 450 works. Given that the value changes between O and 474, is 450 a reasonably safe number to use?
-
So it was just the trigger level? You could in theory just lower that?
Also I'm interested in the outcome of this. I've got issues with 3Dlac and the IR sensor.
-
Got impatient so I tried a 1.2k ohm resistor and the probe value went up to 484. Tried a 4k7 and it went up to 500 and M119 now reports Z at min end stop. So seems to work with that value resistor. Is it safe to leave it like that?
I suggest you lower the trigger level (G31 P parameter) to 250.
-
Sorry guys, we were all typing at the same time. I've just edited my post having remembered that I can edit the trigger value. I've only ever used DCs probe so it's always been 500 and I've never changed it - completely forgot that it was editable.
-
So it was just the trigger level? You could in theory just lower that?
Also I'm interested in the outcome of this. I've got issues with 3Dlac and the IR sensor.
Well I'm pretty confident that the switch will work - that's what it's designed to do. However, it is a contact switch so you can't use it directly on the bed unless you use some mechanism to deploy it. That is to say, you can't have it permanently lower than the nozzle because it will be scraping on the printed part, and you can't have it higher because the nozzle will touch the bed before the probe does. My plan is to use it above the hot end mount with the nozzle itself being the probe. Check my sliding mount thread to see what I mean.
So it's the sliding mount part that could screw up the repeatability. I've nearly got a working prototype but I have to change the entire XY carriages to test it.
Ian