mriscoc / Ender3V2S1

This is optimized firmware for Ender3 V2/S1 3D printers.
Other
2.62k stars 358 forks source link

Mesh leveling data is drawing over the printing screen #1009

Closed mriscoc closed 1 year ago

mriscoc commented 1 year ago

Bug Description

When a new auto mesh leveling is required prior printing, the G29 (or G29 P1 for UBL) code needs to be inserted in the G-code start script but it may result in this:

image

This is caused by an incorrect position of the G-codes that heat the bed and the hot-end. By example, this G-code snippet will cause that error:

...
G28; 
G29; 
M190 S{first_layer_bed_temperature[0]}; 
M109 S{first_layer_temperature[0]};
M104 S170 ;
...

Temperature has high priority in the firmware, and changing temperatures in the middle of printing process will trigger the printing screen. So due to the priority, it will run the M190 without waiting for mesh leveling to complete, then, the mesh points will be drawing over the printing screen.

The correct way of set the start G-code script is detailed in: https://github.com/mriscoc/Ender3V2S1/wiki/Slicer-G-code-Scripts

...
M104 S[first_layer_temperature] ; set extruder temp
M140 S[first_layer_bed_temperature] ; set bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
M109 S[first_layer_temperature] ; wait for extruder temp
G28 ; home all
G29 ; Run mesh leveling on every print (or G29 P1 for UBL)
M500; Save mesh data (or G29 S0 for UBL), optional
C108 ; Close the mesh viewer, optional
...
github-actions[bot] commented 1 year ago

This issue has had no activity in the last 60 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed within 10 days.

github-actions[bot] commented 10 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.