Applications

PLC CPU Module PCBA

A PLC CPU module is the board that a machine builder installs once and then expects to run for fifteen years without attention. It does not switch power and it does not move an axis. What it does is hold a program, keep time, read inputs and write outputs over a backplane, and survive whatever the cabinet throws at it — a contactor closing on the same supply, an electrician working live, a firmware update interrupted halfway. Almost every field failure on a CPU module traces back to one of four things: retention of the program, retention of the clock, integrity of the backplane, or the way the board behaves when power is not clean.

Kilandu assembles PLC CPU and I/O module boards as mixed SMT and through-hole builds within our industrial control PCBA operation. This page covers what is specific to a CPU module rather than to an industrial board in general: the memory architecture, the retention circuits that decide whether the clock survives a weekend outage, the backplane electrical contract, and the tests that separate a board which boots from one which boots after a brownout.

What a CPU module carries that other boards do not

A digital I/O board is a set of repeatable channels. A CPU module is an asymmetric design: one processor, one program store, one retention domain, one backplane interface, and a supervisory circuit that has to be more reliable than everything it supervises. That asymmetry is what makes the build problem different.

BlockFunctionWhat decides field reliability
Processor and DDRProgram execution and working memoryDDR length matching, power sequencing order, thermal pad contact
Program storeFirmware and retentive dataEndurance of the selected NAND or NOR, and whether wear is managed outside the chip
Retention domainReal-time clock and battery-backed variablesBackup source life, reverse-leakage path, switchover threshold
SupervisoryReset, watchdog, brownout detectionTrip point relative to the regulator's dropout, and reset release timing
Backplane interfacePower and data to I/O modulesContact sequence at insertion, inrush limiting, bus termination
Service interfaceProgramming port, diagnosticsIsolation, ESD path, whether the port is live during a program transfer

Program storage is a wear problem, not a capacity problem

Programs change. A machine builder ships a firmware revision, the end user updates it, an engineer reloads a recipe table. Over fifteen years a small NOR flash can accumulate enough erase cycles to matter, and the failure does not look like a storage failure — it looks like a board that occasionally boots with default parameters, or a recipe that reverts after a power cycle.

Two build decisions reduce the risk. First, keep the bootloader and the retentive parameters in separate devices with separate endurance, so a firmware update cannot wear out the parameter store. Second, size the parameter store for at least a hundred thousand write cycles at the real update rate, and state that rate in the build file — we have seen a design sized for monthly writes installed in a machine that rewrote its parameter block every cycle.

  • NOR flash for the bootloader and the smallest, most frequently rewritten block; endurance is high and random access suits a boot path.
  • Managed NAND or eMMC where the program image is large; the controller inside the package handles wear levelling, but power-loss protection has to be verified rather than assumed.
  • FRAM or battery-backed SRAM for parameters rewritten often; no erase cycle limitation, but the backup source becomes the failure point.
  • EEPROM only where the write rate is genuinely low; it is the part most often specified without checking the actual update interval.

The question to ask before selecting memory: how many times per year will this block be rewritten, and what happens to the machine if the write is interrupted by a power cut? A board that writes a parameter block every cycle needs power-fail detection and a journal, not just a bigger part.

Keeping time across a long outage

A CPU module that loses its clock on a power cut still runs, but every timestamp in the event log becomes wrong, and in a plant that reconciles faults against shift records that is a real cost. The retention circuit is small and it is the part most often under-designed.

There are three common approaches, and they fail in different ways. A lithium coin cell gives years of backup but introduces a service item and a reverse-charging hazard if the circuit is wrong. A supercapacitor gives days to weeks and no service item, but it self-discharges and needs a charging path that does not load the main rail. A combined approach — supercapacitor for short outages, cell for long ones — costs more and needs a switchover that does not glitch the RTC.

Backup sourceHold-up timeFailure mode to design around
Lithium coin cell3 to 10 yearsReverse charging from the main rail; cell depletion that only shows at the next outage
SupercapacitorDays to a few weeksSelf-discharge over a long shutdown; charge current drawn through the RTC supply pin
Cell plus supercapacitorWeeks to yearsSwitchover glitch that resets the RTC during the handover
No backup, NTP syncZero during outageWrong timestamps until the next network sync; unsuitable where the plant has no network

Whatever the source, the leakage path has to be measured rather than calculated. A Schottky diode with a few microamps of reverse leakage will flatten a coin cell in months, and the only reliable check is to measure the backup current with the main supply removed, at the highest expected ambient temperature.

The backplane is an electrical contract, not a connector

Most CPU modules talk to their I/O over a backplane, and the backplane is where hot insertion becomes an issue. When a module is plugged into a live rack, the pins do not make contact simultaneously. If power and ground connect in the wrong order, the module's input protection diodes conduct before its ground reference exists, and the current finds a path through the signal pins into the CPU.

The usual fixes are physical rather than electrical: staggered pin lengths so that ground and power mate first, a series resistor or a hot-swap controller on the module's supply, and inrush limiting that keeps the rack's rail from sagging when several modules are inserted. The build side has to preserve those decisions — a connector soldered with excess wicking that bridges the staggered pins defeats the whole arrangement.

  • Ground before power — the longest pins should be the ground returns, so the module's reference exists before any rail is applied.
  • Inrush limit per module, not per rack; a rack-level fuse does not protect the connector.
  • Bus termination that is switchable or module-detected, so an end-of-rack module and a mid-rack module can share one board design.
  • Keying that cannot be defeated — a module inserted in the wrong slot is a common service error and usually destroys the interface.

When the supply is not clean

Industrial cabinets are electrically hostile. A contactor opening on the same 24 V rail produces a transient that reaches the CPU board through the supply pins, and the standard that describes what the board should survive is IEC 61131-2 for programmable controllers. Designing to it is not a formality: the surge and burst tests drive the input protection network, the common-mode choke, and the placement of the TVS devices relative to the regulator.

The build decisions that matter are the ones that keep the protection network intact. A TVS device placed on the far side of a connector pin, with a long trace to the regulator, leaves the intervening trace carrying the transient. A fuse without a coordinated clamp lets the clamp absorb energy it was not rated for. And a metal enclosure grounded only through a mounting screw gives the transient a path through the board instead of around it.

DisturbanceTypical sourceWhat protects the board
Surge (kV, microseconds)Lightning, large inductive switchingGDT or MOV at the entry, coordinated with a TVS
Burst (fast transients)Relay and contactor arcingCommon-mode choke plus TVS at the connector
ESD (kV, nanoseconds)Operator touching a connectorTVS at the entry, ground plane continuity under the connector
Brownout and dipsMotor starting, supply sagUndervoltage detect that holds reset until the rail is stable
Reverse polarityWiring error at commissioningSeries diode or ideal-diode controller with reverse blocking

Reset, watchdog and the order of operations

A CPU module must come up in a defined state no matter how the power arrived. That means the supervisory circuit has to hold reset until every rail is in tolerance and the clock is stable, and it has to release reset at a point the processor's own specification allows. Getting the order wrong produces a board that boots reliably on a bench supply and intermittently in a cabinet, because a bench supply ramps faster than a real one.

The practical checks are simple and rarely done. Ramp the supply from zero to nominal over 50 ms and check that reset stays asserted until the last rail is valid. Drop the supply to 60 % for 10 ms and check that the board either holds reset or recovers cleanly, not something in between. Cycle power 500 times and count the boots that fail to reach the application.

A specific failure we have chased: a module that booted correctly nine hundred and ninety-nine times out of a thousand. The cause was a reset release that depended on a capacitor's tolerance, so a small change in the RC time constant moved the release point into the window where the processor was still initialising its memory controller. The fix was a supervisor IC with a defined threshold; the diagnosis took two weeks because the board passed every functional test.

Mixed-technology assembly on a CPU module

A CPU module usually combines a fine-pitch processor and DDR routing on the SMT side with a backplane connector, a programming header and often a DIN-rail terminal block on the through-hole side. The fine-pitch side demands reflow with controlled placement; the backplane connector demands enough barrel fill to survive insertion force, and often a selective solder process so the connector body is not exposed to a full wave.

Our standard route is reflow for the SMT assembly side and selective solder for the through-hole connector, with the connector's pin lengths and the reserved keep-out respected during placement. Where the stack-up uses controlled impedance for the backplane or the DDR bus, the fabrication requirement is described under multilayer PCB and PCB fabrication.

What we test on a CPU module

Functional testing of a CPU module has to go beyond "it boots". The tests that earn their place are the ones that exercise the retention domain, the supervisory circuit and the backplane.

  • Boot and program load — power cycle and confirm the stored program is intact, not just that the board starts.
  • Power-cycle endurance — repeated cycling with a defined ramp, counting failed boots.
  • Retention under power removal — remove the main supply for the rated hold-up period and verify the clock and retentive data.
  • Watchdog behaviour — force a hang and confirm the reset occurs within the specified window.
  • Backplane loopback — exercise every data line to a known good module, including at temperature.
  • Isolation and ESD on the service port — a programming port that is live during operation is the most common entry point for damage.
  • In-circuit test — value, orientation and presence on every passive around the retention and supervisory circuits.

The measurements behind these tests are described in test methods, the general approach is on PCBA testing, and acceptance follows IPC-A-610. The standard itself is published by IPC, now the Global Electronics Association, and its published table of contents lists how each joint and component type is judged. Where a programme needs statistical evidence rather than a pass/fail record, the process is described under quality assurance.

The parts that must still exist in ten years

A CPU module is the part of a control system most likely to be reordered years after the machine shipped. That makes second-sourcing a design requirement. A processor that is single-sourced, a DDR device in a package that is being discontinued, and a backplane connector that only one vendor makes are all risks that surface three or five years into production, when the customer needs fifty boards to keep a line running.

We record the approved vendor and the last purchase date for every line, and we raise last-time-buy exposure at quotation rather than at the point where the part disappears. See component sourcing for how consigned and turnkey material are separated, and turnkey PCBA for the fully sourced scope.

What we need to quote a CPU module build

  • BOM with alternates, particularly for the processor, the memory devices and the backplane connector.
  • Gerber, drill and stack-up, including the impedance requirement for the DDR and backplane buses.
  • Retention specification — hold-up time required, and whether the clock must survive a multi-week shutdown.
  • Backplane contract — pin assignment, insertion force, and whether hot insertion is required.
  • Compliance target — which IEC 61131-2 tests apply and at what severity level.
  • Test specification — whether the customer's firmware can be used for functional test.
  • Volume and production life, which determines how much second-sourcing work is worth doing up front.

The full input list is on quotation file checklist, and a DFM review runs before quotation on any board with a fine-pitch processor and DDR routing. Volume bands are described in MOQ and lead time, and the assembly cost calculator gives an indicative figure before a formal quotation.

Where this board sits in the cabinet

The CPU module is the board that coordinates everything else. It issues setpoints to a servo drive, receives operator input from an HMI touch panel, and in a machining application passes motion commands to a CNC controller. In textile machinery it runs the sequence for a textile machine control board with dozens of coordinated axes, and in a lift installation it works alongside an elevator control PCB where the safety functions sit in a separate, independently certified path.

That last distinction matters for the build. Where the CPU module is part of a safety function, the board's own failure modes have to be documented, and redundant channels have to be physically separated rather than merely logically separated. Where it is purely a sequence controller, the same board can be built without that separation — and quoting both the same way is how programmes end up with a board that cannot pass assessment.

Questions we are asked before a CPU module quote

Can you assemble a board with a BGA processor and DDR routing?

Yes, including fine-pitch BGA and impedance-controlled DDR buses. BGA inspection is done by X-ray, and the joint criteria are described in BGA X-ray inspection.

Do you handle the retention circuit design review?

We review it against the hold-up time you specify and flag where the hold-up depends on a component tolerance. We do not take responsibility for the circuit's function, but we will tell you when a specification cannot be met by the parts chosen.

What happens if the processor is single-sourced?

We flag it at quotation with the last purchase date, and we ask whether a form-factor-compatible alternate exists. Where there is none, we recommend a last-time-buy quantity sized for the expected production tail.

Can you build the I/O modules as well?

Yes. I/O modules are a simpler build and are usually quoted together with the CPU so that the backplane interface is qualified as a pair. Where the whole rack is assembled and tested, the scope is covered by box build.

How do you handle firmware loading in production?

Where the customer provides the image and the loading procedure, we load and verify in production. Where firmware cannot be shared, we test the hardware interfaces and mark the boundary in the inspection record.

Send the BOM, the stack-up and the retention requirement.

We will come back with the parts that carry last-time-buy risk, the retention hold-up we can actually verify, and a quotation that separates the processor side from the backplane side.

Start a CPU module quotation · What to send · Industrial control PCBA