Kingroon Kp3s START G-code

Start/stop codes for my Kingroon Kp3s

START G-CODE FOR CURA + Kingroon Kp3s

;------------------------------------------------------------------------------------
; - KINGROON START CODE

G21 ; Set to metric values
G90 ; Absolute positioning
M82 ; Set extruder to absolute mode
M107 ; Start with the fan off

G28 X0 Y0 Z0 ; Home all axes to min endstops
; G29 ; if using BLTOUCH leveling

G0 Z2.0 ; Move Z Axis up little to prevent scratching the heatbed
G0 X5.0 Y8.0 ; Move XY to start position as fast as possible
G0 Z0.3 ; Move Z axis to start position as fast as possible
G92 E0 ; Reset Extruder

G1 X85.0 E20 F1000.0 ; Draw the purge line

G1 Z3.0 F1000.0 ; Move Z Axis up
G1 X90 F4000 ; Quickly wipe away from the filament line
G92 E0 ; Reset Extruder

M300 S300 P1000 ; Play a 300Hz beep sound for 1000 milliseconds

M117 Printing... ; Display "Printing..." 
G5 ; Start printing

SLIC3R START CODE

If using Slic3r it is necessary to include codes for preheating bed and extruder, so for Slic3r this code should start with

 M104 S150  ; pre heat hot end 
 M190 S60 ; set bed temperature and wait for it to be reached
 M104 S210 ; set temperature hot end
; G29 ; if using BLTOUCH leveling

… or something like this

M140 S150 ; pre heat hot end
M190 S{print_bed_temperature} ; set bed temperature and wait for it to be reached
M140 S{print_temperature} ; set temperature hot end
M109 S{print_temperature} ; wait for all used extruders to reach temperature.
; G29 ; if using BLTOUCH leveling

END G-CODE

M220 S100 ; Reset Speed factor to default (100%)
M221 S100 ; Reset Extrude factor to default (100%)

G91 ; Set RELATIVE positioning
G1 E-1 F300 ; Retract filament to prevent oozing
G1 E-2 Z2 F1000; Retract and lift
G1 X5 Y5 F3000 ; Wipe out
G1 Z8 ; Raise Z some more

; MOVE TO END POSITION
G90 ; Set ABSOLUTE positionning
G28 X0 ;move X to min endstops, so the head is out of the way
G1 X0 Y170 ; Present print

; THE END
M84 X Y E ;Disable all steppers but Z
M104 S0 ; Turn off extruder
M140 S0 ; Turn off bed
M106 S0 ; Turn off cooling fan
M107    ; Turn off Fan

M300 S300 P3000 ;Play tone

M117 Finished!