> 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/install-and-wire.md).

# Install and wire

Front and side panels, power, digital inputs and outputs, and analogue I/O.

Mounting: DIN rail TS35. The XL4 Plus RTU is a drop-in replacement for the XL4 RTU, all connections and power requirements remain the same.

{% hint style="info" %}
**Applies to:** DATRAN XL4 Plus RTU (PD7402) with the Q22 I/O board, and XL4 RTUs upgraded to Q04 Plus firmware.
{% endhint %}

For the communication ports (RS485, RS232, Ethernet and USB), see [Communications](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/communications.md). For board jumpers, see [Jumper settings](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/jumper-settings.md).

## Before you start

* Power should be removed from the XL4 Plus RTU by removing the power connector before setting up and making any adjustments to the processor or I/O PCB.
* Both PCBs incorporate static discharge sensitive devices. An anti-static wristband should be worn and the earth connection of this wristband should be connected to the terminal marked **EARTH** on the Q04 Plus Processor PCB or the Q22 I/O PCB.
* When re-installing the Q04 Plus Processor onto the associated motherboard, check to ensure that the Q04 Plus Processor is correctly seated on the motherboard’s connectors. Make sure that the connectors are not misaligned.
* It is recommended that installers are equipped with a Laptop PC running Microsoft Windows and installed with QTech Workbench, plus a Type A-B USB cable in order to configure additional RTU settings for example, communications protocols and RTU module address. See [Install Workbench](https://help.qtech.co.nz/qtech/qtech-workbench/install.md).

## Front panel

![Front panel: digital outputs 1–4 (A), digital inputs (B), system lights (C) and analogue I/O (D)](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FsOv8b7QgmR068g059kuC%2Fxl4plus-front-panel.png?alt=media)

|   | Feature         | What's there                                                                                                                                            |
| - | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| A | Digital outputs | 1–4, with status lights that come on when the output goes low. Two **+** terminals connected to the supply, for driving relays.                         |
| B | Digital inputs  | 1–8, with status lights that come on when the input goes low. One **G** terminal connected to RTU ground.                                               |
| C | System lights   | See [Status lights and diagnostics](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/status-lights-and-diagnostics.md)              |
| D | Analogue I/O    | 1–4 are inputs only. 5 and 6 can be inputs or outputs. Two **+** terminals connected to the RTU supply, and one **G** terminal connected to RTU ground. |

## Side panel

![Side panel: USB host, RS232-B, Ethernet, CNFG, digital outputs 5–8, RS232-A, power and RS485](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2F0Tax3TWt6lcF8I5TTBRf%2Fxl4plus-side-panel.png?alt=media)

|   | Port            | Use                                                                                          |
| - | --------------- | -------------------------------------------------------------------------------------------- |
| E | USB             | USB 2.0 type A Host Port for peripherals, such as a USB drive with new firmware              |
| F | RS232-B         | Serial port used for specialised communication devices and peripherals                       |
| G | ETH             | 10/100 MBit Ethernet port for Base Station and/or peripheral communications                  |
| H | CNFG            | USB 2.0 type B for configuration, diagnostics, data/program and firmware exchange            |
| I | Digital outputs | 5–8, without status lights. Two **+** terminals connected to the supply, for driving relays. |
| J | RS232-A         | Serial port used for specialised communication devices and peripherals                       |
| K | PWR             | DC power input connector and power control signal for auxiliary equipment                    |
| L | RS485           | For Modbus or inter-module long distance, high speed communications                          |

## Power

{% hint style="danger" %}
**Warning:** Do not directly connect to 220V AC voltage. The New Zealand and Australian wiring regulations require that any wiring in excess of 32 volts must be carried out or be certified by a registered electrician. Consult your local electrical installer for further guidance.
{% endhint %}

The RTU can be supplied from 12-28V DC (battery operation is typically 12V or 24V). The RTU is factory configured for a nominal 12V DC supply, unless otherwise requested. The power option for the RTU, as shipped, is marked on the case label.

To choose a supply, charger or battery, see [Choosing a power supply](https://help.qtech.co.nz/qtech/accessories-and-power/choosing-a-power-supply.md) and [Power supplies and chargers](https://help.qtech.co.nz/qtech/accessories-and-power/power-supplies-and-chargers.md).

![Power connector: -V, +V and O/P](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2F3yl3YmGeKebvUDPxzwDR%2Fxl4plus-power-connector.png?alt=media)

| Terminal | Connect to                                                                                                                         |
| -------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| -V       | Power supply negative (ground)                                                                                                     |
| +V       | Power supply positive, 12–28 V DC                                                                                                  |
| O/P      | Nothing on the supply side. This is a switched positive **output** for auxiliary equipment. It was labelled C on older eXcel RTUs. |

{% hint style="warning" %}
The O/P terminal is an output. Don't connect it to the supply.
{% endhint %}

|                                            | Value                                                                                                                                                                                                  |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Supply voltage                             | 12–28 V DC                                                                                                                                                                                             |
| Quiescent current                          | 200 mA at 12 V; 100 mA at 24 V                                                                                                                                                                         |
| Internal fuse                              | A Plug-in 2 Amp TE5 fuse located on the Q22 protects the Module against reversed supply connection, over voltage supply and transient voltages. QTech part number for replacement fuses is FS-2AMPTE5. |
| Switched positive output (**+** terminals) | 1.5 A                                                                                                                                                                                                  |

### Set the RTU for 12 V or 24 V

Jumper J27 on the Q22 I/O board sets the low-voltage shutdown. Jumper J27 is located at the lower middle side of the Q22 as viewed with the front display panel to the right and the Q04 Plus Processor removed.

| Supply | J27    | RTU turns off at | RTU turns on again at |
| ------ | ------ | ---------------- | --------------------- |
| 12 V   | Fitted | 10.5 V           | 11.5 V                |
| 24 V   | Open   | 21 V             | 23 V                  |

The shutdown protects the battery from total discharge and stops the I/O board behaving erratically.

![Location of J27 on the Q22 board](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FKnyj0KpSMnFMJMlbe2Cf%2Fxl4plus-j27-location.png?alt=media)

### Low battery alarm

The RTU also raises a software low-battery alarm. The DLP (the RTU's control program) and the DATRAN base station can read it, through a Variable Status Poll. You can change the thresholds on the **Battery** tab in QTech Workbench.

| Supply | Alarm on below | Alarm off above |
| ------ | -------------- | --------------- |
| 12 V   | 11.5 V         | 12.5 V          |
| 24 V   | 23 V           | 25 V            |

### Fuse

The fuse is located at the lower right side of the Q22 I/O board as viewed with the front display panel to the right and the Q04 Plus Processor board removed. Always use the QTech recommended replacement part (FS-2AMPTE5).

![Location of the 2 A fuse on the Q22 board](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FmvKchDdSaJQHxg1dtTXN%2Fxl4plus-fuse-location.jpg?alt=media)

### Auxiliary equipment (O/P)

The O/P terminal is connected to the supply, but it switches off if the supply drops below the low-voltage threshold. Use it to power down expansion modules and other equipment. QTech Q23 and Q26 expansion modules detect it on their **C** input and power down when it goes low.

### Typical power wiring

![Typical 12 V wiring: power supply and charger, fuse, battery, XL4 Plus RTU, Tait radio and DATRAN I/O modules](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FoVzDGJTkV9bjQBVtl6OF%2Fxl4plus-power-wiring.png?alt=media)

* The XL4 Plus and associated peripherals should all share a common earth point.
* Care should be taken to avoid earth loops by ensuring that the system ground (common) is connected to earth in one place only.

## Digital inputs

There are 8 digital inputs, labelled 1–8, and a ground terminal labelled **G**. Connect them to relays, switches, solid-state switches or transistors.

* Inputs have an internal pull-up resistor that will pull the input terminal to the power supply ‘+’ when the input is open circuit (the “OFF” state).
* To turn an input **on**, connect it to **G**, through a set of contacts if needed. All **G** terminals are connected inside the RTU to the **-V** power terminal.
* The input's green light comes on when the input is on (closed).
* Some PLCs use the opposite convention. If needed, invert the input in the DLP or the PLC.

![Digital inputs: a switch between each input and G](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FM5B7c6n1jgiexggVNvgK%2Fxl4plus-qsg-digital-input.png?alt=media)

![Digital input circuit](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2Fc4tJZtHBpjBAs2siFj5D%2Fxl4plus-digital-input-wiring.png?alt=media)

{% hint style="warning" %}
The input voltage on any digital input channel should not be permitted to go above the power supply voltage.
{% endhint %}

### Timing and pulse counting

* When turning an input ON, the external device must ground the appropriate terminal for at least 100ms for the state to be detected in a DLP running on the RTU. When turning an input OFF, the external device must open circuit the appropriate terminal or hold it at the supply voltage, for at least 100ms for the new state to be detected.
* For shorter pulses, set the input to pulse counting mode in QTech Workbench. The minimum pulse width is then 20 ms.
* Digital input channel 8 can also be configured as a high-speed pulse counter, allowing pulses as narrow as 0.05ms (40 kHz) to be counted. This feature is configured in QTech Workbench.

![Input 8 as a high-speed counter](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FPE5hEjdTfqmtG9DeV8MA%2Fxl4plus-high-speed-counter.png?alt=media)

|                                                     | Value                                                                |
| --------------------------------------------------- | -------------------------------------------------------------------- |
| Inputs                                              | 8. Each input is individually opto-isolated but has a common ground. |
| Minimum input current                               | 1 mA                                                                 |
| On-state current, typical                           | 2.5 mA at 12 V supply; 5 mA at 24 V supply                           |
| Maximum on-state resistance of the switching device | 4K7 Ω at 12 V supply; 10 kΩ at 24 V supply                           |
| Maximum source resistance                           | 5 kΩ at 12 V; 10 kΩ at 24 V                                          |
| Low-pass filter cut-off (3 dB)                      | 34 kHz                                                               |
| Over-voltage protection                             | Clamped to 1.5V over supply voltage for surges <250mA                |
| Minimum pulse width                                 | 100 ms for inputs 1–7; 20 ms for input 8                             |
| Change-of-state detection                           | 100 ms minimum, any input                                            |
| Pulse counter, minimum pulse width                  | 20 ms                                                                |
| High-speed counter (input 8), minimum pulse width   | 0.05 ms                                                              |

## Digital outputs

There are 8 digital outputs in two banks. Outputs 1–4 are on the front panel and have status lights. Outputs 5–8 are on the side panel and have no lights.

* An output that's **on** is switched to ground. An output that's **off** is open circuit.
* Each bank has two **+** terminals. These carry the RTU's switched positive supply, for driving relay coils. They switch off if the RTU's under-voltage protection operates (typically at 10.5 V on a 12 V system).
* When switching inductive loads, it is recommended good practice that such loads be fitted with their own fly back or free-wheeling diode.

![Digital output driving a relay coil between the output and the + supply](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FOeupGb4yohYCP5Wmt0He%2Fxl4plus-qsg-digital-output.png?alt=media)

![Digital output relay control](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FYr7b0zHo5U5dK16M0iRf%2Fxl4plus-digital-output-relay.png?alt=media)

{% hint style="warning" %}
Relays and other control devices should always be wired to be failsafe. Always ensure that any equipment attached to relays goes into a safe state when the relay or controlling device is removed or not powered.
{% endhint %}

Limit the total continuous switching current to 1 A. The RTU internal 2 Amp fuse may operate if too many channels are active at this current.

### Over-current protection

If an output carries more than about 4 A, it turns off and stays off until the fault clears. To change this, remove jumper J28 on the Q22 board. An over-current then puts the output into a 500 mA current limit until the fault clears. J28 is at the centre lower right of the Q22 board.

![Location of J28 on the Q22 board](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2Fa6lYAL63zkRH7v9r5zIW%2Fxl4plus-j28-location.png?alt=media)

Outputs 1–4 can also flash their status light to show output protection or open-circuit detection. You can turn this on for each output.

![Digital output internal circuit](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FZr4UL5GrOnkEV2CVIMQO%2Fxl4plus-digital-output-circuit.png?alt=media)

|                                | Value                                                                                                                    |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| Outputs                        | 8, in two banks, with two **+** terminals per bank                                                                       |
| Status lights                  | Outputs 1–4 only                                                                                                         |
| Continuous current             | 1 A maximum per output; 2 A total for all outputs, limited by the internal fuse                                          |
| Peak current                   | 3 A for 25-100ms before overcurrent protection will trip                                                                 |
| Output resistance              | 1 Ω typical                                                                                                              |
| Over-voltage clamp             | 65 V. Output voltage is clamped at 65 volts to help reduce the effects of voltage spikes when switching inductive loads. |
| Current limit (J28 removed)    | 500 mA                                                                                                                   |
| Over-temperature shutdown      | 170 °C                                                                                                                   |
| Open-circuit detection current | 50 µA, when the output is off                                                                                            |

## Analogue inputs and outputs

There are six analogue channels on the front panel.

| Channel | Single-ended input | Differential input  | Single-ended output |
| ------- | ------------------ | ------------------- | ------------------- |
| 1 and 2 | Yes                | Yes, as one channel | No                  |
| 3 and 4 | Yes                | Yes, as one channel | No                  |
| 5       | Yes                | No                  | Yes                 |
| 6       | Yes                | No                  | Yes                 |

Each channel can work as 4–20 mA (the factory setting), 0–20 mA, 0–5 V or 0–10 V. You choose the mode with jumpers on the Q22 board: see [Jumper settings](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/jumper-settings.md). For 4–20 mA, set the jumpers for 0–20 mA, then set the channel to 4–20 mA in QTech Workbench.

* In addition to the analog channels the terminal labelled ‘G’ is a system ground connection. For Single Ended channels, the I/O signal is referenced to this ground terminal.
* The terminals labelled ‘+’ are connected to the internal switched positive supply rail. These can be used to source power to instrumentation.
* As with any analog measurement system, care must be taken to correctly earth the equipment to prevent earth loops.
* Inputs use a 10-bit analogue-to-digital converter. Outputs use 8-bit pulse width modulation.

| Analogue light | Meaning                                                                                                             |
| -------------- | ------------------------------------------------------------------------------------------------------------------- |
| Off            | Indicates that the analog input is at 0V, 0mA, or less than 4mA, depending on the mode configured.                  |
| On             | Indicates that the analog input is within the specified voltage or current range, depending on the mode configured. |
| Flashing       | Indicates that the analog input is at full scale or higher dependent upon the mode configured.                      |

### Loop-powered and separately powered transmitters

For all analog inputs, the current return path is via the ground of the RTU power supply.

* **Loop-powered (2-wire)** devices take their power from the loop current. Check the device is rated for the voltage left for it: the RTU input drops 5 V at 20 mA. For example, on a 13.7 V DC supply the transducer has at most 8.7 V.
* **“Separately Supplied”, or “4-Wire”** devices are analog transmitters that have a separate power supply from the analog signal loop. If suitable, these devices can be powered from the RTU power supply and wired as shown. If the RTU power supply is not suitable, the analog sensor can be powered from a separate power supply as long as the grounds of both the RTU and the other power supply are connected together.

![2-wire and 4-wire transmitters on the analogue terminals](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FOI4dCT623vrMJXCmexRv%2Fxl4plus-qsg-analog-2wire-4wire.png?alt=media)

### Single-ended inputs

![0–5 V single-ended input](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FCIWKVwNy2YtTsXvR00H4%2Fxl4plus-ai-single-ended-0-5v.jpg?alt=media)

![0–10 V single-ended input](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FzpR8T1qnqulFKBznFTnd%2Fxl4plus-ai-single-ended-0-10v.jpg?alt=media)

![0–20 mA and 4–20 mA single-ended input](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2Fbi2Cv4s4pc7SxZqFJsa4%2Fxl4plus-ai-single-ended-ma.jpg?alt=media)

|                         | Value                                                                                 |
| ----------------------- | ------------------------------------------------------------------------------------- |
| Channels                | 6, each buffered                                                                      |
| Input resistance        | Over 100 kΩ (0–5 V); 20 kΩ (0–10 V); 250 Ω (0–20 mA and 4–20 mA: a 5 V drop at 20 mA) |
| Input voltage           | 0 V minimum, 15 V maximum                                                             |
| Over-voltage protection | Clamped to 1.5V outside supply voltage for surges <200mA                              |

### Differential inputs

Analog input channels 1 & 2 and/or 3 & 4 can be configured together to form two separate differential input channels. When configured as differential inputs analog input channels 1 and/or 3 are the positive inputs and analog input channels 2 and/or 4 are the negative inputs.

![0–5 V differential input](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FkqrDxbhftVL0FA3qmXRB%2Fxl4plus-ai-differential-0-5v.jpg?alt=media)

![0–10 V differential input](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FeepkiOkuejvxuDelo7IN%2Fxl4plus-ai-differential-0-10v.jpg?alt=media)

![0–20 mA and 4–20 mA differential input](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2Fv64nwqUgm8wug25203lF%2Fxl4plus-ai-differential-ma.jpg?alt=media)

|                           | Value                                                    |
| ------------------------- | -------------------------------------------------------- |
| Channels                  | 2                                                        |
| Common-mode input voltage | 0 V minimum, 10 V maximum                                |
| Over-voltage protection   | Clamped to 1.5V outside supply voltage for surges <200mA |

### Outputs

Only channels 5 and 6 can be outputs. Outputs are single-ended: the negative side is at ground (the **G** terminal).

|                         | Value                                                          |
| ----------------------- | -------------------------------------------------------------- |
| Channels                | 2 (5 and 6)                                                    |
| Output current          | 100 mA maximum                                                 |
| Maximum load impedance  | 50 Ω Max for the 0 – 5V range; 100 Ω Max for the 0 – 10V range |
| Over-voltage protection | Clamped to 1.5V outside supply voltage for surges <200mA       |

## Next

[Set up and check it is working](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/set-up.md): connect QTech Workbench, set the RTU address and check the lights.
