Sunteți pe pagina 1din 8

DNP3

Distributed Network Protocol


Data Link
Block 0 Cabecera Enlace Block 1 Datos de usuario(Siguiente capa transporte)

• DIR Direction 1 = A to B
0 = B to A
• PRM Primary message 1 = mensaje es primario (pregunta)
0 = mensaje es secundario (respuesta)
• FCB Cuenta de bits en la trama
• FCV Cuenta de bits en la trama Valida 0 = ignore FCB
1 = FCB is valid
• RES Reserved = 0
• DFC BIT de control de flujo de datos. Se pondrá en 1 cuando los datos de usuarios son
enviados y provocan un desbordamiento del buffer.
• FC Function code
Pseudo – Transport
Application message formats

Application Control field “AC”


Second Byte
Bit Meaning When Set Notes
0 Function code not implemented This function code is not available at this outstation.
There are no objects as specified or in the specified
1 Requested objects unknown class.
Parameters in the qualifier range, or data fields are not
2 Parameters invalid valid or are out of range.
3 Buffer overflow Event or other application buffers have overflowed.
4 Operation already in progress This operation is already executing.
This is a specific problem indication showing that the
5 Corrupt configuration master will have to download a new configuration.
6 Reserved ( 0 ) Always to return 0.
7 Reserved ( 0 ) Always to return 0.
Qualifier Code Table
Q Interpretation of Qualifier Code
Range Value Referencing Mode Notes
Code Size (Bits)
0 8 Range - Index The range field contains start and stop indexes. points
1 16 Mode are I1 to I2. I-size = 0, or 4-6 for individual object size
2 32 prefixes.
3 8 Range – Absolute The Range field contains start and stop absolute
4 16 Mode memory addresses in outstation. Data are Bytes B1 to
B2. I-size = 0, or 4-6 for individual object size prefixes
5 32
(response messages only).

6 - All Object Mode Specifies all objects in the referenced group/variation.


Only used for requests. There is no range field with this
mode. I-size must = 0.
7 8 Non-Ranged Mode Specifies a list of unrelated points. The Range field
contains the number of points referenced. I-size = 0: No
8 16 indexes, points only
I-size = 1: Indexes are 8 Bit
I-size = 2: Indexes are 16 Bit
9 32 I-size = 3: Indexes are 32 Bit
11 As for I-size Object Identifier The Range field contains the number of Object
Mode Identifiers following. Each Object Identifier is preceded
by a ‘Size’ field. The size of the Size and Range fields
depends on I- size:
I-size = 1: Fields are 8 Bit
I-size = 2: Fields are 16 Bit
I-size = 3: Fields are 32 Bit
Table of Index-Size Codes
I-
size Size in Meaning in Request Meaning in Request or Response
Code bits with Q-code = 11 containing Data Objects
0 No index No indexing. Objects are packed directly.
1 8 Identifier Field Size Objects are prefixed with an index of this length.
2 16
3 32
4 8 Objects are prefixed with an object size field of this
5 16 length.
6 32

Rango solo Qualifier


code en 0, 1 y2
GENERAL

S-ar putea să vă placă și