> 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/inputs-outputs-not-working.md).

# Inputs don't reach DATRAN, or outputs don't work, after loading a DLP

After loading a DLP, inputs stop reaching DATRAN or outputs set from DATRAN don't switch. Usually TELINP or TELOUT without the matching copy.

**`TELINP` and `TELOUT` are indiscriminate and will sever the link to all IO.** There is no way of just specifying a few points, so the points you don't want to modify need to be reconnected.

* After `TELINP`, real inputs will no longer be transferred to the telemetry for transmission to the base, nor will they cause COS (Change of States).
* After `TELOUT`, outputs controlled from the base will no longer be actioned.

## Fix it

Use `CPDIG` (Copy Digitals) and `CPANL` (Copy Analogs) after `TELINP` or `TELOUT` to reconnect the points you don't want to modify. For example, to reunite all the Reals and Telemetries except for RDIN / TDIN numbers 1 and 2:

```
PROGSTART
BEGIN
    CPDIG  RDIN3,  TDIN3,  6    ; Copy digital inputs 3 to 8 to DATRAN
    CPANL  RAIN1,  TAIN1,  6    ; Copy analogue inputs 1 to 6 to DATRAN
    CPDIG  TDOUT1, RDOUT1, 8    ; Copy digital outputs 1 to 8 from DATRAN
    CPANL  TAOUT1, RAOUT1, 2    ; Copy analogue outputs 1 and 2 from DATRAN
```

## Other things to check

* **The input isn't sending COS messages.** If the input is not in the `COSMASK` list, then it will not cause a COS: see [COSMASK](https://help.qtech.co.nz/datran/datran-vi-scada/datran-dlp-ide/instruction-reference/program-structure.md#cosmask).
* **The output is set in two places.** The DLP executes sequentially from the top to the bottom, and the state the DLP has modified are only written at the end of the DLP execution. So, the LAST operation in the DLP that writes to a specific output will have the control over what that output does, even if several other parts of the DLP have also written to it previously.
* **The DLP isn't running.** In the right click popup menu of the **Module Connectivity** pane, **Enabled DLP** runs the DLP in the module.

See the XL4 Plus [data table](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/configure.md#how-the-data-table-works).

## Still not working? Contact QTech

Email <techsupport@qtech.co.nz> with the RTU's model and firmware, the points that don't work, and the DLP file.
