← All tasks
MFG 01Manufacturing Knowledge

Program CAM, G-code for a vacuum clamp

Tools
FreeCAD
Time limit
8 hours

Agent is asked to choose the process and machine for a vacuum clamp, and program it for the shop's tools.

Agent Input

What the agent is given: the instruction and its input files.

instruction.md

We need the vacuum clamp in /app/vacuum_clamp.step made in our shop. The shop's machines are listed in /app/shop/machines.json and its tools in /app/shop/tool_crib.json, with a FreeCAD tool bit for each tool in /app/shop/toolbits/. Choose the process and the machine and save them at /app/process.json as {"process": ..., "machine": ...}. Program the part in FreeCAD CAM and save the project at /app/vacuum_clamp_cam.FCStd. Save the G-code in /app/gcode/, one file per operation, named job_1_operation_1.ngc, job_1_operation_2.ngc and so on in the order they run.

The STEP file is the only source of geometry, in millimetres. The part is 6061-T6 aluminium, cut from a block that you choose; the shop's plate is ground to thickness, so use no more material than the job needs. Every face must be within ISO 2768-f general tolerances of the STEP file, and inside corners may be left at the radius of the tool that cuts them. In each tool controller set the tool's Length to how far it sticks out of the holder. Make one CAM Job per setup, in the order they run, with at most 5 operations in all. Keep the machining time as short as possible. In each Job, include the part as it sits on the machine, the stock, and a solid for each piece of workholding where it sits.

Put the part and every workholding solid in the Job's Model group. No tool, holder or rapid move may touch the workholding, and no rapid move may pass through material. The spoilboard and the tape count as workholding. Set the work zero with G54 on a face or corner of the material, or at the centre of a round hole or boss, where an operator can touch it off. Every file must be posted with the machine's post-processor.

You have 28800 seconds to complete this task. Do not cheat by using online solutions or hints specific to this task.

Grading & Reference Solution

How the submission is scored, and a human expert-authored reference solution.

rubric

Gates

G1Submission correctness
Pass / fail

Plan, project and G-code are present and readable.

  • Process plan reads×3 · process.json names a process and machine from the shop's machines.json.
  • CAM document opens×2 · FreeCAD file opens with at least one CAM Job.
  • Every Job is set up · Per Job: stock solid, part in Model group, workholding touching the material.
  • Operations compute · Per Job: every active operation recomputes without error and gives a toolpath.
  • G-code present and readable · Each job_N_operation_M.ngc present, parses in the machine's dialect; every cut has a known tool.
G2Plan integrity
Pass / fail

Plan runs as written: right process, mountable tools, matching G-code, no crash.

  • Right process · process.json names milling on a shop machine that mills.
  • Tools can be mounted · Per tool used per Job: crib tool whose shank fits a collet of the machine.
  • G-code matches the plan · Per setup: re-posted Job with the machine's post makes the same moves.
  • Square turns only · Part turned by square turns only; every Job's part placeable on the STEP.
  • Part inside the block · 5,000 part-surface points, as placed in setup 1, inside the starting block.
  • The cut makes the part×2 · All setups simulated on 0.25 mm voxels; shared = part ∩ remaining / union; missing = part cut.
  • No crash into the workholding · No tool, shank, holder or rapid touches jaws, parallels, plates, bed or other holding.

Scored Categories

M1Part accuracy
30%

Simulated part vs the STEP, and its named sizes.

  • Faces within tolerance · 20,000 surface points (≥ 0.05 mm from edges) within ISO 2768-f; tool-radius corners allowed.
  • No gouges · Points cut deeper than the face's ISO 2768-f band.
  • No material left · Points with material proud beyond the band, tool-radius inside corners excepted.
  • Sizes after the cut×8 · Recess 2 mm deep; Ø12 hole, 4 mm floor; two Ø5.5 corner holes; Ø6 side port centred, into hole.
M2Stock and workholding
20%

Block no bigger than needed, held properly, zero an operator can find.

  • Block size · First Job's stock volume: 181 × 181 × 18 mm reference blank + 3 % (ground plate, no facing).
  • Workholding clear of the block · Per setup: holding-solid volume inside the material, first voxel layer ignored.
  • Grip limits · Gripped on an outer face or from below; jaw limits per machines.json (VMC-1: 15 mm, 2,205 mm², 3 mm; MILL-BENCH-1: none).
  • Work zero can be touched off · Per setup: G54 on a flat outside face (≥ 4 mm² within 0.02 mm) or X/Y at a hole or boss centre.
M3Tools and cutting
20%

Crib tools within crib cutting data and machine power.

  • Tools from the crib · Unchanged crib tool; stick-out ≤ overall length minus holder's shortest grip.
  • Tool fits the machine · Rated for aluminium; speed within machine and tool range; Ø ≤ machine max; fits under spindle.
  • Feeds and speeds in range · Surface speed in crib band (below only at top speed); feed and plunge ≤ crib max for aluminium.
  • No cut above the flutes · No material touches a tool above its cutting length.
  • Step-down and step-over · Per operation (from G-code if custom); step-down never over its depth range.
  • Tool load · Heaviest pass: power at 1.1 J/mm³; bending ≤ crib tool's 1×D full slot at max chip, longest stick-out, +2 %.
  • Tool reach · Per tool per setup: stick-out covers deepest cut below the local material top.
M4Process plan and finishing
10%

Two setups, ≤ 5 operations, right cut type per feature, short cycle.

  • Setup count · Number of CAM Jobs; the part needs top, then side port on edge.
  • Outside cut last · Per setup, the operation cutting the outside (from simulated moves) runs last.
  • Operation types×5 · Setup 1: recess Pocket/Adaptive; holes Pocket/Helix/Drilling; outside Profile/Adaptive/Pocket. Port: Pocket/Helix/Drilling.
  • Operation count · Active operations across all Jobs.
  • Cycle time · Feeds, rapids at machine rate, tool changes; 1.527 × reference's 4.870 min.
M5Machine and G-code
20%

Programs the machine can run, posted and split as asked.

  • Within machine travel · Each program's moves fit the machine's X, Y and Z travel.
  • Machine speed and feed limits · Spindle speeds and feeds within the machine's ranges.
  • G-code dialect · Only accepted words; G21, G54, tool change before each new tool; ends M2 or M30.
  • No rapid through material · No rapid passes through material.
  • Spindle on while cutting · Spindle on and tool loaded for every cutting move.
  • Programs split as asked · gcode/ holds exactly job_N_operation_M.ngc, one per operation, nothing else.

Sample Model Trials

Claude Fable 5.20.70
Part accuracyStock and workholdingTools and cuttingProcess plan and finishingMachine and G-code
  • Loses 3 of 10 weight points on 2 of 5 categories (stock and workholding, process plan and finishing).
  • Stock and workholding: Job_2: the work zero (G54, red ball) at [90, 0, 8] in the part's frame has no flat face of the material to touch off in machine X, Y, and is not at the centre of a hole or boss
  • Process plan and finishing: The recess is cut by Custom_Recess (Custom); the task asks for Adaptive or Pocket
  • + 1 more failed check
GPT-6.2 Astra0.50
Part accuracyStock and workholdingTools and cuttingProcess plan and finishingMachine and G-code
  • Loses 5 of 10 weight points on 3 of 5 categories (stock and workholding, tools and cutting, process plan and finishing).
  • Stock and workholding: Job 2 - inlet edge up: the work zero (G54, red ball) at [90, 0, 18] in the part's frame has no flat face of the material to touch off in machine X, and is not at the centre of a hole or boss
  • Tools and cutting: Job 2 - inlet edge up, tool T84 DR-10 - 6 mm carbide - 52 mm out does not fit: it needs 322 mm under the spindle, the machine has 310
  • + 5 more failed checks
Gemini 4 Neon0.90
Part accuracyStock and workholdingTools and cuttingProcess plan and finishingMachine and G-code
  • Loses 1 of 10 weight points on 1 of 5 categories (process plan and finishing).
  • Process plan and finishing: Job_1: Op4_MountingHoles runs after the outside cut Op3_OuterProfile; the outside cut, which frees the part, should run last

Stock and Rapid Moves Agent Output Failed Checks