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

# Install and license the DLP IDE

Run the setup wizard, enter your licence key, and set the compiler and editor options before you write your first DLP.

This release comes with a user friendly Setup Wizard to help simplify installation. For first time users, it is important to check the Compiler Options.

{% hint style="info" %}
**Applies to:** DLP IDE V4.x. This version replaces all previous versions of DATRAN DLP IDE.
{% endhint %}

## Before you start

* **Get a licence key from QTech.** DLP IDE is individually licensed to each machine. Before installing the software please ensure you have a license key from QTech. No additional licensing is required for registered users and multiple user licenses are available as required.
* **Close your other programs.** It is recommended that all applications running on the target machine be closed before an update is started.
* The Target Machine does not have to be restarted after the installation.

{% hint style="warning" %}
**Upgrading from V4.03 or earlier?** The improvements made for Windows 10, and IT privilege restrictions, changes where the license key is stored. 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. See [Enter your licence key](#enter-your-licence-key).
{% endhint %}

## Install the DLP IDE

1. Please download DLP IDE from the members section of the QTech website. See [DLP IDE downloads](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/downloads.md).
2. Double click on `DATRAN_DLP_IDE_vx_xx_Setup.exe`.
3. This is the **Welcome** screen, click **Next**.
4. This is the software license screen. Please read all of the terms and conditions and if you agree click **I accept the agreement** and then click **Next**, otherwise click **Back**.
5. This is the location screen. Click **Next** to accept the default (recommended) location. If you wish to change the location click **Browse**.
6. This is the start menu folder screen. To create a shortcut in the default location (recommended) click **Next**. If you wish to change the location click **Browse**.
7. This is the additional task screen. To create these icons check the required box(es) and click **Next**.
8. This is the install screen. To start installation click **Next**.
9. This is the completion screen. For the installation to be complete click **Finish**.

Pressing **Cancel** will exit the installation and leave the system unaffected and unchanged.

## Enter your licence key

If your license has expired or you have purchased a new license then you will need to select **Enter License** from the **Help** menu.

1. Select **Enter License** from the **Help** menu.
2. Obtain the license from QTech Data Systems Ltd. You will need to provide the product serial number as displayed in the dialog box.
3. Type the licence key from QTech.

* If there is no license entered or this is the first time you are entering the license the edit box should be blank.
* If you have entered an invalid license, check that you have entered the correct numbers. Also, check that you have been given the correct numbers.
* If you have an expired license the dialogue box will display when the license expired. Please renew your license by getting a new one from QTech Data Systems Ltd.

Once your new license key has been entered you will be allowed to use the application until the license expires.

## Set the compiler options

For first time users, it is important to check the Compiler Options. To get to the Compiler Options, go to the main menu and select **Tools > Compiler Options**.

![The Compiler Options dialog](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FIQDhP0PE6iW9zUhnZp7s%2Fdlp-ide-compiler-options.png?alt=media)

| Option                                         | When it's ticked                                                                                                                                                                                                                  |
| ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Disable extended TIMER syntax                  | `TIMER` is not recognised as an ASM instruction.                                                                                                                                                                                  |
| Inhibit unequated I/O references               | Currently this check box does not do anything.                                                                                                                                                                                    |
| Inhibit unequated label identifiers            | Named labels have to be equated before they can be used in the `PROGSTART` section of the ASM/LDR file.                                                                                                                           |
| Automatically disable all NDIN change of state | NDIN change of state is automatically disabled if there is no use of the `NCOSMASK` instruction in the ASM/LDR file. This is done by inserting the `NCOSMASK` instruction into the DLP file compiled from the ASM/LDR file.       |
| Extended Point Count Support                   | The valid indexes for IO points are in the \[1..65535] range rather than the usual \[1..255]. See [Extended point count](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/configure.md#extended-point-count). |

## Set the editor options

To get to the Editor Options, go to the main menu and select **Tools > Editor Options**.

| Option                                               | What it does                                                                                                                                                                                                                                   |
| ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Visible right margin, Right margin                   | Visible right margin - Determines whether a grey line is drawn at the right side of the editor area. Right margin - Determines the width of the right margin                                                                                   |
| Visible gutter, Gutter width, Line numbers in gutter | Visible gutter - Determines whether the line numbers are displayed at the left side of the editor area. Gutter width - Determines the width of the gutter. Line numbers in gutter - Shows or hide the line numbers in the gutter.              |
| Editor font, Size                                    | Editor font - Determines the font of the text inside the editor area. Size - Determines the size of the font of the text inside the editor area. It is advisable to set font size to a minimum of 8 for clear visibility of the entire ladder. |
| Bracket highlighting                                 | Shows the other pair of a bracket if the cursor is placed to the left of a bracket                                                                                                                                                             |
| Auto save source on build                            | Saves the ASM file before the DLP file is built                                                                                                                                                                                                |
| Backspace unindents                                  | Pressing the backspace key unindents the line                                                                                                                                                                                                  |
| Smart tab                                            | Tabbing that follows the content above it                                                                                                                                                                                                      |
| Tab stop                                             | Inserts tabs instead of spaces when the tab key is pressed                                                                                                                                                                                     |
| Auto indent                                          | Automatically indents the next line of code                                                                                                                                                                                                    |
| Cursor beyond end of line                            | Determines whether the cursor is allowed to go beyond the end of the line                                                                                                                                                                      |
| Show build result message                            | Pops up a message when the build has completed successfully or failed                                                                                                                                                                          |
| Wraps to end of previous line                        | Pressing the left arrow key when the cursor is at the beginning of a line in an ASM file will bring the cursor to the end of the line above it                                                                                                 |

On the **Color** tab: Bold - Sets the text font to bold. Underline - Sets the text font to have an underline. Italic - Sets the text font to italics. The **Set defaults** button sets all the attributes of the elements back to their default values. Remember to click on the **OK** button for the new settings to take effect.

## Next steps

* [Write your first DLP](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/your-first-dlp.md)
* [DLP self-help course](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/dlp-self-help-course.md)
