Skip to main content
Version: 8.1

DNP3

DNP3 is a communication protocol commonly used in water and electric utilities. It connects a central master station to multiple remote devices (outstations), creating a distributed network without overwhelming the communication infrastructure. This page covers DNP3 connection information and general protocol requirements. DNP3 is similar to the Modbus protocol in that it is more device agnostic, but it is newer, more robust, and because of that, more complex. Check your device documentation to verify DNP3 support.

note

The DNP3 driver does not support DNP3 Secure Authentication.

DNP3 Drivers​

Ignition supports two DNP3 drivers:

In versions prior to 8.1.36, the DNP3 driver is now labeled as DNP3 Driver (Legacy) in the Gateway. Starting in 8.1.36, the new DNP3 driver is installed by default on new systems, while the Legacy driver remains available as an optional add-on. Although the Legacy driver still functions, it no longer receives updates or support.

Scripting Functions​

The DNP3 and Legacy DNP3 drivers use the following syntax for their respective scripting functions to avoid namespace conflicts:

Supported Operating Systems​

Both the DNP3 and Legacy DNP3 drivers are compatible with:

  • Windows x64
  • Linux x64
  • Linux arm32
  • Linux arm64
note

The native libraries for both drivers are not currently supported on macOS.

Upgrading from the Legacy DNP3 Driver​

To manually upgrade from the Legacy DNP3 driver:

  1. Delete or rename the Legacy DNP3 device.
  2. Create a new DNP3 device and use the old Legacy DNP3 device name in the new DNP3 device Name field.
  3. Fix tag references as necessary.
note

The DNP3 driver operates differently from the Legacy driver. Review the DNP3 and Legacy DNP3 connection settings carefully after upgrading.

Internal Indicators​

Each response from an outstation includes an Internal Indication (IIN) bit field. This field reports various states or error conditions within the device. These IIN bits are exposed as read-only points. Refer to the table below for descriptions of what the exposed IIN bits indicate.

IndicatorDescription
BroadcastA broadcast message was received.
Class 1 EventsAdditional Class 1 event data is available.
Class 2 EventsAdditional Class 2 event data is available.
Class 3 EventsAdditional Class 3 event data is available.
Need TimeThe outstation requires time synchronization.
Local ControlOne or more outputs are in local (manual) control mode.
Device TroubleAn abnormal condition exists within the device.
Device RestartThe outstation has restarted.
No Func Code SupportThe requested function code is not implemented.
Object UnknownThe requested object is unknown or unsupported.
Parameter ErrorThere was an error with one or more request parameters.
Event Buffer OverflowThe outstation’s event buffer has overflowed.
Already ExecutingA previously requested operation is still executing.
Config CorruptThe outstation's configuration is corrupted.

Terminology​

TermDefinition
Unsolicited ResponseA message sent from the outstation to the master without a direct request. This behavior is enabled when the master allows unsolicited reporting of points.
Integrity PollA request from the master that gathers all current event data (Classes 1–3), followed by the static data (Class 0) for each configured point.
DNP3TIMEA timestamp format in UTC, measured as the number of milliseconds elapsed since January 1, 1970. As of 2008, this format is the required time base for all DNP3 timestamps.

Aliased Points​

Aliased points let you assign meaningful names and folder paths to DNP3 points.
They are especially useful for addressing points that were not returned during the initial integrity poll.

PropertyDescription
Point AddressThe group, variation, and index that fully describe a point. A full address includes:
  • An integer prefixed with g for group (e.g., g40)
  • An integer prefixed with v for variation (e.g., v2)
  • An integer prefixed with i for index (e.g., i5)
Example: g30v1i20
Browse PathA / separated folder path where the point should appear.
Example: Facility1/Voltage
Description(Optional) A user-defined description of the point.
note

Tags created from these aliases may need to have their OPC Item Path updated if the Point Address is later changed in the Aliased Points configuration.

Buffered Events​

Buffered events allow missed events to be preserved and replayed after a disconnect. This feature can be enabled by setting the Queue Size property on the corresponding Tag Group to a value greater than 1.

The Queue Size determines how many events the driver will buffer per tag. The driver retains only the most recent events, dropping older ones when the buffer is full. For example, if the Queue Size is set to 20 and 30 value changes occur while the device is disconnected, the 10 oldest events will be dropped.

When the connection is restored, the driver plays back buffered events in order from oldest to newest. This updates the corresponding Ignition tag for each event, which can trigger value changes in systems such as:

  • Alarms (including recent events and Alarm Journal records)
  • Tag History (when the History Sample Mode is set to On Change)
  • Tag Event Scripts

Once all buffered events are replayed, the tag resumes displaying its live value.

Support of this Feature​

This Buffered Events feature can only be used by devices that support Sequence of Events (SoE), and have the option enabled for points Ignition is subscribed to. Note that the data type for SoE may differ from the data type that is received by normal subscription. This is generally due to a configuration on the Default Variation property in the device.

Browsing DNP3 Points​

Inductive University

About DNP3 Addressing

Watch the video

When the driver connects to an outstation, it performs an integrity poll. Any DNP3 objects returned are mapped to OPC items using their group, variation, and index values.

To see these points, open the Connected Devices Window in the Designer.

Type NameGroupSupported Variations
SingleBitBinaryInput11 - Packed format
2 - With flags
DoubleBitBinaryInput31 - Packed Format
2 - With flags
Binary Output101 - Packed Format
2 - With flags
Counter201 - 32-bit with flags
2 - 16-bit with flags
5 - 32-bit
6 - 16-bit
FrozenCounter211 - 32-bit with flags
2 - 16-bit with flags
5 - 32-bit with flags and time
6 - 16-bit with flags and time
8 - 32-bit
10 - 16-bit
AnalogInput301 - 32-bit with flags
2 - 16-bit with flags
3 - 32-bit
4 - 16-bit
5 - Float with flags
6 - Double with flags
FrozenAnalogInput311 - 32-bit with flags
2 - 16-bit with flags
3 - 32-bit with time of freeze
4 - 16-bit with time of freeze
5 - 32-bit
6 - 16-bit
7 - Float with flags
8 - Double with flags
AnalogOutput401 - 32-bit with flags
2 - 16-bit with flags
3 - Float with flags
4 - Double with flags
OctetString1100 - 225