next up previous contents index
Next: Example 1 - Drilling Up: 13. Programming With Variables Previous: 13.4 Writing blocks using   Contents   Index

13.5 Sample Variable Programs

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.


root 2003-05-26