> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/set-up.md).

# Set up and check it is working

Connect QTech Workbench, set the RTU address, check the lights, and reset to factory defaults.

You set up the XL4 Plus with QTech Workbench, free configuration software for Windows. Connect a PC to the RTU's **CNFG** port with a USB Type A to B cable, set the RTU address, then check the status lights.

{% hint style="info" %}
**Applies to:** XL4 Plus, firmware v7.x, with QTech Workbench v2.0 or later. QTech Workbench V2.16 or later must be used to view, licence and configure the Archive log (NAND) service.
{% endhint %}

## What you need

* A Windows PC with QTech Workbench installed. Download it from the [Workbench page](https://qtech.co.nz/product/workbench/) on the QTech website.
* Microsoft .NET Framework. Workbench uses .NET Framework 4. If it isn't installed, turn on versions 3.5 and 4.8 in Windows (Settings > Apps & Features > Programs and Features), or download it from Microsoft.
* A USB cable, Type A to B (typically the same as used for a printer). The maximum cable length is 5 m.

## 1. Power up and wait

Connect the power. Immediately after rebooting or powering up the RTU the device will perform a file consistency check which may take up to 30s. Attempts to write configuration data to the RTU in this time will fail and the user should wait until the device is ready before updating the RTU configuration (this will be communicated by Workbench). Do not attempt to write new configurations using Workbench until 60 seconds after a reboot.

## 2. Connect QTech Workbench

1. Connect the USB cable between the PC and the **CNFG** port.
2. Open Workbench. The first time, wait for Windows to install the USB drivers.
3. If needed, select **DATRAN XL4 Plus RTU** from the **Device Type** menu.
4. Click **Connect**.
5. In the **Overview** category, check the RTU's serial number is shown, and note the firmware version.

If the serial number shows as `?????`, see [Troubleshooting](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/troubleshooting.md).

## 3. Set the RTU address

Every RTU has a unique site address so that a DATRAN VI Base Station can communicate with it. Unlike older model DATRAN RTUs, the address for the XL4 Plus is configured using QTech Workbench.

* The module address can be any number between 1 and 239, when configuring the device to connect to a DATRAN Base Station (serial or ethernet) in Workbench.

## 4. Configure the rest

Set the communication ports, I/O and protocols. See [Configure](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/configure.md) and [Communications](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/communications.md). When you're done, save the configuration to a file (**File > Save**).

## 5. Check the status lights

| Light      | What you should see                |
| ---------- | ---------------------------------- |
| ON (blue)  | On                                 |
| OK (green) | Fading slowly on and off           |
| ER (red)   | Off when no error condition exists |

The ER light flashes 7 times when the DLP is not loaded or is corrupted. No DLP is loaded in the factory default because there is an autoload feature available in DATRAN so that when an RTU is being replaced the existing DLP is autoloaded. To enable that feature in DATRAN, go to DLP settings in the TBD file for that site.

For every light and code, see [Status lights and diagnostics](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/status-lights-and-diagnostics.md).

## 6. Check the inputs

* To turn a digital input ON, connect it to **G**. The LED associated with each digital input will light up when the input is Active/On/Closed.
* Check each analogue input's light. If the LED is off, it means the input signal is zero, or under-range. When the LED is on, it indicates the signal is within the measuring range that the input has been configured for. If the LED is flashing, it shows the signal is over-range.

## 7. Set the clock

When an RTU is first installed or upgraded from XL4 to XL4 Plus a time synch needs to be manually done. This can be done either from Workbench or by resetting the comms object in Datran.

The real-time clock keeps the day, date and time (12 or 24 hour), and has a backup battery.

## Reset to factory defaults

The factory default settings can be loaded back into the RTU using the **Factory Default** button in Workbench.

There's also a hardware method, using the INIT jumper on the processor board. Use it only if QTech staff tell you to:

1. Disconnect all the I/O connectors.
2. Fit the INIT jumper and power up. The RTU restores its factory defaults.
3. It is very important to remove the INIT jumper **before** reconnecting the connectors.

{% hint style="danger" %}
Powering up the unit with the INIT jumper fitted and with a digital input wiring harness in place may render the unit inoperable.
{% endhint %}

The factory default has no DLP loaded.

## Restart the RTU

There's no reset button. To restart the RTU, remove the power for a few seconds, then reconnect it. The OK light flashes 6 times quickly after every restart.

## Store a spare RTU

For long-term storage, open the **BAT** jumper on the processor board to disconnect the clock battery. Close it again before you put the RTU into service. See [Jumper settings](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/jumper-settings.md).
