Access Control Wiring Diagram: Step-by-Step Guide with Examples

Spread the love

Most access control faults I am called to are not software problems. They are wiring problems: a maglock on the wrong relay contact, a reader with D0 and D1 swapped, a fire alarm release that only cuts the controller and not the lock, or a 0.22 mm² alarm cable feeding a lock 40 m away. A clear access control wiring diagram before the first cable is pulled prevents almost all of them. This guide walks through a single-door diagram terminal by terminal, then sizes the cables with a worked example.

Quick answer: A standard single-door access control wiring diagram connects a 12 V DC power supply to the controller, the card reader to the reader port (+12V, GND, D0, D1, LED, buzzer for Wiegand, or +12V, GND, A, B for OSDP/RS-485), the exit button to the REX input, and the door contact to the door input. The lock is powered through the controller’s lock relay: a fail-safe maglock on COM and NC, a fail-secure strike on COM and NO. A fire alarm relay contact sits in series with the lock’s positive supply, and a diode across the coil absorbs the voltage spike when it switches off.

What Goes on an Access Control Wiring Diagram

Every door uses the same seven connections, whatever the brand. For a fuller description of each part, see our guide to access control system components.

Device Controller terminals (typical names) Typical cable
Power supply (PSU) +12V IN, GND 2-core 1.0 to 1.5 mm²
Card reader (Wiegand) +12V, GND, D0, D1, LED, BZ 6-core screened, 0.22 to 0.5 mm²
Card reader (OSDP) +12V, GND, A, B 2-pair screened twisted pair
Lock (maglock or strike) Relay NO, COM, NC 2-core 1.0 to 1.5 mm² (sized by voltage drop)
Exit button / REX REX (or EXIT, PUSH), GND 2-core or 4-core 0.22 mm²
Door contact DOOR (or DPS, SENSOR), GND 2-core or 4-core 0.22 mm²
Fire alarm interface In series with lock power, or PSU fire input 2-core fire-resistant cable

Terminal names vary by brand (PUSH, EXIT or REX; SENSOR, DPS or DOOR), so confirm the labels on the controller datasheet before you terminate.

Complete Single-Door Access Control Wiring Diagram

The diagram below is the arrangement I use as a starting point for most office and corridor doors in the Gulf: a fail-safe maglock, a Wiegand reader on the outside, an exit button and door contact on the inside, and a separate lock supply released by the fire alarm.

Access control wiring diagram for a single door with Wiegand reader, controller lock relay on NC, fail-safe maglock, exit button, door contact and fire alarm relay in series with lock power
Single-door access control wiring diagram: fail-safe maglock on the relay’s NC contact, fire alarm release in series with the +12 V lock supply

Follow the diagram in this order:

  1. Power: PSU +12V and 0V to the controller’s +12V IN and GND. Fit the standby battery to the PSU.
  2. Reader: six cores from the reader to the controller’s reader port.
  3. Lock supply: PSU +12V goes through the fire alarm relay’s normally closed contact, then to the controller’s relay COM.
  4. Lock output: relay NC goes to the maglock +. Maglock − returns to PSU 0V.
  5. Suppression: a diode across the lock terminals, band (cathode) to +, unless the lock already has built-in suppression.
  6. Inputs: exit button NO and COM to REX and GND; door contact to DOOR and GND.

Notice that the controller’s relay is a dry contact. It is just a switch; it does not supply voltage by itself. You feed power into COM, and the relay passes it to NO or NC. Some controllers offer a “wet” output that supplies 12 V directly; fine for one small lock, but I prefer a separate lock PSU.

Reader Wiring: Wiegand vs RS-485 (OSDP)

For a Wiegand reader, the common colour code is red for +12V, black for GND, green for D0, white for D1, orange or brown for LED control and yellow for the buzzer. Colours are not universal, so read the label on the reader tail. Wiegand is a point-to-point interface: one reader per controller port, data travels one way, and it is not encrypted. The commonly quoted maximum run is about 150 m with 22 AWG cable.

OSDP runs over RS-485. You only need four cores (+12V, GND, A and B), the readers can share one bus, and each reader has its own address. The bus can typically reach about 1,200 m, the controller can supervise the reader, and OSDP Secure Channel encrypts the link with AES-128. Put A and B on one twisted pair, keep the polarity consistent at every device, and fit a 120 Ω termination at both ends of the bus (many controllers and readers have a jumper or DIP switch for this). The full comparison is in our Wiegand vs OSDP guide.

Reader wiring comparison: Wiegand six-core point-to-point versus OSDP RS-485 multidrop bus with 120 ohm termination at both ends
Wiegand needs six cores per reader; OSDP uses four cores on a shared RS-485 bus with 120 Ω at each end

Pro tip: Use screened cable for reader runs and connect the screen (drain wire) to GND at the controller end only. Earthing it at both ends creates a loop that can pick up noise, especially when the cable runs beside lighting circuits in a ceiling void.

Lock Relay Wiring: NO, COM and NC

This is the part people get wrong most often. A relay has three terminals:

  • COM (common): the moving contact. Feed the lock supply into it.
  • NC (normally closed): connected to COM while the relay is off. It opens when the controller energises the relay (valid card, REX, remote open).
  • NO (normally open): disconnected while the relay is off. It closes when the relay is energised.
Lock relay wiring comparison: fail-safe maglock wired to COM and NC versus fail-secure electric strike wired to COM and NO, each with a flyback diode across the coil
Fail-safe maglock on NC (locked while powered) vs fail-secure strike on NO (locked while unpowered)

Fail-safe maglock on NC

A maglock only holds while it has power. Wire it through COM and NC, so the lock is powered (locked) while the relay is idle. When a valid card is presented, the relay energises, NC opens, the magnet releases and the door opens. If the power fails or the fire alarm cuts the supply, the door also releases. That is why maglocks are called fail-safe.

Fail-secure strike on NO

A fail-secure electric strike stays locked without power and only releases when it is energised. Wire it through COM and NO. A valid card closes the relay, the strike gets power and the keeper releases. On power loss it stays locked from the outside, while people inside still leave freely with the mechanical lever handle. Many strikes can be switched between fail-safe and fail-secure modes, so check how yours is set before you choose the contact. Our fail-safe vs fail-secure guide explains which doors need which, and maglock vs electric strike compares the hardware.

The flyback diode

A lock coil is an inductor. When the relay opens the circuit, the collapsing magnetic field produces a reverse voltage spike that can be many times the supply voltage. Over months, it pits the relay contacts and can reset the controller. The fix is a diode such as a 1N4007 fitted across the coil, as close to the lock as possible, with the band (cathode) to + and the other end to −. When the relay opens, the diode gives the spike a path to die away.

  • Use a diode only on DC locks. On an AC strike it would short every other half-cycle; use an MOV or the manufacturer’s suppressor instead.
  • Many maglocks already have suppression built in. A diode slows the release slightly, so on a maglock follow the lock maker’s instruction.
  • If you fit the diode backwards, it shorts the supply the moment the lock is powered. Check the band before you switch on.

REX, Door Contact and Fire Alarm Release Wiring

The REX input takes a dry contact. Connect the exit button’s NO contact and COM to REX and GND. Pressing the button closes the circuit and the controller pulses the lock relay. The door contact (magnetic reed switch) normally connects to DOOR and GND and is closed while the door is shut. The controller uses it for “door forced” and “door held open” alarms. Both inputs, including double-pole exit buttons and end-of-line resistor supervision, are covered in detail in our REX button and door contact wiring guide.

The fire alarm release must remove power from the lock itself, not just send a signal to the controller software. In the diagram, the fire alarm interface relay’s normally closed contact is in series with the +12 V lock supply. When the fire alarm panel goes into alarm, the contact opens and every fail-safe lock on that supply drops. Many access control PSUs have a dedicated fire alarm input that does the same job internally. Life safety codes such as NFPA 101, the IBC-based Saudi Building Code (SBC) and local Civil Defense requirements expect electrically locked egress doors to unlock on fire alarm activation, so confirm the cause-and-effect with the fire consultant. Our article on access control and fire alarm integration covers the details, and the existing guide to fire alarm integration with BMS, access control and CCTV shows the wider picture.

My field advice: Never wire the fire alarm release only to the controller’s input. If the controller crashes or its firmware is updated during an alarm, the door stays locked. A hardwired break in the lock power works even when every piece of electronics has failed.

Practical Example: Office Door 40 m From the Lock PSU

A glass office door in a Riyadh office building: the controller and lock PSU sit in the floor’s ELV room, 40 m of cable route from the door.

  • Lock: one 12 V DC maglock, 500 mA (a typical figure for a 600 lb maglock; check your datasheet)
  • Reader: Wiegand, about 150 mA at 12 V, 30 m route
  • Controller: about 250 mA
  • Design limit: 5% voltage drop on the lock circuit (0.6 V at 12 V)

Step 1: Voltage drop formula

For a two-wire DC circuit, the drop is Vd = (2 × L × I × ρ) ÷ A, where L is the one-way length in metres, I is the current in amps, ρ is the resistivity of copper (about 0.0175 Ω·mm²/m) and A is the conductor area in mm². The factor 2 accounts for the positive and the return conductor.

Step 2: Try three cable sizes for the lock

Lock cable Calculation Voltage drop % of 12 V Result
0.5 mm² 2 × 40 × 0.5 × 0.0175 ÷ 0.5 1.40 V 11.7% Fail
1.0 mm² 2 × 40 × 0.5 × 0.0175 ÷ 1.0 0.70 V 5.8% Marginal
1.5 mm² 2 × 40 × 0.5 × 0.0175 ÷ 1.5 0.47 V 3.9% Pass

With 0.5 mm², the maglock receives about 10.6 V. Holding force falls with voltage, so the door may still lock, but a firm push could open it. I would specify 2-core 1.5 mm² for this run. Check your own numbers with the Voltage Drop Calculator, which also handles 24 V locks and several devices on one cable.

Step 3: Check the reader cable

Reader on 0.22 mm² over 30 m: 2 × 30 × 0.15 × 0.0175 ÷ 0.22 = 0.72 V. On 22 AWG (about 0.33 mm²): 0.48 V. Most readers accept a wide supply range, often around 9 to 14 V (check the datasheet), so either works electrically. I still prefer 22 AWG for margin.

Step 4: Battery standby

Total load is 0.25 + 0.15 + 0.5 = 0.9 A. For 4 hours of standby: 0.9 × 4 = 3.6 Ah. Add 25% for battery ageing and temperature: 3.6 × 1.25 = 4.5 Ah, so a standard 12 V 7 Ah battery is the next size up. Confirm the required standby time with the project specification and use the Battery Backup Calculator for multi-door supplies.

Pro tip: If a long lock run fails the voltage drop check, consider a 24 V DC maglock. For the same power, the current halves, the voltage drop halves, and as a percentage of 24 V it falls to a quarter.

Common Wiring Mistakes and How to Fix Them

Symptom Likely cause Fix
Door is unlocked when idle and locks only on a card read. Maglock wired to NO instead of NC Move lock + from NO to NC, or invert the relay in software only if the brand allows it
Card reads but wrong card number in the software D0 and D1 swapped, or wrong Wiegand format Swap green and white, check the reader’s output format (26-bit, 34-bit)
Controller resets or relay sticks after a few months No suppression across the lock coil Fit a diode at the lock, band to +, or the maker’s suppressor
Maglock holds weakly, door opens with a push Voltage drop, undersized cable, misaligned armature plate Measure voltage at the lock under load, upsize cable, realign plate
Door does not release on fire alarm test Fire release wired to controller input only Put the fire alarm contact in series with lock power or use the PSU fire input
Random “door forced open” alarms Door contact gap too wide, loose terminal, input set NO instead of NC Adjust gap, ferrule and retighten, check input type in software
OSDP readers drop offline A/B swapped at one reader, missing termination, wrong address Check polarity, fit 120 Ω at both bus ends, give each reader a unique address

To lay out the whole floor before you draw individual door diagrams, use the Access Control Designer. It gives you the cable lengths for this calculation. For the bigger planning picture, see how to design an access control system, and when you move to site, follow our step-by-step door access control installation guide.

Frequently Asked Questions

Is a maglock wired to NO or NC?

A fail-safe maglock is wired to COM and NC. It stays powered and locked while the relay is idle, and releases when the relay energises on a valid card or exit request. A fail-secure electric strike is wired to COM and NO.

What wires go to a Wiegand card reader?

Typically six: +12V (red), GND (black), D0 (green), D1 (white), LED control and buzzer. Colours vary by maker, so read the reader label. Use screened cable and earth the screen at the controller end only.

Where does the diode go on a door lock?

Across the lock coil terminals, as close to the lock as possible, with the band (cathode) on the positive terminal. Use it only on DC locks, and check whether the lock already has built-in suppression.

How should the fire alarm release be wired to access control?

Wire a normally closed fire alarm relay contact in series with the positive supply to the locks, or use the access control PSU’s fire alarm input. The lock power must be cut directly, not only through controller software.

What cable size should I use for a maglock?

Size it by voltage drop, not habit. Calculate Vd = 2 × L × I × 0.0175 ÷ A and keep it within about 5%. A 500 mA maglock 40 m away needs about 1.5 mm²; shorter runs often work on 1.0 mm².

Can the lock share the controller’s power supply?

For one small lock, yes, if the PSU is rated for the combined current and has battery backup. For multiple doors or maglocks, use a separate lock PSU with its own fire alarm release, so a lock fault cannot take the controller down.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top