MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › What is the relationship between hardwired safety circuits and PLC program control?
HomeModels
Table of contents

On this page

PLC & Programming (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

What is the relationship between hardwired safety circuits and PLC program control?

They are two parallel chains with a clear division of labour: the hardwired safety circuit cuts actuator power directly when a hazard appears, while the PLC program handles the normal logic and sequence control. A safety function cannot be left to the program alone, and a PLC cannot take the place of the safety circuit. The sections below explain why the split is made this way, how the two are interfaced and reset, and when a safety controller becomes appropriate.

1. Why a safety function cannot live in the program alone

An ordinary PLC is designed for availability, and its failure modes are not predictable: the program may run away, an output point may short through, a scan may overrun. When a safety function fails, the consequence is personal injury, so what is required is fail-safe behaviour, meaning no single fault may cause the safety function to be lost. Once an ordinary PLC output point has shorted into conduction, no amount of programming can break the power, and cutting power to a hazardous movement must therefore be carried by a separate circuit designed to safety requirements.

2. What the hardwired safety circuit does

Safety signals such as emergency stop buttons, safety gate switches, safety light curtains and two-hand control buttons are wired directly into a safety relay or safety module, which cuts the power circuit of the actuator itself: contactor coils, servo enable, air supply valve. The cut path does not pass through the PLC program or through communication, so the response time is predictable. The circuit itself is designed with redundant contacts, positive-opening contacts and self-checking to reach the required safety level.

3. The part played by the PLC

The PLC only does what is unrelated to safety or outside the safety function: it monitors the state of the safety circuit (normal, tripped, reset requested), uses that as a permissive condition in the sequence control, outputs alarms and status indications, and logs fault times. The cut performed by the safety circuit does not depend on it, and the safety circuit keeps working even if the PLC stops. This division decouples the safety function from the production logic so that neither drags the other down.

4. How the two are interfaced and reset

The typical connection is one-directional: the safety circuit passes a "run permitted" contact signal to the PLC as an input, and the PLC decides from that whether to enter the running sequence. The reset button of the safety circuit is operated manually by the person, not driven automatically by the PLC, to avoid an automatic restart while a hazard still exists. After a hazard, the hazard must first be cleared and the area confirmed clear, then the safety circuit is reset by hand, and on the PLC side the start sequence has to be run again.

5. When a safety controller is warranted

When the number and logic complexity of safety functions become too great to implement with relays, or where a provable safety level is required, a safety PLC or safety I/O module can be used. It is certified in its own right and offers dual-channel processing, self-checking and safe communication, and it can carry part of the safety logic; the system as a whole must still meet the required performance level or safety integrity level, and using a safety PLC does not remove the need for risk assessment and verification.

6. Division of labour: ordinary PLC control and safety circuit

FunctionHardwired safety circuitOrdinary PLC programComment
Emergency stop cutting powerCuts directlyDoes not carry itE-stop signal goes to the safety circuit
Stopping when a safety gate opensCuts directlyMonitors state onlyGate lock signal goes to the safety circuit
Safety light curtain interruptedCuts directlyReceives state onlyCurtain wired to the safety module
Normal running sequence controlNot involvedCarries itImplemented by the PLC
Position reached and interlockingNot involvedCarries itOrdinary logic decisions
Reset operationManual resetRestarts the sequenceReset is never automatic from the program
Alarms and indicationsProvides status contactsOutputs display and recordsIndication is done on the PLC side
Fault loggingRecords operating timeRecords sequence and alarmsEach keeps its own record
On loss of supplyFails safeOutputs openThe circuit is designed to fail safe
Safety level assessmentAssessed to safety standardsNot part of the assessmentMust meet the performance level required

7. Notes

A hardwired safety circuit is not a distrust of the PLC; it is a way of handling two kinds of failure separately. In practice both are expressed on one set of drawings: the safety circuit is drawn on its own and the PLC program is designed on its own, with only a few status contacts between them. To judge whether a machine is designed correctly, look at whether the power-cut path passes through the program. If an emergency stop has to wait for the PLC to scan it and then act through an output point, that path does not meet the requirement.

8. References

The safety and protective earthing requirements for the electrical equipment of machines follow GB 5226.1 and IEC 60204-1. The design and performance level requirements for safety-related parts of control systems refer to GB/T 16855.1 and the equivalent international standard ISO 13849-1. General functional safety requirements are given in GB/T 20438 and the IEC 61508 series, and the equipment requirements for programmable controllers refer to GB/T 15969.2. The specific safety level and architecture are governed by the risk assessment result and the certification data of the safety components chosen.

9. Points to watch

⚠️ Three common traps:
(1) Wiring the emergency stop only to a PLC input and relying on the program to drop the output, so the machine cannot stop once the output point shorts;
(2) Letting the PLC issue the reset signal for the safety circuit, so the machine restarts automatically before the hazard is cleared;
(3) Assuming that using a safety controller removes the need for risk assessment, leaving no basis for whether the safety level is met.

Changes to a safety circuit must be made by personnel with the appropriate qualification and to the risk assessment conclusions, switching off, proving dead and applying lock-out/tag-out before work. After modification the cut time and safety level must be verified, and safety functions must never be bypassed or muted for production convenience.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL