functional safety

safety relay

e-stop wiring

Safety Relay Wiring: Circuits Explained

‌
Safety relay wiring diagram showing dual-channel E-stop input terminals and safe output contacts

A safety relay is not a normal relay with extra marketing. It has forced-guided contacts, internal cross-fault monitoring, and a defined reset sequence. Wire it wrong and it either nuisance-trips constantly or, worse, fails silently and gives you a false sense of safety. This post walks through every terminal on a typical safety relay, shows you the canonical dual-channel E-stop circuit, and covers the three things that trip up most engineers: the feedback loop, the reset input, and how the safe outputs talk to a standard PLC input.

Why a Safety Relay Is Different from a Standard Relay

A standard relay has mechanically independent contacts. One contact can weld closed while another opens normally, and the relay has no way to detect that. A safety relay uses forced-guided (mechanically linked) contacts: if any normally-open contact welds shut, the normally-closed contacts are physically prevented from closing. The relay can therefore check its own contact state on every reset cycle.

Most safety relays also run an internal self-test on power-up and verify that both input channels open and close together within a defined time window (typically 0.5 s, though some devices let you configure this). A single-channel break or a cross-short between the two input channels is detected before the output is ever allowed to energise.

Common devices you'll encounter in the field: Pilz PNOZ X series and PNOZmulti 2, SICK i10 Lock / Flexi Soft, Schmersal SRB, Banner SC10, Allen-Bradley Guardmaster MSR127 (which Rockwell also calls the 440R-N23135), and Siemens SIRIUS 3SK1. The terminal labels differ slightly between brands but the underlying circuit topology is the same.

Terminal Map: What Every Pin Does

The example below uses the widely copied Pilz PNOZ X3 layout. Virtually every discrete safety relay on the market maps to the same concept, so learn this one and the others are just a different label font.

TerminalLabel (PNOZ X3 style)Function
A1 / A2Supply +24 VDC / 0 VRelay coil supply. A1 is positive, A2 is negative/common.
S11Common for input channelsSwitched 24 V fed to both E-stop contact chains.
S12Channel 1 returnOne side of E-stop button contact 1 returns here.
S21Common for channel 2 (sometimes linked to S11)Start of channel 2 path on some models.
S22Channel 2 returnOne side of E-stop button contact 2 returns here.
S33 / S34Reset inputMomentary N/O reset pushbutton wired between S33 and S34 (or +24 V and S34 depending on model).
Y1 / Y2Feedback / EDM loopExternal device monitoring: normally-closed auxiliaries of downstream contactors loop through here. Leave linked only if no external contactors are used.
13 / 14Safe output 1 (N/O)First pair of safety-rated output contacts.
23 / 24Safe output 2 (N/O)Second pair of safety-rated output contacts.
33 / 34Safe output 3 (N/O)Third pair, available on three-channel variants.
41 / 42Auxiliary output (N/C)Non-safety signalling contact, typically wired to a PLC input for status feedback.
Typical safety relay terminal functions based on PNOZ X3 layout. Always verify against the device datasheet.

The Dual-Channel E-Stop Wiring Circuit

An E-stop button with two independent N/C contacts is the most common safety relay input. You wire each contact into a separate channel so the relay can detect a single contact failure or a wiring short. Here is how the circuit flows:

  1. +24 VDC from the safety relay's S11 terminal feeds out to the E-stop button.
  2. E-stop N/C contact 1 returns the signal to S12 (channel 1).
  3. E-stop N/C contact 2 returns the signal to S22 (channel 2).
  4. When both channels read 24 V simultaneously, the safety relay knows the E-stop is released and both contacts are healthy.
  5. Press the E-stop: both channels drop. The safety relay de-energises its output contacts within 10 ms or less.
  6. After the E-stop is released, the operator presses the manual reset button (momentary N/O, wired to S33/S34). The relay checks its feedback loop, confirms both channels are live, then re-energises the safe outputs.
Dual-channel E-stop safety relay wiring diagram showing S11, S12, S22 input channels and 13-14 output contacts
Dual-channel E-stop circuit with feedback loop and manual reset. Both N/C contacts of the E-stop run to separate input channels.
Never wire both E-stop contacts in series on a single channel. It looks like it saves terminals but it destroys the cross-monitoring. If one contact welds open and the other is still healthy, the relay sees a healthy single channel and cannot detect the fault. You need two channels, period.

The Feedback Loop (EDM): What It Is and When You Need It

EDM stands for External Device Monitoring, sometimes called the feedback loop or Y1/Y2 terminals. The idea is simple: the safety relay watches the downstream contactors to confirm they actually de-energised when the safe outputs dropped. If a contactor welds closed, its N/C auxiliary contact stays open, so the Y1/Y2 loop stays open, and the safety relay refuses to reset.

To wire it: connect a wire from Y1 through the N/C auxiliary of every contactor in the safety circuit, then back to Y2. If you have two contactors in series (redundant switching, which is the right way to do it for Category 3 or 4), both N/C auxiliaries go in series in the feedback loop. When the contactors are de-energised their N/C auxiliaries are closed, the loop is complete, and reset is allowed.

If you are using the safety relay to drive a drive's STO input directly (no external contactor), you either leave Y1-Y2 linked with a jumper wire or connect the drive's STO active feedback signal to the loop. Check the drive datasheet for whether a dry contact or a 24 V signal is expected.

Manual vs Automatic Reset: Choosing the Right Mode

Most safety relays support both reset modes, selected by a jumper or DIP switch.

ModeHow It WorksWhen to Use It
Manual resetOperator must press a momentary N/O pushbutton after the hazard is cleared. The relay checks channels and feedback before re-enabling outputs.Any application where a person could be in the hazard zone: machinery guarding, E-stops, safety gates. Required for most Category 3 / PLd and above applications.
Automatic resetOutputs re-energise as soon as the input channels close again, with no operator action.Allowed only when the hazard disappears the moment the guard closes and no one can be inside. Light curtains on low-risk sensing applications sometimes use this, but get a risk assessment sign-off first.
Manual vs automatic reset mode selection on a typical safety relay.

The reset button must be mounted outside the hazard zone, with a clear line of sight into it. A button inside the guarded area defeats the entire purpose. I have seen exactly this mistake on a robot cell that passed initial commissioning because nobody actually walked inside the cell during the safety check.

Connecting the Safety Relay to a Standard PLC

The safe output contacts (terminals 13/14, 23/24) must switch the power to your hazardous devices, usually the coils of two safety-rated contactors. They are not meant to carry the PLC's logic supply. The PLC does not directly control machine safety through these contacts, the safety relay does.

What the PLC does get is status feedback, usually from the N/C auxiliary output at terminals 41/42. Wire 41/42 to a standard PLC discrete input. When the safety relay is energised (machine safe to run), the N/C auxiliary is open, so the PLC input reads 0. When the relay trips, the N/C closes and the PLC input reads 1. You use this to suppress start commands, log faults, and drive HMI status indicators. For wiring that PLC input correctly see the notes on sinking vs sourcing I/O.

Some engineers wire the N/O auxiliary (if available) instead, so the PLC reads 1 when the safety circuit is healthy and 0 on a trip. Either logic works as long as you are consistent and document it clearly. I prefer the N/C approach because a broken wire to the PLC input then reads as a trip, which is the safe state.

Light Curtain and Two-Hand Control Wiring Differences

The safety relay input topology stays the same, but the field device changes:

  • Light curtain (OSSD outputs): The curtain controller outputs two 24 V PNP signals (OSSD1 and OSSD2) that pulse low periodically for self-testing. Wire OSSD1 to S12 and OSSD2 to S22. The safety relay must be rated for OSSD inputs, which most modern units are. Do not use a standard relay with OSSD signals because the test pulses will cause nuisance trips or go undetected.
  • Two-hand control: Each hand button feeds one channel. Both must be pressed within 500 ms (IEC 60574-3 Type IIIC) for the relay to energise. The relay monitors simultaneous actuation, so releasing one hand de-energises the output immediately.
  • Safety gate switch: A typical non-contact safety switch (e.g., Schmersal AZM300 or SICK i10) has two N/C output contacts, one per channel, exactly like an E-stop. Wire identically to the dual-channel E-stop circuit.

Common Wiring Mistakes and How to Avoid Them

  • Shorting S11 to S12 and S22 with a jumper to test the relay: This bypasses the field device and makes the relay think the E-stop is released. Never do this in a commissioned panel, even temporarily.
  • Using the safe output contacts to power a PLC input directly: The contacts are rated for contactor coil loads (typically up to 6 A at 230 VAC or 24 VDC). A PLC input draws milliamps. This is fine electrically, but it bypasses the dual-contactor redundancy the safety design likely requires. Route the PLC feedback through the auxiliary output instead.
  • Long cable runs without considering voltage drop: If S11 feeds an E-stop button 50 m away, factor in cable resistance. A marginal 24 V supply that drops to 18 V at the button may cause the relay to read an intermittent fault. Use 1.5 mm2 cable for runs over 20 m.
  • Mixing safety and non-safety wiring in the same conduit: EMI from motor cables can induce noise on the safety input channels. Keep them separated, or use shielded cable and ground the shield at one end only. The control panel grounding post covers this in more detail.
  • Forgetting to test the feedback loop: Commissioning a safety circuit without defeating one contactor to verify the relay refuses to reset is not commissioning, it is hoping.

Achieving Category 3 PLd with a Single Safety Relay

A typical PNOZ X3 or MSR127 is certified to Category 4 PLe when wired correctly with redundant contactors and a feedback loop. For most machine guarding applications, Category 3 PLd is the target from the risk assessment. You get there with:

  1. Dual-channel input (two independent N/C contacts from the safety device).
  2. Two redundant output contactors with mechanically linked N/C auxiliaries in the feedback loop.
  3. Manual reset button located outside the hazard zone.
  4. Periodic proof-test interval documented in your safety plan (typically every 12 months for a manually operated E-stop, or whenever maintenance is performed).

For the SIL and PFHd numbers behind those performance levels, the IEC 62061 SIL levels explained post is a good companion read.

PLC Logic: Safety Relay Status and Reset Inhibit (Rockwell Studio 5000). Ladder logic (3 rungs): Rung 0: examine if SafetyRelay_Trip is on (XIC), then examine if Machine_Running is off (XIO), then latch output SafetyFault_Latch (OTL). Rung 1: examine if SafetyFault_Latch is on (XIC), then examine if Operator_FaultAck is on (XIC), then examine if SafetyRelay_OK is on (XIC), then unlatch output SafetyFault_Latch (OTU). Rung 2: examine if SafetyRelay_OK is on (XIC), then examine if SafetyFault_Latch is off (XIO), then energize output StartCmd_Permitted (OTE). Rung 1: Latches a safety fault in the PLC when the safety relay trips (N/C auxiliary closes, SafetyRelay_Trip=1) and the machine is not already stopped. Rung 2: Unlatches the fault only when the operator acknowledges AND the safety relay has successfully reset (SafetyRelay_OK=1 from the N/O auxiliary). Rung 3: Permits a machine start command only when the safety relay is healthy and no fault is latched. This does not replace the hardwired safety circuit; it adds operator-facing feedback and start inhibit logic in the standard PLC.

PLC Logic: Safety Relay Status and Reset Inhibit (Rockwell Studio 5000)Ladder logic
Toggle inputs
Rung 0
Ladder logic rung: examine if SafetyRelay_Trip is on (XIC), then examine if Machine_Running is off (XIO), then latch output SafetyFault_Latch (OTL) examine if SafetyRelay_Trip is on (XIC), then examine if Machine_Running is off (XIO), then latch output SafetyFault_Latch (OTL) XIC SafetyRelay_Trip SafetyRelay_Trip SafetyRelay_Trip XIO Machine_Running Machine_Running Machine_Running OTL SafetyFault_Latch SafetyFault_Latch SafetyFault_Latch L
Rung 1
Ladder logic rung: examine if SafetyFault_Latch is on (XIC), then examine if Operator_FaultAck is on (XIC), then examine if SafetyRelay_OK is on (XIC), then unlatch output SafetyFault_Latch (OTU) examine if SafetyFault_Latch is on (XIC), then examine if Operator_FaultAck is on (XIC), then examine if SafetyRelay_OK is on (XIC), then unlatch output SafetyFault_Latch (OTU) XIC SafetyFault_Latch SafetyFault_Latch SafetyFault_Latch XIC Operator_FaultAck Operator_FaultAck Operator_FaultAck XIC SafetyRelay_OK SafetyRelay_OK SafetyRelay_OK OTU SafetyFault_Latch SafetyFault_Latch SafetyFault_Latch U
Rung 2
Ladder logic rung: examine if SafetyRelay_OK is on (XIC), then examine if SafetyFault_Latch is off (XIO), then energize output StartCmd_Permitted (OTE) examine if SafetyRelay_OK is on (XIC), then examine if SafetyFault_Latch is off (XIO), then energize output StartCmd_Permitted (OTE) XIC SafetyRelay_OK SafetyRelay_OK SafetyRelay_OK XIO SafetyFault_Latch SafetyFault_Latch SafetyFault_Latch OTE StartCmd_Permitted StartCmd_Permitted StartCmd_Permitted
energizedTip: click a contact in the diagram to flip its bit.
Rung 1: Latches a safety fault in the PLC when the safety relay trips (N/C auxiliary closes, SafetyRelay_Trip=1) and the machine is not already stopped. Rung 2: Unlatches the fault only when the operator acknowledges AND the safety relay has successfully reset (SafetyRelay_OK=1 from the N/O auxiliary). Rung 3: Permits a machine start command only when the safety relay is healthy and no fault is latched. This does not replace the hardwired safety circuit; it adds operator-facing feedback and start inhibit logic in the standard PLC.
The ladder logic above runs in a standard (non-safety) PLC task. It is for HMI feedback and start inhibit only. The actual safety function, stopping the machine when the E-stop is pressed, is performed entirely by the hardwired safety relay and its output contactors. Never rely on a standard PLC scan to execute a safety function.

Related Blogs