; Auto calibration routine for delta printers ; Before running this, you should have set up your zprobe Z offset to suit your build, in the G31 command in config.g. ; About the G30 S parameter ; Used to specify what calibration computation to perform. ; ; S=-1 Don't adjust anything, just print the height error at each probe point ; S=0 Equivalent to S= ; S=3 Adjust homing switch corrections only ; S=4 Adjust homing switch corrections and delta radius ; S=6 Adjust homing switch corrections, delta radius, and X and Y tower position offsets ; S=7 Adjust homing switch corrections, delta radius, X and Y tower position offsets, and diagonal rod length M561 ; clear any bed transform, otherwise homing may be at the wrong height G31 X0 Y0 ; don't want any probe offset for this G28 ; home the printer G30 P0 X0 Y0 Z-99999 ; Probe the bed and do 6- or 7-factor auto calibration G30 P0 X-87.60 Y-53.00 H-0.113 Z-99999 ; X tower G30 P1 X0.00 Y-102.00 H-0.149 Z-99999 ; between X-Y towers G30 P2 X85.60 Y-49.00 H-0.133 Z-99999 ; Y tower G30 P3 X82.60 Y51.00 H-0.109 Z-99999 ; between Y-Z towers G30 P4 X1.00 Y101.00 H-0.143 Z-99999 ; Z tower G30 P5 X-88.60 Y53.00 H-0.091 Z-99999 ; between Z-X towers G30 P6 X-43.30 Y-25.00 H-0.145 Z-99999 ; X tower G30 P7 X0.00 Y-50.00 H-0.149 Z-99999 ; between X-Y towers G30 P8 X43.30 Y-25.00 H-0.143 Z-99999 ; Y tower G30 P9 X43.30 Y25.00 H-0.110 Z-99999 ; between Y-Z towers G30 P10 X0.00 Y50.00 H-0.144 Z-99999 ; Z tower G30 P11 X-43.30 Y25.00 H-0.126 Z-99999 ; between Z-X towers G30 P12 X0 Y0 H-0.142 Z-99999 S6 ; center and auto-calibrate 6 factors G1 X0 Y0 Z50 F15000 ; get the head out of the way of the bed