Numerical control (NC) of milling machines is an interesting study, mainly because these big machine shop tools are computer.controllable in 3 axis. A milling machine can be as simple as a drill press that has a movable work table with hand controls for the x, y, and z axis.
Kiwanda Machine Works, owned by one of my sons, was running into the simple problem of programming the machine to cut an elliptical pocket of constant depth in a part. As in generating a circular pocket, all of the metal must be removed within the elliptical walls. For a circular pocket this has been done by programming a series of concentric circles that would cause all of the metal to be ultimately be removed.
A different method would be to program a spiral path of the milling cutter that would start at the center and remove metal in a spiral pattern and then program a circle cut that would clean up the outer edge of the spiral cut. A final slower feed circular cut would then bring the pocket to exact dimension. Such a program would start the first circle clean-up cut where the spiral cut ended, making a 360 degree cut, then the final cut would start where the first circle cut ended.
To get back to the first problem of elliptical pockets, this would be programmed just like a circular pocket, except using formulas for elliptical shapes in place of circles.
The reader can run his own “milling machine” by using the 2 programs for milling cutting, his monitor displaying what the milling machine cutter would be doing. However, we will first try the concept with 2 programs that show the path for the center of the milling cutter in a 3 1/2 inch cube, using a 0.250 inch diameter tool. Our program for giving the screen display is scaled so 12 pixels equals 0.250 inches, or 1 inch = 48 pixels. The pocket diameter is to be 3.000 inches, which is 144 pixels.
The first program produces a spiral path, then the 360 degree clean-up path, and last the finish circular cut to final dimension of 3.000 inches.
The second program is of particular interest because it uses a circle of 12 pixels diameter to represent a 0.250 inch milling cutter in action (program line 60). In fact, this circle is used to plot the milling cutter path in place of a single pixel! While it takes a long time to complete the program (the first program takes about 4 minutes), it is interesting to watch the “milling cutter” slowly work its way through the spiral path, the clean-up cut, and last, the final cut to dimension. Just have a large mug of coffee handy.
Once the concept is worked out for a circle, it is simply a matter of using a formula for an ellipse in place of the circle formula for making an elliptical pocket. My “milling machine” demonstration maintains 3.000 inches for the major diameter but changes to 2.000 inches for the minor diameter. To do this the y axis radius is reduced from 72 to 48 pixels.
The program uses the screen center as x=127 and y=87. The x equation does not change for the ellipse but the y (87+c+a*cos a) is changed to 1.333. Also, the use of the circle command in place of plot permits the use of a radius of 6 to generate all of those small circles to emulate a cutter tool (lines 20,60 & 90).
5 REM 9/9/94 DICK WAGNER
8 PLOT 43,3: DRAW 168,0: DRAW 0,168: DRAW -168,0: DRAW 0,-168
10 FOR a=0 TO 10*PI STEP PI/150
15 REM 10*PI = a spiral with 5 passes
20 PLOT 127+(2*a)*SIN a,87+(2*a)*COS a
30 NEXT a
40 REM generate circular path to clean up spiral cutting.
50 FOR b=0 TO 2*PI STEP PI/150
60 PLOT 127+20*PI*SIN b,87+20*PI*COS b
70 NEXT b
75 REM generate cutter path for final accurate pocket radius
80 FOR c=0 TO 2*PI STEP PI/150
90 PLOT 127+20.69*PI*SIN c,87+20.69*PI*COS c
95 NEXT c
100 REM radius of cutter path to finish 3.000 diameter cavity
110 REM radius = 72 pixels for 1.500 radius, finished cavity
120 REM cutter = .250 inches, arbitrary 12 pixels
130 REM scale is 1 inch = 48 pixels
150 REM This diagram depicts the center of the cutter path inproducing a cavity in a metal block. The cavity is 3.000inchesin diameter.
4 REM elippath
5 REM 9/9/94 DICK WAGNER
8 PLOT 43,3: DRAW 168,0: DRAW 0,168: DRAW -168,0: DRAW 0,-168
10 FOR a=0 TO 10*PI STEP PI/150
15 REM 10*PI = a spiral with 5 passes
20 PLOT 127+(2*a)*SIN a,87+(1.333*a)*COS a
30 NEXT a
40 REM generate circular path to clean up spiral cutting.
50 FOR b=0 TO 2*PI STEP PI/150
60 PLOT 127+20*PI*SIN b,87+13.33*PI*COS b
70 NEXT b
75 REM generate cutter path for final accurate pocket radius
80 FOR c=0 TO 2*PI STEP PI/150
90 PLOT 127+20.69*PI*SIN c,87+14.02*PI*COS c
95 NEXT c
100 REM radius of cutter path to finish 3.000 diameter cavity
110 REM radius = 72 pixels for 1.500 radius, finished cavity
120 REM cutter = .250 inches, arbitrary 12 pixels
130 REM scale is 1 inch = 48 pixels"
150 REM This diagram depicts the center of the cutter path inproducing a cavity in a metal block. The cavity is 2.000 x 3.000 eliptical shape.
2 REM cutcircle
5 REM 9/9/94 DICK WAGNER
8 PLOT 43,3: DRAW 168,0: DRAW 0,168: DRAW -168,0: DRAW 0,-168
10 FOR a=0 TO 10*PI STEP PI/150
15 REM 10*PI = a spiral with 5 passes
20 CIRCLE 127+(2*a)*SIN a,87+(2*a)*COS a,6
30 NEXT a
40 REM generate circular path to clean up spiral cutting.
50 FOR b=0 TO 2*PI STEP PI/150
60 CIRCLE 127+20*PI*SIN b,87+20*PI*COS b,6
70 NEXT b
75 REM generate cutter path for final accurate pocket radius
80 FOR c=0 TO 2*PI STEP PI/150
90 CIRCLE 127+20.69*PI*SIN c,87+20.69*PI*COS c,6
95 NEXT c
100 REM radius of cutter path to finish 3.000 diameter cavity
110 REM radius = 72 pixels for 1.500 radius, finished cavity
120 REM cutter = .250 inches, arbitrary 12 pixels
130 REM scale is 1 inch = 48 pixels"
150 REM This diagram depicts producing a cavity in a metal block. The cavity is 3.000 inches in diameter.
4 REM elipcut
5 REM 9/9/94 DICK WAGNER
8 PLOT 43,3: DRAW 168,0: DRAW 0,168: DRAW -168,0: DRAW 0,-168
10 FOR a=0 TO 10*PI STEP PI/150
15 REM 10*PI = a spiral with 5 passes
20 CIRCLE 127+(2*a)*SIN a,87+(1.333*a)*COS a,6
30 NEXT a
40 REM generate eliptical path to clean up spiral cutting.
50 FOR b=0 TO 2*PI STEP PI/150
60 CIRCLE 127+20*PI*SIN b,87+13.33*PI*COS b,6
70 NEXT b
75 REM generate cutter path for final accurate pocket dimensions.
80 FOR c=0 TO 2*PI STEP PI/150
90 CIRCLE 127+20.69*PI*SIN c,87+14.02*PI*COS c,6
95 NEXT c
110 REM radius = 72 pixels for 1.500 radius, finished cavity
120 REM cutter = .250 inches, arbitrary 12 pixels
130 REM scale is 1 inch = 48 pixels"
150 REM This diagram depicts the cutter path in producing an eliptical cavity in a metal block. The cavity is 2.000 x 3.000 eliptical shape.


Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.