Laboratory 8
Cams: Cutting
MECH324
Dynamics of Machines

NOTE: See last week's Lab write-up to see the requirements for this week, which are the basis of your grade.

OBJECTIVES:

BACKGROUND:
In the old days, before computers took over the world, machinists cut cams using plunge-cutting. As the name suggests, the machinist would plunge the milling cutter through the work piece, lift it up, move to the next points, plunge again--all away around the surface. Since you can only plunge at a finite number of points, "scallops" are left making the surface jagged.

Using a computer numerically controlled (CNC) mill, however, the mill cutter is in continuous contact with the work piece. The bit and/or table is then moved and controlled by an onboard computer. The cut path is still defined by a discrete number of points, but the continuous contact makes the cam smoother, not to mention reducing the manufacturing time. The computer reads x-y-z coordinates from a file and moves the cutter to that location. Because there are a finite number of points, the computer must interpolate between them to more smoothly move the cutter.

FILE FORMAT:
The CNC mill needs a specific format for the file it reads. The beginning of the file contains information about cutting speeds, feed rates, interpolation method and so on. The bulk of the file is the x-y-z coordinates describing the cutting path. You don't need to worry about the z-coordinate, however, since both of your cuts will only be 2-D (at a z-height of zero). Here is an example of a CNC cutting file:

 

N0; Cam cutting program
N1G01; specifies linear interpolation;
N2G070; specifies inches as unit of measure
N3F30; Set feed rate to 30 inches per minute
N6X0Y0Z0.75; Move to (0,0,.75)
N7S2500; Set spindle speed to 2500rpm

;Your First Data Point
x1.13y0

N11F4; Set feed rate to 4 inches per minute
N12M03; Turn spindle on
N13G05; Pause to verify
N14Z.0; Plunge spindle down to 0
N15G05; Pause to verify

;Your data goes below this line
x1.13y0
x1.12986069y0.01774927
x1.129443901y0.035494205
x1.128752944y0.053230638
x1.127793081y0.070954726

and so on, for 400 points

The bold items are the items which you need to generate. Notice the format of the x-y coordinate specifications. There is an "x", followed by the x-coordinate value, followed by a "y", followed by the y-coordinate number--all without spaces between them.

The spindle on the CNC mill turns clockwise (looking from above at the x-y plane). For a better cam surface finish, it is better to cut the cam surface with "conventional milling" rather than "climb milling." Therefore, be sure to generate the cutter path to traverse around the origin in the counterclockwise direction, with the x-axis to the right and the y-axis up (looking from above). Note - Dr. Dave's lecture notes on cam design constraints and cutter path geometry provide equations that generate cam surface and cutter paths that travel clockwise around the cam. To change the direction to counterclockwise, just take the negative of either the x or y coordinates (e.g., remove the minus sign in the ycam(θ) equation and change the minus sign to a plus sign in the ycut(θ) equation).

GENERATING FORMAT:
Once you have parametric equations representing the x and y values of the cutting path (for example, xcut(θ) and ycut(θ)), making the CNC mill file is easy. The first step is to get 400 points in 360 degrees. To do this, specify a step size of 360/400 degrees and step θ from 0 to [360-360/400] degrees.

In MathCAD...

Assuming you have equations for xcut(θ) and ycut(θ) already defined, you simply say "xcut(θ)=" and you should get something like the following...

There should be 400 points in this list. Right-click on this list and export it as an Excel file (you will have to manually type in the ".xls" extension).

In Excel...

Once you have a column with values for xcut(θ) and/or ycut(θ), copy that column and paste it into a new sheet. Make sure to paste ONLY the values and not the equations (e.g., Paste Special | Values).

Eventually, you want an Excel file that looks something like this:

The first column is filled with the letter "x"; the second column contains the x-values; the third column is filled with the letter "y"; the last column contains the corresponding y-values. Once you have this, save it as a tab-delimited text file and reopen it in WordPad or Notepad. Replace (Edit | Replace) all of the tabs with nothing. In the "Find what:" field of the Replace dialog box, copy a tab from the file and paste it in this field. In the "Replace with:" don't put anything. Now you should have something like this:

Now open the CNC file template (as a text file in WordPad or Notepad). Copy your data and paste it below the line that says (what else?), ";Your data goes below this line." Also, copy your first line of data and paste it below the line that says, ";Your First Data Point." Don't change any of the other parameters! Save this as either "roller.nc" or "flat.nc", depending upon which cam cutter path you are storing.

Follow this procedure for both the roller follower and flat-faced follower cams. Bring your two NC files to class with you (as instructed by the TAs). Also bring plots showing the pitch curve and base circles for both cams, so the TA can review your designs and ensure they are within spec before attempted to cut them.

Be sure to sign up on the schedule posted by the TAs so the CNC mill will be available. You don't need to show up until your selected time slot.

After cutting your two cams, sand the surface to remove big burs (don't sand it so much it changes the shape--it doesn't have to be all that smooth). Bring your cams with you to class next week for testing.

NEXT WEEK:
We will be testing the cams with an actual roller follower and an actual flat-faced follower. You will measure the output of the followers and compare them to theoretical. See next week's lab for more information on testing your cams. Schedule your testing time with your TA (e.g., use the same schedule as for the cutting).

ADDITIONAL RESOURCES:

cam blank dimensions: