> 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/upgrade-xl4-to-xl4-plus/port-xl4-site.md).

# Port an XL4 site to the XL4 Plus in DATRAN VI

DATRAN VI, DLP and Workbench changes to make when an XL4 site becomes an XL4 Plus site.

In most cases an XL4 Plus RTU can be directly substituted for an XL4 RTU. However, there are some exceptions where changes are needed to take advantage of the new features.

{% hint style="info" %}
**Applies to:** sites moving from an XL4 (Q04 firmware v6.x) to an XL4 Plus (Q04 Plus firmware v7.x), either a new XL4 Plus or an upgraded XL4.
{% endhint %}

### Must do

#### Data logging: use datagram version 2

Where data is logged using the `_comms_hist_data_` object in DATRAN, then Datagram version 2 must be specified (old XL4 used version 1). When installing a new XL4 Plus ensure you apply the `_comms_hist_data_` object in DATRAN. This ensures that the RTU has the correct settings for data logging. See [Set up RTU data logging in DATRAN VI](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/data-logging/set-up-rtu-data-logging.md).

#### Modbus: check inputs and outputs

Depending on whether the RTU is a Modbus master or Modbus slave, then the sense of what is an input and what is an output may have changed. Previously the XL4 RTU always read inputs irrespective of whether it was the master or slave.

* If the XL4 Plus RTU is a **Modbus master** it always reads the slave's inputs.
* If the XL4 Plus RTU is a **Modbus slave**, its inputs are read by the Modbus master.

This may require remapping of a sites I/O when upgrading from an XL4 to an XL4 Plus. See [Modbus](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/modbus.md).

#### 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.

#### Save the licence

When a new XL4 Plus is installed, save a copy of the license file for future reference. It can be read by Workbench at any time to confirm the enabled options on your XL4 Plus. See [Licensing and features](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/licensing-and-features.md).

### Extended point count

Extended point count means that up to 65535 data points (of each data type RDI, RDO, RAI, RAO etc.) can be referenced in the RTU by DATRAN, previously it was only 255. To use the extended point count, it must be manually enabled in the comms object for the site in DATRAN:

1. Click on the `_comms_object_` for the site.
2. Press the **Insert** key. Type in `Use Extended Point Count`.

* **Packet length:** In the Channel objects the **Max Packet Length** property may need to be increased when using extended point counts. A reasonable value would be 4096.
* **Retry timeouts:** Due to the increased packet length, in the RTU comms object the RTU retry timeouts may need to be increased, especially if a 1200 baud analogue radio channel is used.
* **DLP:** To write a program (DLP) that uses the extended point count, an option needs to be set in the DLP-IDE. This is found on the menu bar at **Tools > Compiler Options** and check the box **Extended Point Count support**.

### Logged points

* For RTUs running V7.17 or older the maximum number of points that can be configured for RTU data logging is 35. This number is independent of the 65535 points that can be retrieved by a standard poll.
* For RTUs running V7.18 or later the maximum number of points that can be logged is 255. However, there are other settings that are important to set in DATRAN to enable this number of points to be logged, DATRAN itself must be running V6.78 or later to accomplish this. The segment size in the comms object may need to change. Please refer to the following application notes: Application Note - Guidelines for Administrators DATRAN V6\_78; Application Note - DATRAN V6\_78 HDI Datagram Settings; Application Note - Configuring DATRAN V6\_78 Persistent Queues; Application Note - Handling of Point Aliasing in DATRAN V6\_78.

### DLP changes

* **Time:** For firmware version 7.07 and earlier the time is in UTC. This is 12 hours behind NZST. It does not change with daylight saving. This means if you use `CKDOW` or similar to flag a midnight reset you will need to apply a 12 hour offset in your DLP. Due to requests, firmware version 7.08 and later all use local time as determined by DATRAN. This is the same behaviour as previous RTUs (XL4, Excel/Q03). New keywords are introduced into the DLP-IDE to allow access to the UTC time parameters. These are `UTCHOUR`, `UTCDOW`, `UTCDATE`, `UTCMTH`, `UTCYEAR`.
* **New keywords:** `Temperature`: RTU CP board temperature in degrees Celsius. `Voltage`: RTU supply voltage in decivolts. This keyword replaces `spa48`.
* **COSMASK:** There is an optional new syntax; refer to the DLP-IDE help.

### Pulse counting (PDIG)

It is now an option in Workbench to configure digital input 8 for fast pulse counting (up to 40kHz). In the XL4 it defaulted to fast counting. For the other digital inputs and for DI8 when fast counting is not selected, the pulse sampling interval is now configurable from 10ms to 100ms.

### Master and slave RTUs

* The XL4 Plus as a Master can have XL4 Plus, XL4 or eXcel (Q03) RTUs as slave RTUs. The slave RTUs can use RTU data logging as XL4 Plus Master RTU passes on the datagrams transparently.
* Take care to correctly configure the `_comms_hist_data_` nodes in DATRAN with the correct datagram version (v2 for XL4 Plus, v1 for all others).
* An XL4 Master can have XL4 Plus RTUs as slaves but we recommend the Master RTU is always an XL4 Plus.

See [Slave RTUs and store and forward](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/communications/slave-rtus-store-and-forward.md).

### Other differences

* **Notional points in Workbench:** The default viewing configuration is 16 values for all types. This can be modified by going to **Comms Options > Datran > Datran Slave RTUs** then in the right hand window you can modify the Notional Point Count settings. Note that it is not mandatory to specify the Notional Point Count unless you are using slave RTUs.
* **Q50:** This is not supported by the XL4 Plus.
* **Error codes:** These have been updated. See [Status lights and diagnostics](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/status-lights-and-diagnostics.md).
* **Restarting:** When the RTU is rebooted or re-powered it now performs a file consistency check. In some cases this can take in excess of 30 seconds after the green OK light starts flashing. Do not attempt to write new configurations using Workbench until 60 seconds after a reboot.
* **Archive log:** RTUs fitted with V7.19 Firmware also have a new feature called Archive log, which is not present in older versions of firmware. If you upgrade an XL4 to XL4 Plus the memory chip (128 MB NAND Flash) will not be present on the board and the Archive log feature will be unavailable. Contact QTech if you want this feature.
