Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting G1 before start macro, causing error on printer #4136

Closed
jmceara opened this issue Feb 16, 2024 · 3 comments
Closed

Inserting G1 before start macro, causing error on printer #4136

jmceara opened this issue Feb 16, 2024 · 3 comments
Labels
bug Something isn't working as intended fix is live in the last release Please download /build the last release and try to reproduce.

Comments

@jmceara
Copy link

jmceara commented Feb 16, 2024

Bug description
Superslicer is putting some GCode before "Start G-Code", causing error while printing (Axis is not homed). More exactly this code:

G1 Z0.25 F27000
M107

Expected behavior
Don't inset anything else (movements gcode, at least) before "Start G-Code"

ValentinesHeart.zip

To Reproduce
Open project, slice and export gcode.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Version 2.5.59.8
  • Voron v2.4 R2 with Klipper
@legend069
Copy link

legend069 commented Feb 17, 2024

disabled wipe_tower and the extra z movement command is gone.
re sliced with 2.5.59.7 bug is still present.

i can't replicate it with my config using a single extruder.(only the m107 command is inserted before the start_gcode)

likely same issue as here #4133

@jalanjarosz
Copy link

jalanjarosz commented Feb 25, 2024

I can replicate this behavior in v2.5.59.8 Windows when Wipe Tower is active.

; generated by SuperSlicer 2.5.59.8 on 2024-02-25 at 20:20:29 UTC

; 

; external perimeters extrusion width = 0.56mm
; perimeters extrusion width = 0.56mm
; infill extrusion width = 0.56mm
; solid infill extrusion width = 0.56mm
; top infill extrusion width = 0.56mm
; first layer extrusion width = 0.56mm

; external perimeters extrusion width = 0.56mm
; perimeters extrusion width = 0.56mm
; infill extrusion width = 0.56mm
; solid infill extrusion width = 0.56mm
; top infill extrusion width = 0.56mm
; first layer extrusion width = 0.56mm

; object:{"name":"3DBenchy_-_Dualprint_-_Gunwale_Deck_Plate_Wheel_Frames_Roof_Chimney_top_-_3DBenchy","id":"3DBenchy_-_Dualprint_-_Gunwale_Deck_Plate_Wheel_Frames_Roof_Chimney_top_-_3DBenchy.com id:0 copy 0","object_center":[138.736543,81.175375,0.000000],"boundingbox_center":[138.736543,81.175375,24.000001],"boundingbox_size":[60.000004,31.000000,48.000002]}
EXCLUDE_OBJECT_DEFINE NAME=3DBenchy___Dualprint___Gunwale_Deck_Plate_Wheel_Frames_Roof_Chimney_top___3DBenchy_com_id_0_copy_0 CENTER=138.736543,81.175375 POLYGON=[[108.74,72.00],[108.74,71.93],[108.74,71.88],[108.75,71.81],[108.77,71.70],[108.78,71.65],[108.79,71.56],[108.81,71.50],[108.82,71.47],[108.83,71.44],[108.86,71.33],[108.88,71.30],[108.90,71.24],[108.95,71.12],[108.97,71.08],[108.99,71.06],[109.03,70.98],[109.11,70.86],[109.13,70.83],[109.18,70.76],[109.24,70.68],[109.30,70.62],[109.33,70.59],[109.34,70.58],[109.42,70.50],[109.46,70.46],[109.51,70.42],[109.58,70.37],[109.61,70.34],[109.66,70.31],[109.71,70.27],[109.83,70.20],[109.88,70.17],[109.94,70.15],[109.97,70.13],[109.99,70.12],[110.05,70.10],[110.16,70.05],[110.22,70.03],[110.29,70.02],[110.42,69.98],[110.45,69.98],[110.62,69.95],[138.37,66.09],[138.53,66.07],[138.79,66.03],[139.28,65.97],[139.35,65.96],[139.62,65.93],[140.16,65.87],[140.33,65.86],[140.82,65.81],[141.47,65.76],[141.56,65.76],[142.17,65.72],[142.33,65.72],[142.79,65.70],[142.91,65.69],[142.97,65.69],[143.29,65.68],[143.54,65.68],[143.80,65.68],[144.31,65.68],[144.75,65.68],[145.19,65.69],[145.54,65.70],[145.65,65.70],[145.98,65.71],[146.41,65.74],[146.88,65.76],[147.17,65.78],[147.36,65.80],[147.47,65.81],[147.71,65.83],[147.78,65.83],[147.80,65.84],[148.53,65.95],[148.60,65.96],[149.11,66.09],[149.48,66.18],[149.78,66.27],[150.16,66.37],[150.42,66.45],[150.63,66.51],[150.85,66.58],[151.07,66.65],[151.28,66.71],[151.49,66.78],[151.50,66.79],[151.71,66.86],[151.96,66.95],[152.19,67.03],[152.34,67.09],[152.56,67.16],[152.77,67.24],[152.98,67.33],[153.40,67.49],[153.66,67.60],[153.87,67.69],[154.08,67.78],[154.40,67.92],[154.61,68.02],[154.89,68.15],[155.10,68.25],[155.50,68.44],[155.70,68.54],[156.10,68.75],[156.50,68.96],[156.89,69.18],[157.28,69.40],[157.67,69.63],[158.05,69.86],[158.24,69.98],[158.43,70.10],[158.62,70.22],[158.80,70.34],[159.19,70.59],[159.37,70.72],[159.74,70.98],[159.92,71.11],[160.29,71.38],[160.48,71.51],[160.84,71.79],[161.02,71.93],[161.20,72.07],[161.37,72.21],[161.74,72.50],[162.09,72.80],[162.61,73.25],[162.78,73.41],[163.06,73.67],[163.23,73.82],[163.40,73.98],[163.73,74.30],[164.06,74.62],[164.22,74.79],[164.55,75.12],[164.86,75.46],[165.05,75.66],[165.33,75.96],[165.48,76.14],[165.79,76.49],[166.24,77.02],[166.67,77.56],[166.82,77.74],[167.10,78.11],[167.25,78.30],[167.66,78.86],[167.93,79.24],[168.19,79.63],[168.35,79.87],[168.42,79.98],[168.47,80.09],[168.50,80.14],[168.53,80.20],[168.55,80.26],[168.61,80.41],[168.67,80.59],[168.68,80.65],[168.72,80.89],[168.73,81.01],[168.74,81.08],[168.74,81.26],[168.73,81.32],[168.72,81.45],[168.70,81.57],[168.69,81.63],[168.67,81.75],[168.65,81.81],[168.60,81.98],[168.53,82.15],[168.48,82.26],[168.36,82.47],[168.21,82.71],[167.94,83.09],[167.67,83.48],[167.26,84.03],[167.02,84.34],[166.97,84.41],[166.68,84.78],[166.54,84.96],[166.39,85.15],[166.10,85.51],[165.64,86.04],[165.22,86.51],[165.06,86.69],[164.75,87.03],[164.26,87.53],[163.59,88.19],[163.27,88.49],[163.10,88.65],[162.76,88.96],[162.42,89.27],[161.90,89.71],[161.72,89.86],[161.55,90.00],[161.18,90.30],[160.83,90.57],[160.64,90.72],[160.45,90.86],[160.27,90.99],[160.09,91.12],[159.91,91.26],[159.54,91.52],[159.16,91.78],[158.58,92.16],[158.19,92.41],[157.80,92.65],[157.60,92.77],[157.40,92.89],[157.01,93.11],[156.61,93.34],[156.32,93.49],[155.73,93.80],[155.53,93.90],[155.12,94.10],[154.71,94.29],[154.51,94.38],[154.06,94.58],[153.91,94.65],[153.69,94.74],[153.40,94.86],[153.07,94.99],[152.74,95.12],[152.24,95.31],[152.03,95.39],[151.61,95.53],[151.17,95.68],[150.96,95.74],[150.71,95.82],[150.49,95.89],[150.31,95.94],[150.03,96.02],[149.80,96.08],[149.66,96.12],[149.00,96.29],[148.58,96.40],[148.09,96.49],[147.98,96.50],[147.85,96.52],[147.55,96.54],[147.22,96.57],[146.82,96.60],[146.39,96.62],[145.86,96.65],[145.30,96.66],[145.13,96.67],[144.69,96.68],[143.62,96.68],[143.33,96.67],[142.89,96.66],[142.49,96.65],[142.20,96.63],[141.32,96.58],[140.65,96.53],[140.09,96.48],[139.35,96.40],[138.94,96.35],[138.46,96.28],[110.57,92.40],[110.48,92.39],[110.41,92.37],[110.32,92.35],[110.26,92.33],[110.22,92.32],[110.10,92.28],[110.05,92.26],[109.94,92.21],[109.84,92.16],[109.73,92.10],[109.67,92.06],[109.51,91.94],[109.45,91.89],[109.38,91.82],[109.31,91.76],[109.25,91.69],[109.18,91.60],[109.11,91.51],[109.08,91.45],[109.03,91.37],[109.02,91.35],[108.99,91.30],[108.95,91.23],[108.91,91.13],[108.86,91.02],[108.81,90.86],[108.79,90.80],[108.77,90.69],[108.76,90.63],[108.75,90.55],[108.74,90.50],[108.74,90.39],[108.74,72.00]]
; plater:{"center":[138.736543,81.175375,0.000000],"boundingbox_center":[138.736543,81.175375,24.000001],"boundingbox_size":[60.000004,31.000000,48.000002]}

M73 P0 R383
M117 Time Left 6h23m52s
G1 Z0.2 F720   <---  Bad G-Code inserted when using Wipe Tower.
M107
;TYPE:Custom
; Start G-code

Current fix is to use G-Code substitution to remove extra G1 Z move, but that also removes a needed one.
image

Inserted at the end of Start G-Code the following using a slightly different feed rate:

; Drop down to first_layer_height due to removing extra Wipe Tower Z-Move
; by using G-code substituation which remove two G1 Z0.2 F720 moves
; one inserted by the Wipe Tower, and one that is needed.
G1 Z[first_layer_height] F600

@supermerill supermerill added bug Something isn't working as intended fixed for the next version That means that you should be able to test it in the latest nightly build labels Feb 26, 2024
@supermerill
Copy link
Owner

supermerill commented Feb 26, 2024

I changed the buffering for the start gcode. I missed the part with the sequential printing with wipe tower

supermerill added a commit that referenced this issue Feb 27, 2024
…tower

Fix commit 3cd121
Note: now, with 3cd121, fan_mover post-process the start_gcode. It's needed to know the current fan speed, but it may be useful to add a kind of feature to "disable" the modification for this part.
#4136
supermerill added a commit that referenced this issue Feb 28, 2024
…tower

Fix commit 3cd121
Note: now, with 3cd121, fan_mover post-process the start_gcode. It's needed to know the current fan speed, but it may be useful to add a kind of feature to "disable" the modification for this part.
#4136
@supermerill supermerill added fix is live in the last release Please download /build the last release and try to reproduce. and removed fixed for the next version That means that you should be able to test it in the latest nightly build labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended fix is live in the last release Please download /build the last release and try to reproduce.
Projects
None yet
Development

No branches or pull requests

4 participants