Instructions

m2
%
Figure 19
The rod program adds a useful new tool to our collection. The “r” letter designates
“radius” when it’s used in the same block as the circle command g02 or g03. This
simplifies code writing because it eliminates the need to calculate the “I” and “j” points
that are always changing as seen in our last example; however, the start and end points of
an arc must be calculated to the same degree of accuracy. I felt obligated to teach you the
hard way first because many older CNC systems don’t have the advantage of the r
command, and that’s the type of systems that many beginners will end up running. You
will see in the rod program just how much tedious code writing it eliminates.
(For this program you will need to add a new Tool #1 listed as .250" long and .125"
diameter.)
%
(Connecting rod)
g00 g90 g40 x0 y0 z0
g01 x-1 y.5
g41 d1 y.1
g01 y0 f15
g02 x-1.5638 y-.1858 r.3125
g03 x-1.6844 y-.125 r.15
g01 x-2.9406
g03 x-3.0612 y-.1858 r.15
g02 x-3.0612 y.1858 r-.3125
g03 x-2.9406 y.125 r.15
63