> 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-vi-scada/datran-dlp-ide/common-questions.md).

# Common questions

Quick answers to common questions about the DLP IDE and DLPs.

Quick answers to common questions about the DLP IDE and DLPs. Each links to the full answer.

## Before you start

[**Do I need the DLP IDE to use a DATRAN RTU?**](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide.md)\
No. In a normal RTU without a DLP all real inputs are connected to the telemetry inputs and all telemetry outputs are connected to the real outputs. There is no manipulation of signal either way and so the RTU firmware copies the real signal directly to telemetry signals. The DLP IDE is intended to simplify the writing of DLPs for DATRAN RTUs.

[**Does the DLP IDE need a licence?**](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/install.md)\
Yes. DLP IDE is individually licensed to each machine. Before installing the software please ensure you have a license key from QTech. To enter a new license, select **Enter License** from the **Help** menu.

[**Can I write DLPs in ladder logic?**](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/ladder-editor.md)\
Yes. LADDER editing is a simple implementation of ladder logic similar to that used for PLC programming. The Build menu allows you to build the currently displayed ladder. This internally converts the ladder to ASM code. It then builds the DLP file.

[**Can I use more than 255 points of a type in a DLP?**](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/instruction-reference/io-types.md)\
Yes. 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. Extended point count was introduced in Datran 6.70 and RTU firmware V7.00. To use the extended point count, it must be manually enabled in the comms object for the site in DATRAN. To write a program (DLP) that uses the extended point count, an option needs to be set in the DLP-IDE: in Tools > Compiler Options, check the box **Extended Point Count Support**.

## Writing and loading DLPs

[**How do I get the DLP out of an RTU so I can see what it does?**](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/compile-and-load.md#read-a-dlp-back-from-an-rtu)\
In the right click popup menu of the **Module Connectivity** pane, **Download DLP** downloads the DLP from the module.

[**How do I delay an alarm so short events aren't reported?**](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/dlp-self-help-course/module-03-digitals-and-timers.md#step-4-delay-an-input-before-it-reaches-datran)\
Start (or maintain) a timer while the input is on, and shut down and reset it immediately if the input is off. When `TimerD1` is true, the timer has run to completion: set the telemetry back to the base station then. The input is delayed in its transmission back to the base station when it becomes TRUE, but is transmitted immediately when it becomes false.

[**How do I count flow pulses?**](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/dlp-self-help-course/module-05-pulse-counting.md#step-2-count-pulses-with-the-pulse-counters)\
To enable `PANL` counting on a particular digital input, set the associated `PDIG` register to True during the PROGINIT section of the DLP. The `PANL` register contains the number of pulses that have occurred since the last time the register was read. Add pulses that occurred since the last DLP cycle to the running total.

[**How do I reset a total at midnight?**](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/dlp-self-help-course/module-05-pulse-counting.md#step-3-reset-a-total-at-midnight)\
Recent techniques use resets that are triggered internally in the DLP using the RTU real time clock registers. By testing one or more of these registers (such as `CKDOW`) to see if they equal a certain value, or by waiting for one or more to change state, we can cause an event (like a pulse count reset) to occur at any time we choose. It is quite common to also include a "Total Yesterday" value.

[**Which DLP IDE version do I need to read floating-point values from a Modbus device?**](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/release-notes.md)\
XL4 Plus RTU Firmware v7.16 requires a new version of DLP IDE (v4.04) to be installed to enable utilising Floating-Point numbers in any DLP that requires Floating-Point registers.

## When something's wrong

[**Why can't the DLP IDE find my licence after I upgraded?**](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/troubleshooting/licence-missing.md)\
The licence key is now stored in the HKEY\_CURRENT\_USER rather than HKEY\_LOCAL\_MACHINE. This change may create issues for users updating from prior versions of DLP IDE. The symptom is the licence key cannot be found, and the application will not run properly. The resolution is to re-apply the licence key so that it is stored in the new location, by selecting **Enter License** from the **Help** menu.

[**Why have my inputs stopped reaching DATRAN since I loaded a DLP?**](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/troubleshooting/inputs-outputs-not-working.md)\
`TELINP` and `TELOUT` are indiscriminate and will sever the link to all IO. `CPDIG` and `CPANL` reconnect the points we don't want to modify.

[**Why does the RTU keep rejecting my DLP?**](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/troubleshooting/rtu-rejects-dlp.md)\
The `NCOSMASK` command is only supported in firmware version v5.20 and above.

[**Something else?**](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/troubleshooting.md)\
See Troubleshooting, organised by what you're seeing.
