Once again Z min endstop, BLtouch G29 and G32 correct using
-
Hi!
In my printer I have Zmin endstop (I want to keep it, but will write about that later) and BLtouch.
I would like to know how should looks correct procedure for making bed mesh compensation and true bed leveling.How I'm doing that (every time I remove glass and put it back again):
I'm heating the bed.
Sending G32 command to adjuts 4 Z motors. My bed.g looks like that:M561 ; clear any bed transform G1 Z5 F1500 G1 X152 Y185 F6000 G30 G30 P0 X1 Y5 Z-99999 G30 P1 X1 Y280 Z-99999 G30 P2 X304 Y280 Z-99999 G30 P3 X304 Y5 Z-99999 S4 G1 X0 Y-10 Z5 F6000
after that i have macro for G30 before G29 (would be great to have macro that is running when starting G29 - eg. heat nozzle, do G30 etc):
G29 S2 G1 Z5 F1500 G1 X152 Y185 F6000 G30 G1 Z5 F1500 G1 X0 Y-4 F6000
now I'm doing G29 and after that i have everything done.
When I'm starting print my start g-code looks like that:
... G10 P0 S0 R0 ; set extruder temperature to 0 M140 S[first_layer_bed_temperature] ; heat bed G28 ; home all axes M190 S[first_layer_bed_temperature] ; wait for bed temp G29 S2 ; clear bed compensation G10 P0 S150 ; nagrzej dysze do 150 G32 ; Bed leveling G29 S1 ; load leveling map ....
Is this procedure correct in your opinion?
I want to keep Zmin endstop because:
printhead is outside bed area
in my other 2 printers with Marlin firmware it works great (Zendstop and BLtouch) -
Yes you can have endstop and probe both defined. The endstop is used with a G1 H1 Z movement to trigger the endstop. The probe is used with G29 and G30. Just be aware that you should be setting your Z0 position with the probe before and after the auto leveling and the same for the mesh creation or loading and before the print.
You haven't posted your homeall so I can't say if there are any issues with what you have, but there could be.
In your bed.g I would add another G30 at the end to re-establish the z0 position after the tilt correction has been done since it may have changed.
Like so:
M561 ; clear any bed transform G1 Z5 F1500 G1 X152 Y185 F6000 G30 G30 P0 X1 Y5 Z-99999 G30 P1 X1 Y280 Z-99999 G30 P2 X304 Y280 Z-99999 G30 P3 X304 Y5 Z-99999 S4 G1 X152 Y185 F6000 G30 G1 X0 Y-10 Z5 F6000
If you did that, based on your current sequence of gcodes you should not have any issues.
-
G91 ; relative positioning G1 H2 Z5 F2400 ; lift Z relative to current position G1 H1 X-304 Y320 F3000 ; move quickly to X and Y axis endstops and stop there (first pass) G1 H2 X5 Y-5 F6000 ; go back a few mm G1 H1 X-304 Y320 F300 ; move slowly to X and Y axis endstops once more (second pass) G1 H2 Y-320 F4800 G1 H1 Z-300 F600 ; move Z down stopping at the endstop G1 H2 Z3 F2400 G1 H1 Z-300 F180 G90 ; absolute positioning G1 Z5 F1200 ; lift Z
This is my homeall.g
Thank you for sugestion with another G30 at end of G32
-
@button said in Once again Z min endstop, BLtouch G29 and G32 correct using:
Thank you for sugestion with another G30 at end of G32
because the G32 adjust the tilt. therefore the Homing point height might change.
-
@button Where you have you G29 S1, you could change to this:
M561 ; clear any bed transform
G29 S1
if result > 1
G29 S0As long as heightmap.csv exists, it will always load the height map. When heightmap.csv is deleted, you get a new one made.
-
Before today playing with printer reading from G32 were:
I'm finalizing screwing and tensioning everything back and I'll post what readings I have now.
2 gantrys where completely not tensioned...
EDIT
After mechanical corrections:
How should it looks? Is this reading is ok?
BTW:
What's doing F parameter in M671 command? -
@button said in Once again Z min endstop, BLtouch G29 and G32 correct using:
What's doing F parameter in M671 command?
It's a fudge factor. So if it's always a little over or under on it't correction on the first pass you can adjust the F parameter to make it have more or less effect.
The readings don't mean a lot to me looking at them. The real question is whether it's having the right effect on your bed tilt.