o sub ;(MSG, SURFACE_TEST.NGC) M64 P0 (turn off compensation) ;T1 M6 (Install probe) # = #3050 ;(debug, x0: [#]) # = #3051 ;(debug, y0: [#]) # = #3052 ;(debug, height: [#]) # = #3053 ;(debug, width: [#]) # = #3054 ;(debug, step: [#]) # = #3055 ;(debug, search_feed: [#]) # = #3056 ;(debug, latch_feed: [#]) # = #3057 ;(debug, safe_z: [#]) # = #3058 ;(debug, search_z: [#]) ;(PROBEOPEN filename.txt) G0 Z# # = # o101 while [# LT #+#] # = # o102 while [# LE #+#] G0 X# Y# G38.2 Z# F# G0 Z# # = [#+#] o102 endwhile # = [#+#] # = [#+#] o103 while [# GE #] G0 X# Y# G38.2 Z# F# G0 Z# # = [#-#] o103 endwhile # = [#+#] o101 endwhile ;(PROBECLOSE) o endsub M2