leandrolima-nyc / SnapmakerJ1

Configuration files for Snapmaker J1
20 stars 0 forks source link

Retracts before a print starts #12

Open atlemo opened 1 year ago

atlemo commented 1 year ago

When I start a new print, it seems to first retract about 10-15cm of filament, so when the actual printing starts, there is no filament loaded in the hot end.

inpos commented 8 months ago

Same here. Turn off and on printer helps

inpos commented 8 months ago

When I start a new print, it seems to first retract about 10-15cm of filament, so when the actual printing starts, there is no filament loaded in the hot end.

Tests show that this issue occured after aborting current print. I added G92 E0 codes before and after purging filament. So far the problem has not recurred. Here my start G-code:

;***** Snapmaker J1
;***** Update  : 20221222
;***** Printer : [printer_preset]
;***** Profile : [print_preset]

; ----- bed_temperature_0: {bed_temperature[0]}
; ----- bed_temperature_1: {bed_temperature[1]}
; ----- extruder_temperature_0: {temperature[0]}
; ----- extruder_temperature_1: {temperature[1]}

; ----- initial_extruder: [initial_extruder]
; ----- is_extruder_used (0): {is_extruder_used[0]}
; ----- is_extruder_used (1): {is_extruder_used[1]}

M201 X20000 Y20000 Z500 E3000                       ;snapmaker settings
G28                                                 ;home

{if 1==0}      ;------------OPTIONAL                
M355 S1 P16                                         ;dim led 
{endif}

M82                                                 ;absolute extrusion mode
T[initial_extruder]

{if is_extruder_used[0] && is_extruder_used[1]}
  T0
  G1 X-5  F6000
  M104 S{first_layer_temperature[0]} T0             ;preheat T0

  T1
  G1 X332 F6000
  M104 S{first_layer_temperature[1]} T1             ;preheat T1

  M190 S{(bed_temperature[0] > bed_temperature[1] ? bed_temperature[0] : bed_temperature[1] )} ;wait for bed temp

{else}

  {if is_extruder_used[0]}
    G1 X-5  F6000
    M104 S{first_layer_temperature[0]} T0           ;preheat T0
    M190 S{first_layer_bed_temperature[0]} C3 W2    ;wait for bed temp

  {else}
    G1 X332 F6000
    M104 S{first_layer_temperature[1]} T1           ;preheat T1
    M190 S{first_layer_bed_temperature[1]} C3 W2    ;wait for bed temp

  {endif}
{endif}

{if 1==0}      ;-----------OPTIONAL                 ;led effect
  M355 S1 P32
  G4 S1
  M355 S1 P48
  G4 S1
  M355 S1 P64
  G4 S1
  M355 S1 P96
  G4 S1
  M355 S1 P128
  G4 S1
  M355 S1 P255
{endif}

{if 1==1}                                           ;purge line   -----------OPTIONAL    
  {if is_extruder_used[0]}
    M109 S{first_layer_temperature[0]} T0 C5 W1     ;wait for nozzle temp
    T0
    G92 E0                                            ;reset extruder
    G1 Z0.8 Y-0.5 F1500                             ;move bed up fast
    G1 X50 F6000                                    ;position nozzle
    G1 Z0.4 F6000                                   ;set nozzle height
    G1 X163 E22.6 F1500                             ;purge 113mm line / 22.6mm filament in 1.5sec
    {if is_extruder_used[1]}G28 X F6000{endif}      ;park
    G92 E0                                            ;reset extruder
  {endif}

  {if is_extruder_used[1]}
    M109 S{first_layer_temperature[1]} T1 C5 W1     ;wait for nozzle temp
    T1
    G92 E0                                            ;reset extruder
    G1 Z0.8 Y-0.5 F1500                             ;move bed up fast
    G1 X276 F6000                                   ;position nozzle
    G1 Z0.4 F6000                                   ;set nozzle height
    G1 X163 E22.6 F1500                             ;purge 113mm line / 22.6mm filament in 1.5sec
    {if initial_extruder == 0}G28 X F6000 {endif}   ;park
    G92 E0                                            ;reset extruder
  {endif}
{endif}

;===== ready to go