> 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-telemetry/datran-xl4-dnp3-rtu/dnp3-device-profile.md).

# DNP3 device profile

DNP3 device profile, implementation table and point list for the DATRAN XL4 DNP3 RTU.

This is the DNP3 device profile for the DATRAN XL4 DNP3 RTU: what it supports, its default settings, and how its DNP3 points map to its I/O. It's a DNP3 Level 3 outstation (slave).

{% hint style="info" %}
**Applies to:** DATRAN XL4 DNP3 RTU (PD-7401-DNP3). From the DNP3 Configuration / Interoperability Guide for the DATRAN XL4 RTU, V2, August 2017, in the standard format of the DNP 3.0 Subset Definitions. The [original PDF](https://qtech.co.nz/wp-content/uploads/DATRAN-XL4-DNP3-Device-Profile.pdf) is on the QTech website.
{% endhint %}

## Device profile

| Item                                         | Value                                                                                                                                         |
| -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Vendor                                       | QTech Data Systems Ltd                                                                                                                        |
| Device                                       | DATRAN XL4 RTU, using the Triangle MicroWorks, Inc. DNP3 Slave Source Code Library, version 3                                                 |
| Device function                              | Slave                                                                                                                                         |
| Highest DNP level                            | Level 3, for requests and responses                                                                                                           |
| Maximum data link frame size                 | 292 octets, transmitted and received                                                                                                          |
| Maximum application fragment size            | 2048 octets, transmitted and received                                                                                                         |
| Maximum data link retries                    | Configurable, 0 to 65535                                                                                                                      |
| Maximum application layer retries            | None                                                                                                                                          |
| Data link layer confirmation                 | Configurable: never, only for multi-frame messages, or always                                                                                 |
| Application layer confirmation               | Configurable: only when reporting event data, or when reporting event data or multi-fragment messages                                         |
| Timeouts                                     | Data link confirm: configurable. Complete application fragment: none. Application confirm: configurable. Complete application response: none. |
| Transmission delay                           | 0                                                                                                                                             |
| Need time interval                           | 30 minutes                                                                                                                                    |
| Unsolicited notification delay               | 5 s, configurable                                                                                                                             |
| Unsolicited response retry delay             | 5 s, configurable                                                                                                                             |
| Unsolicited offline interval                 | 30 s                                                                                                                                          |
| Binary and analogue change event scan period | 50 ms                                                                                                                                         |
| Sends multi-fragment responses               | Configurable                                                                                                                                  |
| Sequential file transfer                     | Not supported. Maximum files open: 0.                                                                                                         |

Also supported, beyond Level 3:

* For static (non-change-event) object requests, request qualifier codes 07 and 08 (limited quantity), and 17 and 28 (index) are supported. Static object requests sent with qualifiers 07, or 08, will be responded with qualifiers 00 or 01.
* Analog Input Deadbands, Object 34, variations 1 through 3, are supported.

### Control operations

| Operation              | Supported |
| ---------------------- | --------- |
| Write binary outputs   | Never     |
| Select/operate         | Always    |
| Direct operate         | Always    |
| Direct operate, no ack | Always    |
| Count > 1              | Always    |
| Pulse on, pulse off    | Always    |
| Latch on, latch off    | Always    |
| Queue, clear queue     | Never     |

### Events and unsolicited responses

| Item                                                           | Value                                                                  |
| -------------------------------------------------------------- | ---------------------------------------------------------------------- |
| Binary input change events, no variation requested             | Configurable to send time-tagged or non-time-tagged                    |
| Time-tagged binary input change events, no variation requested | Configurable                                                           |
| Sends unsolicited responses                                    | Configurable. Enable and disable unsolicited function codes supported. |
| Sends static data in unsolicited responses                     | Never                                                                  |
| Default counter object and variation                           | Configurable; point-by-point list attached                             |
| Counters roll over at                                          | 32 bits                                                                |

## Implementation table

The following table identifies which object variations, function codes, and qualifiers the DATRAN XL4 DNP3 RTU supports in both request messages and in response messages.

* For static (non-change-event) objects, requests sent with qualifiers 00, 01, 06, 07, or 08, will be responded with qualifiers 00 or 01. Requests sent with qualifiers 17 or 28 will be responded with qualifiers 17 or 28.
* For change-event objects, qualifiers 17 or 28 are always responded.
* A Default variation refers to the variation responded when variation 0 is requested and/or in class 0, 1, 2, or 3 scans. Default variations are configurable.

| Object | Var | Description                                         | Request function codes                                                                 | Request qualifiers                                              | Response function codes | Response qualifiers |
| ------ | --- | --------------------------------------------------- | -------------------------------------------------------------------------------------- | --------------------------------------------------------------- | ----------------------- | ------------------- |
| 1      | 0   | Binary input, any variation                         | 1 (read), 22 (assign class)                                                            | 00, 01, 06, 07, 08, 17, 28                                      |                         |                     |
| 1      | 1   | Binary input (default)                              | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      | 129                     | 00, 01, 17, 28      |
| 1      | 2   | Binary input with status                            | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      | 129                     | 00, 01, 17, 28      |
| 2      | 0   | Binary input change, any variation                  | 1 (read)                                                                               | 06, 07, 08                                                      |                         |                     |
| 2      | 1   | Binary input change without time                    | 1 (read)                                                                               | 06, 07, 08                                                      | 129, 130                | 17, 28              |
| 2      | 2   | Binary input change with time                       | 1 (read)                                                                               | 06, 07, 08                                                      | 129, 130                | 17, 28              |
| 2      | 3   | Binary input change with relative time (default)    | 1 (read)                                                                               | 06, 07, 08                                                      | 129, 130                | 17, 28              |
| 10     | 0   | Binary output status, any variation                 | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      |                         |                     |
| 10     | 1   | Binary output                                       | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      | 129                     | 00, 01, 17, 28      |
| 10     | 2   | Binary output status (default)                      | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      | 129                     | 00, 01, 17, 28      |
| 12     | 1   | Control relay output block                          | 3 (select), 4 (operate), 5 (direct operate), 6 (direct operate, no ack)                | 17, 28                                                          | 129                     | Echo of request     |
| 20     | 0   | Binary counter, any variation                       | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      |                         |                     |
| 20     | 1   | 32-bit binary counter with flag                     | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      | 129                     | 00, 01, 17, 28      |
| 20     | 5   | 32-bit binary counter without flag (default)        | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      | 129                     | 00, 01, 17, 28      |
| 30     | 0   | Analogue input, any variation                       | 1 (read), 22 (assign class)                                                            | 00, 01, 06, 07, 08, 17, 28                                      |                         |                     |
| 30     | 1   | 32-bit analogue input                               | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      | 129                     | 00, 01, 17, 28      |
| 30     | 2   | 16-bit analogue input                               | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      | 129                     | 00, 01, 17, 28      |
| 30     | 3   | 32-bit analogue input without flag (default)        | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      | 129                     | 00, 01, 17, 28      |
| 30     | 4   | 16-bit analogue input without flag                  | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      | 129                     | 00, 01, 17, 28      |
| 32     | 0   | Analogue change event, any variation                | 1 (read)                                                                               | 06, 07, 08                                                      |                         |                     |
| 32     | 1   | 32-bit analogue change event without time (default) | 1 (read)                                                                               | 06, 07, 08                                                      | 129, 130                | 17, 28              |
| 32     | 2   | 16-bit analogue change event without time           | 1 (read)                                                                               | 06, 07, 08                                                      | 129, 130                | 17, 28              |
| 32     | 3   | 32-bit analogue change event with time              | 1 (read); 2 (write)                                                                    | Read: 06, 07, 08. Write: 00, 01, 07, 08, 17, 28                 | 129, 130                | 17, 28              |
| 32     | 4   | 16-bit analogue change event with time              | 1 (read)                                                                               | 06, 07, 08                                                      | 129, 130                | 17, 28              |
| 34     | 0   | Analogue input deadband, any variation              | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      |                         |                     |
| 34     | 1   | 16-bit analogue input deadband                      | 1 (read), 2 (write)                                                                    | Read: 00, 01, 06, 07, 08, 17, 28. Write: 00, 01, 07, 08, 17, 28 | 129                     | 00, 01, 17, 28      |
| 34     | 2   | 32-bit analogue input deadband (default)            | 1 (read), 2 (write)                                                                    | Read: 00, 01, 06, 07, 08, 17, 28. Write: 00, 01, 07, 08, 17, 28 | 129                     | 00, 01, 17, 28      |
| 40     | 0   | Analogue output status, any variation               | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      |                         |                     |
| 40     | 1   | 32-bit analogue output status (default)             | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      | 129                     | 00, 01, 17, 28      |
| 40     | 2   | 16-bit analogue output status                       | 1 (read)                                                                               | 00, 01, 06, 07, 08, 17, 28                                      | 129                     | 00, 01, 17, 28      |
| 41     | 1   | 32-bit analogue output block                        | 3, 4, 5, 6                                                                             | 17, 28                                                          | 129                     | Echo of request     |
| 41     | 2   | 16-bit analogue output block                        | 3, 4, 5, 6                                                                             | 17, 28                                                          | 129                     | Echo of request     |
| 50     | 1   | Time and date (default)                             | 1 (read), 2 (write)                                                                    | 07 (quantity 1)                                                 | 129                     | 07 (quantity 1)     |
| 50     | 3   | Time and date, last recorded time                   | 2 (write)                                                                              | 07                                                              |                         |                     |
| 60     | 1   | Class 0 data                                        | 1 (read)                                                                               | 06                                                              |                         |                     |
| 60     | 2   | Class 1 data                                        | 1 (read); 20 (enable unsolicited), 21 (disable unsolicited), 22 (assign class)         | Read: 06, 07, 08. Others: 06                                    |                         |                     |
| 60     | 3   | Class 2 data                                        | As class 1                                                                             | As class 1                                                      |                         |                     |
| 60     | 4   | Class 3 data                                        | As class 1                                                                             | As class 1                                                      |                         |                     |
| 80     | 1   | Internal indications                                | 1 (read); 2 (write, index 7 only)                                                      | Read: 00, 01. Write: 00                                         | 129                     | 00, 01              |
| None   |     | Function code only                                  | 13 (cold restart), 14 (warm restart), 23 (delay measurement), 24 (record current time) |                                                                 |                         |                     |

Writes of Internal Indications are only supported for index 7 (Restart IIN1-7).

Response function codes: 129 is a response, 130 an unsolicited response.

## Point list

The tables below identify all the default data points provided by the DATRAN XL4 DNP3 RTU. Each DNP3 point index maps to a telemetry point as seen in QTech Workbench.

| Points                  | Objects                  | Point index | Maps to       | Default variation, variation 0 requested                          | Default event class | Notes                                           |
| ----------------------- | ------------------------ | ----------- | ------------- | ----------------------------------------------------------------- | ------------------- | ----------------------------------------------- |
| Binary inputs           | 1 (static), 2 (events)   | 0–65535     | TDI1–TDI65536 | Static: 1. Events: 3 (with relative time).                        | 1                   | Event buffer: 65536 events                      |
| Binary outputs and CROB | 10, 12                   | 0–65535     | TDO1–TDO65536 | Object 10: 2 (binary output status)                               |                     | All CROB fields supported                       |
| Analogue inputs         | 30 (static), 32 (events) | 0–65535     | TAI1–TAI65536 | Static: 3 (32-bit without flag). Events: 1 (32-bit without time). | 2                   | Default deadband 0. Event buffer: 65536 events. |
| Analogue outputs        | 40, 41                   | 0–65535     | TAO1–TAO65536 | Object 40: 2 (16-bit analogue output status)                      |                     |                                                 |

* It is important to note that Analogue Inputs, Analogue Output Control Blocks, and Analogue Output Statuses are transmitted through DNP as signed numbers.
* The default select/control buffer size is large enough to hold 10 of the largest select requests possible.
* The default deadband and the default change event assigned class are used to represent the absolute amount by which the point must change before an analogue change event will be generated, and once generated in which class poll (1, 2, 3, or none) will the change event be reported.

### Output status points

Binary Output Status points (object 10) and Analogue Output Status points (object 40) are not often polled by DNP 3.0 Masters. It is recommended that they represent the most recent DNP "commanded" value for the corresponding Control Relay Output Block or Analogue Output Control Block point. Because many, if not most, Control Relay Output Block points are controlled through pulse mechanisms, the value of the output status may in fact be meaningless. Output status points are not recommended to be included in class 0 polls.

As an alternative, it is recommended that "actual" status values of Control Relay Output Block points be looped around and mapped as Binary Inputs, and those of Analogue Output Control Block points as Analogue Inputs. The "actual" status value, as opposed to the "commanded" status value, is the value of the actuated control. For example, a DNP control command may be blocked through hardware or software mechanisms; in this case, the actual status value would indicate the control failed because of the blocking. Looping actual status values as inputs has several advantages:

* it allows actual statuses to be included in class 0 polls,
* it allows change event reporting of the actual statuses, which is a more efficient and time-accurate method of communicating control values,
* it allows reporting of time-based information associated with controls, including any delays before controls are actuated, and any durations if the controls are pulsed.
