(M458: External Corner -X +Y)
#10= 0 (Sensor Nr)
#11=1 (Sensor Normally opened)
#12=0 (Sensor Normally opened)
(#20: Fast Speed)
(#21: Slow Speed)
(#23: First Touch Speed)
(#22: Fast Speed Z)
(#25: Gap)
(#30: Rebound)
G10 L81 P101 Q5021 (Store X position in reg 101)
G10 L81 P102 Q5022 (Store Y position in reg 102)
(#26: Probing Height)
(Y axis)
G91 G0 Y[#51+#7075/2] F#20
G91 G0 Z[-1*[#26+#27]] F#22
(Y Minus)
M108(Sensor Protection Off)
M88 P#10 L#11 (Smooth stop if sensor activated)
G91 G0 Y[-1*#51] F#23(First probe, middle speed)
G04 P0.1
G91 G0 Y#30 F#20(Rebound)
M89 P#10 L#11 (Stop if sensor activated)
G91 G0 Y[-1*#51] F#21
G04 P0.1
G90 G10L70 P#5220 Y    [#7075/2+#7506+#7503]
G4 P0.2(Pause)
G91 G0 Y[#30] F#20(Rebound)
M109(Sensor Protection)
G91 G0 Z[#26+#27] F#20(Lift Height)
G90 G28.9 Y102 F#20 (Move to initial Y)
(X axis)
G91 G0 X[-1*#50-#7075/2] F#20
G91 G0 Z[-1*[#26+#27]] F#22
(X Plus)
M108(Sensor Protection Off)
M88 P#10 L#11 (Smooth stop if sensor activated)
G91 G0 X[#50] F#23
G04 P0.1
G91 G0 X[-1*#30] F#20(Rebound)
M89 P#10 L#11 (Stop if sensor activated)
G91 G0 X[#50] F#21
G04 P0.1
G90 G10L70 P#5220 X[-1*[#7075/2+#7505+#7502]]
G4 P0.2(Pause)
G91 G0 X[-1*#30] F#20(Rebound)
M109(Sensor Protection)
G91 G0 Z[#26+#27] F#20(Lift Height)
G90 G28.9 X101 F#20 (Move to initial X)
