> 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/troubleshooting/wont-build.md).

# My DLP won't build

Common reasons a DLP fails to build: names with dashes, labels, macros, the old COSMASK syntax, and register numbers above 255.

When a build fails, check these common causes.

| Cause                                                                                                          | Fix                                                                                                                                                                                                                                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| A name contains a dash                                                                                         | It is advisable not to use dashes/hyphens in `EQU` and `EQULAB` names, as this will cause errors in the compiler.                                                                                                                                                                                                                      |
| A name contains a space                                                                                        | Never include spaces in the name.                                                                                                                                                                                                                                                                                                      |
| A label is used before it's named                                                                              | If **Inhibit unequated label identifiers** is checked in **Tools > Compiler Options**, named labels have to be equated (`EQULAB`) before they can be used in the `PROGSTART` section. In the ladder editor, a label needs to be declared before a jump statement.                                                                      |
| A jump comes after its label (ladder editor)                                                                   | Jump statements to a label must be placed before the label statement. If the label is placed before the jump statement, compiling the ladder will cause a compiler error to occur.                                                                                                                                                     |
| "An internal exception of type ERangeError occurred with the message: Range check error", in a DLP with macros | A fix is provided in DLP IDE V4.05 for an issue that caused DLP programmes using macros to not build and compile properly.                                                                                                                                                                                                             |
| An older ASM file with the obsolete `COSMASK` syntax won't compile                                             | A fix is provided in DLP IDE V4.04 which rectifies compilation of older ASM files using an obsolete syntax for `COSMASK`. The latest syntax for this instruction should be used in all new programs: see [COSMASK](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/instruction-reference/program-structure.md#cosmask). |
| A register number is above 255                                                                                 | Tick **Extended Point Count Support** in **Tools > Compiler Options**. The RTU must support it, as the XL4 Plus does.                                                                                                                                                                                                                  |
| The extended `COSMASK TDIN1, 8, true` syntax isn't accepted                                                    | Tick **Extended Point Count Support**.                                                                                                                                                                                                                                                                                                 |
| `TIMER` isn't recognised                                                                                       | If **Disable extended TIMER syntax** is checked in **Tools > Compiler Options**, TIMER is not recognised as an ASM instruction.                                                                                                                                                                                                        |
| An `S` instruction is used with two registers, or an `R` instruction with a number                             | Use `GES` for a register and a number, `GER` for two registers, and so on. The programmer must select the appropriate command as they are not interchangeable.                                                                                                                                                                         |
| A floating-point command, such as `be_float_to_int`, isn't recognised                                          | These functions were added in DLP IDE V4.04. See [Floating-point numbers](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/floating-point-numbers.md).                                                                                                                                                             |

If the build works but the DLP doesn't do what you expect, test it with the [Watch List](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/compile-and-load.md#test-with-the-watch-list).

## Still not working? Contact QTech

Email <techsupport@qtech.co.nz> with your DLP IDE version, the text in the **Messages** pane, and the ASM or ladder file.
