Compatible Devices
DNP3 serial or Ethernet slave devices [g-dnp3_master_a | Word]
Verified Device
Invensys / Foxboro SCD5200 [g-dnp3_master_a | Word]
General Information
A Red Lion Graphite HMI or Graphite Controller is required to use the DNP3 communications driver. [g-dnp3_master_a | Word]
Serial Configuration
In Crimson:
- Select serial port → Pick driver → DNP3 Master
- Configure:
- Source Number → unique ID for Red Lion device
- Baud Rate, Data Bits, Stop Bits, Parity (match network)
Device settings:
- Destination Number → target device ID
- Transaction Timeout → communication timeout
-
Link Status Interval → polling interval (ms)
- Set to 0 to disable
-
Selective Polling:
- Enabled → scan based on data class
- Disabled → scan all data each cycle [g-dnp3_master_a | Word]
Ethernet Configuration
In Crimson:
- Select network → Pick driver → DNP3 IP Master
- Configure:
- Source Number
- Destination Number
- IP Address
- TCP Port / UDP Port
Additional:
- TCP Keep Alive controls polling interval
- Selective Polling works the same as serial mode [g-dnp3_master_a | Word]
Data Access
Available DNP3 data objects:
| Data Item | Object Group | Event Group |
|---|---|---|
| Binary Inputs | 1 | 2 |
| Double-bit Inputs | 3 | 4 |
| Binary Outputs | 10 / 12 | 11 |
| Counters | 20 | 22 |
| Frozen Counters | 21 | 23 |
| Analog Inputs | 30 | 32 |
| Analog Outputs | 40 / 41 | 42 |
Data Attributes
Current Value / Control
- Latest value from device
- Writable only for:
- Binary Outputs
- Analog Outputs
Flags (Status Bitmask)
Binary Items
- Bit 0: Online
- Bit 1: Restart
- Bit 2: Communications Lost
- Bit 3: Remote Forced
- Bit 4: Local Forced
- Bit 5: Chatter
Counters
- Same as above except:
- Bit 5 = Rollover
Analogs
- Same as above except:
- Bit 5 = Check Reference [g-dnp3_master_a | Word]
Timestamp
- Date/time of last update
- Read-only
- Use addrLongAsLong data type in Crimson [g-dnp3_master_a | Word]
Additional Attributes
-
Class (R/W):
- Assign DNP3 class (0–3)
-
On Time / Off Time:
- Used for binary output control
-
Freeze (Write Only):
- Bit 0 → Freeze
- Bit 1 → Reset
- Bit 2 → No ACK
Note: Freeze requires bit changes to trigger execution [g-dnp3_master_a | Word]
64-bit Data Handling
- Map values to array tags
Read
AsTextR64(data)
Write
TextToR64(input, output)
Where:
-
data= first array element -
input= string value -
output= destination array element [g-dnp3_master_a | Word]
Event Handling
- Assign non-zero Class to enable events
- Events update:
- Immediately (unsolicited mode), or
- On polling cycle
Selective Polling improves efficiency by reducing unnecessary scans [g-dnp3_master_a | Word]
Command Access
Available commands:
- Sync Time
- Cold Restart
- Warm Restart
- Unsolicited Message Enable Mask
- Unsolicited Message Disable Mask [g-dnp3_master_a | Word]
Notes
- Commands execute only on value change (non-zero trigger)
Unsolicited Message Mask
| Bit | Function |
|---|---|
| 0 | Class 1 |
| 1 | Class 2 |
| 2 | Class 3 |
Error Feedback
Driver provides 10 error feedback sets:
Each includes:
- Object (data item)
- Point (index)
- Flags (error details)
- Timestamp [g-dnp3_master_a | Word]
Error Flags
| Bit | Meaning |
|---|---|
| 0 | Unsupported Function |
| 1 | Object Unknown |
| 2 | Parameter Error |
| 3 | Buffer Overflow |
| 4 | Already Executing |
| 5 | Bad Configuration |
| 8 | All Stations |
| 9 | Class 1 |
| 10 | Class 2 |
| 11 | Class 3 |
| 12 | Need Time |
| 13 | Local |
| 14 | Trouble |
© HMS Networks AB 2025