G10 L80 P5521 Q1 (Disable Software Limits) G10 L80 P5525 Q1 (Disable Hardware Limits) #10=1 (Initialize register value) N20 M88 L1 P14(Soft stop when sensor triggered) G91 G0 Y 10.6 F 600.00 (Move to sensor) G04 P0.2 (Pause) M220 (Check coordinate, print it) G90 G0 Y -10.0000 F 600.00 #10=#10+1 (Increment register) if [ #10 LT 100 ] 20 (Repeat 100 times)