← Back to Journal Index
07 / RESEARCH & ENGINEERING DEEP DIVEComplete Guide

PLC or Microcontroller for a Custom Machine? How to Choose

Choose a PLC or microcontroller for a custom machine by mapping I/O, timing, motion, faults, service skills, integration, and validation requirements.

01 / EXECUTIVE SUMMARY & CORE THESIS

Key Insights At A Glance

KEY // 01

Map the machine responsibilities before choosing the controller or programming environment.

KEY // 02

Separate overall scan behavior from dedicated hardware functions and the timing each task needs.

KEY // 03

Evaluate the complete field interfaces, protection, power, and diagnostics around the processor.

KEY // 04

Maintenance and restoration tasks must work for the team expected to support the installation.

KEY // 05

Prove the proposed architecture with a focused test before treating familiarity as evidence.

Should your custom machine use a PLC or a microcontroller? The useful answer starts with the machine, not the engineer's preferred editor. List what must be sensed, moved, timed, diagnosed, restored, and supported. Then compare actual controller configurations against that list. A faster chip and a familiar programming language are both useful facts. Neither is the complete architecture.

This guide focuses on specifying and evaluating the control application. The broader PLC, microcontroller, and industrial computer comparison explains platform categories. The off-the-shelf versus custom PCB guide addresses development and lifecycle economics. Here, the goal is to decide what the controller must demonstrate on your machine before either option earns approval.

1. Write the controller responsibilities in machine terms

Start with the operating modes, sequences, inputs, outputs, user actions, and external connections. Identify which decisions belong to the controller and which belong to an operator, a drive, a safety system, or a backend service. A control system should have clear boundaries. Asking one processor to own every activity can make the requirement look simpler while creating difficult timing and fault interactions.

For each function, record the required response, evidence of completion, and permitted behavior when the expected input does not arrive. A door indication, motor command, positioning loop, payment message, and production report do not necessarily need the same timing. The controller selection should reflect those differences rather than applying the word real-time to the whole machine and moving on.

A machine-control responsibility map

FunctionQuestions to answerSelection consequence
Sequence controlWhich events allow the next step?State model, I/O, and fault handling
MotionWhat trajectory, feedback, and synchronization are needed?Drive interface and dedicated timing resources
Operator interactionWhat can the user request and what is confirmed?HMI protocol and permission boundaries
ConnectivityWhat happens during delay or loss of service?Local autonomy and communication isolation
ServiceHow is a fault diagnosed and a spare restored?Tools, configuration, documentation, and support

2. Define the complete I/O and power arrangement

List each field connection with signal type, supply, current, cable context, connector, and fault behavior. Include sensor power, output drivers, isolation where needed, startup state, and service access. For a PLC, identify the actual modules and accessories. For a microcontroller, identify the complete electronics around the chip. The bare device is not the field interface.

Check startup, shutdown, and supply interruption requirements. Define what outputs may do before the application is initialized and how a fault is reported. Avoid assuming a familiar controller automatically satisfies every electrical requirement. The selected configuration still needs to be evaluated in the machine environment. Sensor and actuator selection provides the component-side questions.

The result should be a reviewable I/O schedule and architecture. That makes it possible to compare options without discovering late that one needs several additional modules or that the proposed custom board has no room for the required connectors.

3. Match timing requirements to the actual hardware functions

Describe the event, required action, acceptable delay, and conditions under which the timing must hold. Distinguish acquisition, application processing, output update, and physical response. A motor or valve does not move merely because the output bit changed. The end-to-end requirement includes the relevant hardware and mechanism, not only the processor execution time.

Do not assume that every PLC task is limited to ordinary cyclic scanning or that every microcontroller task has a bounded response merely because it runs without a desktop operating system. Dedicated timers, counters, motion functions, interrupts, communication load, and application design all matter. Siemens' S7-1200 system manual documents dedicated high-speed and motion-related functions for that family; verify the exact model, configuration, and restrictions rather than transferring capabilities across an entire category.

For an illustrative requirement, a position event may need to reach a particular output within a specified interval under maximum application load. Test that complete path with the intended interfaces and operating modes. Processor clock speed alone cannot establish it. A well-scoped test is considerably more persuasive than a heated comparison of megahertz.

4. Separate machine control from network and interface workloads

Consider what happens while the display refreshes, a connection retries, logs are written, or a configuration is saved. The architecture should keep those activities from invalidating required control behavior. The solution may be task separation, appropriate hardware peripherals, a separate controller, or a different allocation of functions. Choose it from the workload rather than a universal rule about how many processors a machine deserves.

A drive may own a motion loop while the PLC or microcontroller sends commands and monitors status. A separate application component may handle payment or a complex interface. Define who owns the authoritative state and what happens when communication is lost. Connected-machine architecture explains the broader division between local control and external services.

A focused workload test

Run the required machine sequence while exercising the intended communication, logging, and interface activity. Measure the paths that matter and record the hardware, software, configuration, and test limits. Passing an unloaded bench demonstration answers a smaller question.

5. Specify fault behavior and safety responsibilities separately

Create a fault matrix: condition, detection, affected outputs, message, retained evidence, and permitted recovery. Include missing sensors, inconsistent inputs, command timeouts, supply changes, and interrupted operation. A PLC application and microcontroller firmware both need explicit behavior here. A restart should not repeat an irreversible action simply because the previous state was stored only in a variable that disappeared.

Safety-related functions require appropriate risk assessment, architecture, components, and validation for the application. Do not infer a safety claim from the controller category, a watchdog, an emergency-stop icon, or the presence of a state diagram. Identify the responsible specialists and the evidence required. Functional control can interact with safety functions without being interchangeable with them.

Use the reliable control-system guide and state-machine design to structure the functional behavior. Keep the application requirements precise enough that both proposed platforms can be tested against them.

6. Evaluate the support task, not a stereotype about technicians

Identify the people expected to investigate a fault and restore operation. What tools, permissions, spares, and information do they have? A PLC can be familiar to one site and unfamiliar to another. A custom controller can be straightforward to replace when the service model uses documented modules and configuration. Do not make the support decision from a general statement that one group can or cannot read a particular language.

Work through a replacement task. A spare must have the right hardware, software, settings, calibration where required, and verification procedure. Determine whether the installation allows field programming or requires a prepared assembly. Record how configuration is backed up and how a repair is checked. The handover checklist turns these expectations into tangible deliverables.

Compare actual service arrangements

TaskPLC option to defineMicrocontroller option to define
DiagnoseAvailable diagnostics, project access, and toolsFault records, service interface, and tools
ReplaceCompatible module and restored configurationCompatible assembly and provisioning method
Change behaviorApproved program and review processApproved firmware and release process
Verify repairMachine-specific checks and sign-offMachine-specific checks and sign-off
Maintain supportSpares and supplier migration planSpares, component changes, and design support

7. Compare three scenarios instead of declaring a universal winner

In a one-off factory fixture, available modules, site maintenance capability, and integration with existing equipment may make a PLC a strong candidate. In a repeatable product with constrained packaging, specific interfaces, and centralized service, a microcontroller-based assembly may deserve investigation. Neither conclusion follows automatically from quantity. The requirements and support model still decide.

For a machine with complex application software and precise local sequencing, consider a hybrid. The application component can handle its workload while a controller owns machine behavior. That boundary needs messages, timeouts, startup behavior, and recovery rules. A hybrid can be appropriate, but it also adds another interface to design and maintain.

Use machine requirements discovery if the task is still being defined. It is difficult to choose the best controller for a sequence nobody has agreed on. The right next action may be an experiment, not a purchase.

8. Run a proof that addresses the disputed requirement

Choose a representative function that exposes the architecture's important uncertainty. It might be motion timing during communication activity, recovery after an interrupted cycle, a field interface under expected load, or restoration using a spare. Define the setup, expected result, measurement, and limits before testing. Use evidence to narrow the choice rather than selecting whichever platform produces the quickest first animation.

Record limitations and remaining work. A development board can help evaluate processing and interfaces without proving the production electronics or enclosure. A standard PLC demo can show application behavior without establishing the final wiring, installation, and safety arrangement. Keep the decision proportional to what the test actually demonstrates.

  1. List the decisive requirements and candidate configurations.
  2. Identify the uncertainty that could change the decision.
  3. Define a representative test and its pass conditions.
  4. Measure the relevant path under the intended workload.
  5. Record limitations, remaining validation, and lifecycle implications.
  6. Approve the architecture with a documented reason and review trigger.

9. Bring the complete machine brief to the selection review

Combine the I/O list, timing model, operating modes, fault matrix, support tasks, and proof results. Compare development and production economics separately from technical suitability. If an option cannot meet an essential requirement, a lower initial price does not make it comparable. If both meet the requirements, the lifecycle and delivery trade-offs become meaningful.

SolveMpire can discuss PLC, embedded, and hybrid control scopes through our engineering services. Bring the machine sequence and the difficult conditions, not just a preferred device name. A good selection review should leave you able to explain why the chosen architecture fits this machine and what evidence is still required.

Need help selecting a machine controller?

Share the sequence, I/O, response requirements, motion interfaces, operating environment, and maintenance model. We can discuss an architecture review and focused proof where needed.

Frequently Asked Questions

Technical Inquiries & Clarifications

It depends on the service team, tools, permissions, spare parts, configuration records, and repair procedure. Compare the actual restoration task. Familiar modular hardware can be useful, while a documented replaceable custom assembly can also suit a managed product fleet. The platform name alone does not establish how quickly your organization can diagnose and verify a repair.