config.g
M555 P2 ; Set output to look like Marlin
G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
; No bed heater
M140 H-1
; Disable Fan 1 thermostatic mode
M106 P1 H-1
; Axis and motor configuration
M569 P0 S0 ; Drive 0 goes forwards
M569 P1 S1 ; Drive 1 goes forwards
M569 P2 S0 ; Drive 2 goes forwards
M569 P3 S1 ; Drive 3 goes forwards
M558 P4 I1 ; use E0 endstop as Z probe
M574 X1 S2 ; bind X homing switch to Z probe
M574 Y0 ; radius homing switch present, no turntable homing switch
M669 K7 R0:150 H0.3 F30 A30 ; set Polar kinematics parameters
M666 X0 Y0 Z0 ; put your endstop adjustments here, or let auto calibration find them
M350 X16 Y16 Z16 E16:16 I1 ; Set 16x microstepping with interpolation
M92 X80 Y80 Z3200 ; Set axis steps/mm
M906 X1000 Y1000 Z1000 E800 I60 ; Set motor currents (mA) and increase idle current to 60%
M201 X1000 Y1000 Z100 E1000 ; Accelerations (mm/s^2)
M203 X6000 Y6000 Z100 E3600 ; maximum linear speeds mm/minute
M566 X1200 Y1200 Z1200 E1200 ; Maximum instant speed changes mm/minute
; Thermistors
M305 P1 T100000 B3974 R4700 H30 L0 ; Put your own H and/or L values here to set first nozzle thermistor ADC correction
M570 S180 ; Hot end may be a little slow to heat up so allow it 180 seconds
; Fans
M106 P1 S-1 ; disable thermostatic mode for fan 1
; Tool definitions
M563 P0 D0 H1 ; Define tool 0
G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures
M92 E80:80 ; Set extruder steps per mm
;*** If you are using axis compensation, put the figures in the following command
M556 S78 X0 Y0 Z0 ; Axis compensation here
M208 Z-0.2:200 ; set axis travel limits
T0 ; select first hot end
homeall.g
; Home All
G91 ; relative movement
G1 Z4 F100 H1; ensure head is clear of the bed
G1 S1 X-200 F3000 ; move radius towards minimum until the endstop switch is triggered
G1 S2 X5 ; move radius out by 5mm
G1 S1 X-20 F600 H1; move radius slowly to the endstop switch again
; Home Bed
G90 ; absolute movement
G1 S2 X10 ; move to 10mm from centre of bed
G92 X10 Y0 ; define current position as X10 Y0
; Home Z
; G1 X0 Y0 ; put head over the centre of the bed, or wherever you want to probe
G30 ; lower head, stop when probe triggered and set Z to trigger height
homebed.g
G91 ; relative movement
G1 Z4 F100 H1 ; ensure head is clear of the bed
G90 ; absolute movement
G1 S2 X0 ; move to centre of bed
G92 X0 Y0 ; define current position as X0 Y0
G91 ; relative movement
G1 Z-4 F100 H1; restore original Z position
homedelta.g
; Example Homing file for RepRapFirmware on delta printer
;M117 Use https://configurator.reprapfirmware.org/ to set up your printer config
;G91 ; use relative positioning
;******* Change F250 in the following line to F2500 when you are finished commissioning
;******* Change 320 in the following to a higher value if your Kossel has taller towers
;G1 S1 X320 Y320 Z320 F2500 ; move all carriages up 320mm, stopping at the endstops
;G1 S2 X-3 Y-3 Z-3 ; move all carriages down 3mm
;G1 S1 X6 Y6 Z6 F250 ; move carriages slowly up 6mm, stopping at the endstops
;G1 Z-5 F2000 ; down a few mm so that we can centre the head
;G90 ; back to absolute positioning
;G1 X0 Y0 F2000 ; centre the head and set a reasonable feed rate
homeradius.g
G91 ; relative movement
G1 Z4 F100 H1; ensure head is clear of the bed
G1 S1 X-200 F3000 ; move radius towards minimum until the endstop switch is triggered
G1 S2 X5 ; move radius out by 5mm
G1 S1 X-20 F600 ; move radius slowly to the endstop switch again
G1 Z-4 F100 H1; restore original Z position
homez.g
G91 ; relative movement
G1 Z4 F200 H1; raise head 4mm to ensure it is above the Z probe trigger height
G90 ; back to absolute mode
;G1 X0 Y0 ; put head over the centre of the bed, or wherever you want to probe
G30 ; lower head, stop when probe triggered and set Z to trigger height