leandrolima-nyc / SnapmakerJ1

Configuration files for Snapmaker J1
20 stars 0 forks source link

Bed not moved into position if purge line disabled #5

Closed evilC closed 1 year ago

evilC commented 1 year ago

It appears that if the purge line -----------OPTIONAL line is disabled, then the bed is never moved into position?

{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
    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
  {endif}

  G92 E0                                            ;reset extruder

  {if is_extruder_used[1]}
    M109 S{first_layer_temperature[1]} T1 C5 W1     ;wait for nozzle temp
    T1
    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

  {endif}
{endif}
leandrolima-nyc commented 1 year ago

The bed will move into position once the print starts, but the extruders won't prime beforehand. To ensure safety and prevent potential issues, I have added the G28 command back to the beginning of the file.