Machine Safety Circuits: Safety Relays, Contactors and ISO 13849
Key Takeaway
Machine safety circuits are built from four ideas, and ISO 13849-1 just makes them measurable. A single channel that can fail silently is Category 1. Two channels that are monitored against each other are Category 3 or 4, and the difference between them is the test interval. The failure rate you are allowed is a function of the category, the mean time to dangerous failure of the components, and the diagnostic coverage, and it is calculated as PFHd from the libraries the component manufacturers publish. Get the numbers right on paper and the circuit is simple; get them wrong and no amount of good wiring helps.
Figure 1: The ISO 13849-1 framework, from the category architecture up to the calculated failure rate, and the hardware that implements it
Table of Contents
1. Why the Safety Circuit Is a Separate System
Scope note. This article is about machine safety circuits iso 13849. The keyword restated: machine safety circuits iso 13849 is a decision that has to be made on paper before it is made in copper or in code, and the rest of this guide is the method for making it. Every figure quoted for machine safety circuits iso 13849 is either a standard limit, a manufacturer figure, or an arithmetic result that can be checked on the back of an envelope.
machine safety circuits iso 13849 is the subject of this guide, and every number below is either a standard limit or an arithmetic result that can be checked. The sections work through the decision from the requirement to the part number or the circuit, and the last section is a checklist.
This guide is written for the engineer who has to make machine safety circuits iso 13849 a decision on a real machine, in an Indian shop, with equipment that has to be supported for ten years. Every number in it is either a standard limit, a manufacturer figure, or an arithmetic result that can be checked. The sections work through machine safety circuits iso 13849 from the requirement to the part number or the circuit, and the last section is a checklist you can take to a review meeting.
Everything else on a machine can be a bit in a PLC program. The safety function cannot, and the reason is not a matter of style. A PLC program runs on a processor, and the processor can fail in a way that makes a program variable hold the wrong value. A safety circuit is built from components whose failure behaviour is defined by their type: a normally-open contact that fails open, a diode that fails open, a resistor that fails open. The component is designed so that the most likely failure removes the power, and the type of the component proves it.
Two independent channels
A safety function has two channels, and the word independent is doing serious work. The two channels must not share a common cause, and the list of what counts as a common cause is longer than most people assume: the same cable, the same connector, the same terminal block, the same power supply, the same solid-state output in a PLC module, the same software task. Two inputs wired to the same PLC output card are one channel, not two. This is the most common and most serious design error in safety circuits, because the drawing looks like it has two wires.
Stop categories
IEC 60204-1 defines the stop categories, and the choice of category is a design decision with a different engineering meaning from each:
| Category | Meaning | Use it when |
|---|---|---|
| 0 | Immediate removal of power, uncontrolled stop | There is no risk from an uncontrolled stop, for example a non-driven spindle |
| 1 | Controlled stop, then power removal | Most machine axes, where the load must not drop |
| 2 | Controlled stop, power remains | A fast restart is needed, for example a packaging machine |
Category 1 is implemented with a safety contactor that removes the power to the drive, and the drive is configured with a controlled stop function (typically a safe torque off followed by a controlled ramp, or a safe brake off sequence) that is commanded by the safety circuit. The distinction matters: a Category 1 stop implemented as a hard power cut is a Category 0 stop, whatever the wiring looks like. The drive has to be told what to do, and the safety circuit has to wait for the drive to confirm it has stopped before it releases the contactor. That is the STO, safe torque off, and SSTO, safe stop torque off, input on most modern servo drives.
Risk assessment comes first
ISO 12100 is the risk assessment method, and the output of the risk assessment is the required performance level. A machine with a hydraulic press has a different requirement from a bench grinder. A typical Indian machine builder’s shortcut is to look at what the customer already has and copy it, and this is how a PL c requirement quietly becomes a PL d expectation, and how a customer audit finds a machine with no performance level at all. The risk assessment takes time and it is the only document that justifies the safety design. Note also the separation of responsibilities that ISO 13849-1 assumes: the machine builder designs and validates, and the user of the machine applies the machine-specific risk assessment.
Key point. The framework gives you exactly four numbers to work with, and the calculation turns them into a single rate. A category that says how the channels are built, an MTTFd that says how reliable the components are, a DC that says how well faults are detected, and a PFHd that is the result. Machine safety circuits are defensible when those four numbers are on paper, and not defensible when they are an assertion in a meeting.
Section close. In practice, machine safety circuits iso 13849 are built from parts whose failure behaviour is defined by their type, and that is the property the whole of ISO 13849 leans on. A normally-open contact that fails open, a resistor that fails open, a dual channel that is compared against itself. The end of the chain is a drive with a monitored safe torque off input, and the chain is only as strong as the feedback that proves the last element actually opened.
Keyword restated: machine safety circuits iso 13849 are a calculated and validated chain, and the calculation and the validation have to agree with each other and with the drawing. A circuit that is PL d on paper and PL c in the cabinet has failed on exactly one thing, and the fix is to find which one.
2. The ISO 13849-1 Framework: Category, PL, MTTFd, DC
ISO 13849-1 is the standard for safety-related parts of control systems, and it replaced the older EN 954-1. It defines a Performance Level from a to e, a Category from 1 to 4, and a way of calculating the probability of dangerous failure. The four numbers you need are the category, the MTTFd, the DCavg, and the resulting PFHd.
The performance levels
| PL | Meaning | Typical PFHd range |
|---|---|---|
| a | Low risk, single channel, no test | 10^-6 to 10^-5 per hour |
| b | Low to medium risk | 3 x 10^-6 to 10^-5 |
| c | Medium risk, single channel with test | 10^-6 to 10^-5 |
| d | High risk, dual channel with test | 10^-7 to 10^-6 |
| e | Very high risk, dual channel with test and fault exclusion | 10^-8 to 10^-7 |
PL c, PL d and PL e are the ones that appear on real machines. PL d is the common target for a machine with a cutting, punching or pressing hazard. PL e is rare and is usually found on a machine where a hazardous stored energy cannot be released by any operator action, such as a hydraulic accumulator or a gravity drop axis.
The categories
The category describes the architecture, and it is the thing that is actually designed:
- Category 1 is a single channel, and the design has to survive a single fault without creating a hazardous situation. This relies on the reliability of the components. The best you can reach is PL c, and the diagnostic coverage is effectively zero because nothing is tested.
- Category 2 adds a test of the channel, but the test is done at intervals, so a fault can exist for the duration of the test interval. The best you can reach is PL d.
- Category 3 is two channels that are monitored against each other, with the fault detected on the next demand. A single fault in one channel does not lead to a hazardous situation, because the other channel holds the safety function. The best you can reach is PL e.
- Category 4 is Category 3 plus a fault accumulation check, meaning the system knows how many faults it has accumulated and refuses to operate if the next fault would be dangerous. The highest reliability, and the most components and the most cost.
The single most useful fact for a designer is that Category 3 can reach PL d or PL e, and Category 4 is needed for PL e when the diagnostic coverage of the Category 3 implementation is not sufficient. This is why most machine safety relays are specified as Category 3 or Category 4 depending on the risk assessment, and why the category is quoted in the certificate of the device.
MTTFd and diagnostic coverage
MTTFd, the mean time to dangerous failure, comes from the component’s reliability data, and the manufacturers publish it in the form of a B10d value: the number of cycles at which 10 percent of the devices would have failed dangerously. The MTTFd in years is derived from B10d, and the manufacturers also publish it directly for the safety components. A typical contactor has an MTTFd of around 30 to 40 years with a B10d of about 1 million cycles, and a safety relay is usually quoted at 100 years or more.
DC, diagnostic coverage, is the probability that the system will detect a dangerous fault before it causes a hazardous situation. DC 0 means no diagnostic at all. DC 60 percent is a low diagnostic coverage. DC 90 percent is a monitor on each channel. DC 99 percent is a high diagnostic coverage architecture with a monitored output, for example a safety contactor with a mirror contact feeding back into the relay. Most practical Category 3 machines land at DC 90 percent or DC 99 percent.
The PFHd calculation
This is the number that goes in the file. The failure rate of a safety function is built up from the failure rates of the blocks, weighted by the diagnostic coverage of each block, and the sum is the PFHd of the function. For a simple Category 3 emergency stop with a safety relay, a dual channel input device, and a monitored contactor output, the calculation uses the relay’s PFHd, the input device’s PFHd, the contactor’s PFHd weighted by its DC, and the wiring and the logical part.
Rather than doing the sum by hand from the standard, the practical method is to use the manufacturer’s library. Every major safety device manufacturer publishes a library and a tool, and SISTEMA from Pilz is the best known of these, and the tool performs the calculation from the entered component values and produces a report with the resulting PL and PFHd. This is the standard practice in Europe and it is now normal practice for an Indian machine builder exporting to Europe, because the machine file and the validation evidence are what a customer audits. There is nothing wrong in doing the calculation by hand from the ISO tables if you understand the method, but using the tool means the result is defensible.
A worked number for orientation: a Category 3 emergency stop function with a safety relay at PFHd 1.2 x 10^-9 per hour, a dual channel push button with a monitored output at about 1.0 x 10^-7, and a mirrored contactor with a DC of 99 percent at about 1.0 x 10^-8, sums to roughly 1.1 x 10^-7 per hour. That lands inside the PL d band of 10^-7 to 10^-6, and it is comfortably inside PL d if the estimate is done with reasonable conservatism.
Key point. A safety relay is a Category 3 or Category 4 architecture in a plastic box, and that is why it is the right answer for a machine with a handful of safety functions. The parts of machine safety circuits iso 13849 that get skipped are the ones that matter most in service: the external device monitoring wire, the reset interlock that cannot be jumped, and the channel fault test. Buy the right relay and then wire it as the manual says.
Section close. In practice, machine safety circuits iso 13849 are justified by a number and not by a claim, and the number comes from a calculation that takes the category, the MTTFd of every part and the diagnostic coverage of every block. A machine that is PL d on paper and PL c in the cabinet fails because one feedback contact was left out of the drawing. Get the calculation into a tool, get the drawing to match it, and machine safety circuits iso 13849 become defensible.
Keyword restated: machine safety circuits iso 13849 are a calculated and validated chain, and the calculation and the validation have to agree with each other and with the drawing. A circuit that is PL d on paper and PL c in the cabinet has failed on exactly one thing, and the fix is to find which one.
3. The Safety Relay: A Cat 3 Circuit in a Box
A safety relay is the right answer for a machine with a handful of safety functions, and in an Indian shop building a machine with an emergency stop, a guard door, and a reset, it is almost always the right answer. It gives you a Category 3 or Category 4 architecture without the wiring.
What is inside
A typical safety relay has a dual channel input section that is internally monitored, a logic section, and a single or dual channel output section. Some models have a single safety output and some have two, and the difference matters because a single safety output that switches a single contactor is a Category 3 arrangement only if the contactor has a mirror contact wired back into the relay for external device monitoring. A relay with two outputs driving two contactors, with both mirror contacts wired back, is the standard Cat 3 and Cat 4 arrangement.
Wiring the inputs
The dual channel devices are wired with the two channels in series in the same loop, one NC contact from channel 1 and one NC contact from channel 2, both into the relay inputs. The two channels are then compared internally. There are two schools of thought on the wiring: bring the two channels to separate relay inputs so the relay can distinguish a channel fault from a demand, or wire both in series into a single input, which is simpler and is adequate when the device itself has a monitored output that the relay also supervises. The first method gives better diagnostics. For a machine being exported, the first method is worth the extra wire.
The E-stop is normally closed and normally open is what most people reach for. It must be normally closed. An E-stop that is normally open, once wired incorrectly, is a stop that does not stop, and an E-stop whose two channels are wired to the same polarity without the relay detecting a shorted channel is a Category 1 circuit wearing the label of a Category 3 circuit. This is worth testing explicitly: a short across one channel must be detected.
Reset and the restart interlock
The reset must be a monitored manual reset, and the reset must not be able to be defeated by a jumper. Two rules from ISO 13850 and IEC 60204-1 are worth stating plainly. First, a safety function must not be reset automatically after a power failure or after the fault condition is removed. Second, restarting after an emergency stop must require a deliberate manual action. A common failure is a reset input taken from the same PLC output that runs the machine cycle, which allows a restart to be triggered by the program rather than by a person.
External device monitoring
EDM, external device monitoring, is the feedback path from the final switching device back to the safety system. The mirror contact on a safety contactor is a mechanically linked auxiliary contact that is guaranteed not to close if the main contacts have welded, and it is wired into the safety relay so that the relay can detect a welded contactor and refuse to reset. This is the single most valuable addition to a basic safety circuit, and it costs one wire and one auxiliary contact. Without EDM, a welded main contact means the machine can start with the safety circuit open, and the safety circuit will report everything as healthy while the machine runs.
The same trick applies to the drive. If the drive has a safety contactor or a STO with a feedback contact, wire it back. A drive that has been commanded to stop but whose STO feedback says the output is still energised is a fault, and the feedback is what proves it.
Setting the test intervals
Most safety relays have a configurable test interval for the internal channel test, commonly from a few hundred milliseconds up to a few seconds. The shorter the interval the faster a fault is found, but the more the safety circuit loads the network and the supply. A common and reasonable setting for a general machine is a test interval of about 1 second, and the manual will state the allowed range. The setting has to be recorded in the validation file, and changing it later is a change to the validated safety function.
Key point. The contactor and the drive are the end of the safety chain, and the end of the chain is where the performance level is won or lost. A safety contactor with a mirror contact wired back gives external device monitoring, and a drive with a monitored STO input gives the same for the power stage. Without those feedback paths, the PFHd calculation describes a circuit that does not exist on the machine.
Section close. In practice, machine safety circuits iso 13849 are bought as a block and then wired, and the wiring is where the category is lost. A safety relay is a Category 3 architecture in a box, but only if the feedback contact is wired back and the two channels are genuinely independent. The parts to check are the external device monitoring wire, the reset that cannot be jumped, and the channel fault test. Those three checks separate a real category from a category on the invoice.
Keyword restated: machine safety circuits iso 13849 are a calculated and validated chain, and the calculation and the validation have to agree with each other and with the drawing. A circuit that is PL d on paper and PL c in the cabinet has failed on exactly one thing, and the fix is to find which one.
5. Validation, Testing and the File
The safety circuit is only a safety function if it has been validated. ISO 13849-1 requires validation, and in practice this means three separate things: the calculation, the test on the machine, and the documentation.
The calculation file
The file contains the risk assessment reference, the required PL, the chosen architecture with the category, the list of every safety component with its MTTFd or B10d, the diagnostic coverage of each block, the resulting PFHd, and the resulting PL. The SISTEMA report is the industry-standard form of this document. For a machine exported to Europe, the customer or their notified body will ask for it, and the answer to “where is your PFHd calculation” has to be a file and not a sentence.
The test on the machine
Every safety function needs a test procedure that a maintenance technician can run without a laptop. A useful minimum set:
- Emergency stop. Press the E-stop, verify the machine stops, verify the drive reports a safe stop, verify the reset requires a manual action, and verify the machine does not restart when the E-stop is released.
- Guard door. Open the door during a run, verify the stop, and verify that the restart is blocked until the reset is pressed and the door is closed. Test the door switch by shorting the channel, and verify the circuit reports a fault rather than silently continuing.
- EDM. With the machine stopped and the safety circuit healthy, verify that the relay does not reset if a contactor is held closed by a mechanical means. This test is the only way to prove the EDM wiring is present and correct, and it must be in the procedure.
- Channel fault detection. Short one channel of the E-stop or the guard switch and verify the safety system reports a wiring fault and refuses to reset.
The test interval
The interval is a decision, and it should be a documented one. A common practice in a machine with a high-risk hazard is a full function test at the start of every shift, and a complete validation test at every planned maintenance. A machine that runs unattended overnight, for example a CNC in a two-shift plant, is a case where the start-of-shift test is the control that keeps the safety function honest. The interval has to be compatible with the diagnostic coverage assumed in the calculation, and if the Category 3 architecture assumes detection on the next demand, then a machine that runs for hours without a demand is not getting the assumed coverage. That is a genuine engineering argument for a periodic test, and it is the argument to write down.
The records
Keep the test record for each function with the date, the result, and the name of the person. In the event of an incident, the record is the difference between a demonstrably maintained safety function and an untested assumption. ISO 13849-1 validation and the IEC 61508 and IEC 62061 world both make the same demand: the evidence has to exist. In an Indian shop, the habit of writing the record down is the cultural change, and it is the one that pays off.
The document set for the machine
Four documents make the safety case defensible, and they are the same four that the rest of the machine needs: the risk assessment, the safety validation report with the PFHd calculation, the electrical schematic showing the two-channel wiring, and the safety function test procedure. The wiring diagram for a Category 3 circuit is not a simplification of the standard circuit, it is a different circuit, and the drawing has to show the channels separately with their wire numbers. The PLC panel design and wiring guide covers the drawing discipline that applies to the safety wiring as well.
Key point. The reason a safety function is built from relays and contactors rather than from program code is the failure behaviour of the component, not the age of the technology. In machine safety circuits, every element is chosen so that its most likely failure removes the power, and that property is what makes the category argument in ISO 13849 possible at all.
Related Reading
- Industrial Automation Engineering: Practical Guide
- Light Curtains, Guard Interlocks and Safe Speed Monitoring
- PLC Selection and I/O Sizing for New Machine or Retrofit
- PLC Scan Time and I/O Response: Optimising Machine Cycle Latency
- Control Cabinet Power Budget Calculator
Sources
- ISO 13849-1, Safety of machinery – Safety-related parts of control systems
- IEC 60204-1, Safety of machinery – Electrical equipment of machines
- ISO 13850, Safety of machinery – Emergency stop function principles
- ISO 12100, Safety of machinery – General principles for design – Risk assessment
- Pilz, Safety relay and safety controller system basics and PFHd calculation
Key Takeaways
- Machine safety circuits ISO 13849 quantifies: category, MTTFd, diagnostic coverage and the resulting PFHd. The performance level comes from the risk assessment, and the calculation has to be backed by a test procedure and a record that it was run.
- The failure rate is calculated, not asserted. PFHd comes from MTTFd of the components and the diagnostic coverage of the architecture, and a vendor library or a safety calculator is how you do it.
- External device monitoring is the cheapest safety improvement available. A mirror contact on the contactor, wired back to the safety relay, catches a welded contactor that the main circuit cannot detect.
- An emergency stop is a stop function under ISO 13850, and it is not the same as the machine’s normal stop. It removes power to the drive and it does not reset the machine.
- The safety circuit has to be tested, and the test has to be written down, because an untested safety function is an assumption rather than a function.
- Machine safety circuits ISO 13849 need three artefacts to be defensible: a PFHd calculation, a test procedure a technician can run, and a record that the test was run on the date it was run.