GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

CNC operation guide

How CNC Machine Operate: A Setup and Run Checklist

This guide explains how CNC machine operate, from loading G-code to watching the first chip. It is written for engineers and buyers who need to judge whether a shop runs its machines under control. After reading it, you can name the checks that decide part accuracy before the spindle ever turns.

15 years in Dongguan127 CNC machines±0.005 mm tolerance3–5 day delivery
how cnc machine operate 2
Quick answers

Key takeaways

The program is not the processG-code sets the path. Workholding, tool offsets and thermal drift decide whether the part measures in tolerance.
Touch off before you trustSet X, Y, Z from the actual stock face, not from the CAD origin. A 0.1 mm offset error repeats on every part.
First cut at reduced feedRun the first pass at 50–70% of programmed feed until chips confirm the speed and feed are right.
Measure while the part is still clampedIn-process checks catch tool wear before the finishing pass, when correction is still cheap.
The control loop

What happens inside a CNC machine when it runs

A CNC machine does not read your drawing. It reads a list of coordinates, feeds and spindle speeds, then drives ball screws and a spindle to follow that list. The control compares the commanded position with the feedback from encoders on each axis, and corrects the difference thousands of times per second. This is the closed loop that makes repeatability possible.

The loop has three layers. The CAM post-processor turns the toolpath into G-code. The machine control interprets that code into axis motion. The mechanical stack, meaning the frame, guides, ball screws and spindle, turns motion into a cut. A weakness in any layer shows up on the part, usually as a size error or a poor surface finish.

On a 3-axis mill, the table moves in X and Y while the spindle moves in Z. A 5-axis machine adds two rotary axes, so the tool can approach a face from an angle instead of one direction. That changes setup more than it changes the code. Fewer setups mean fewer datum shifts and less accumulated error.

For most production work, the practical target is a stable process, not a perfect one. A shop that holds ±0.005 mm on a mature process is running the loop correctly. A shop that hits ±0.05 mm on the same geometry has a setup or tooling problem, not a programming problem.

  • 1
    Control layerInterprets G-code, manages tool offsets, monitors servo feedback.
  • 2
    Mechanical layerGuides, ball screws and spindle convert commands into material removal.
  • 3
    Process layerWorkholding, tool selection and coolant keep the cut stable.
Pre-run checks

Checks to complete before the spindle starts

The first check is the stock itself. Measure the actual block, not the nominal size. Castings and sawn plate often vary by 0.5–2 mm, and a program that assumes a clean 50 mm face will cut air or overload the first pass. If the stock is oversize, adjust the facing depth in the program rather than pushing the tool harder.

The second check is the fixture. Clamp force must hold the part against cutting loads without deforming it. Thin walls and long overhangs are the usual failures. A 2 mm aluminum wall clamped with 40 N·m of vise force will spring back after unclamping and measure out of tolerance. Use soft jaws machined to the part profile, or support the wall from behind.

The third check is tool data. Every tool in the carousel needs a length and diameter offset that matches the physical tool. A worn 10 mm end mill that measures 9.85 mm will cut a slot 0.15 mm undersize. Touch off each tool on a presetter or a tool setting probe, and record the value in the offset table.

The fourth check is the coordinate system. Set the work origin from the actual datum face, then verify it with a dial indicator or a probe. This is the step that most often goes wrong on a first run. A 0.1 mm error in Z will show up on every part until someone measures and corrects it.

  • 1
    Stock conditionMeasure real size, hardness and flatness before clamping.
  • 2
    Fixture rigiditySupport thin walls; do not rely on vise force alone.
  • 3
    Tool offsetsVerify length and diameter against the physical tool.
  • 4
    Work originTouch off from the datum face, then prove it with an indicator.
Cutting parameters

How speed and feed decide the cut

Surface speed sets the cutting temperature. In aluminum, 300–500 m/min with a carbide tool keeps the edge cool and the chip flowing. In 304 stainless, drop to 80–120 m/min or the edge will work-harden the material ahead of the cut. Titanium sits lower still, around 40–60 m/min, and needs constant coolant flow.

Feed per tooth controls chip thickness and tool load. A 10 mm three-flute carbide end mill in 6061 aluminum running at 12,000 rpm and 0.08 mm per tooth removes material quickly without chatter. The same tool in 4140 steel runs at 3,000 rpm and 0.04 mm per tooth. Start conservative and increase until the chip looks right.

Depth of cut should stay within the tool's flute length. For roughing, an axial depth of 1× tool diameter and a radial width of 0.3–0.5× diameter is a safe starting range. Full-width cuts at deep axial depth cause deflection, which shows up as a tapered wall or a poor finish on the floor.

Coolant does more than cool. It clears chips from the cutting zone, which matters most in blind pockets and deep holes. Through-spindle coolant at 40–70 bar is the standard choice for deep-hole drilling in stainless and titanium. Flood coolant is enough for aluminum pockets up to about 3× diameter deep.

  • 1
    Aluminum 6061300–500 m/min, 0.05–0.10 mm per tooth, flood coolant.
  • 2
    Stainless 30480–120 m/min, 0.03–0.05 mm per tooth, keep the edge engaged.
  • 3
    Titanium Ti-6Al-4V40–60 m/min, 0.03–0.05 mm per tooth, high-pressure coolant.
  • 4
    Steel 4140100–180 m/min, 0.04–0.07 mm per tooth, air blast or flood.
Common failures

What goes wrong on the first run and how to catch it

Chatter is the most common symptom. It comes from tool overhang, weak workholding or a spindle speed that matches a natural frequency of the setup. Reduce overhang to 3× diameter or less, then adjust speed in 10% steps. If the noise persists, the fixture is the problem, not the tool.

Size drift across a batch points to thermal growth. A spindle running at 12,000 rpm for two hours will grow a few tenths of a millimeter in Z. On tight work, warm up the machine for 20–30 minutes before the first cut and re-check the Z offset after the warm-up.

Poor surface finish on a floor usually means the tool is rubbing rather than cutting. Check that the feed per tooth is above the minimum chip thickness for the insert, around 0.02 mm. Below that, the edge pushes the material instead of shearing it, and the finish turns cloudy.

A part that measures correct on the machine but wrong after unclamping was distorted by clamping force. This is common on thin frames and rings. Machine with light finishing passes, or stress-relieve the stock before the final cut. For critical parts, leave 0.2 mm of stock and finish after a 12-hour stress-relief cycle.

  • 1
    ChatterShorten overhang, stiffen the fixture, adjust speed.
  • 2
    Size driftWarm up the spindle, re-check offsets, track the trend.
  • 3
    Cloudy finishIncrease feed per tooth above the minimum chip thickness.
  • 4
    Spring-backReduce clamp force, use soft jaws, stress-relieve stock.
Operating sequence

How to operate a CNC machine, step by step

  • 1
    Load and dry-run the programTransfer the G-code, then run it with the tool offset raised by 50 mm and the feed override at 0. Watch the position display through the whole cycle. Any unexpected rapid move means a post-processor or work offset problem. Fix it before cutting metal.
  • 2
    Set work and tool offsetsTouch off X, Y and Z on the datum faces. For a vise setup, set Z on the top face of the stock. Enter tool length offsets from the presetter. Verify by jogging each tool to a known height and comparing the display with the actual gap.
  • 3
    Clamp the part and confirm supportUse parallels or a machined pocket so the part sits flat. Tighten in a cross pattern to avoid tipping. For thin floors, add a support screw under the center. Check with a 0.02 mm feeler gauge that the part does not rock.
  • 4
    Run the first pass at reduced feedStart at 50–70% feed and 80% spindle speed. Listen for chatter and watch the chip color. Aluminum should produce bright, curled chips. Steel chips turning blue mean the surface speed is too high. Adjust override before the second pass.
  • 5
    Check the first articleStop after the roughing pass and measure the most critical feature. Compare with the drawing. If the size is off by more than one third of the tolerance band, correct the offset now rather than after finishing.
  • 6
    Run the finishing pass and monitorRestore 100% feed and speed. Watch for tool wear by checking the finish and the chip shape. On long runs, measure every 10–20 parts to track drift. A rising size trend means the tool is wearing and needs an offset change.
  • 7
    Unclamp, clean and inspectRemove chips before unclamping so they do not fall between the part and the vise. Deburr, then measure the finished part at room temperature. Aluminum grows about 0.023 mm per 100 mm per 10 °C, so a part measured hot will read oversize.
Setup comparison

3-axis vs 5-axis operation: when each fits

Use this table to pick the machine type before you write the program.

Factor3-axis mill5-axis machining center
Number of setupsTwo to five, one per faceOne for most parts
Typical tolerance±0.01 mm on a rigid setup±0.005 mm with thermal control
Best forPrismatic parts, plates, simple pocketsComplex contours, undercuts, deep cavities
Fixturing costHigher, one fixture per orientationLower, single fixture holds the part
Programming effortSimple to post and verifyCollision checking is mandatory
Cycle timeLonger due to re-clampingShorter on contoured geometry
When to avoidParts with compound anglesSimple flat parts, cost is not justified

The machine only follows the setup

If the stock, fixture and offsets are right, the program will produce good parts. If any of the three is wrong, no amount of code editing will fix it. Send us your model and we will return a DFM analysis and a quote within 12 hours.

FAQs

Questions engineers ask about CNC operation

How long does it take to set up a CNC machine for a new part?

For a 3-axis part with a simple vise fixture, setup takes 30–60 minutes including tool offsets and a dry run. A 5-axis part with a custom fixture and a first-article inspection typically takes 2–4 hours.

The bigger variable is the fixture. If the shop has to design and machine soft jaws or a dedicated nest, add a day. GreatLight starts production within 24 hours of an approved quote, and the DFM analysis in the quote usually removes one setup before the job starts.

What tolerance can a CNC machine hold in normal production?

A well-maintained 3-axis machine holds ±0.01 mm on a rigid setup in aluminum. A 5-axis machine with thermal compensation holds ±0.005 mm on contoured features.

Tighter than that is possible but expensive, because it needs temperature control, in-process probing and slower feeds. Tell us which dimensions actually matter. Tolerancing every dimension at ±0.005 mm adds cost without adding function.

Do I need to send G-code with my CAD file?

No. Send the 3D model in STEP or IGES format, plus a 2D drawing with tolerances and finish callouts. We generate the toolpaths and G-code from your model.

If you already have a proven program for a specific machine, send it and we will check the post-processor and work offsets before running it.

Which materials are hardest to machine, and how do you handle them?

Titanium Ti-6Al-4V, Inconel and 17-4PH stainless are the difficult ones. They work-harden quickly, conduct heat poorly and wear tools fast.

We cut them at low surface speed with high-pressure coolant and fresh carbide, and we inspect the first article before the batch runs. For 17-4PH, a stress-relief step between roughing and finishing keeps the part stable after machining.

How do you keep a 10,000-part run consistent?

Tool life management, in-process probing and a scheduled offset review. We replace tools on a count basis rather than waiting for a bad finish, and we measure at fixed intervals to track drift.

Historical late-delivery probability on our production runs is below 2%, and every part is inspected before shipment. Reports are available on request.

Can you machine a single prototype and then scale to production?

Yes. There is no minimum order quantity. One prototype and a 10,000+ part run use the same process plan, so the geometry does not change between stages.

The prototype proves the setup and the tolerances. Production then uses the same fixture design and the same inspection points, which removes the usual re-qualification step.

Put your part on a controlled process

Upload your STEP file and drawing. We review the setup, flag the risky features and quote within 12 hours.

12-hour quote100% inspectionNo minimum orderNDA on request

Follow our work

More from the shop floor

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC