Mill Circular Pockets

Developer(s): Dick Wagner
Date: 1994
Type: Program
Platform(s): TS 2068
Tags: Graphics

Four short programs that show how a milling machine cuts a pocket in a 3 1/2 inch block, drawn on the screen at 48 pixels to the inch. circlepath plots the path of the centre of a 0.250 inch cutter for a 3.000 inch circular pocket: a five-turn spiral out from the centre, a clean-up circle and the finishing circle. elippath does the same for a 2.000 x 3.000 inch elliptical pocket. cutcircle and elipcut draw the cutter itself, a circle of radius 6 pixels, at every point of the same two paths, so the pocket fills in as the metal is removed.

Load one of the four and RUN it; each ends with 0 OK when the drawing is finished. circlepath and elippath take about four and a half minutes, cutcircle and elipcut well over twenty.

Published in The Plotter October 1994 (Mill Circular Pockets).

Image Gallery

Source Code

   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.

elippath
   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.

cutcircle
   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.

elipcut
   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.