z probe not displaying under sensor status web controller
-
@jay_s_uk sorry, i want to get the z probe to home the z axis. is that possible?
-
Yes.
Instead of using G1 H1 etc to home the axis, G30 is used instead.
So in your homez, use something likeG91 ; Relative mode G1 H2 Z5 F5000 ; Lower the bed G90 ; Back to absolute positioning G1 X160 Y130 F10000 ; Move to the center of the bed ; ################# Home Z Preparation ################ M558 F250 ; Set the probing speed G30 ; Probe a single point M558 F30 ; Set a slower probing speed G30
That moves the Z axis to make sure the nozzle is clear of the bed, moves to the center of the bed and then probes at one speed and then again at a slower speed.
Obviously you'll have to adjust the G1 XY movement so the probe is over the centre of your bed. -
Remove this line completely. You can't use the pin twice, but it's currently listed as being used as an endstop and a z probe. So remove the endstop line entirely. You don't need to specify M574 Z at all if it's not going to be used as an endstop at all.
M574 Z1 S2 p"20.io0.in" ; configure active-Low endstop for high end on Z via pin 20.io0.in
That should clear up the invalid use of P error.
How did you have the NPN sensor configured before? Was it ever working with the tool board? Or at all?
-
-
Hmm, well that does work, actually, but it's normally not done with the same switch. In other words, you'd have an endstop switch and a z probe each connected to a separate pin.
G30 calls the probe, and G1 H1 Z does the endstop homing move.
I'm not sure how well it would handle the Z endstop being wired to the tool board though. Normally the endstop should be connected to the same board as the motor it' stopping.
What is your desired use case? Why use the probe as an endstop instead of just using it as the probe? I could understand wanting to use a separate endstop switch, but why dual purpose the probe?
-
@1997alex said in z probe not displaying under sensor status web controller:
i guess it wont work.
It does work. See my post above. On 2 of my machines I don't have a z endstop, only the probe
-
@Phaedrux so I just want to have less switches and figured that it would be less adjustment I would have to do to fix the switch for probing or the end stop. But i thought i had it working as i want it to before. ill try to mess with the home z file.
-
@jay_s_uk Im going to try it out. will let you know if it works.
-
This post is deleted! -
OK it worked but I thought it would also work to stop the z axis from moving like when you use a end-stop but it keeps going toward the bed . it homes z using the z probe now which is what i wanted but id like to use it as a endstop too. what should i add to my code besides the G30 to my homez.g file?
; homez.g ; called to home the Z axis ; ; generated by RepRapFirmware Configuration Tool v3.1.4 on Thu Jul 23 2020 03:24:36 GMT+0100 (British Summer Time) G91 ; relative positioning G1 H2 Z5 F380 ; lift Z relative to current position G30 Z852.47 F380 s2 ; move Z up until the endstop is triggered G92 Z852.47 ; set Z position to axis maximum (you may want to adjust this) ; Uncomment the following lines to lift Z after probing G91 ; relative positioning G1 Z852.47 F390 ; lift Z relative to current position G90 ; absolute positioning
-
@1997alex said in z probe not displaying under sensor status web controller:
G30 Z852.47 F380 s2 ; move Z up until the endstop is triggered
G92 Z852.47 ; set Z position to axis maximum (you may want to adjust this)i am confused this seems like you are setting z max when the probe triggers.
-
@1997alex said in z probe not displaying under sensor status web controller:
G30 Z852.47 F380 s2 ; move Z up until the endstop is triggered G92 Z852.47 ; set Z position to axis maximum (you may want to adjust this)
This is incorrect.
@1997alex said in z probe not displaying under sensor status web controller:
OK it worked but I thought it would also work to stop the z axis from moving like when you use a end-stop but it keeps going toward the bed . it homes z using the z probe now which is what i wanted but id like to use it as a endstop too.
There appears to be some confusion. It sounds like your probe isn't triggering properly to stop the bed from moving like it should. Is that what you mean to use it as an endstop?
Can you please perform this test on your probe to see if it's actually working before you try to home the printer again.
https://duet3d.dozuki.com/Wiki/Test_and_calibrate_the_Z_probe
Let us know how far you get.
If the test works and it stops properly, then your homez should look like what was posted by @jay_s_uk above.
G91 ; Relative mode G1 H2 Z5 F5000 ; Lower the bed G90 ; Back to absolute positioning G1 X160 Y130 F10000 ; position probe G30 ; probe the bed
-
@Phaedrux ok, sorry about that confusion. I wasn’t sure what part of the code to input into my homez file at first but it works now. Thanks.