PanelSimulator Academy

Access Control, lesson 1 of 14

How a door decides who gets in

You hold up a card, a light turns green, and the door opens. Five parts did that work together in about half a second. This lesson shows you each one, and what goes wrong when one is missing.

About 15 minutes. No background needed.

Try the door

Pick who is at the door, then play or step through what happens.

protected side, above the ceiling corridor, public side Controller Card on list This door This time door lock rdr Tue 9:02 AM door switch locked Door Reader
  • Card is on the list
  • Card may use this door
  • Allowed at this time

The event record appears here when the controller writes it.

The everyday picture

Picture an office building with a person at the front desk. You walk up and show your badge. They look at it, check a list, and press a button under the desk. The door buzzes and you pull it open.

Notice who did what. Your badge only said who you are. The person at the desk made the decision. The button released the door. And if you held the door open for five minutes, they would notice and come over.

An access control system is that same arrangement, built from electronics. It works at every door at once, at any hour, and it writes down everything it sees.

The parts at every door

Almost every controlled door has the same parts. Learn them once and you can read any system, from a two-door shop to an airport.

  • CredentialWhat you carry: a card, a key fob or a phone. It holds a number, a bit like a license plate. It does not hold your name or your permissions.
  • ReaderThe box on the wall. It reads the number by radio from a few centimetres away and passes it along. That is all it does.
  • ControllerA small computer in a locked room or above the ceiling. It keeps the list of who may go where, and it makes the decision.
  • Electric lockHolds the door shut until the controller releases it, usually for three to five seconds.
  • Door position switchA small magnetic sensor on the frame. It reports one fact: the door is open, or the door is closed.
  • Request to exitA motion sensor or push button on the inside. It tells the controller that someone is leaving. Often shortened to REX.

Check yourself

Which part decides whether the door unlocks?

A bit more precisely: what the controller checks

When a card number arrives, the controller asks three questions, in order. If any answer is no, it stops and the door stays locked.

QuestionWhat it meansIf the answer is no
Is this card on the list?The number belongs to a person in the system, and the card has not been switched off.Denied: unknown or inactive card
May this card use this door?The person belongs to a group that includes this door. This is called an access level.Denied: no access to this door
Is it allowed right now?The time falls inside the hours set for that group. This is called a schedule.Denied: outside schedule

Whatever the answer, the controller writes down what happened: which card, which door, what time, and the result. That record is called an event. Scroll back up and try the other two visitors to see how a denial looks.

Why the reader does not decide

The reader sits on the public side of the wall, where anyone can reach it. The controller and the lock wiring sit on the protected side. Because the decision is made on the protected side, damaging the reader does not open the door.

Why a lost card is not a disaster

With a metal key, losing one means changing the lock. Here the card is only a number on a list. Switch that number off and the lost card stops working at every door within seconds. Nobody else is affected.

Behind the wall: where the wires land

Open a controller cabinet and you will find rows of screw terminals. Each door uses four groups of them.

Controller board, one door Reader port +12VGNDD0D1 Lock relay NOCNC Door input INGND Exit input INGND Readerpower and data Lockthrough its power supply Door switchopen or closed Exit sensorsomeone is leaving
Terminal names vary a little between brands, but these four groups appear on nearly every door controller.

Three of these are simple. The reader port gives the reader power and listens for the card number. The two inputs each watch one switch.

The lock group needs one new idea. A relay is a switch that the controller flips instead of a finger. It has three terminals:

  • C, common. The wire that is always connected.
  • NO, normally open. Not connected to C until the relay flips.
  • NC, normally closed. Connected to C until the relay flips.

So the installer picks a terminal to match the lock. A lock that needs power to release goes on NO: the relay flips, power flows, the door opens. A lock that needs power to hold goes on NC: the relay flips, power is cut, the door opens.

What happens when the power fails?

Every electric lock has to answer one question: with no power, is the door locked or unlocked? There are two answers, and each has a name.

  • Fail-safe: no power means unlocked. People are safe, the room is not.
  • Fail-secure: no power means locked from the outside. The room stays protected.

Cut the power and see

Choose a lock, then switch the power.

Power supply Magnetic lock at the top
Power is on

One rule sits above both choices: people must always be able to get out. In the United States this comes from life-safety codes such as NFPA 101 and the International Building Code. The exact requirements depend on which edition your city or state has adopted. The local official who enforces them is called the authority having jurisdiction, or AHJ.

How the system watches the door

Unlocking is half the job. The controller also wants to know whether the door behaved as expected. It works this out from three signals: did it grant access, did it see a request to exit, and what does the door position switch say?

Be the person at the door

Do something, and see what the controller concludes from its three signals.

  • WaitingNothing has happened yetPick an action above. The newest event appears at the top.

Now you can see what request to exit is for. Without it, every person who walked out would look like a forced door.

Three examples

Simple: the office front door

A ten-person office has one controlled door. Everyone is in one group called Staff. The group has one door and one schedule, weekdays 7 a.m. to 7 p.m. The owner is in a second group, Owner, with the same door and a 24-hour schedule. Two groups cover the whole office, and adding a new hire takes one step: put them in Staff.

Medium: the stockroom that alarms at lunch

A stockroom raises an alarm most days around noon. The event list shows the same pattern each time: access granted, then door held open 30 seconds later. Nobody is breaking in. Staff are propping the door while they carry boxes.

The fix is a conversation, and perhaps a longer held-open time for that one door. Replacing hardware would have cost money and changed nothing.

Advanced: the network goes down

The controllers in a hospital normally talk to a central server. One night a network switch fails. Do the doors stop working?

In a well-designed system, no. Each controller keeps its own copy of the list and keeps deciding by itself. It stores events in memory and sends them when the network returns.

The design questions to ask of any product are: how many cards and events can the controller hold while it is cut off, and what happens to a card that was switched off at the server during the outage? The second answer is uncomfortable. That card keeps working until the controller hears the news.

From the field

A newcomer knows the parts. An experienced technician knows that most service calls are about the door, not the electronics.

  • Check the door first. A door that does not close and latch by itself will never be secure, whatever you install on it.
  • Size the power supply for the lock. Locks draw the most current at the moment they switch. An undersized supply causes faults that come and go.
  • Read the events before touching hardware. The event list usually tells you which part is misbehaving.
  • Ask about egress before choosing a lock. The code decides which locks are allowed on that door. Price and preference come second.
  • Label both ends of every cable. The next person to open that cabinet may be you, two years from now.

Common mistakes

  • Thinking the reader makes the decision. It only passes the number along.
  • Mixing up fail-safe and fail-secure. Fail-safe protects people. Fail-secure protects the room.
  • Leaving out the door position switch to save money. Without it the system cannot tell whether the door is open.
  • Forgetting request to exit, then drowning in forced-door alarms.
  • Wiring a lock to the wrong relay terminal, so the door is unlocked all day and locks for five seconds when someone badges.
  • Putting a magnetic lock on a door without confirming the release requirements with the AHJ.

Summary

  • The credential says who you are. The reader passes it on. The controller decides. The lock obeys. The door position switch reports back.
  • The controller asks three questions: known card, right door, right time.
  • Every decision is recorded as an event.
  • A relay is a switch the controller flips. NO and NC decide whether flipping it gives power or takes it away.
  • Fail-safe unlocks without power. Fail-secure stays locked from outside.
  • People must always be able to get out.

Exercises

Answer each one yourself first, then open the answer.

Exercise 1. A visitor's card works at the lobby door but not at the server room. Which of the three questions failed?

Show answer
The second one. The card is on the list, but its access level does not include the server room door.

Exercise 2. A server room must stay locked during a power cut. Which kind of lock fits, and how do people inside get out?

Show answer
A fail-secure lock, such as a fail-secure electric strike. People inside turn the handle, which pulls the latch back mechanically and needs no power.

Exercise 3. A magnetic lock needs power to hold the door. Which relay terminal does it go on with C: NO or NC? Why?

Show answer
NC. Power must flow all the time and stop only when the controller grants access. NC is connected to C until the relay flips, so flipping the relay cuts the power and releases the door.

Exercise 4 (think, don't memorize). A site reports forced-door alarms on one door every time someone leaves, and never when someone enters. What would you check first?

Show answer
The request to exit device. If the sensor is unplugged, aimed badly or not set up in the software, the controller sees the door open with no grant and no exit request, so it raises a forced-door alarm.

Where this goes next

Each part you met today gets its own lesson. This is the planned path for the course.

  1. How a door decides who gets in
  2. Credentials: cards, fobs and phones
  3. Readers and how they talk
  4. Controllers and panels
  5. Electric locks
  6. The door itself: frames, closers, hinges
  7. Getting out: egress and life safety
  8. Power supplies and batteries
  9. Cable and wiring
  10. Access levels, schedules and holidays
  11. Events, alarms and monitoring
  12. Software, servers and cloud
  13. Gates, turnstiles and elevators
  14. Designing a system from a floor plan