I currently use Simplify3D as my slicer, and it uses these gcode scripts before and after each print job.
Pre-Start gcode:
Code: Select all
G90 ; Absolute positioning
G28 ; Move to origin - go home
G1 Z10.0 F3000 ; Controlled move - take bed down 10mm
G1 Y180.0 F3000 ; Controlled move - bring head to near front of bed
G92 E0 ; Set position
G1 E10 F200 ; Controlled move - extrude 10mm of filament
G92 E0 ; Set position
G1 Y0.0 F3000 ; Controlled move - move head home
G1 Z0.0 F3000 ; Controlled move - take Z home
End gcode:
Code: Select all
M113 S0.0 ; Set extruder PWM
G91 ; Relative positioning
G92 E0 ; Set position
G1 E-5 F2000 ; Controlled move - retract filament to stop the ooze
G1 Z10 F1200 ; take the bed down 10 mm so as to clear the printed part
G90 ; Absolute positioning
G1 X5.0 Y5.0 F3000.0 ; Controlled move - move head to 55
M84 ; Disable motors
M107 ; Fan off
M104 S0 ; Set extruder temperature to 0 deg C
M140 S0 ; Set heated bed temperature to 0 deg C