Use a PLC for machine and process control, interlocks and plant integration, where millisecond timing is enough. Use an FPGA when timing must be deterministic at microseconds or nanoseconds, when signals arrive faster than a processor can handle them, or when many channels must be processed in parallel. Many systems use both: the PLC runs the machine, and the FPGA handles the timing-critical part.
This article supports our FPGA programming services page. It is written for controls, test and R&D engineers deciding where an FPGA earns its extra development effort.
In short
- PLC scan times are typically milliseconds; FPGA logic runs every clock cycle, often tens of nanoseconds.
- A real-time processor sits in between, at microseconds to milliseconds.
- FPGAs cost more engineering time to develop and change.
- Choose by the fastest thing the system must react to, not by preference.
FPGA, PLC and real-time controller compared
| PLC | Real-time processor | FPGA | |
|---|---|---|---|
| How it runs | Cyclic scan of the program | Prioritized real-time tasks | Parallel logic in hardware, every clock cycle |
| Typical timing | Milliseconds per scan | Microseconds to milliseconds | Nanoseconds (one cycle of a 40 MHz clock is 25 ns) |
| Strengths | Machine logic, interlocks, safety, plant networks, maintenance familiarity | Control loops, sequencing, data handling, math | Triggering, high-speed I/O, fast loops, signal and image preprocessing |
| Development | Ladder or structured text; widely known | General-purpose languages | Hardware description or LabVIEW FPGA; compile times and timing closure |
| Changing it later | Easy, often online | Moderate | Recompile and re-verify |
Signs you need an FPGA
- A trigger, pulse or gate must happen within microseconds of an event, every time.
- Signals must be sampled or time-stamped together across many channels with tight alignment.
- Data arrives faster than a processor can read and decide on it, so it must be reduced at the source.
- A control loop must run far faster than a PLC scan allows.
- Custom digital protocols or pattern generation at high rates.
If none of these apply, a PLC or real-time controller is usually simpler, cheaper and easier for your maintenance team to support.
Using them together
A common architecture keeps the PLC in charge of the machine (sequencing, safety, operator interface and plant communication) and gives an FPGA one job: the fast, deterministic part, such as triggering a camera and laser in sync with a moving part, or capturing an event at high speed. The two exchange status and setpoints over a simple interface. This keeps most of the system in tools the plant already supports.
What it costs to choose an FPGA
- Development time: logic design, simulation and timing verification take longer than equivalent PLC or processor code.
- Skills: fewer engineers can maintain FPGA logic, so documentation matters more.
- Change cost: every change means recompiling and re-verifying timing.
These costs are worth paying only where the timing requirement is real. A good starting point is writing down the fastest event the system must respond to and the allowed jitter.
Not sure whether you need an FPGA?
Sciotex designs FPGA, real-time and PLC-based systems and will tell you which fits your timing requirements. We work under NDA and support what we build, with no subscription or support contract required.
Frequently asked questions
When timing must be deterministic at microseconds or nanoseconds, when signals arrive faster than a processor can handle, or when many channels must be processed in parallel. Otherwise a PLC is usually simpler.
A PLC typically scans its program in milliseconds. FPGA logic runs every clock cycle, often tens of nanoseconds; at a 40 MHz clock one cycle is 25 ns.
Yes. A common design has the PLC run the machine, safety and plant communication while the FPGA handles one timing-critical task and exchanges status with the PLC.
Generally yes. It needs logic design, simulation and timing verification, and changes require recompiling, so it is reserved for tasks that need its speed.
A real-time processor, which runs prioritized tasks with microsecond-to-millisecond timing and suits control loops, sequencing and data handling.