DNP
DNP
Application Layer
← Start of fragment
First Last
Application
Object DNP3 Objects … Object DNP3 Objects
Header
Header Header
Application
Control octet
←bit
7 6 5 4 3 2 1 0 Internal Indications only included in
number
responses from outstation.
CON
UNS
FIN
FIR
SEQ
Qualifier octet
0 Object Prefix Code Range Specifier Code
Transport Function
Transport 7 6 5 4 3 2 1 0 ←bit number
Header octet FIN FIR SEQUENCE
0 to 65519
5 to 255
0 to 65535
7 6 5 4 3 2 1 0 ←bit number
Control
octet FCB FCV ← Primary to secondary
DIR PRM Function Code
0 DFC ← Secondary to primary
Primary Secondary
FCV
Function Function Code Name Function Function Code Name
Bit
Code Code
0 RESET_LINK_STATES 0 0 ACK
1 – – 1 NACK
2 TEST_LINK_STATES 1 2 –
3 CONFIRMED_USER_DATA 1 3 –
4 UNCONFIRMED_USER_DATA 0 4 –
5 – – 5 –
6 – – 6 –
7 – – 7 –
8 – – 8 –
9 REQUEST_LINK_STATUS 0 9 –
A – – A –
B – – B LINK_STATUS
C – – C –
D – – D –
E – – E –
F – – F NOT_SUPPORTED
Outstation Master
to to Function Code Name Type Comment
Master Outstation
00 80 ACK
01 81 NACK Link reset required
0B 8B LINK_STATUS
0F 8F NOT_SUPPORTED
Sec-to-Pri
10 90 ACK Receive buffers full
11 91 NACK Receive buffers full
1B 9B LINK_STATUS Receive buffers full
1F 9F NOT_SUPPORTED Receive buffers full
40 C0 RESET_LINK_STATES FCB = 0 (secondary ignores FCB)
44 C4 UNCONFIRMED_USER_DATA FCB = 0 (secondary ignores FCB)
49 C9 REQUEST_LINK_STATUS FCB = 0 (secondary ignores FCB)
52 D2 TEST_LINK_STATES FCB = 0
53 D3 CONFIRMED_USER_DATA FCB = 0
Pri-to-Sec
60 E0 RESET_LINK_STATES FCB = 1 (secondary ignores FCB)
64 E4 UNCONFIRMED_USER_DATA FCB = 1 (secondary ignores FCB)
69 E9 REQUEST_LINK_STATUS FCB = 1 (secondary ignores FCB)
72 F2 TEST_LINK_STATES FCB = 1
73 F3 CONFIRMED_USER_DATA FCB = 1
◄−− 05 64 05 00 00 04 01 00 19 A6 Ack
−−► 05 64 05 80 01 00 00 04 53 11 Ack
05 64 53 73 00 04 01 00 03 FC
C1 E3 81 96 00 02 01 28 01 00 00 00 01 02 01 28 05 24 Response. IIN = device restart, need
01 00 01 00 01 02 01 28 01 00 02 00 01 02 01 28 B4 77 time, class 1 & 2 events. 4 binary input
◄−−
01 00 03 00 01 20 02 28 01 00 00 00 01 00 00 20 A5 25 events, 2 analog input events, 4 binary
02 28 01 00 01 00 01 00 00 01 01 01 00 00 03 00 2F AC inputs and 2 analog inputs.
00 1E 02 01 00 00 01 00 01 00 00 01 00 00 16 ED
−−► 05 64 05 80 01 00 00 04 53 11 Link layer confirm
05 64 08 C4 01 00 00 04 A4 CF
−−► Application layer confirm
C1 C3 00 20 3F