3D contour CAM for bicycle chain ring
- Tools
- FreeCAD
- Time limit
- 8 hours
Agent is asked to choose the process and machine for a bicycle chain ring, and program its 3D contours.
Agent Input
What the agent is given: the instruction and its input files.
We need the bicycle chain ring in /app/chain_ring.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/chain_ring_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; 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. Finish the sloped walls of the openings with 3D-contour operations (3D Surface or Waterline), to within 0.02 mm of the STEP file. Use only tools from the crib that the chosen machine can hold, and in each tool controller set the tool's Length to how far it sticks out of the holder. Keep each tool's bending to at most 0.05 mm on any pass. Use only the machine's own workholding. Make one CAM Job per setup, in the order they run. 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. Set the work zero with G54 where an operator can touch it off. Every operation must compute with no errors, and every file must be posted with the machine's post-processor. Set feeds and speeds for the tool and the material, within the machine's and the tool's limits, and keep the machining time short. 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.
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.
Gates
Files present, CAM project computes, programs read. Any failure: score 0.
- Process plan reads×3 · process.json reads and names a process and a machine that are in the shop's files.
- CAM project opens×2 · chain_ring_cam.FCStd opens in FreeCAD and holds at least one CAM Job.
- Setups are complete · Each Job: stock, part in its model, workholding touching the material.
- Operations compute · Every active operation recomputes with no error and gives a toolpath.
- Programs present and readable · job_<n>_operation_<k>.ngc per operation in /app/gcode/, parsing in the machine's dialect.
Runnable plan: process, tools, matching programs, clean cut. Any failure: score 0.
- Right process · The process plan names milling, on a milling machine of the shop.
- Tools can be mounted · Each tool used is a crib tool whose shank fits a machine collet.
- G-code matches the plan · Re-posted Job vs submitted program, block by block: move type, tool, arc direction, end/mid points.
- Square turns only · Each setup turns the part by square (90°) turns only, so its axes stay on the machine's.
- Part inside the block · The part, as placed in the first setup, lies inside the starting block.
- Cut makes the part×2 · Simulated cut of all setups: share of part volume kept and share cut away.
- No holding collisions · No tool, shank, holder or rapid touches jaws, parallels, plates, bed or other holding.
Scored Categories
Simulated part within ISO 2768-f, right sizes, 45° opening walls finished to 0.02 mm.
- Faces within tolerance · Surface points of the simulated cut within ISO 2768-f; tool-radius inside corners count as in.
- No gouges · Sample points where the cut went deeper into the part than the band.
- No material left · Points with material proud beyond the band, tool-radius inside corners excepted.
- Sizes after the cut×9 · 4 mm ring at two arms, 2 mm teeth band, 1 mm tips (setups aligned), Ø10 holes, Ø12 counterbores, 2 mm floor.
- Opening walls within 0.02 mm · 3,000 points on 45° opening walls (up-facing, normal Z 0.6–0.8, r < 82 mm), probed along normal.
Block no bigger than needed; each setup held and zeroed as a shop would.
- Block size · Starting block volume; reference 200 × 200 × 4 mm (160,000 mm³) + 3 %.
- Holding clear of the block · Volume of each holding solid placed inside the block.
- Grip limits · Jaw grip height, area and thinnest wall vs machine limits; desk mill: fixing holes over bed threads.
- Work zero can be touched off · G54: X, Y, Z on flat outside faces, or X/Y at a round hole or boss centre.
Crib tools within data and load; two setups, sound order, 3D wall finish, time and length near reference.
- Tools from the crib · Unchanged crib tool; stick-out ≤ length minus holder grip.
- Tool fits the machine · Suits machine and 6061: speed, rating, size, room under spindle.
- Feeds and speeds · Surface speed, feed and plunge per tooth (per rev for drills) vs crib data for aluminium.
- No cut above the flutes · No material touches a tool above its cutting length.
- Tool load · Each pass vs material at op start: spindle power (1.1 J/mm³) and tool bending.
- Tool reach · Each tool sticks out far enough for its deepest cut, so the holder never reaches the work.
- Setup count · Number of setups (CAM Jobs).
- Operation order · Desk mill fixing holes first in setup 1; rough before finish per setup; separation last unless on tape.
- Opening walls finished by 3D contour · Last cut at 10 points 0.05 mm off 45° walls: 3D Surface/Waterline, or Custom with ≤ 40 % per Z level.
- Machining time · Time at machine feeds and rapids, tool changes included, vs reference 248.98 min.
- Cutting length · All feed-move length, air moves included, vs reference 143,592.5 mm.
Programs run on the chosen machine as written, split as asked.
- Within machine travel · Each program's moves fit the machine's X, Y and Z travel.
- Machine limits · Spindle speeds and feeds in the programs lie within the machine's ranges.
- G-code dialect · Accepted words only; metric, G54, tool change per new tool, ends M2/M30.
- No rapid through material · No rapid (G0) move passes through material in the simulation.
- Spindle on while cutting · Spindle on and tool loaded for every cutting move.
- Output split as asked · Only job_1_operation_1.ngc, job_1_operation_2.ngc, … in run order, one per operation.
Sample Model Trials
- Loses 2 of 10 weight points on 1 of 4 categories (stock and workholding).
- Stock and workholding: Block (red) is 171,125 mm³, needs at most 164,800: more material than the part needs
- Loses 6 of 10 weight points on 2 of 4 categories (stock and workholding, tools and cutting, and the process plan).
- Stock and workholding: Job 1 | Front, apertures and tooth lands: the work zero (G54, red ball) at [0, 0, 2] in the part's frame has no flat face of the material to touch off in machine Z
- Stock and workholding: Job 2 | Rear, counterbores and teeth: the work zero (G54, red ball) at [0, 0, -2] 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
- + 1 more failed check
- Loses 2 of 10 weight points on 1 of 4 categories (stock and workholding).
- Stock and workholding: Block (red) is 176,720 mm³, needs at most 164,800: more material than the part needs
- Stock and workholding: Job_2_BottomSide: the work zero (G54, red ball) at [-93.5, 93.5, 2.2] in the part's frame has no flat face of the material to touch off in machine Z
Stock and Rapid Moves Agent Output Failed Checks