236
PROGRAMMING EXAMPLES
96-8000
June 1999
PROGRAMMING U SING I AND J
Most contour machining will use a radius value R for circular interpolation moves less than 360
0
. An I and J can
also be used in the place of R, but this can be more confusing at times. The I and J are signed distances
from the starting point to the center of the circle.
Referring back to the previous section, we can see the program below using the R or the I and J:
Using R: Using I and J:
G01 Y3.750 G01 Y3.750
G02 X.250 Y4.0 R.250 G02 X.250 Y4.0 I.250 J0
G01 X2.0 G01 X2.0
Note: Compare the +1.250 move with the "Circle Sections" illustration shown earlier.
Note: The G02 or G03 line will always need the X,Y end points, whenever R or I and
J are used.
Programming a complete 360
0
circle can only be done by using an I or a J. For example: we have a one inch
diameter hole and want to open it up to one and a half inches. The cutter is .750 diameter. If we took the
finished hole diameter and subtracted the cutter diameter, we would have .750 left over îš— .375 each side.
The start move would be to position to the center of the hole îš— most likely X0,Y0. The first cutting move would
be to move .375 in any direction. X+, X-, Y+, Y-. Let's go with the X+ direction.
G01 X.375
G03 I-.375 (An I or J will always be a radial value; J is assumed 0 if left out)
G01 X0
Note: The start point is also the end point for a 360
0
move.
Note: If we decided to make the first move in the Y+ direction, the G03 line would
contain a J-.375 move.