;Z-Probe
M307 H3 A-1 C-1 D-1 ; Enables usage of expansion header pins for BL Touch
M558 P9 H3 F150 T5500 R0.2 A15 S0.01 ; BLTouch, set dive height, probe speed, travel speed,
;number of times to probe a single point, tolerance when probing multiple times
G31 X-16 Y-42 Z1.49 P25 ; X,Y offset, Z trigger height, P is signal threshold
M557 X-74:74 Y-42:42 S37:21 ; Define mesh grid
M376 H2.2 ; Define mesh taper height (2.2mm), removes compensation above this height
; Axis Limits
M584 X0 Y1 Z4:2 E3 ; two Z motors connected to driver outputs Z and E1
M671 X-158:152 Y0:0 ; leadscrews at left (connected to Z) and right (connected to E1) of X axis
M208 X-102 Y-106 Z-0.05 S1 ; Set axis minima and low homing switch position
M208 X100 Y100 Z200 S0 ; Set axis maxima
Lead screw positions are relative to 0,0
, and by buildplate is slightly off center. Possibly this is the main issue?
; bed.g
; called to perform automatic bed compensation via G32
;
M561 ; clear any bed transform
G30 P0 X-100 Y0 Z-99999 ; probe near a leadscrew, half way along Y axis
G30 P1 X84 Y0 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
; --> Start G-code <--
G21 ;metric values
G90 ;absolute positioning
M107 ;start with the fan off
G29 S2 ;clears existing bed heightmap
G28 ;home all
G32 ;motorized gantry plane correction
G32 ;
G32 ;repeated 3 times
G29 ;mesh bed compensation
G1 Z20 F6000 ;move the nozzle to Z=20mm
G1 F100 E5 ;extrude 5mm of filament
G92 E0 ;zero the extruded length