#100 = .1 (distance between switch and top of material) (g54 offset set) g54 g20 g90 g49 g30 (set g30 - second home location to above switch) g38.2 z0 f15 (measure) g91 g0x.2 (off switch) #5223 = #5223 + #5063+ #100 (set z to be current offset + probe trip + distance between top of material and switch) g90