Skip to content

What Is a Safety Relay? How It Works and When to Use One

Follow the input, safety contacts, reset and feedback in a real Pilz PNOZ s4 example. Learn what a safety relay monitors and when to use one.

  • Mason Alexander
  • Published Nov 29, 2026
  • 6 min read
Photograph of a Pilz PNOZ s4 safety relay showing its pluggable terminal blocks and front status indicators.

A safety relay monitors a protective device, such as an emergency-stop button or a guard switch, and switches its safety outputs when the machine needs to stop. The useful way to follow it on a schematic is to trace three parts of the machine: the device that requests the stop, the logic that evaluates that request, and the final switching elements that bring the hazard to a safe state. Add a fourth path when the design monitors those switching elements: feedback. 12

Consider a conveyor with a latching emergency-stop button, a safety relay and two contactors. The operator presses the button. The relay sees its input circuit open and opens its safety contacts. The contactors drop out as designed, and the conveyor stops according to its stopping behavior. When the button is released, the relay still has to see the conditions for a valid reset. The conveyor's production controls handle the separate request to run. 12

Photograph of a Pilz PNOZ s4 safety relay showing its pluggable terminal blocks and front status indicators.
The PNOZ s4 has a narrow front panel with status indicators under its cover. Match the terminal labels to the 24 V DC layout before tracing a signal.

What the relay knows about the machine

In a dual-channel mechanical input circuit, the two contacts on an emergency-stop button give the relay two separate signals from the same device. Both channels have to show the required state before the relay enables its outputs. On the Pilz PNOZ s4, the manufacturer provides dual-channel modes with different fault detection. The E-stop example uses the mode that detects shorts across the input contacts. The distinction matters when a replacement relay comes with several modes and the two terminal pairs look identical on paper. 2

An ordinary control relay can switch a signal or a load. A safety relay adds defined monitoring for the safety function, including checks on internal switching. Consider what the panel would see if one contact welded. A PLC bit showing a stop command would still reflect the program's instruction. The actual movement of a switching element has to be accounted for separately. In this example, the design uses monitored contacts on the external contactors to report whether they returned to their de-energized position. Detection depends on the relay mode, circuit and fault. 12

Pilz 24 V DC block diagram and front views, with blue around the logic side and green around the three safety contact pairs.
The blue outline locates the logic side. The green outline groups the three safety contact pairs. The auxiliary points are 41–42 and Y32. See the full manual for the insulation note marked with an asterisk.

The Pilz PNOZ s4, order number 750104, is the 24 V DC screw-terminal version used here. Its block diagram separates supply, input, start and output. On that drawing the safety relay has three normally open safety contacts, one normally closed auxiliary contact and a semiconductor status output. Both the safety contacts and auxiliary points can appear on the same PLC panel sheet. The designation on the drawing tells you which path you are actually following. 23

Where you are on the drawingPNOZ s4 exampleWhat to look for
Relay powerA1 and A2The control supply feeding the monitoring logic.
Protective inputsS11/S12 and S21/S22 in the mechanical E-stop exampleTwo independent paths through the button contacts and back to the relay.
Start and feedbackS34 and its external path in the chosen exampleThe reset transition and the state of the external switching elements.
Safety outputs13–14, 23–24 and 33–34Contacts used to command the final switching elements in the validated design.
Status reporting41–42 and Y32Auxiliary and semiconductor status. They are for reporting, outside the safety output path.

The markings above are from this model's manufacturer documentation. For a different relay, identify the functions first, then map its terminals and operating mode. The dual-channel emergency-stop wiring guide follows those paths on the Pilz diagram and compares how Rockwell draws the same jobs. 2

Why releasing the E-stop and resetting are separate events

Start with the machine already tripped. Releasing the button restores the two mechanical input paths. A monitored reset then requires the specified change of state from the reset circuit. In the Pilz falling-edge example, a valid cycle includes opening the start circuit again. This accounts for a symptom that can otherwise look like a bad relay: the input conditions return, but a held reset button has yet to produce the required transition. 2

Pilz timing diagram highlighting the falling-edge monitored start alongside automatic, manual and rising-edge start.
The fourth panel shows falling-edge monitored start. Follow the Start line down before tracing when Output safe rises.

Feedback adds a different test. While the safety outputs are off, the feedback path can tell the safety logic whether the external contactors returned to the expected state. If one contactor fails to return, its appropriate mirror contact can keep the feedback path open. The resulting reset refusal is useful information about the downstream circuit. A PLC status lamp alone cannot provide that confirmation. 2

The last event is the restart of the machine. Think of the restored safety outputs as a permission the machine controls can use. The machine's restart behavior must be designed and validated separately. Keeping these three events distinct helps when reviewing a sequence after a trip or after loss of control power. 2

Choose the input interface before choosing the relay

A mechanical E-stop and an electronic safety light curtain can both request a stop. Their signals are different. In the first case the relay reads contact paths. A safety light curtain such as SICK deTec4 Core sends two monitored semiconductor safety outputs, commonly called OSSD outputs. The evaluating input has to support that output type and its test pulses, and the design has to account for where reset and external device monitoring are performed. Read the exact device manual for each side of that interface. 24

The same distinction explains why a photoelectric sensor used for product detection and a safety light curtain have different documentation. A product sensor's output tells the process that something is present. A safety light curtain's outputs participate in a protective function with a specified response time, installation geometry and downstream safety logic. Both may face a conveyor, but the outputs answer different questions. 4

Choose the simplest architecture that handles the required functions

Start with a short list of what the machine actually has to do. Record the protective devices, the movement each device must stop, what feedback is available, and how each part of the machine can return to operation. A fixed-function relay can suit a standalone station with a matching set of inputs, reset behavior and outputs. If separate zones need distinct stop or reset logic, a configurable safety controller such as the Pilz PNOZ m B0 gives the design a way to express those functions separately. A safety PLC becomes a candidate where the machine's safety logic, I/O or diagnostics needs broader integration. 256

For a replacement, use the existing drawing to make a functional cross-check before comparing models. Can the candidate read the same protective device? Does its reset mode implement the same behavior? Do the safety outputs suit the final switching elements and their loads? Does the feedback still detect the intended fault? The safety relay's own ratings provide inputs to this assessment. The complete function also includes the protective device, circuit, final elements and actual machine stopping behavior. Record those checks against the exact order numbers and validate the complete function after the change. 12

References

  1. Function of Safety Relay

    Pilz

  2. PNOZ s4 Operating Manual

    Pilz · 21396-EN-22

  3. PNOZ s4, product ID 750104

    Pilz

  4. deTec4 Core Operating Instructions

    SICK · 8014253/1S7O

  5. PNOZ m B0, product ID 772100

    Pilz

  6. SIMATIC S7-1200 G2 fail-safe CPU 1214FC

    Siemens

  7. PNOZ s4 750104, catalog photograph

    RS