36 • Chapter 2 Getting Started DMC-3425
V2=_TP Set variable V2 to the current position
JP#C,@ABS[V2]<2 Exit if error small
MG V2 Report value of V2
V1=V1-1 Decrease Offset
JP #B Return to top of program
#C;EN End
This program starts with a large offset and gradually decreases its value, resulting in decreasing error.