2nd print too high and z-offset is inconsistent,config problem?
-
@cosmowave said in 1st print perfect,2nd print too high,config problem ?:
G91 ; relative positioning if {move.axes[2].userPosition +5} < move.axes[2].max ; possible to move z+5 ? G0 Z+5 ; move z 5mm away from nozzle else G0 Z+{move.axes[2].max - move.axes[2].userPosition} ; move z to the max possible position
ok iadd this code in my Duet Stop.g
do i need to change something in my End G-Code ? -
@lui2004 In your start code, you only home XY (G28 XY) Now that we have changed homeall.g, you can replace it with a simple G28.
New start code:T0 M561 ; Clear any bed transform that might be in place G28 ;Home all G29 S1 ; Load my custom heightmap. Otherwise use G29 S1 ... ; rest is OK
-
@lui2004 you should insert my code in your end code (at the position where you raise the z axle), not in stop.g. Because you disable the motors in your end code.
Stop.g will be called afterwards, and with disabled motors it will be not possible to move z!e.g. your modified end code:
M106 S0 ; turn off cooling fan M104 S0 ; turn off extruder M140 S0 ; turn off bed G91 ; relative positioning if {move.axes[2].userPosition +5} < move.axes[2].max; possible to move z+5 ? G0 Z+5; move z 5mm away from nozzle else G0 Z+{move.axes[2].max - move.axes[2].userPosition}; move z to the max possible position G90 ; set to absolute positioning G1 X235 Y235 ; park at X0 Y0 M84 ; disable motors
-
@cosmowave said in 1st print perfect,2nd print too high,config problem ?:
M106 S0 ; turn off cooling fan M104 S0 ; turn off extruder M140 S0 ; turn off bed G91 ; relative positioning if {move.axes[2].userPosition +5} < move.axes[2].max; possible to move z+5 ? G0 Z+5; move z 5mm away from nozzle else G0 Z+{move.axes[2].max - move.axes[2].userPosition}; move z to the max possible position G90 ; set to absolute positioning G1 X235 Y235 ; park at X0 Y0 M84 ; disable motors
i got this error from prusaslicer:
G-code export to C:\Users\Lfna\AppData\Local\Temp\.2324.gcode failed due to invalid custom G-code sections: end_gcode Parsing error at line 5: Not a variable name if {move.axes[2].userPosition +5} < move.axes[2].max; possible to move z+5 ? ^ Please inspect the file C:\Users\Lfna\AppData\Local\Temp\.2324.gcode.tmp for error messages enclosed between !!!!! Failed to process the custom G-code template ... and !!!!! End of an error report for the custom G-code template ... for all macro processing errors.
-
@lui2004 ok, then it could be, that this code is not allowed in prusa slicer.
I use it in stop.g, so it's slicer independent....
Sorry for that! -
no problem !
now i have follow problem, my z-offset shows me different z-offsets:
whats going wrong here ?Stopped at height 0.709 mm Stopped at height 0.729 mm Stopped at height 0.739 mm Stopped at height 0.756 mm Stopped at height 0.697 mm Stopped at height 0.696 mm Stopped at height 0.697 mm
-
Morning
the problem with the second preresist,the second print is always too high
i must shutdown the printer and then is all fine and the second print is again high
i dont know why
-
@lui2004 About this i can't say much. I don't use a z-probe...
Do you use babystepping during the first print?Can you please post your startcodes once again?
-
no, i dont use babystep for the first print ,its all fine
prusa slicer start g-code:
T0 G28 XY ;Home XY M561 ; Clear any bed transform that might be in place G1 X162 Y110 ; Move Probe to middle of bed G30 ; Do a single probe G29 S1 ; Load my custom heightmap. Otherwise use G29 S1 G92 E0 ;Reset Extruder G1 Z2.0 F3000 ;Move Z Axis up M104 S[first_layer_temperature] ; set final nozzle print temp M109 S[first_layer_temperature] ; wait for the nozzle to heat up G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line G92 E0 ;Reset Extruder
end g-code:
M106 S0 ; turn off cooling fan M104 S0 ; turn off extruder M140 S0 ; turn off bed G91 ; set to relative positioning G1 Z5 ; raise Z 5 mm G90 ; set to absolute positioning G1 X235 Y235 ; park at X0 Y0 M84 ; disable motors
-
-
-
@cosmowave @lui2004
The start code in my slicer is always empty. Also my homeall.g only calls homeX, homeY, homeZ.
I want only one file, I have to edit.My guess is, you G30-probe the bed after the heightmap is loaded, which changes the Z-height
-
@o_lampe
Thanks ,i will test it after work -
@o_lampe said in 2nd print too high and z-offset is inconsistent,config problem?:
I also repeat the G31 line everytime I change M558. I'm afraid it'll use default values instead, if I don't. (paranoid?)
Definitely paranoid. The G31 restatement is unneeded.
@cosmowave said in 2nd print too high and z-offset is inconsistent,config problem?:
your end code is not really nice if you print an object near zmax! So the z axle can't raise 5mm.
It moves the z axle 5mm if it is possible.
If not, it moves to zmax.Also unnecessary. If the axis limits are set correctly, the firmware won't allow it to go beyond z max anyway, so a relative move close to the z limit would stop at zmax regardless. No need for conditional gcode there.
@lui2004 Did you end up figuring out your problem with the second print start?