; Endstops
M574 X1 Y1 Z0 S0 ; Define active low and unused microswitches
M558 P1 X0 Y0 Z1 H5 F120 T6000 ; Set Z probe type to modulated, the axes for which it is used and the probe + travel speeds
G31 P500 X0 Y0 Z1 ; Set Z probe trigger value, offset and trigger height
M557 X0:270 Y0:270 S50
Does it matter?