; Endstops
M574 X2 S1 P"!xstop" ; configure active-high endstop for high end on X via pin !xstop
M574 Y2 S1 P"!ystop" ; configure active-high endstop for high end on Y via pin !ystop
M574 Z2 S2 ; configure Z-probe endstop for high end on Z
Right, should be M574 Z2 S1 P"!zstop"