In this section we develop five examples of the use of variables in program code. These examples are not intended to be complete in themselves. Nor are they intended to be particularly useful or efficient. They are intended only to illustrate certain uses of variables in gcode.
You should also remember that these code samples were all written for my machine. It does not lay out the axis the way that they are on graph paper. X moves plus toward the left and y moves minus toward you when you face the mill. For all of the illustrations below the operator would be standing below the figure and looking into it.