Skip to main content

Gate Relay Configuration

Set up a ControlByWeb relay on ControlByWeb Cloud. This guide covers wiring, device onboarding to the cloud, security, pulse timing, and test commands.

Gabriel Gonzalez avatar
Written by Gabriel Gonzalez
Updated over 2 months ago

Prerequisites

Hardware

Choose your Setup

  1. One physical gate serving both check in and check out

    • 1 × X-401

    • Relay mapping:

      • Relay 1 → Open

      • Relay 2 → Close

  2. Two independent gates (one inbound gate and one outbound gate)

      • Device A controls the Check In gate

        • Relay 1 Open

        • Relay 2 Close

      • Device B controls the Check Out gate

        • Relay 1 Open

        • Relay 2 Close

  3. Single controller for two gates

    • Relay mapping:

      • Relay 1 → Open In

      • Relay 2 → Close In

      • Relay 3 → Open Out

      • Relay 4 → Close Out

  4. Custom

    • For more complex setups consult your Gatego field engineer to get the correct setup for your operation.

Connectivity

Power over Ethernet (PoE) model or cellular model with an active data plan if using X-401 with cellular.

Bench setup with PoE and Quick Start (before wiring)

What you need

  • ControlByWeb X-401 or Quad WebRelay

  • PoE switch (802.3af) and Ethernet cables

  • Computer

1. Power and network with PoE

  1. Plug the PoE injector or PoE switch into AC power.

  2. Connect an Ethernet cable from the injector/switch “PoE” port to the relay’s Ethernet port.

  3. Wait 30 to 60 seconds for the relay to boot. Status LEDs should be steady or blinking per the device manual.

2. Put your computer on the relay’s default subnet

Make sure your computer is connected to the same layer-2 network

Temporarily assign your computer a manual IP on 192.168.1.x.

  • Recommended values

    • IP address: 192.168.1.50

    • Subnet mask: 255.255.255.0

    • Router/Gateway: leave blank

  • If using Ethernet, turn off Wi-Fi to avoid routing through another network.

macOS
System Settings → Network → Ethernet → Details → TCP/IP → Configure IPv4: Manually → enter the values above → OK → Apply.


Windows
Control Panel → Network and Internet → Network Connections → right-click Ethernet → Properties → Internet Protocol Version 4 (TCP/IPv4) → Properties → Use the following IP address → enter the values above → OK → Close.

3. Open the setup page

  1. In a browser, go to http://192.168.1.2/setup.html.

  2. Sign in to the setup page. Typical defaults:

    • Username: admin

    • Password: webrelay (lowercase)

    • Control password: none by default

If the page does not load, confirm your computer IP is 192.168.1.50 and the Ethernet link lights are on.

4. Assign a permanent IP and restart

Choose one:

  • DHCP with reservation (preferred): set to DHCP, then reserve the device’s MAC in your router so it always gets the same IP.

  • Static: set an IP on your site LAN, plus subnet mask, gateway, and DNS.

Save and restart the device when prompted.

5). Restore your computer’s normal network

Change your computer back to its usual settings:

  • macOS: Configure IPv4 back to Using DHCP.

  • Windows: IPv4 properties back to Obtain an IP address automatically.
    Reconnect your Wi-Fi if needed.

6) Reconnect to the device at its new IP

Open a browser to the new IP you assigned. Confirm you can see both the Control page and the Setup page.

7) Name the device and relays

  • Device name: for example {Yard Name} Inbound X-401 or {Yard Name} Outbound X-401.

  • Relay labels:

    • Two-relay device: Relay 1 = Open, Relay 2 = Close.

    • Quad-relay device: R1 Open In, R2 Close In, R3 Open Out, R4 Close Out.

8) Set control behavior for testing

  • Set relays to Pulsed control.

  • Pulse time: start with 0.5 to 1.0 seconds.

  • Click Apply/Save.

9) Secure the device

  • Change the Setup password from the default.

  • Set a Control password if your model supports it.

  • Note credentials for handoff to Gatego.

10) Connect the device to ControlByWeb Cloud

  • Sign in to ControlByWeb Cloud.

  • Add or claim the device using the model’s supported method (serial or certificate token).

  • Verify the device shows Online in Cloud.

11) Quick bench test

From the device Control page or from Cloud:

  • Toggle Relay 1 and confirm the state changes.

  • Toggle Relay 2 and confirm the state changes.

  • Confirm pulse timing looks correct.

12) Label for field install

Print or write labels for the enclosure and panel:

  • Device name, IP address, and relay mapping

  • Example: “Inbound Gate — R1 Open, R2 Close”

You are now ready to move the controller to the gate cabinet and do the field wiring.

Did this answer your question?