> 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/dlp-self-help-course.md).

# DLP self-help course

Seven step-by-step lessons on writing DLPs, from first principles to logic operations and jumps, with worked examples to try.

The DLP (Downloadable Program) is the control program of QTech RTUs. DLPs are written and managed in a software package called DLP-IDE. The following training modules have been prepared to help you understand the DLPs and encourage technical staff to be familiar with the capabilities and best practices.

We provide these DLP control program learning modules for specialised automation engineers familiar with logical control and programming.

## What you need

* The [DLP IDE](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide.md) software, successfully installed.
* Familiarity with the Q90 configuration software.

Before reading each module, you should have read the previous module(s) and be comfortable with the concepts discussed within.

## The modules

| Module                                                                                                                                                          | You'll learn                                                                                                       |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [Module 01: DLP principles](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/dlp-self-help-course/module-01-dlp-principles.md)                    | The two sections of a DLP, naming points, real, telemetry, notional and spare registers, and the logic accumulator |
| [Module 02: Set up your DLP](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/dlp-self-help-course/module-02-set-up-your-dlp.md)                  | Choosing which inputs send COS messages, and copying I/O you don't change                                          |
| [Module 03: Digitals and DLP timers](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/dlp-self-help-course/module-03-digitals-and-timers.md)      | Testing and setting digitals, and delaying an alarm with a timer                                                   |
| [Module 04: Analogue setpoints and alarms](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/dlp-self-help-course/module-04-analogue-setpoints.md) | Comparing analogue values, and building a reservoir level controller                                               |
| [Module 05: Pulse counting](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/dlp-self-help-course/module-05-pulse-counting.md)                    | Counting pulses two ways, and resetting totals at midnight                                                         |
| [Module 06: Arithmetic functions](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/dlp-self-help-course/module-06-arithmetic.md)                  | Adding, subtracting, multiplying and dividing, and the analogue accumulators                                       |
| [Module 07: Logic operations and jumps](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/dlp-self-help-course/module-07-logic-and-jumps.md)       | OR, NOR and XOR, detecting a change, and skipping code with jumps                                                  |

## How the lessons work

* See [Write your first DLP](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/your-first-dlp.md).
* In the text, instructions are shown in capitals, such as `TCE`. In the examples they're in lower case.
* The equated variable names have been prefixed with a 3 letter code to indicate what type of IO register they are, such as `rdi_` for a real digital input. This is not mandatory, but you will find that debugging a complex DLP becomes a lot easier when you can tell what IO type a variable is just by looking at it.

{% hint style="info" %}
The course was written in 2010 for RTUs configured with Q90. Where the XL4 Plus differs, the lesson says so. Additional details on the syntax of all DLP commands can be found in the online help. See the [Instruction reference](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/instruction-reference.md).
{% endhint %}

The original PDFs are on [DLP IDE downloads](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/downloads.md).
