AI CAM programming, start to finish, on a NIST test part

AI CAM programming means software that takes the customer's STEP model and drawing and does the programmer's work. It picks the machine, plans the setups, chooses tools and feeds and speeds, and writes the NC program for each setup. Below is one complete run of KinetiCAD's AI planner on a public NIST test part, with the numbers it produced. The whole plan took 2.8 minutes on one CPU core.

I'm the founder of KinetiCAD. Everything below is the planner's own output for this part. You can click through the same run at get.kineticad.ai/enterprise.

The part

NIST publishes test parts so anyone can check a vendor's claims. This one is bracket 827-9999-904 from NIST's Smart Manufacturing Systems Test Bed (source data). It's a 6061-T6 aluminum plate, about 4.04 × 2.74 × 0.77 in (102.5 × 69.5 × 19.5 mm), with 117 faces: pockets, holes and some freeform surfaces. The order is 10 pieces, cut from 4.04 × 2.74 × 1.20 in (102.5 × 69.5 × 30.5 mm) stock.

In your shop, you'd upload the STEP model and the PDF drawing the customer sent. The planner reads tolerances, threads and notes off the drawing, and it plans around the machines and tools you actually have, at your own shop rate. For this run we used an example shop with two 3-axis mills and a lathe, at $95 an hour.

Which machine gets the job?

The example shop has two Haas VF-2SS mills and a Haas ST-20Y lathe with a Y axis and live tooling. The job has no due date, so the planner picks the earliest delivery.

  • The first VF-2SS is free Monday at 7:00 AM. It finishes the 10 parts Tuesday morning, and they're ready Wednesday.
  • The second VF-2SS is busy with another job until Wednesday, so the same plan there would deliver the following Monday.
  • The lathe is out. Live tools on a lathe can't run a full milling program like this one.

It picks the first VF-2SS. Both mills would run the same 4 setups in the same cycle time, so the calendar decides.

Four setups

The planner splits the part into 4 setups on the VF-2SS:

  1. Top side up in the vise, clamped on the extra stock below the part. This setup does most of the work: 10 operations, 39.5 minutes a part.
  2. Flipped 180°, held in soft jaws cut to the part and sitting on parallels. The face mill takes off the extra stock, then two roughing passes. 3.8 minutes.
  3. Rotated so one long side faces up, for a pocket roughed from that side. 7.0 minutes.
  4. Rotated so the opposite long side faces up, for the matching pocket. 7.0 minutes.

Setup 1 takes 15 minutes to set up and each of the others takes 10. Each per-part time includes 2 minutes to load and unload.

KinetiCAD's plan for setup 1 of NIST bracket 827-9999-904: the workholding, the setup time and 10 operations, each with its tool and cut time

Every operation, with its tool and minutes

Setup Operation Tool Spindle, rpm Feed, in/min (mm/min) Minutes
1 Face mill T01, 1.97 in (50.0 mm) face mill 4,138 82.8 (2,102) 0.39
1 Pocket rough T08, 0.787 in (20.0 mm) 4-flute end mill 7,830 197.3 (5,011) 16.96
1 Pocket rough T03, 0.236 in (6.0 mm) 4-flute end mill 12,000 79.4 (2,016) 1.23
1 Pocket rough T03 12,000 79.4 (2,016) 1.29
1 Profile contour T08 7,830 197.3 (5,011) 13.55
1 Drill T12, 0.130 in (3.3 mm) HSS drill 5,401 34.0 (864) 0.19
1 Drill T12 5,401 34.0 (864) 0.03
1 Helical bore T10, 0.118 in (3.0 mm) 2-flute end mill 12,000 20.8 (528) 0.95
1 3D waterline T09, 0.079 in (2.0 mm) 2-flute end mill 12,000 13.9 (352) 1.64
1 3D drop-cutter finish T09 12,000 13.9 (352) 1.25
2 Face mill T01 4,138 82.8 (2,102) 0.80
2 Pocket rough T08 7,830 197.3 (5,011) 0.47
2 Pocket rough T08 7,830 197.3 (5,011) 0.55
3 Pocket rough T06, 0.472 in (12.0 mm) 4-flute end mill 9,947 188.0 (4,775) 5.00
4 Pocket rough T06 9,947 188.0 (4,775) 5.03

The big pocket and the outside profile make up just over half the cycle. The 0.787 in end mill roughs them at 0.295 in (7.5 mm) depth of cut with a 40% stepover.

This example shop has no program history, so the feeds and speeds come from the tool manufacturers' catalogs for 6061-T6. Each operation in the program names the catalogs and pages it drew on, from as many as 13 manufacturers per tool. When we set KinetiCAD up for your shop, it uses the feeds and speeds you already run.

Cycle time, and how close it is

Add up the operations, plus the load and unload time in each setup, and you get 57.3 minutes a part. Setups take 45 minutes for the batch.

A cycle time only helps if it's close to what the machine really does. We checked KinetiCAD's estimator against 177 recorded machine runs of 75 milling programs on eight machines, all from public research datasets. On average it was about 5% off the measured run time. On a 57.3 minute part, that's around 3 minutes.

The G-code

Each setup gets its own program for the Haas NGC control. The program for setup 1 alone is 25,608 lines. Here's how it starts:

%
O2911 (part SETUP 1 -- KINETICAD GENERATED -- Haas VF-2SS)
(========================================)
(PART      : part SETUP 1)
(MATERIAL  : Al 6061-T6)
(STOCK     : 102.5 X 69.5 X 30.5 MM)
(G54 ZERO  : X0=LEFT  Y0=FRONT  Z0=TOP FACE)
...
G00 G17 G40 G49 G80 G90 G94
G21
G54

(----------------------------------------)
(OP00  FACE MILL               T01 DIA 50 face mill)
(SETUP=1)
(  Cut data: 4138 rpm, 2102 mm/min - no shop data for this shop, maker data, 5 makers)
(  ... [face_mill/aluminum/face/carbide/d<=50; Kyocera p.19, Mitsubishi Materials p.60-100, OSG p.1531, Tungaloy p.73,)
(  ... Walter p.75-77])
(----------------------------------------)
T1 M06 (DIA 50 face mill)
G00 G90 X-27.0 Y-5.0
G43 H1 Z22.5
S4138 M03
M08
G00 X-27.0 Y-5.0
G01 Z0.0 F300
G01 X129.5 F2102
G00 Z2.0
G00 X129.5 Y25.0
G01 Z0.0 F300
G01 X-27.0 F2102
G00 Z2.0
...

The header tells the operator the material, the stock size, where G54 is and which tools to load. Every operation says where its feeds and speeds came from. The program for setup 2 starts with an M00 stop and plain instructions for the flip: take the part out, flip it 180° about X, clamp it in the soft jaws and touch off G54 again. If you want to know why a STEP file can't go straight to G-code without all this planning in between, I wrote about it in STEP file to G-code automatically.

Cost and schedule come from the same plan

Every operation in the plan has its minutes, so the cost follows from them. At the example rate of $95 an hour:

  • Setups: 45 minutes, $71.25 for the batch, or $7.13 a part at 10 pieces.
  • Machine time: 57.3 minutes, $90.74 a part.
  • Material: a 1.29 lb (0.587 kg) piece of 6061-T6 stock, $4.52 a part.

That's $102.39 a part at 10 pieces, $1,023.87 for the order. A single piece would be $166.51. At 50 pieces it's $96.69 a part, and at 100 it's $95.97.

The same plan books the job. The schedule blocks 10.5 hours on the first VF-2SS, setups included, from Monday 7:00 AM to Tuesday 9:30 AM, and the parts are ready Wednesday. Nobody plans the job twice.

What your programmer still does

Someone who knows your machines opens the plan in the 3D workspace, changes anything they'd do differently and releases each program. Every program is simulated against the model before it can be released. Checking a finished plan takes far less time than writing four programs from scratch, and the spindles stop waiting on the programmer.

For what this means for a job shop day to day, see AI CNC programming: what it does for a job shop today. If you're comparing tools, our guide to AI CAM software covers the options.

Try it on your own part

Pick a part you've already run, so you can compare against your own program and your own times. Send us the STEP file and its drawing, and we'll plan and program it on your machines with you. If you need parts made instead, upload a model at get.kineticad.ai/make.

Related: AI CAM software · AI CNC programming · STEP file to G-code automatically · Can ChatGPT write G-code?

Frequently asked questions

What is AI CAM programming?

Software that does a CAM programmer's job on its own. It reads the STEP model and the drawing, picks the machine and the setups, chooses tools and feeds and speeds, and writes the NC program for each setup. KinetiCAD does this without a CAM seat, and someone in your shop reviews and releases every program.

How long does AI CAM programming take for one part?

On NIST's test bracket 827-9999-904, KinetiCAD planned 4 setups and 15 operations and wrote an NC program for each setup in 2.8 minutes on one CPU core.

Can AI program a CNC part from a STEP file?

Yes. KinetiCAD takes the STEP file, plus the PDF drawing when you have one, and returns a program for every setup on your machines, along with the cycle time, the cost and a slot on your schedule. Your programmer checks it and releases it.

Where do the feeds and speeds come from?

For a shop with no program history, from the tool manufacturers' catalogs for the material, and every operation in the program names the catalog pages it used. When we set KinetiCAD up for your shop, it uses the feeds and speeds you already run.

How accurate are AI cycle time estimates?

We checked KinetiCAD's estimates against 177 recorded runs of 75 milling programs on eight machines, all from public research datasets. On average they were about 5% off the measured run time.