Most access control complaints I am called out for are not about readers or software. They are about the two smallest devices on the door: the exit button and the door contact. A wrong terminal, a missing second contact set or a door contact wired to the wrong input type leads to false “door forced” alarms, doors that will not open in a fire, or a security office that can no longer trust its alarm screen. Getting REX button and door contact wiring right makes a door both safe and monitored. This guide covers the exit devices, the door position switch, the controller logic and a worked voltage drop example.
Quick answer: Wire the REX (request-to-exit) button’s NO contact between the controller’s REX input and GND so the controller knows the exit is legitimate. On a fail-safe maglock, use a double-pole button and wire its NC contact, plus a green break glass unit, in series with the lock’s +12 V so they cut lock power directly. Wire the door contact (door position switch) as a closed loop to the door input, ideally supervised with end-of-line resistors so a cut or shorted cable raises a tamper alarm.
What REX and Door Contact Actually Do
Every controlled door answers two questions: is it closed, and if it opened, was that allowed? The door contact, also called a door position switch (DPS) or magnetic contact, answers the first one. It is a reed switch in the frame and a magnet on the door leaf. The REX device answers the second one for people leaving: it tells the controller “someone inside is exiting, do not raise an alarm”.
With the reader, they give the controller valid card in, REX out, and confirmation that the door moved and closed again. For the other parts on a door, see components of an access control system first.
| Device | Typical contact | Connects to | Job |
|---|---|---|---|
| Exit button (single-pole) | NO / COM / NC | Controller REX input | Unlock request, exit logged |
| Exit button (double-pole) | Two sets: NO and NC | REX input and lock power | Signals controller and cuts lock power |
| PIR REX sensor | Relay output, NO/NC | Controller REX input | Hands-free exit or alarm shunt |
| Green break glass | NC (often changeover) | Lock power, in series | Emergency manual release |
| Door contact (DPS) | Closed when door shut | Controller door input | Door status, forced and held alarms |
Push-Button vs PIR REX: Which One to Use
A push-button REX is the standard choice. The user presses a “push to exit” button, the controller sees the NO contact close, logs an exit and pulses the lock relay. The action is deliberate, so it rarely triggers by accident.
A PIR REX sensor is a motion detector mounted above the door on the secure side, aimed down at the approach. When someone walks up to the door, its relay changes state. It suits hands-free exits in hospitals and warehouses, and doors with lever handles or panic bars, where its main job is to shunt the door alarm.
| Point | Push-button REX | PIR REX |
|---|---|---|
| User action | Press the button | Walk up to the door |
| Power needed | None (dry contact) | Yes, typically 12 V DC |
| False triggers | Very rare | Possible: people passing, objects pushed under the door, air movement |
| Best for | Offices, most doors with maglocks | Hands-free exits, doors with mechanical egress hardware |
Pro tip: Aim a PIR REX at the floor right in front of the door, not the corridor beside it, or it will unlock for every passer-by.
Double-Pole Exit Button Wiring for a Fail-Safe Maglock
A single-pole button wired only to REX relies on the controller to release the lock; if the controller hangs, the button does nothing. That is why I always fit a double-pole (two contact sets) exit button on maglock doors. You can sketch the full door layout with the free access control designer.

The wiring works like this:
- Set 1, NO and COM: to the controller’s REX input and GND. Pressing the button closes this contact, so the controller logs the exit, pulses the lock relay and shunts the door alarm.
- Set 2, NC and COM: in series with the maglock’s +12 V, between the lock relay output and the lock. Pressing the button opens this contact and cuts lock power directly, with or without the controller.
- Green break glass: its NC contact in series in the same +12 V line, after the button.
- Diode: across the maglock terminals, cathode (band) to +, to absorb the back-EMF spike when the coil switches off. Many maglocks have suppression built in; check the datasheet before adding one.
- Lock PSU: switched off by the fire alarm interface (see fire alarm integration with BMS, access control and CCTV).
The Green Break Glass and Code Requirements
The green break glass (emergency door release) is the occupant’s last-resort way out if the exit button, controller or software fails. In the GCC it is commonly required by Civil Defense on maglocked escape doors, and the logic follows NFPA 101 (Life Safety Code), which SBC 801 references for many egress provisions.
For doors released by a sensor such as a PIR, NFPA 101 asks for a manual release device that:
- is mounted 1,015 mm to 1,220 mm (40 to 48 in) above the floor;
- is within 1,525 mm (60 in) of the secured door;
- is labelled “PUSH TO EXIT” or similar;
- cuts power to the lock directly, independent of the access control electronics;
- keeps the door unlocked for at least 30 seconds after operation.
The local authority and the adopted code edition decide the final rules, so check the approved fire strategy. A green break glass with its NC contact in the lock power line stays released until reset, which covers both the direct power cut and the 30 second minimum.
My field advice: Never wire the break glass only to a controller input. If the break glass does not physically break the lock’s 12 V, it is not an emergency release.
Door Contact Wiring: Simple NC Loop vs Supervised Loop
The door contact is a dry contact that is closed when the door is shut (the magnet holds the reed closed). Most controllers expect this “normally closed” behaviour, though many let you set the input to NC or NO in software. There are two ways to wire it.

Simple NC loop
Two 0.22 mm² cores run from the contact to the controller’s DOOR and GND terminals, input set to NC. It works on almost every controller. The weakness: a cut cable reads as “door open”, and someone who shorts the cores behind the frame makes the door look permanently closed, so it can be forced with no alarm.
Supervised loop with two EOL resistors
The controller input measures resistance rather than just open or closed. A series resistor (R1) and a parallel resistor (R2, across the contact) are fitted at the contact end, not at the controller. The controller then sees four distinct states:
| Condition | Loop resistance | Controller reports |
|---|---|---|
| Door shut | R1 only | Normal |
| Door open | R1 + R2 | Door open |
| Cable cut | Open circuit | Tamper |
| Cable shorted | Near zero | Tamper |
Resistor values are set by the controller manufacturer, so follow the manual and the input setting in the software. Wrong values are the most common reason a supervised input shows tamper on a perfectly good door.
Pro tip: Match the contact to the frame (recessed, surface or heavy-duty for shutters and gates), keep the gap within the datasheet figure, and use a steel-rated contact on steel doors.
Door Forced and Door Held Open Logic
The controller combines the door contact with what it knows about unlocking.

- Door forced open: the door contact opens but the controller did not unlock the door (no valid card, no REX, no remote open). An alarm goes to the monitoring PC.
- Door held open: the door was opened legitimately but not closed before the held-open timer ends, often set somewhere around 30 to 60 seconds. The controller raises an alarm and often sounds the reader buzzer or a local sounder.
- Normal access: door opened after an unlock and closed in time. The event is logged and the lock re-energises.
Why REX Must Shunt the Door Alarm
On doors with mechanical egress, such as a lever handle on an electric strike door or a panic bar, the user can open the door from inside without the controller unlocking anything. To the controller, that looks exactly like a forced door. The REX device fixes this: when it activates, the controller shunts (masks) the door forced alarm for a set period, so the exit is logged as a REX event rather than an alarm.
A PIR above the door or a REX switch built into the panic bar or lever trim does this job; on maglock doors, set 1 of the exit button does it. Two software settings matter:
- REX unlocks the door or not: on maglocks, yes. On strike doors with a mechanical handle, many installers set REX to shunt only, so the strike does not click every time someone walks past the PIR.
- Shunt time: long enough for a slow user to get through, short enough that a door propped open still raises a held-open alarm.
For the lock side of this decision, see the locks and fail-safe/fail-secure section of access control system components explained.
Practical Example: Office Door With Maglock, Exit Button and Break Glass
An office entrance in Riyadh has a 12 V DC fail-safe maglock drawing 0.5 A. The controller and lock PSU are in the comms room. Because lock power is routed through the exit button and the break glass at the door, the lock circuit runs about 20 m each way between the panel and the door devices, so the current flows through 40 m of conductor in total.
Voltage drop for a two-wire DC circuit:
Drop (V) = 2 × length (m) × current (A) × 0.0175 ÷ cross-section (mm²)
where 0.0175 Ω·mm²/m is the resistivity of copper.
- Fixed part: 2 × 20 × 0.5 × 0.0175 = 0.35.
- With 1.0 mm² cable: 0.35 ÷ 1.0 = 0.35 V drop. The lock sees about 11.65 V. Fine.
- With 0.22 mm² alarm cable: 0.35 ÷ 0.22 ≈ 1.59 V drop. The lock sees about 10.4 V, before you add contact resistance in the button, break glass and terminals.
Many 12 V maglocks are specified for around ±10%, so 10.4 V is below the usual minimum of about 10.8 V. Holding force drops and the door may pull open. The fix is to run 1.0 mm² (or at least 0.75 mm²) for the lock power legs and keep 0.22 mm² for the signal cores: REX and door contact carry only milliamps.
Cable plan: one 1.0 mm² 2-core for lock power, plus a 4-core 0.22 mm² screened cable for REX and door contact. Check your own runs with the Voltage Drop Calculator, size the standby supply with the Battery Backup Calculator, and plan cable schedules for the whole building in the Access Control Designer.
My field advice: Measure the voltage at the maglock terminals with the lock energised, not at the PSU. A reading at the PSU always looks perfect. The lock terminal reading is the one that tells you whether the door will hold.
Troubleshooting REX Button and Door Contact Wiring
| Symptom | Likely cause | Fix |
|---|---|---|
| Door forced alarm every time someone exits | No REX wired, or REX not set to shunt the alarm | Wire the button NO or PIR to the REX input; enable REX shunt in software |
| Door unlocks constantly by itself | REX wired to NC terminal, or input set to the wrong type; PIR seeing passers-by | Use NO and COM on a NO-configured input; re-aim or mask the PIR |
| Exit button works only when the controller is online | Single-pole button wired to REX only | Fit a double-pole button with NC in the lock +12 V |
| Break glass operated but door still locked | Break glass wired to a controller input, or bypassed | Wire its NC contact in series with lock power |
| Door always shows open | Magnet misaligned, gap too wide, or input set to NO | Realign contact and magnet; check input type |
| Supervised input shows tamper on a good door | Wrong EOL resistor values, or resistors fitted at the controller end | Use the manual’s values, fit them at the contact |
| Maglock weak, door pulls open | Voltage drop on thin cable through button and break glass | Upgrade lock power to 1.0 mm²; measure at the lock |
| Reader or controller resets when the lock releases | Back-EMF spike from the coil | Fit a diode or varistor across the lock if it has no built-in suppression |
Frequently Asked Questions
Which terminals do I use on an exit button?
For the REX signal, use COM and NO, wired to the controller’s REX input and GND. On a double-pole button, use the second set’s COM and NC in series with the maglock’s +12 V so pressing the button cuts lock power directly.
Is a door contact normally open or normally closed?
A standard door contact is closed when the door is shut, because the magnet holds the reed switch closed. It opens when the door opens. Set the controller input to NC, or use a supervised setting with end-of-line resistors.
Do I need a door contact if I already have a REX button?
Yes. The REX only tells the controller someone wants to leave. Without a door contact, the controller cannot detect a forced or propped door, cannot run a held-open timer and cannot confirm the door actually closed.
Can a PIR be the only exit device on a maglock door?
No. A PIR can release the lock for convenience, but life safety codes such as NFPA 101 require a separate manual release that cuts lock power directly. Fit a push-to-exit button or green break glass as well.
Where should EOL resistors be fitted?
At the door contact end of the cable, normally inside the frame or the contact’s junction. If you fit them at the controller, the cable is not supervised and a short behind the door will still hide an open door.
What cable size should I use for exit buttons and door contacts?
Signal cores for REX and door contacts carry only milliamps, so 0.22 mm² is usually fine. If lock power is routed through the exit button and break glass, use heavier cores such as 1.0 mm² for that part and check the voltage drop.

