Z, X, Y probes:
(Z-Probe)
G91
G38.2 Z-30 F60
G90
G10 L20 P1 Z10.1 (Set the active WCS Z0)
(Retract from the touch plate)
G91
G0 Z5
G0 X-30
G0 Z-10
G90
(X-Probe)
G91
G38.2 X30 F60
G90
G10 L20 P1 X-10.1 (Set the active WCS X0)
(Retract from the touch plate)
G91
G0 X-5
G0 Y30
G0 X20
G90
(Y-Probe)
G91
G38.2 Y-30 F60
G90
G10 L20 P1 Y10.1 (Set the active WCS Y0)
(Retract from the touch plate)
G91
G0 Y5
G0 Z10
G90
Xprobe:
G91
G38.2 X30 F60
G90
G10 L20 P1 X-10.1\n
G91
G0 X-4
G90"