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

# Install and wire

Power, ports and the Q04 processor board jumpers on the XL4 RTU, and what's the same as the XL4 Plus.

The XL4 RTU mounts on DIN Rail TS35 and is designed to operate with DC power supply voltages of nominally 12 or 24V. This page covers what's specific to the XL4.

{% hint style="info" %}
**Applies to:** DATRAN XL4 RTU with Q04 firmware v6.x and the Q22 I/O board, revision D. From the XL4 Owners Manual v1.1 and Quick Start Guide v1.1.
{% endhint %}

## What's the same as the XL4 Plus

Use these XL4 Plus pages for the XL4:

| Topic                                                                                             | Where                                                                                                                                    |
| ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Front panel, digital inputs, digital outputs, analogue I/O wiring, 2-wire and 4-wire transmitters | [Install and wire](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/install-and-wire.md) on the XL4 Plus pages       |
| Power connector (-V, +V, O/P), the 12 V or 24 V jumper J27, the fuse, typical power wiring        | [Install and wire: Power](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/install-and-wire.md#power)                |
| Q22 I/O board jumpers and the analogue I/O jumper tables                                          | [Jumper settings](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/jumper-settings.md)                               |
| RS485, RS232 pinouts                                                                              | [Communications](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/communications.md)                                 |
| Cables to radios, modems and PLCs                                                                 | [Cables between radios and RTUs](https://help.qtech.co.nz/datran/datran-telemetry/planning-and-design/cables-between-radios-and-rtus.md) |

{% hint style="warning" %}
Note. The voltage applied to an analog input channel should never be greater than 15V or less than 0V.
{% endhint %}

{% hint style="warning" %}
Note. Each of the single ended analog inputs are clamped with BAV99 high speed switching diodes to both ground and +15 volts to keep the input voltage to the op-amp in the range 0 to +15 volts. Analog input voltages outside 0 to +15 volts will cause the clamping diodes to conduct and draw current from the analog input source. The BAV99 diodes are rated at 200mA forward current. Therefore care must be taken to ensure that over-voltage/under-voltage analog input currents do not exceed 200mA.
{% endhint %}

{% 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 %}

## Where the XL4 differs

| Topic                | XL4 RTU (Q04 firmware v6)                                                                                                                                                                                                                                                                                                                                                                                   |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Supply voltage       | 11–28 V DC (Owners Manual). The Quick Start Guide says 12–30 V DC.                                                                                                                                                                                                                                                                                                                                          |
| Total output current | The total digital switching current is limited to approximately 1.5 amps by the DATRAN XL4 internal 2 amp fuse.                                                                                                                                                                                                                                                                                             |
| Input 8              | Channel 8 can be configured as a high speed pulse counter, allowing pulses with duration less than 20 ms to be detected. Please contact QTech for application specific details.                                                                                                                                                                                                                             |
| Ethernet             | If you want to directly connect a device that is not on a LAN, such as a local HMI you can use a patch cable. This will need to be a crossover cable. Ethernet cable has a maximum length of 100m but can be extended by using a repeating device such as a switch or hub. See [Modbus and Ethernet](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-rtu/modbus-and-ethernet.md#ethernet-port). |
| USB host port (USB)  | The USB Host Port is not currently implemented, and is intended for future feature development. The Configuration Port is also used for I.C.P. (In circuit programming) of the system firmware: see [Firmware upgrade](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-rtu/firmware-upgrade.md).                                                                                                |
| Archive log          | To use the Archive log, your RTU must be upgraded to V7.19 firmware or later, have both the chip fitted and have the Archiving logging feature enabled, provided by a license key for the feature on your RTU. Older RTUs that have been upgraded from an XL4 to an XL4 Plus may have a 4MB NOR Flash chip fitted on Rev A boards.                                                                          |
| RTU address          | The address for the XL4 is configured using QTech Workbench. The module address can be any number between 1 and 239. The Q04 ARM Processor does not have a DIP Switch setting like the Q03 Processor.                                                                                                                                                                                                       |
| Reset                | The Q04 ARM Processor does not include an externally accessible reset switch like the Q03 Processor. If the module needs to be manually reset, simply remove the power for a few seconds and then reconnect it.                                                                                                                                                                                             |

## Side panel and ports

![XL4 side panel: USB host, RS232-B, ETH, CNFG, RS232-A and RS485](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FWQxguExWm5BgjciCNDQp%2Fxl4-rtu-side-panel.png?alt=media)

| Port    | Where               | Use                                                                                                                                                                                                                                                                                                         |
| ------- | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| RS232-A | Q04 processor board | Specialised communication devices and peripherals. These include PLC Interfaces, Cellular modems, Data Radios, modems etc.                                                                                                                                                                                  |
| RS232-B | Q22 I/O board       | Specialised communication devices and peripherals. The RS232-B port can be configured via J23 on the Q22 I/O board to provide an output voltage (+Vsup) on pin 8. This is of specific use for the [Q71 external 1200bps modem](https://help.qtech.co.nz/datran/datran-telemetry/radios/q71-radio-modem.md). |
| RS485   | Q04 processor board | Inter-module long distance, high speed communications                                                                                                                                                                                                                                                       |
| ETH     | Q04 processor board | 10/100 MBit Ethernet port. This port can be used for Base Station or peripheral communications via such protocols as QComms, DNP3, Modbus Slave/Master, etc.                                                                                                                                                |
| CNFG    | Q04 processor board | Used for on-line configuration, diagnostics and data/program exchange, and for I.C.P. (In circuit programming) of the system firmware. Uses a Type A to Type B USB cable. Maximum cable length is 5 meters.                                                                                                 |
| USB     | Q04 processor board | USB Host Port. The USB Host Port is not currently implemented, and is intended for future feature development.                                                                                                                                                                                              |

{% hint style="warning" %}
The XL4 RS485 port is an RJ12 connector, identified by having 6 contacts. The previous Q03 RS485 connectors were an RJ10 connector with 4 contacts. Ensure that the 6 contact RJ12 is plugged into the XL4 RTU. Do not attempt to insert the 4 contact RJ10 into the RTU, this must be inserted in the expansion module (Q23/Q26 etc). Forcing an RJ10 plug into the XL4 can damage the socket.
{% endhint %}

### What each serial port can do

The specific application and required settings are configured using the QTech Workbench configuration software.

Communication Protocols Supported on the Ethernet port: DATRAN base comms (Qcomms), MODBUS (RTU as master or slave), DNP3 (RTU as slave).

The XL4 supports RS232 port baud rates up to 19,200bps for Modbus. See [Modbus and Ethernet](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-rtu/modbus-and-ethernet.md).

### RS232 cables

* Standard 8 way RJ45 crimp plugs are used in making up serial port interconnection cables. These plugs are designed for use with stranded (24/26 AWG) 8 core flat data cable. An RJ45 crimping tool must be used to crimp the RJ45 plugs onto the data cable to ensure proper and reliable crimping. Improperly crimped connectors can damage the RJ45 socket and cause unreliability.
* In general the RS232 serial port can be extended up to a maximum of 15 metres. Beyond this distance communications will be unreliable. In electrically noisy environments it is necessary to use screened data cable and keep the cable length as short as possible.

## Q04 processor board

The power should be removed from the XL4 RTU by removing the power connector before carrying out any of the configurations. 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 Processor before any adjustments are made.

![Q04 processor board layout: status lights, RS485 jumpers, real-time clock battery, flash memory, ISP jumpers, factory default (INIT) jumper and ports](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2Fe5itk7TaG6cEHhhhiAUB%2Fxl4-q04-processor-layout.png?alt=media)

| Jumper  | Use                                                                                                                                                                                                                                                                                                                                                          |
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| INIT    | When closed, this jumper will cause the RTU to load the factory default settings on power-up. The jumper is normally open, and should be returned to the open position after performing a factory default operation.                                                                                                                                         |
| 485TERM | Close jumper **A** to provide a 120 ohm termination to the RS485 lines. Jumper **B** should not be installed and is provided for future RS422 termination options.                                                                                                                                                                                           |
| BAT     | When open, this disables the real time clock battery backup function. This allows the battery to be disconnected and preserved during long term storage of the module. This jumper is closed for normal operation, open for long term storage.                                                                                                               |
| ISP     | These jumpers are normally open in normal use. They must be closed when upgrading the firmware through the QTech Workbench software, if this feature is available. The jumpers must then be opened again once the firmware update is completed. See [Firmware upgrade](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-rtu/firmware-upgrade.md). |
| DEBUG   | This jumper is only used by QTech developers when developing software for the XL4.                                                                                                                                                                                                                                                                           |

A jumper is closed when a jumper shorting link is installed on the jumper. A jumper is open when a jumper shorting link is removed/not installed.

## Before you start

* The XL4 is configured using software called [QTech Workbench](https://help.qtech.co.nz/qtech/qtech-workbench.md). Connection to your PC is via a USB cable (Type A to Type B). See [Configure](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-rtu/configure.md).
* The XL4 and associated peripherals should all share a common earth point.
* The **O/P** terminal is an OUTPUT. Do not connect it to the supply. This was previously labelled **C** on eXcel RTUs.

## Next

[Configure](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-rtu/configure.md): connect QTech Workbench, set the RTU address and the ports.
