#10=3 (Sensor Nr) #11=1 (Sensor Normally opened) M88 P#10 L#11 (Smooth stop if sensor activated) G91 G0 Z-30 F500 (Fast probe screen surface) G04 P0.1 G91 G0 Z2 F500(Rebound 2mm) M89 P#10 L#11 (Stop if sensor activated) G91 G0 Z-30 F50 (Slow probe screen surface) G04 P0.1 (Pause) M85 (Save the coordinates in the log) G90