Documentation menu

Access control: turnstiles, lanes and pass rules

Connecting turnstiles: a computer with the Gyms CRM program, entry and exit lanes, location pass rules, the emergency mode and a live pass log.

Updated Nov 16, 2026About 15 minAdvanced

For roles:OwnerManager

Screen overview in words

What this page covers: What access control consists of · Connecting the computer · A lane in three steps · Pass rules and emergency mode · The pass log

A turnstile cannot think by itself. It needs a computer in the hall with the Gyms CRM program: it reads the code from the reader, asks the system whether to let the person in, and sends a signal to the relay. Everything is set up on the Access control screen in the Connections group.

First connect the computer. Open this page in the Gyms CRM program on the PC to which the reader and the relay are physically connected and press Connect this computer. You cannot add lanes from a browser: it does not see USB devices.

Then the lanes. A lane is one passage: the direction in or out, a reader and a way of opening. The wizard takes you through three steps: name and direction, reader, opening. In the reader step scan any code and the port is detected by itself. On the last step there is a Relay test button: the relay should click and the turnstile should open.

The Lane zone field is hidden in this CRM build: backend 0.0.96 does not accept lane zones yet. See below for how it will work.

Below are the Pass rules: anti-passback, auto-closing of a visit, refusing debtors, working hours, offline codes. And the live pass log: who, when, through which lane and what the decision was.

Where to find it:SystemConnectionsAccess controladdress: /settings/access-control

Who this is for: the owner or the manager who connects turnstiles together with a technician. The reception administrator reads the pass log when a client complains that they were not let in.

Why do you need this screen?

Access control connects turnstiles to the CRM. The client presents a QR from the app or a club card, the system checks the membership, debt, zone and time, and the turnstile opens or gives a refusal with a reason. Every pass is recorded, so you can see why a client was not let in.

The hardware side needs a computer in the hall with the Gyms CRM program. It is what talks to the reader and the relay. Separately stands Entry devices: the register of turnstiles and scanners with their state (formerly "Equipment").

What is on the screen?

Heading and passport

  • The Access control heading and the subtitle "Turnstiles and QR pass" with the location name
  • Connection passport: a printed sheet for the installer
  • With no location chosen: "Choose a location to set up access control"

The program on the computer

  • The state of the computer connection, its name, the program version, the connection to the server
  • Events in the queue, USB devices
  • The buttons Connect this computer and Disconnect
  • The Connected computers list

Lanes

  • A table: Name, Direction, Reader, Opening, Zone (if the location has zones), State, Last scan
  • The buttons Add lane, Relay test, Let in, Switch off and Switch on

Pass rules and the log

  • Pass rules: anti-passback, auto-closing, debts, working hours, offline codes
  • The Pass log with a "live" mark

How do I connect a computer?

The program on the computer is the access control agent of your location. One computer serves the lanes whose readers and relays are connected to it.

  1. Install the Gyms CRM program on the hall PC to which the reader and the relay are connected. If it is out of date you see "Update the Gyms CRM program": the update is installed at the next launch.
  2. In the program open System › Connections › Access control and choose the right location at the top.
  3. In the Program on the computer block press Connect this computer. "Computer connected" appears.
  4. Check the rows Connection to the server ("commands from the CRM arrive") and USB devices. If the reader or the relay is not in the list, check the USB.

You can open the page from a browser for viewing, but searching for readers and relays and adding lanes work only from the program on the connected PC: otherwise you see "Open this page in the Gyms CRM program". If the computer is connected to another location, the program offers to switch the location or to disconnect it and connect it to the current one. A disconnected computer stops its lanes until it is connected again.

How do I add a lane?

A lane is one passage of the turnstile with a direction and its own reader and way of opening. The "New lane" wizard has three steps.

  1. Press Add lane (from the program on the PC). Step 1: enter a Name, for example "Main entrance", and choose a Direction: In (the membership is checked, a visit is recorded) or Out (always opens, closes the visit).
  2. Step 2, Reader. Choose where the code comes from: Scanner or converter over USB (an external scanner, the turnstile's built-in scanner through Wiegand→USB or RS232→USB) or Turnstile controller in cloud mode. For USB scan any code on the reader: the port is detected by itself. If needed choose a Frame format (Auto, Text (ASCII), Wiegand 26, Wiegand 34) and a speed.
  3. Step 3, Opening. Choose how to open the turnstile: USB relay HID, USB relay serial, Reply to the controller (the controller opens by itself once it gets "allowed") or No relay (test). For a relay set the Channel and the Pulse, ms.
  4. Press Relay test: the relay should click and the turnstile should open. If it clicks but the turnstile does not, check the NO/COM terminals.
  5. Press Save lane. "Lane saved" appears.

The pulse is from 100 to 5000 ms. 500 ms suits most turnstiles; if the turnstile opens and closes at once, increase it to 800–1000. For a controller in cloud mode set the server address in the controller itself: the IP of this computer and the port the wizard shows, plus the fields with the code and the "allowed" and "denied" replies.

How do I test a lane or open it by hand?

In the lanes table the Relay test button tests the relay: "Command sent — check whether the turnstile opened". The Let in button opens the passage remotely: "Passage opened". A lane of another computer is edited from that computer. The Switch off and Switch on buttons take a lane out of work temporarily.

The lane zone

In the CRM build made for backend 0.0.96 the Lane zone field is absent: the server does not accept zone_id in a lane, so the lane wizard neither shows nor sends it. What follows describes a server that supports it.

If the location has attendance zones (gym, pool), the lane gets a Lane zone field with the default value Location default zone. It is used when the system rule "Turnstile entry zone" is set to "The zone set on the turnstile lane": Rules for a location. The lanes table then has a Zone column.

If the location has zones but none is marked as default, the page shows a warning: memberships "zones only" will not pass the turnstile without a zone. Mark a default zone or set the lane zone.

Pass rules

Pass rules apply to the whole location and are checked only at turnstiles: at reception the administrator decides themselves.

RuleWhat it does
Anti-passback, minA repeated entry without an exit sooner than N minutes is refused. 0 switches it off
Auto-closing of a visit, minFor halls without an exit lane: the visit closes itself after N minutes. 0 switches it off
Do not admit debtorsA client with an unpaid debt gets a refusal at the turnstile
Only during location working hoursOutside the location schedule the turnstile does not open
Offline app codesWithout a network the agent admits by cached app codes (cards always work)

The range of minutes is 0 to 1440. If the rules have not been saved for the location yet, the turnstile works with the default values shown on the screen: check them and press Save to fix them ("Rules saved").

Auto-closing and the exit lane

Auto-closing applies to all visits of the location, including those recorded at reception. If there is an Exit lane, set auto-closing to 0, otherwise visits will close themselves after the set time.

Emergency mode

The system rule "Emergency access mode" is switched on for a location (see Rules for a location). Then lanes and reception admit everyone without checks, every pass is recorded with the reason "Emergency entry", and reception shows a red message "Emergency entry mode" with a Switch off in rules button. The owner gets a notification. Switch the mode off at once when the situation is over.

The pass log

The log shows every pass attempt, and the live mark means the list refreshes itself. Columns: Time, Lane, Client, Decision, Reason, Source (scan, manual, offline, test). Filters: All lanes and All decisions. If there were no passes yet you see "No passes yet".

Refusal reasons are written in words in the Reason column: an unknown code (the code belongs to neither a client QR nor a card), an expired code, a blocked client, and also refusals by the pass rules. About requests when a turnstile cannot decide and asks reception, see Reception.

Typical situations

The turnstile does not open, but the client has a membership

Open the pass log and find the attempt: the refusal reason explains. Turnstiles have extra pass rules (anti-passback, debt, hours) that reception does not have. Meanwhile let the client in by hand with a reason.

After reinstalling the program the lanes do not work

The computer must be connected again: press Connect this computer. The list of connected computers below shows when each was last in touch.

The relay clicks but the turnstile does not open

Check the NO/COM terminals on the relay and change the pulse length.

The internet in the hall went down

If "Offline app codes" is on, the agent admits club cards and cached codes. After the connection is back the administrator records such passes by hand: Offline mode.

When the system refuses

The system answers: «Абонемент клієнта не дає вільного входу. Пропустіть вручну з причиною або продайте разовий вхід»

A membership "classes only" or without an entry right. Reception can let the client in by hand with a reason.

The system answers: «Абонемент клієнта не дає входу в цю зону»

The client has a membership for another zone. Choose the zone they are going to or let them in by hand.

The system answers: «Не вдалося підключити програму»

Connecting the computer failed. Check the internet on the PC, update the program and try again.

The system answers: «Реле не спрацювало»

The relay test failed. Check that the relay is visible in the USB devices, the channel and the wiring.

The system answers: «Ця збірка програми ще не вміє працювати з турнікетами»

Update the Gyms CRM program: the update is installed automatically at the next launch.

Who sees it and what they can do

RoleViewActions
OwnerLanes, rules, the logConnects computers, adds lanes, changes rules, opens a passage
ManagerYes, by the right "Access control (turnstiles)"What the right allows
AdministratorThe pass log, if there is a view rightUsually view only
Trainer, cashier, accountant, operatorNoneNone

Agents, lanes, the test, remote opening and pass rules need the right "Access control (turnstiles)" to change; the log and the connection passport need read. Requests from a turnstile at reception are seen by the right "Entry/exit control".

Frequently asked questions

Can I add a lane from a browser?

No. Adding lanes and searching for readers and relays work only from the Gyms CRM program on the computer the equipment is connected to. From a browser you can view the page.

What is the Lane zone field for?

Memberships "zones only" admit by zone. When the rule Turnstile entry zone is set to "The zone set on the lane", the turnstile takes the zone from the lane.

What does emergency mode do?

It admits everyone without checks, records every pass with the reason "Emergency entry", shows a red message at reception and notifies the owner.

Where can I see why a turnstile refused?

In the pass log: the row has the decision, the reason, the lane and the client.

How is Access control different from Entry devices?

Access control sets up lanes, readers and pass rules. Entry devices is the register of the turnstiles and scanners themselves, with their connection status.

 

Back to all documentation