
A PLC controls process state-the logic, timing, and sequencing that keeps a line or machine running-while a CNC controls geometric motion, turning code into tool paths accurate to a few microns. That, in one breath, is PLC vs. CNC. The two share the same DNA-digital processors, I/O, and stored programs-yet they're engineered for completely different jobs, which is exactly why engineers and buyers mix them up. This guide covers three things: where PLC vs. CNC genuinely differ, how they actually work together inside a single machine, and how to choose the right one-with a six-brand PLC selection matrix and practical sourcing tips at the end. Here's the quick answer first, and then we'll go deeper.
PLC vs CNC at a Glance
The fastest way to settle PLC vs. CNC is a side-by-side look at what each controller actually does:
|
Dimension |
PLC |
CNC |
|
Control objective |
Process logic, sequencing, machine state |
Geometric tool motion and path accuracy |
|
Programming |
Ladder logic, structured text (IEC 61131-3) |
G-code and M-code part programs |
|
Execution |
Continuous cyclic scan (1–10 ms) |
Linear program run, start to finish |
|
Typical use |
Conveyors, packaging, assembly, batch process |
Mills, lathes, machining centers, lasers |
|
Cost range |
~$300–$2,000 (entry to mid hardware) |
~$8,000–$30,000+ (controller + drives) |
If you only read one thing, read this table. That's PLC vs. CNC in 30 seconds - now let's unpack each side.
What Is a PLC and What Does It Control?
A programmable logic controller is an industrial computer built to make decisions in real time: read sensors, run logic, switch outputs, and repeat-thousands of times a second, for years without rebooting. Its job is the state of a process, not the shape of a part.
How a PLC works (scan cycle, I/O, ladder logic)
A PLC runs an endless loop called the scan cycle: read inputs → execute logic → update outputs → run self-diagnostics → repeat. A full scan typically completes in 1–10 milliseconds, so the controller reacts to a tripped sensor almost instantly. Think of a PLC as a tireless dispatcher reading and reacting to thousands of signals every second. Its I/O is modular: digital and analog modules clip onto a backplane, so a line can grow from 16 to 1,000+ points without changing the CPU.

Programming languages (IEC 61131-3)
PLCs are programmed using the international standard IEC 61131-3, which defines five languages so teams can pick the right tool per task:
- Ladder Diagram (LD) - relay-style logic, ideal for discrete interlocks
- Function Block Diagram (FBD) - signal flow and process control loops
- Structured Text (ST) - high-level code for math and data handling
- Instruction List (IL) - low-level, assembly-like instructions
- Sequential Function Chart (SFC) - step-by-step state machines
Most factory logic still lives in ladder logic, with structured text used for calculations.
Where PLCs are deployed
PLCs run the connective tissue of a plant. On an assembly line they start and stop stations based on cycle-complete signals. On a conveyor, they start or stop the belt from photoelectric sensor input. In a packaging machine they coordinate fill, seal, and label timing. On an injection molding machine, they sequence clamp, inject, and eject. In water treatment they stage pumps and dose chemicals against level and flow readings. In each case the PLC owns the sequence - not the geometry.
PLCs handle process state. CNC, by contrast, handles geometric motion. Here's how.
What Is a CNC and What Does It Control?
A CNC - computer numerical control - exists to move a tool along a precise path. Where a PLC asks, "What should happen next?" a CNC asks, "Exactly where should this axis be, right now, to a fraction of a millimeter?"
How CNC works (path generation, G-code → motion)
A CNC executes a part program in a straight line, top to bottom: the program is read by an interpreter, handed to a path planner that smooths the geometry, converted into setpoints for each axis, and fed to the servo loop that closes the position thousands of times a second. Unlike the PLC's endless cyclic scan, a CNC runs linear program execution - it works through the program once and stops at the end. Modern controllers increasingly expose this data through the OPC UA Information Model for CNC Systems, making axis positions and program state readable by higher-level software.

G-code & M-code basics
A CNC program is mostly G-code (motion) with M-code (auxiliary functions) mixed in.
code
G21 ; units in millimeters
G90 ; absolute positioning
M3 S1200 ; spindle ON clockwise, 1200 rpm
M8 ; flood coolant ON
G1 X50 Y25 F300 ; linear cut to (50,25) at 300 mm/min
M5 ; spindle OFF - M-codes are typically dispatched to an embedded PLC
The G commands move the tool; the M commands (M3, M8, M5) switch physical equipment on and off. Hold onto that last point - those M-codes are the bridge to the next section.
Where CNC is deployed
CNC controls anything that shapes material to a drawing: milling machines, lathes, multi-process machining centers, laser cutting systems, EDM (electrical discharge machining), and 5-axis machines for complex contoured parts. If the output is a precise geometry, a CNC is generating the motion.
Now that we've defined both, here's where they actually diverge.
PLC vs. CNC-The 7 Core Differences
Most comparisons stop at "one is flexible, one is precise." That's not useful on a shop floor. Here are seven differences that actually change which controller you specify - and the engineering reason behind each.
1. Control objective
A PLC governs process state: Is the door closed? Is the part present? Should the conveyor run? A CNC governs geometric accuracy: is the cutter on the programmed path to within microns? Same factory, two fundamentally different questions.
2. Execution model
A PLC runs a continuous cyclic scan - read, solve, output, repeat - every 1–10 ms, forever. A CNC runs a linear part program that executes once and ends. This is why a PLC is ideal for conditions that can change at any moment, and a CNC is ideal for a defined sequence of moves.
3. Programming language
A PLC engineer writes a rung of ladder logic such as [Start]–[/Stop]–(Motor). A CNC programmer writes G1 X100 F250. One expresses Boolean conditions and state; the other expresses coordinates and feed rates. Different syntax because they describe different physics.
4. Hardware architecture
A PLC is a CPU plus modular I/O cards on a backplane or rack-easy to expand point by point. A CNC is a motion controller tightly coupled to servo drives and encoders, engineered for coordinated multi-axis interpolation. You add I/O to a PLC; you add axes to a CNC.
5. Real-time precision
The two operate on different scales. A PLC works in time-millisecond logic decisions. A CNC works in space - linear positioning accuracy on quality machines reaches roughly ±5 µm. Saying "both are precise" misses the point: they're precise about completely different quantities.
6. Reprogramming flexibility
PLCs typically support online editing - you can add a safety interlock or change a timer without stopping the line. Changing a CNC operation means editing and re-proving the part program, usually with the machine paused. Both are reprogrammable; only one is designed to be edited while production keeps moving.
7. Typical cost & TCO
An entry-to-mid PLC system runs roughly $300–$2,000 in hardware; a mid-range CNC controller with drives runs $8,000–$30,000+. But the total cost of ownership includes software licenses, programming time, operator training, and spares-and that's where the gap can widen or narrow depending on the configuration.
Do CNC Machines Have PLCs Inside? How They Work Together
Here's what gets missed in almost every PLC vs CNC comparison: the overwhelming majority of modern CNC machines have a PLC built inside them. It isn't an either/or choice-open the electrical cabinet of a current machining center, and you'll find both, splitting the work.
The division of labor is clean. The CNC kernel owns path generation-interpolating G-code into coordinated axis motion. The embedded PLC owns everything around the cut: executing M-codes for tool changes, coolant, chuck and fixture clamping, safety door and light-curtain interlocks, the tool magazine, the chip conveyor, and spindle start/stop. The kernel makes the part; the PLC makes the machine safe and serviceable.
They communicate through a defined chain. At the top sits the HMI; the operator's commands pass to the embedded PLC, which talks to the CNC kernel across a CNC-PLC interface built on shared memory-a block of memory that both processors read and write so signals cross in microseconds without a network hop. The CNC kernel commands the servo drives for the axes, while the PLC switches VFDs and contactors for spindles, pumps, and conveyors. The PLC side is typically programmed to IEC 61131-3, and the kernel increasingly publishes its state through the OPC UA Information Model for CNC Systems-the same standards you met earlier, now working in concert.
A concrete example makes the handshake obvious. On a typical machining center, the operator presses Cycle Start on the HMI. The HMI signals the embedded PLC, which validates safety interlocks and confirms the chuck is clamped before it hands control to the CNC kernel. The kernel begins G-code execution. At every M6 (tool change), the kernel pauses and signals the PLC to operate the automatic tool changer; once the PLC reports the new tool seated, the kernel resumes cutting. Every M8 coolant call and M3 spindle command travels the same path.
CNC doesn't replace PLC. PLC doesn't replace CNC. In a real machine, they share memory and split the job.
Now that we've seen they coexist, the real question is, which one do you reach for first?
How to Choose Between PLC and CNC for Your Application
A 4-step decision tree
Work through these in order:
- Is the task about motion-path accuracy - cutting, shaping, or contouring to a drawing? If yes → CNC. If no, continue.
- Is the task about sequencing, interlocks, and machine state-start/stop, timing, safety, and material handling? If yes → PLC. If no, continue.
- Does the machine do both - precision cutting and auxiliary handling? If yes → a CNC with an embedded PLC. This is roughly 90% of modern CNC machines, so most real projects land here.
- Do you need to add or change auxiliary logic-a new interlock, conveyor, or sensor-without rewriting cutting programs? If yes → that logic belongs in the PLC layer, where you can edit it without disturbing the part program.
Industry-by-industry recommendations
Find your sector below; the third column shows the controllers commonly paired with it.
|
Industry |
Primary controller |
Why |
Typical PLC pairing |
|
Automotive |
PLC (line) + CNC (machining) |
High-volume sequencing plus precision parts |
Allen-Bradley CompactLogix + Siemens auxiliary |
|
3C electronics |
PLC |
High-speed assembly and test sequencing |
Omron Sysmac NX / Mitsubishi FX5U |
|
Packaging |
PLC |
Motion-coordinated fill, seal, label |
Omron Sysmac / Mitsubishi FX5U |
|
Food & beverage |
PLC |
Hygienic batching, dosing, CIP control |
Schneider Modicon / Siemens S7-1200 |
|
Injection molding |
PLC |
Clamp, inject, eject sequencing |
Mitsubishi iQ-R / Omron CJ |
|
Glass |
CNC + PLC |
Precision cutting plus handling |
Siemens S7-1500 + CNC kernel |
|
Semiconductor |
PLC |
Cleanroom sequencing, tool interlocks |
Siemens S7-1500 / Allen-Bradley ControlLogix |
If your application points to PLC, the next decision is which platform. Here's how the big six compare.
Top PLC Brands and Models for Industrial Automation (and CNC Auxiliary Control)

Most "best PLC" lists call every brand powerful and reliable, which helps no one. Below is the engineer's version: where each platform fits, what it pairs with, and - just as important - when not to choose it.
Siemens SIMATIC S7-1200 / S7-1500
The European default and the deepest single-vendor ecosystem in automation. The compact S7-1200 suits standalone machines; the S7-1500 scales to large lines, all under one TIA Portal environment with native PROFINET. Pairs naturally with SIMATIC Comfort HMIs and SINAMICS drives. Skip it if your plant standard is North American and your team already lives in Studio 5000. → Browse our Siemens PLC inventory
Mitsubishi MELSEC FX5U / iQ-R
The Asian OEM standard and a frequent choice for CNC auxiliary control, especially on Japanese-built machine tools. The FX5U is a strong compact controller; the iQ-R rack handles motion-heavy, high-axis systems. Tight integration with GOT HMIs and MELSERVO drives. Less common where EtherNet/IP and a North American supply chain dominate. → See our Mitsubishi PLC range
Schneider Modicon M221 / M340 / M580
Process-control heritage, strong in water, wastewater, and energy. The M221 covers compact machines; the M580 ePAC brings redundancy and native Ethernet for critical infrastructure, programmed in EcoStruxure Control Expert. Pairs with Magelis/Harmony HMIs. Not the obvious pick for ultra-high-speed discrete packaging. → View Schneider Modicon stock
Omron Sysmac NX / CJ
Built for packaging and high-speed assembly, with exceptionally tight motion integration over EtherCAT. The NX1/NX5 controllers in Sysmac Studio unify logic, motion, and vision in one project. Pairs with NA/NB HMIs and 1S servos. Overkill for a simple pump-and-valve sequence that an entry PLC handles fine. → Explore Omron Sysmac PLCs
Allen-Bradley CompactLogix / ControlLogix
The North American factory-floor standard, anchored by the Studio 5000 ecosystem and EtherNet/IP. CompactLogix fits machine-level control; ControlLogix runs large plant-wide architectures. Pairs with PanelView HMIs and PowerFlex drives. Often carries a higher price and licensing footprint than equivalents-worth weighing on cost-sensitive builds. → Check Allen-Bradley availability
ABB AC500
A flexible platform for hybrid process-plus-discrete plants, with dedicated safety-PLC variants for machinery and process safety. Programmed in Automation Builder, it pairs with CP600 HMIs and ABB drives. Less entrenched than Siemens or Allen-Bradley as a default machine-builder choice, so confirm local support. → Browse ABB AC500 modules
|
Brand & series |
Best for |
Programming env |
Typical HMI pairing |
Protocols |
Price tier |
|
Siemens SIMATIC S7-1200/1500 |
European OEMs, integrated lines |
TIA Portal |
SIMATIC Comfort/Unified |
PROFINET, PROFIBUS, OPC UA |
–$ |
|
Mitsubishi MELSEC FX5U/iQ-R |
Asian OEMs, CNC auxiliary |
GX Works3 |
GOT2000 |
CC-Link IE, Modbus |
–$ |
|
Schneider Modicon M221/M340/M580 |
Water, energy, process |
EcoStruxure Control Expert |
Magelis/Harmony |
Modbus TCP, EtherNet/IP |
–$$ |
|
Omron Sysmac NX/CJ |
Packaging, high-speed assembly |
Sysmac Studio |
NA/NB series |
EtherCAT, EtherNet/IP |
–$ |
|
Allen-Bradley CompactLogix/ControlLogix |
North American plants |
Studio 5000 |
PanelView |
EtherNet/IP, DH+ |
–$ |
|
ABB AC500 |
Hybrid process + discrete, safety |
Automation Builder |
CP600 |
PROFINET, Modbus, EtherCAT |
–$ |

Comparing six platforms and still on the fence? Send us your application and our engineers will help you match the right controller, HMI, and drive combination.
Sourcing, Upgrades & Replacements - A Practical Buyer's Guide
When to retrofit an old CNC control cabinet with a new PLC
Four triggers usually justify a retrofit: the OEM has discontinued the original control and stopped supporting it; spare prices have spiked 10x or more on the gray market; the legacy HMI has failed and can't be replaced like-for-like; or you want to add IIoT data collection the old controller can't provide. The exception: if the machine is near end-of-life or low-utilization, a full retrofit rarely pays back-source a used spare instead and plan replacement.
How to source obsolete or discontinued PLC modules
There are generally three paths. First, the OEM channel - reliable but slow and increasingly unavailable for end-of-life parts. Second, authorized and independent distributors holding legacy stock. Third, China-based suppliers that maintain deep current and obsolete inventory plus refurbished networks are often the fastest route to a discontinued module. A real scenario: a plant manager in Texas needs a discontinued Mitsubishi A-series module by Friday to restart a line. The OEM quotes weeks; a stocking supplier with the part on the shelf ships the same week. That timing gap is why the third path exists.
Why companies source PLC & HMI from China-based suppliers
Beyond availability, buyers turn to China-based suppliers for four practical reasons: depth of stock across current and legacy parts; shorter lead times when a line is down; the ability to source multiple brands-Siemens, Mitsubishi, Omron, and Schneider-on one purchase order; and customization of control panels and modules to spec. These are supply-chain advantages, independent of price.
What to verify before purchase

Before any controller purchase - new, refurbished, or obsolete - confirm these five points:
- Firmware version compatibility with your existing program and hardware
- Original packaging and genuine part markings
- Warranty terms and coverage period in writing
- Lead time confirmed against your downtime window
- RMA process documented before you pay
Got more questions? Here are the ones engineers ask most.

Want a second set of eyes before you buy? Send us the part number and we'll confirm firmware compatibility, packaging, and warranty against your existing setup.
FAQ

01.Can a PLC replace a CNC controller?
02.Do CNC machines contain PLCs inside them?
03.Which PLC brand is best for a CNC retrofit project?
04.What's the difference between a CNC and a PLC in terms of cost?
05.Can one HMI panel work with both a PLC and a CNC system?
06.How do I source a discontinued Siemens or Mitsubishi PLC module?
Conclusion
PLC is your factory's reflexes; CNC is your machine's hand. In modern machines, they aren't rivals - they're roommates sharing memory. Lead with PLC for process and lines, lead with CNC for precision parts, and expect both in any real machining center. When your application points to a PLC - or you need a discontinued module fast - talk to a sourcing specialist who carries all six major brands in stock.
Talk to a PLC sourcing specialist about your project → Or browse in-stock PLC modules and HMI panels ready to ship.

