Relay Wiring Guide

This guide is for the technician or electrician wiring the Door & Gate Controller to door hardware — electric strikes, electronic latches, magnetic locks ("maglocks"), and gate controllers. It covers the relay terminals, fail-secure and fail-safe wiring patterns, exit buttons, and emergency exit devices.

The relay is the only terminal interface used by Door & Gate Access. The other terminal blocks on the panel (Input/DI, RS485, RS232, Analog/ADC) are reserved — they're not currently used by the application, and may be enabled in future updates or used by special implementation features. Leave them unwired.

How the relay works

The controller has a double-pole, double-throw (DPDT) relay — two independent switched circuits (poles) that change over together. Each pole has three terminals:

  • COM — common terminal
  • NO — normally open contact (open at rest, closes when the relay energises)
  • NC — normally closed contact (closed at rest, opens when the relay energises)

At rest, COM1–NC1 and COM2–NC2 are connected. When an unlock is granted, the relay energises: COM1–NO1 and COM2–NO2 close (and the NC contacts open) for the door's configured hold time (1–30 seconds, default 10 — set per door in the door's Configuration tab, see Doors). After the hold time the relay returns to rest.

Relay terminal pinout

The relay terminals are on the Output block of the terminal panel, numbered 1–6 left to right:

TerminalNameFunction
1NC2Pole 2 — normally closed
2COM2Pole 2 — common
3NO2Pole 2 — normally open
4NC1Pole 1 — normally closed
5COM1Pole 1 — common
6NO1Pole 1 — normally open

Both poles switch in unison. Wire your lock to pole 1; pole 2 is available for a second device that should switch at the same time — a second lock, a gate motor's trigger input, or a sounder/indicator.

Relay ratings

Load typeMaximum
DC load30V, 3A
AC load125V, 0.5A

The relay is a dry contact — it switches power, it doesn't supply it. Your lock must be powered by a separate lock power supply. Never power the lock from the controller's own supply or PoE splitter; this will damage equipment. For loads close to or above the relay rating (e.g. large maglocks, motorised gates), don't switch the load directly — use the relay to drive a secondary relay or the gate controller's low-current trigger input instead.

Fail-secure vs fail-safe

The wiring pattern depends on which kind of locking hardware you have:

Fail-secureFail-safe
ExamplesElectric strikes, electronic latchesMagnetic locks, fail-safe strikes
Powered statePowered = unlockedPowered = locked
On power lossDoor stays lockedDoor releases
Relay contact to useCOM + NOCOM + NC

If you use fail-secure locks, make sure there is another physical means of unlocking the door (a key override) in case of an extended power or connectivity outage. If you use fail-safe locks, use a battery-backed lock power supply so a brief power blip doesn't release the door.

Wiring a fail-secure strike or latch

Use COM1 + NO1, so the lock only receives power while the relay is energised (during an unlock):

  1. Lock power supply +COM1
  2. NO1 → lock +
  3. Lock → lock power supply

Fail-secure wiring

Figure 1: Fail-secure electric strike on COM1/NO1 — powered only during unlock

Adding a push-to-exit button

For free egress on the inside of the door, wire a normally-open push-to-exit button in parallel with the COM1–NO1 contact. Pressing the button bridges the contact and powers the strike, releasing the door without involving the controller:

Fail-secure with exit button

Figure 2: Push-to-exit button in parallel with the relay contact

Exits triggered by a hardwired button bypass the controller, so they don't appear in the Access Logs.

Wiring a fail-safe maglock

Use COM1 + NC1, so the lock is powered (locked) at rest and the relay cuts power to release it:

  1. Lock power supply +COM1
  2. NC1 → maglock +
  3. Maglock → lock power supply

Fail-safe wiring

Figure 3: Fail-safe maglock on COM1/NC1 — power is cut during unlock

Adding an emergency exit device

Maglocks hold the door shut even in an emergency, so most codes require an emergency break-glass or fire-trip device that releases the door independently of the access control system. Wire it in series with the lock's power feed, so activating it cuts power to the maglock no matter what the controller or relay is doing:

Fail-safe with emergency exit

Figure 4: Emergency break-glass in series with the maglock supply

Fire safety and egress are governed by your local building and fire codes. Where a fire alarm control panel is present, lock power is typically routed through (or dropped by) the fire panel so an alarm releases all fail-safe locks. Have the egress design signed off by a qualified installer — the controller switches the lock, but the life-safety circuit must work without it.

Protecting against voltage spikes (DC locks)

Strikes and maglocks are inductive loads — when power is cut, the collapsing magnetic field produces a voltage spike that can arc the relay contacts and shorten equipment life. For DC locks, fit a snubber diode (a silicon rectifier diode such as a 1N4001) directly across the lock's terminals, as close to the lock as practical:

  • Diode cathode (the end with the band) to the lock's + terminal
  • Diode anode to the lock's terminal

The diagrams above show the diode placement.

Polarity matters. A diode fitted backwards is a dead short across the lock supply and can damage the power supply. Double-check the band faces the + side before powering on. Many strikes and maglocks ship with a diode (or MOV) in the bag — use it.

Gates and other controllers

Motorised gates, turnstiles, and barrier arms usually have their own controller with a low-voltage trigger input that opens the gate when momentarily closed. Wire the trigger input across COM1 + NO1 (no lock power supply involved — the gate controller provides its own sensing voltage, within the relay's ratings). Set the door's hold time short (1–2 seconds) so the trigger acts like a momentary button press.

Before you finish

  1. Test with the door open so you can't lock yourself out while wiring.
  2. Verify the wiring without the controller — see Test the wiring with a jumper.
  3. Send a test unlock from the dashboard (door card → Open) and confirm the relay clicks, the lock releases, and the door re-locks after the hold time.
  4. Check the event appears in the Access Logs.

Related pages