yplus.ngc
1 o<yplus> sub 2 3 ; #1 = [ps_searchvel] 4 ; #2 = [probe.ps_probe_max] 5 ; #3 = [ps_probe_latch] 6 ; #4 = [probe.ps_probevel] 7 ; #5 = [TOOLSENSOR]RAPID_SPEED] 8 9 #<y>=#<_y> (save start Y position) 10 G91 11 F #1 12 G38.2 Y[#2] 13 G1 Y[-#3] F#5 14 F #4 15 G4 P0.5 16 G38.2 Y[#3*2] 17 (print, probe Y=#5062 ) 18 G90 19 (back to start point) 20 G1 Y#<y> F#5 21 22 o<yplus> endsub 23 M2