What Type Of Files Do CNC Machines Use?
A CNC machine never opens your CAD model. It reads a chain of files: a design source, a CAM project, a G-code program, and the paperwork that holds it together. This page explains that chain for engineers and buyers who need to send the right file the first time.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
CNC Machines Use Files In Four Layers, Not One
A CNC machine does not open your model. It runs a text program of coordinates, feeds, and spindle speeds. Everything before that program is preparation. So the answer to which CNC machines use files is really four layers: the design source, the CAM project, the machine-executable code, and the supporting paperwork.
Each layer has a different owner. Your CAD file belongs to design. The CAM project belongs to the programmer. The G-code belongs to the machine control. The setup sheet and inspection report belong to the shop floor. Mix them up and the part stalls before the first cut.
The order matters because errors flow downhill. A missing thread callout in the solid model becomes a wrong toolpath in CAM, then a wrong hole in the finished part. No amount of careful machining fixes a bad file. Most scrap we see starts upstream, not at the spindle.
- 1Design sourceThe solid model that defines geometry, tolerances, and material.
- 2CAM projectToolpaths, stock, workholding, and cutting parameters.
- 3Machine codeThe G-code and M-code the control actually executes.
- 4Support filesSetup sheets, tool lists, inspection reports, and certificates.
Design Source Files: What Your CAD Model Must Carry
The design source is the first file in the chain and the one you control most directly. It defines the nominal geometry, dimensions, and tolerances of the part. Neutral formats such as STEP and IGES carry surfaces and solids without tying you to one CAD package. Native formats such as SOLIDWORKS .sldprt or CATIA .CATPart keep the feature tree and parameters intact.
Neutral wins on compatibility. Native wins on editability. If we need to adjust a boss height or change a fillet radius, a native file with a live feature tree saves a rebuild. If your CAD seat differs from ours, STEP avoids translation surprises.
STEP is the safer default for most jobs. It is widely supported, handles complex solids well, and keeps units consistent when exported correctly. IGES handles older surface models but can split a solid into loose faces. That fragmentation creates gaps a CAM programmer has to stitch before toolpathing.
For 2D work such as plate profiles and sheet metal flats, DXF and DWG are still common. They carry no Z depth, so they suit laser, waterjet, and routing more than 3-axis milling. Send a DXF for a flat bracket and you are fine. Send one for a contoured pocket and we cannot read the floor.
- 1STEPBest all-round neutral solid format for machining.
- 2IGESOlder surface data; expect repair on complex parts.
- 3Native CADKeeps parameters so edits stay fast and clean.
- 4DXF and DWG2D only; good for plate and sheet profiles.
CAM Files: Where Toolpaths And Fixtures Get Defined
Once the design is frozen, the model goes into CAM software. The CAM file is not a universal format. It is a project file tied to a specific package, such as Mastercam, Fusion 360, or NX. It holds the toolpaths, the stock definition, the workholding, and the cutting parameters.
This is where engineering judgment enters the file. A programmer picks tool diameter, stepover, feed rate, and spindle speed for the material. Aluminium 6061 cuts fast and cool. Titanium Ti-6Al-4V runs slow with heavy coolant. Same geometry, very different CAM settings.
The CAM project also decides how many setups the part needs. A three-axis job may need four sides machined in four orientations. A five-axis job can reach those faces in one or two setups, which cuts handling error. That choice is made in CAM, not at the machine.
You rarely send a CAM file to a shop. It is internal working data. What we need from you is the design source, the tolerances, and the critical features. From there our programmers build the CAM project and the post-processed code.
- 1Package-specificMastercam, Fusion 360, NX files are not interchangeable.
- 2Holds parametersFeeds, speeds, stepover, and tool selection live here.
- 3Defines setupsThree-axis versus five-axis access is decided here.
- 4Not sharedCAM stays with the shop; you send the model.
Machine Code: The Only File The Control Executes
The machine-executable file is plain text. It contains G-codes for motion, M-codes for machine functions, and coordinates for every tool move. Common extensions are .nc, .tap, .gcode, and .txt. A post-processor converts the CAM toolpath into the dialect your specific control expects.
Dialects differ. Fanuc, Siemens, Heidenhain, and Haas controls share the core of ISO code but differ in canned cycles, tool compensation, and high-speed look-ahead. A program written for one control may need edits before another runs it. This is why post-processors are matched to machine models, not just brands.
On our floor, 16 simultaneous 5-axis machining centers run posted programs tuned to each machine. The same part can be posted for a 3-axis mill and a 5-axis center, and the two programs look different. Both cut the same geometry if the post is correct.
You normally do not generate G-code yourself. If you already have verified code and a matching machine, we can review it. Otherwise our programmers post it from the CAM project. Sending hand-written G-code for a complex part usually costs more to verify than to regenerate.
- 1Plain textG-code is readable ASCII, not a binary format.
- 2Control-specificFanuc, Siemens, Heidenhain dialects differ in detail.
- 3Posted, not typedA post-processor generates it from CAM data.
- 4VerifiableWe simulate before the first cut on the machine.
Support Files That Keep A Job Traceable
The fourth layer is paperwork, and it is the layer buyers forget. A setup sheet lists the operations, the fixture, the datum, and the tool numbers. A tool list records the cutters, their offsets, and their remaining life. Without these, a proven program is hard to repeat on a second run.
Inspection files matter just as much. For a medical or aerospace part, a first-article inspection report ties measured values back to the drawing. We run 100% inspection before shipment and keep reports on request. That data is a file too, and it travels with the part.
Certificates close the loop. Material certs prove the alloy grade. ISO 9001:2015 and IATF 16949:2016 system records show the process was controlled. For regulated industries, ISO 13485:2016 and ISO 27001:2022 cover device quality and information security.
If your project needs an NDA, we sign one before files change hands. Uploads are secure and confidential. That protects the design source as much as the finished part.
- 1Setup sheetOperations, datums, fixtures, and tool numbers.
- 2Inspection reportMeasured values linked to drawing callouts.
- 3Material certsProof of alloy grade and heat lot.
- 4NDAAvailable before any file transfer.
How A File Moves From Your Desk To The Spindle
Five checkpoints, each with its own failure mode.
- 1Send the design sourceUpload STEP for solids or DXF for flat parts. Confirm units are millimeters or inches and match the drawing.
- 2We run DFM reviewWithin 12 hours we flag thin walls, deep pockets, and unreachable features that will raise cost or risk.
- 3Programmer builds CAMToolpaths, stock, fixtures, and feeds are set for the alloy. Tolerance target is ±0.005 mm where the drawing calls for it.
- 4Post to machine codeThe post-processor outputs G-code for the specific control. We simulate before releasing to the floor.
- 5Cut, inspect, documentParts run on 3-axis, 4-axis, or 5-axis centers, then pass 100% inspection before shipment.
File Formats Compared By Machining Use
Pick the layer first, then the format inside it.
| Format | Layer | Best for | Watch out for |
|---|---|---|---|
| STEP | Design source | Solid models, most milling jobs | Wrong unit export; check mm vs inch |
| IGES | Design source | Older surface models | Split faces and gaps need repair |
| Native CAD | Design source | Fast edits with live features | Version mismatch blocks opening |
| DXF and DWG | Design source | Plate and sheet profiles | No Z depth, flat geometry only |
| CAM project | CAM | Internal toolpath work | Not portable between packages |
| .nc and .tap | Machine code | Running at the control | Control dialect must match |
| Setup sheet | Support | Repeat runs and second shifts | Out of date after any change |
| Inspection report | Support | First article and regulated parts | Only useful if linked to drawing |
Which File Should You Actually Send?
If you want the fastest quote, send a STEP solid plus a 2D PDF drawing with tolerances. If you need design edits during the job, send the native CAD file as well. Do not send G-code unless we ask for it; sending a model is enough.
Common Questions About CNC File Formats
Can you convert my proprietary design file into STEP?
Yes, in most cases. We open native files from major CAD packages and export a neutral STEP for machining. The conversion keeps solid geometry and units.
If your file is locked or from an unsupported version, send a STEP or IGES export from your side and we work from that.
Which file format is best for 5-axis machining?
A clean STEP solid is the best starting point. Five-axis toolpaths need continuous surfaces, so gaps or split faces cost programming time.
If the part has complex blended surfaces, a native CAD file helps us check curvature and avoid gouges during toolpath generation.
Do I need to generate G-code myself?
No. Our programmers build the CAM project and post the code for each machine. You send the model and the drawing.
If you already have verified G-code for a matching control, we can review it, but regenerating is usually faster for complex parts.
How do you keep my design intent during machining?
The drawing drives the tolerances, not the model alone. We read critical dimensions, datums, and surface finish from your PDF or 2D print.
Where the model and drawing disagree, we stop and ask before cutting. That check happens during the 12-hour DFM review.
What happens if my file has errors?
We notify you before production starts. Missing dimensions, thin walls, and zero-radius internal corners are the usual findings.
You get a short written note with the issue and a suggested fix, so you can decide whether to revise the model or accept a change.
Is it safe to send my CAD files to a shop overseas?
It is safe when the shop has defined controls. We work under ISO 27001:2022 for information security and sign an NDA on request.
Uploads are confidential, and access is limited to the engineers and programmers on your job.
Send Your File And Get A Quote In 12 Hours
Upload a STEP or native CAD file and we return a quotation with free DFM analysis. Production can start within 24 hours once the file is approved.
12-hour quoteFree DFM analysis100% inspectionNo minimum order