DNP3
DNP3 is a communication protocol commonly used in water and electric utilities. It connects a central master station to multiple remote devices, known as outstations, creating a distributed network without overwhelming the communication infrastructure. This page covers connection details and general protocol requirements for using DNP3.
Compared to Modbus, DNP3 is a newer and more robust protocol. It supports a wider range of features but is also more complex. Always consult your device documentation to confirm whether DNP3 is supported.
The DNP3 drivers do not support DNP3 Secure Authentication.
DNP3 Drivers​
Ignition provides two DNP3 drivers:
The DNP3 driver is installed by default on new Ignition installations. The DNP3 Driver (Legacy) remains available as an optional module but no longer receives updates or ongoing support.
Scripting Functions​
The DNP3 Driver and DNP3 Driver (Legacy) use the following syntax for their respective scripting functions to avoid namespace conflicts:
- The DNP3 Driver uses the system.dnp scripting namespace.
- The DNP3 Driver (Legacy) uses the system.dnp3 namespace.
See the scripting functions appendix for details.
Supported Operating Systems​
Both DNP3 drivers are supported on:
- Windows x64
- Linux x64
- Linux arm32
- Linux arm64
The native libraries for both drivers are not currently supported on macOS.
Upgrading from DNP3 Driver (Legacy)​
To migrate from the DNP3 Driver (Legacy):
- Delete or rename the existing Legacy device.
- Create a new DNP3 Driver device and in the name field, use the old DNP3 Driver (Legacy) name.
- Update any tag references as needed.
Review the new driver’s settings carefully, since its configuration and polling model differ from the Legacy driver.
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.
Indicator | Description |
---|---|
Broadcast | A broadcast message was received. |
Class 1 Events | Additional Class 1 event data is available. |
Class 2 Events | Additional Class 2 event data is available. |
Class 3 Events | Additional Class 3 event data is available. |
Need Time | The outstation requires time synchronization. |
Local Control | One or more outputs are in local (manual) control mode. |
Device Trouble | An abnormal condition exists within the device. |
Device Restart | The outstation has restarted. |
No Func Code Support | The requested function code is not implemented. |
Object Unknown | The requested object is unknown or unsupported. |
Parameter Error | There was an error with one or more request parameters. |
Event Buffer Overflow | The outstation’s event buffer has overflowed. |
Already Executing | A previously requested operation is still executing. |
Config Corrupt | The outstation's configuration is corrupted. |
Terminology​
Term | Definition |
---|---|
Unsolicited Response | A 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 Poll | A request from the master that gathers all current event data (Classes 1–3), followed by the static data (Class 0) for each configured point. |
DNP3TIME | A 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.
Property | Description |
---|---|
Point Address | The group, variation, and index that fully describe a point. A full address includes:
g30v1i20 |
Browse Path | A / separated folder path where the point should appear.Example: Facility1/Voltage |
Description | A user-defined description of the point. [Optional] |
If you change a point address after creating tags, you must update the OPC Item Path for those tags.
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 and Alarm Journals
- Tag History (in On Change mode)
- Tag Event Scripts
Once playback completes, the tag resumes showing live values.
This Buffered Events feature can only be used by devices that support Sequence of Events (SoE). The SoE data type may differ from the standard data type returned by subscriptions. This may be due to a configuration on the Default Variation property in the device.
Browsing DNP3 Points​
When the driver connects to an outstation, it performs an integrity poll to map available points to the OPC UA server with group, variation, and index addressing. You can review these mapped points in the Designer under the Connected Devices window.
Point Types​
Type Name | Group | Supported Variations |
---|---|---|
SingleBitBinaryInput | 1 | 1 - Packed format 2 - With flags |
DoubleBitBinaryInput | 3 | 1 - Packed Format 2 - With flags |
Binary Output | 10 | 1 - Packed Format 2 - With flags |
Counter | 20 | 1 - 32-bit with flags 2 - 16-bit with flags 5 - 32-bit 6 - 16-bit |
FrozenCounter | 21 | 1 - 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 |
AnalogInput | 30 | 1 - 32-bit with flags 2 - 16-bit with flags 3 - 32-bit 4 - 16-bit 5 - Float with flags 6 - Double with flags |
FrozenAnalogInput | 31 | 1 - 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 |
AnalogOutput | 40 | 1 - 32-bit with flags 2 - 16-bit with flags 3 - Float with flags 4 - Double with flags |
OctetString | 110 | 0 - 225 |
For variation details, consult your device’s documentation.