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

Get Instant Quote

CNC control basics

PMC in CNC Machine: What It Controls and Why It Matters

PMC in a CNC machine is the logic layer that runs everything except the cutting path: tool changers, clamps, pallet pools, lube pressure, door interlocks and alarm handling. This page explains how it works, what it cannot do, and which part features depend on it.

Ladder logicI/O and interlocksAlarm codesCycle time impact
pmc in cnc machine
Definition

What PMC in a CNC Machine Actually Controls

PMC stands for Programmable Machine Controller. On most machines it is a programmable logic controller (PLC) built into the CNC, programmed by the machine builder rather than the end user. Fanuc calls it PMC; Siemens puts the same job in the S7 ladder inside the NC. The function is the same either way: read inputs, run logic, drive outputs, hundreds of times per second.

PMC in a CNC machine decides whether the machine is allowed to move at all. It watches lube pressure, air pressure, axis overtravel switches, door switches, spindle orientation, tool clamp confirmation and coolant level. If one signal is wrong, the PMC stops the cycle and posts a message on the screen.

The path controller decides where the tool goes. The PMC decides whether the tool is clamped, the door is shut and the way lube pump has pressure. Two different jobs, two different failure modes. A bad toolpath shows up in the part. A bad PMC line shows up as a machine that will not start.

On a machining center the PMC touches the tool magazine, the spindle taper, the pallet changer, the chip conveyor and the coolant pump. On a lathe it runs the chuck clamp, tailstock, bar feeder and parts catcher. None of that appears in the G-code. All of it has to work before the first cut.

  • 1
    Fast loopSafety and interlock logic runs in milliseconds, not in the program cycle.
  • 2
    Builder-ownedThe ladder is written by the machine tool builder and locked to the machine.
  • 3
    Machine-specificThe same Fanuc control behaves differently on two different machines.
Mechanism

Ladder Logic: How the PMC Reads a Machine

The PMC program is written in ladder logic, the same graphical language used in factory automation. Each rung is a condition: input on the left, output on the right. A rung for the spindle might check that the door is closed, the chuck is clamped and the coolant is on before it energizes the spindle start coil.

Scan time is the key number. A typical PMC scans its whole ladder in 2 to 10 ms. That is fast enough to catch a dropped tool clamp signal before the spindle turns. It is not fast enough to replace a hard-wired safety relay, which is why emergency stop circuits are still wired in hardware, outside the ladder.

Inputs come from proximity switches, pressure switches, thermal trips and operator panel buttons. Outputs go to solenoid valves, contactors, relays and indicator lamps. Every one of those points appears in the PMC I/O map, and that map is the first document a maintenance tech opens when a machine faults.

Machine builders guard their ladder. On many controls the PMC parameters are password protected, and the ladder itself cannot be edited without a builder-level key. That is deliberate. One wrong rung can crash a tool changer into a spindle at full rapid.

Boundaries

Where PMC Ends and CNC Motion Begins

The split is not always clean. Feed hold, single block, overtravel and spindle override all cross the line between PMC and motion control. A feed hold stops the axes, but the PMC still has to retract the tool, stop the coolant and hold the spindle state until cycle start.

Tool change is the clearest example. The NC program issues an M06 with a tool number. From there the PMC takes over: orient the spindle, release the taper, move the magazine, confirm the new tool is seated, then hand control back to the NC. If the seated confirmation switch never closes, the machine alarms out and the NC waits.

This matters for quoting. A part that needs 14 different tools and a pallet change per cycle stresses the PMC far more than a part with 3 tools and one setup. The cutting time may be similar. The non-cut time is not.

  • 1
    M06 belongs to the PMCThe NC requests the change; the PMC performs it.
  • 2
    M08 and M09Coolant on and off are PMC outputs, not motion commands.
  • 3
    OvertravelHard limits trip the PMC, which then inhibits the drive.
Diagnostics

Alarm Codes and What They Tell You

PMC alarms carry numbers, not descriptions. A 1000-series alarm on a Fanuc usually means a PMC message the builder wrote, and the text lives in the ladder comments. Without those comments you get a number and a guess. That is why builders ship a ladder print with every machine.

The fast way to read a PMC fault is to open the ladder monitor and watch the rung that corresponds to the alarm. A rung that stays dark when it should be green points at a sensor, a cable or a stuck valve. Ten minutes on the monitor usually beats an hour of swapping parts.

Some faults are mechanical and look electrical. A tool clamp confirmation switch that never closes is often a worn Belleville washer stack, not a dead switch. A lube pressure fault at cold start is often the wrong oil viscosity, not a failed pump. Check the mechanical side before you replace I/O.

Keep a log of every PMC alarm with the date, the shift and the ambient temperature. Patterns show up fast. Three low-lube faults in one week usually means a slow leak, not three separate sensor failures.

  • 1
    Ladder monitor firstWatch the rung, not the sensor, until you know which side is wrong.
  • 2
    Check mechanics earlyWorn clamps and cold oil mimic electrical faults.
  • 3
    Log every alarmDate, shift and temperature turn single events into patterns.
Engineering impact

Why PMC Design Shows Up in Your Part Price

PMC in a CNC machine is invisible on a drawing, but it sets how much non-cut time a part carries. A five-axis job with a trunnion, a tailstock and a pallet pool has more interlock logic than a three-axis job with a vise. More logic means more places for a cycle to stop.

Rigid tapping is a good test case. The PMC has to sync the spindle and the Z axis through the ladder and the drive, at spindle speeds from 300 to 4,000 rpm depending on tap size and material. If the sync logic is loose, threads come out undersized or torn. On a well-tuned machine, M29 rigid tapping holds class 2B threads in 6061 and 304 stainless.

Bar feeders and parts catchers add another layer. The PMC coordinates the feeder push, the chuck open and close, and the catcher swing so none of them collide. That is why a bar-fed lathe job can run lights-out but a manual-load job cannot, even on the same machine.

For our own work, we run 127 high-precision CNC machines across three plants, including 16 simultaneous 5-axis machining centers. All of them carry builder ladder logic we cannot rewrite. What we can do is map each part to a machine whose PMC sequence matches the feature set. Fewer tool changes, fewer pallet swaps, fewer chances for a non-cut stop.

Tolerances

PMC Limits You Should Know Before You Design

The PMC does not set part tolerance. The servo, the spindle and the fixture do. But the PMC controls whether those elements get a clean chance to work. A tool that is not fully seated in the taper will cut off position no matter how good the machine is.

On our machines, the working tolerance is ±0.005 mm (±0.0002 in) on features we can reach in one setup, with surface finish from Ra 0.2–0.8 μm on fine-turned faces and Ra 0.8–1.6 μm on general milled surfaces. Those numbers assume the PMC handed the tool to the spindle correctly and the clamp held the blank flat.

Feature design interacts with PMC sequencing. A part with 12 tapped holes that all need the same tap runs one tool and one sequence. The same 12 holes in three different orientations need three setups, three clamp cycles and three tool changes. Same drawing, very different machine time.

Deep pockets and thin walls are a different story. The PMC has nothing to say about chatter. But a machine that faults on lube pressure mid-cut leaves a mark that no deburring tool will fix. Stable auxiliary systems are part of holding a tolerance over a long run, not a side detail.

Practical

When the PMC Is Not Your Problem

Not every stopped cycle traces back to ladder logic. If the NC shows a servo alarm, a spindle alarm or an overheat on a drive, the PMC is usually just the messenger. Read the alarm number against the builder list before you touch the ladder.

If the machine runs fine on one program and faults on another, the PMC is rarely at fault. Look at the program: a missing M09, a tool number that does not exist in the magazine, a pallet call before the previous pallet is confirmed. Bad sequencing in the G-code trips interlocks that are working exactly as designed.

If the fault only appears on the first cycle of a cold morning, the cause is usually temperature or oil viscosity, not logic. Warm the machine for 15 to 20 minutes at low spindle speed and see if the fault survives. Many do not.

PMC in a CNC machine is a system you learn by watching, not by reading a spec sheet. Once you know which rungs guard which motion, a stopped machine stops being a mystery.

Reading a machine

How to Check the PMC on a Machine You Are About to Buy

  • 1
    Ask for the ladder printA builder that will not supply ladder comments is selling you a black box. Get the I/O map with it.
  • 2
    Watch a full tool changeTime it from M06 to the moment the NC resumes. Anything over 8 seconds on a 20-tool magazine is slow.
  • 3
    Trip a safety interlockOpen the door mid-cycle on a test part. The machine should stop the axes within one revolution of the spindle.
  • 4
    Force a lube faultPull the lube pressure switch wire and start the cycle. You want a clear alarm, not a silent skip.
  • 5
    Check the alarm historyRead the last 200 alarms. Repeated low-air or clamp faults mean the auxiliary systems are marginal.
  • 6
    Confirm the I/O sparesAsk which input and output modules are stocked. A dead module can idle a machine for a week.
Comparison

CNC Controller vs PMC: Who Owns What

Use this split when you read an alarm list or plan a cycle time estimate.

FunctionCNC (NC) controllerPMC / PLCWho you call
Toolpath interpolationOwns itDoes not touch itProcess engineer
Tool change sequenceRequests M06Runs the whole sequenceMachine builder
Spindle speedSets the RPMEnables and interlocks itMachine builder
Chuck or vise clampReads M10 / M11Drives the valve, checks confirmMachine builder
Coolant and chip conveyorIssues M08Switches pumps and motorsMaintenance
Over travel and doorGets the inhibitDetects and reports itMaintenance
Alarm text on screenDisplays itGenerates the codeMachine builder
Servo tuningOwns itNot involvedService engineer

The Short Version

If your part needs many tools, pallet changes or bar feeding, the PMC sequence sets your cycle time and you should quote it that way. If your part is simple, one setup and three tools, the PMC is background noise and the cutting parameters matter more.

FAQs

PMC in CNC Machine: Common Questions

Is PMC the same as PLC?

Functionally yes. PMC is the name Fanuc uses for the logic controller inside its CNC. Other builders use a standard PLC or a soft PLC in the NC.

The difference is integration. A PMC shares memory and I/O with the NC, so it can read axis position and spindle state directly. A standalone PLC usually cannot.

Can I edit the PMC ladder myself?

Usually not. Builders password protect the ladder because a wrong edit can crash a tool changer into the spindle.

You can normally view the ladder monitor and read I/O states. That is enough for most fault finding. Actual edits need a builder-level key and a backup of the original ladder.

Does the PMC affect part accuracy?

Not directly. The servo loop and the fixture set accuracy. Our working tolerance is ±0.005 mm on features reachable in one setup.

Indirectly, yes. If the PMC releases a clamp early or does not confirm a tool seat, the next cut is off. Auxiliary systems have to be stable before tolerance means anything.

Why does a machine alarm out on a cold morning?

Low lube pressure and stiff hydraulics are the usual causes. Oil viscosity at 10 °C can be several times higher than at 25 °C.

Warm the machine for 15 to 20 minutes at low spindle speed. If the alarm stops, the PMC caught a real condition, not a false one.

How long should a tool change take?

On a 20-tool magazine, 3 to 6 seconds from M06 to resume is normal. Twin-arm changers run faster than drum types.

If it takes more than 8 seconds, the PMC sequence or the magazine mechanics need a look. That lost time multiplies across a 10,000-part run.

Does PMC matter for prototyping?

Less than for production. On a one-off part, a slow tool change costs seconds, not hours.

It matters when a prototype uses a feature your machine cannot sequence, such as a pallet pool or a bar feeder with a short remnant. Check that before you promise a cycle time.

Send Us the Drawing, We Will Check the Sequence

Upload your files and we will return a quotation plus a free DFM analysis within 12 hours, with the machining sequence spelled out.

12-hour quote100% inspectionNDA on request

Follow our work

More CNC Machining Notes

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