Factory Automation Hub
PLCs & Controllers

How to Configure Redundant PLCs for High Availability

Published 6 min read

Two industrial control units mounted side by side in a panel
Quick answer

A redundant PLC setup uses two or more controllers sharing a load so production continues if one fails. This guide covers hardware selection, network configuration, and failover testing to keep your line running without unplanned stops.

Key takeaways
  • Match the redundancy class of your hardware to the production risk of the specific line.
  • Keep the backup controller powered and running the same logic as the active unit at all times.
  • Test the failover switch physically, not just in the simulation environment.
  • Label all network ports and fieldbus cabling clearly to avoid confusion during maintenance.

A single point of failure in a controller halts the line. For processes where a stop means waste, safety issues, or missed shipments, one controller is not enough. A redundant PLC architecture replaces that risk by running two units in parallel. When the active unit drops, the backup takes over. The goal is a transition that is fast enough that operators do not notice the switch.

What hardware do you need for a true redundant setup?

The first decision is the controller architecture. There are two common approaches. The first is a hot standby setup. The backup unit runs the same program but does not handle I/O. When the active unit fails, the backup assumes control. The second is a load shared setup. Both units process I/O simultaneously, and the system switches the load between them.

For high availability, the load shared approach is the standard choice. It prevents the “catch up” delay that often happens in standby modes. You need two identical controller modules. They must be the same model and revision. Mixing revisions causes communication errors during handover.

You also need a common power supply. If the power feed to the active unit fails, the backup must stay alive. Use a separate circuit or a redundant power supply if your facility allows it. The I/O modules can be shared, but the network switches must be redundant. A single network switch becomes the new single point of failure.

Component Requirement Reason
Controller Modules Identical models and firmware Ensures smooth logic handover
I/O Modules Shared or mirrored Keeps data consistent during failover
Network Switch Redundant pair Prevents isolation of the backup unit
Power Supply Isolated feeds Keeps backup alive if primary power drops
Backups External storage Stores logic for rapid recovery

How do you wire the network for failover?

The network is the nervous system of the redundancy. If the backup cannot talk to the field, it is just an expensive paperweight. Use industrial Ethernet switches that support link aggregation or redundant paths. The controllers connect to two switches. One switch handles the active path. The second handles the backup path.

Configure the switches in a loop protection mode. If one cable drops, the traffic reroutes instantly. Do not use home office or office-grade switches. They do not handle the deterministic timing required for factory control. The latency must be consistent. Jitter causes scan time delays and can trigger safety interlocks.

Run two network cables between the controllers and the switch. Label them clearly. One is the primary communication path. The other is the backup. Use shielded twisted pair cable if the environment has electrical noise. Shielding prevents ground loops that corrupt data packets during a failover event.

What programming rules apply to redundant logic?

You cannot just copy the program to the backup unit and call it done. The logic must be written to support state sharing. If the active controller is mid-scan when it fails, the backup must know where it left off. This is called state transfer.

Use a dedicated communication block for the redundancy link. This block handles the synchronization of variables. Do not send all variables. Send only the critical ones. The state includes timer values, counter values, and any flags that affect safety or process stability.

Avoid using direct I/O addresses in your shared logic. Reference the I/O through memory tags. This allows the system to swap the source of the data without changing the code. If the backup takes over, it reads the same memory tags. The physical I/O card does not matter to the logic. It only matters to the network.

Keep the scan time low. A long scan time gives more time for the failure to be detected, but it also increases the risk of data loss. Test the scan time under full load. If the scan time spikes when the backup is active, you have a resource conflict. Reduce the complexity of the logic or add more processing power.

How do you handle power and physical isolation?

The backup unit must be powered. But it must not be on the same breaker as the active unit. If a breaker trips, both units die. You need isolation. In many plants, this means two separate power panels. If space is tight, use a redundant power supply module.

The physical location of the backup unit matters. Keep it in the same enclosure as the active unit if possible. This reduces cable length and signal loss. If you must put it in a separate cabinet, use the same cable type and length for the communication links. Mismatched cable lengths cause timing errors.

Check the cooling. Two controllers run hotter than one. The enclosure temperature must stay within the manufacturer’s limits. If the backup gets too hot, it may shut down before it can take over. Verify the airflow in the panel. Do not block the vents with other components.

How do you test the failover without stopping production?

You cannot test a failover by pulling the power while the line is running. That causes a stop. You must test in a controlled environment. The best method is a simulation. Use a software simulator that mirrors the hardware. Run the production logic in the simulator. Force a failure of the active node. Watch the backup take over.

Check the timing. Measure the gap between the failure and the handover. For most processes, a gap of less than one second is acceptable. If the gap is longer, you have a problem. It could be a network delay, a power issue, or a logic error.

Once the simulation passes, do a physical test during a planned maintenance window. Stop the line. Power down the active controller. Power up the backup. Run the line. Verify that all I/O points respond correctly. Check the alarms. Check the historical data. If the backup works, power down the backup and power up the active unit. The system should switch back without issues.

What are the most common mistakes in PLC redundancy?

The most common mistake is assuming that two controllers equal redundancy. If the logic is not synchronized, the backup does not know the state of the process. It starts from zero. This can cause a crash when it takes over.

Another mistake is ignoring the network. A single switch is a single point of failure. If the switch dies, the backup is isolated. It cannot take over. You need redundant switches.

A third mistake is poor labeling. When an operator is troubleshooting a failure, they need to know which cable is which. If the cables are not labeled, the technician spends time guessing. This increases the mean time to repair.

Finally, do not forget the human factor. Operators must know how to trigger a manual failover. If the automatic failover fails, there must be a manual procedure. Write it down. Post it at the panel. Train the team on it.

How do you verify the system is ready for production?

Verification is the final step. It is not enough to test the hardware. You must verify the entire system. Run a full production cycle. Run it for at least one full shift. Monitor the network traffic. Watch for errors. Check the scan time. Check the memory usage.

Create a log of the test. Record the time of the failover. Record the time of the handover. Record any errors. This log is your proof that the system works. It is also your reference for future maintenance.

Do not sign off on the redundancy until the backup has run the full cycle. The backup must be as ready as the active unit. It must have the same logic. It must have the same I/O state. It must be ready to take over at any moment.

If you get everything right, the redundant PLC setup is invisible. The line runs. The operators do not think about it. That is the goal. The system just works.

Frequently asked questions

Can I use a standard network switch for PLC redundancy?

No. Standard switches do not handle the deterministic timing required for factory control. Use industrial Ethernet switches that support link aggregation.

How often should I test the failover?

Test the failover during every major maintenance window. Run a simulation on a weekly basis. The physical test should happen at least once a quarter.

What if the backup controller fails during a failover?

The system will remain down. You must have a spare controller on hand. This is why you need a spare parts inventory for critical components.

Do I need to upgrade the I/O modules?

Not necessarily. The I/O modules can remain shared. The redundancy is in the controller logic and the network. The I/O just needs to be reliable.

How much does redundancy cost?

It costs more than a single controller. You are paying for an extra unit, an extra network path, and more testing time. The cost is justified by the reduction in downtime.