02.02.2018 Views

Practical_modern_SCADA_protocols_-_dnp3,_60870-5_and_Related_Systems

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

122 <strong>Practical</strong> Modern <strong>SCADA</strong> Protocols: DNP3, <strong>60870</strong>.5 <strong>and</strong> <strong>Related</strong> <strong>Systems</strong><br />

Qualifier Code Table<br />

Q<br />

Code<br />

Range Value<br />

Size (Bits)<br />

0 8<br />

1 16<br />

2 32<br />

Referencing<br />

Mode<br />

Range - Index<br />

Mode<br />

Interpretation of Qualifier Code<br />

Notes<br />

The range field contains start <strong>and</strong> stop<br />

indexes. points are I1 to I2. I-size = 0, or 4-6<br />

for individual object size prefixes.<br />

3 8<br />

4 16<br />

5 32<br />

Range – Absolute<br />

Mode<br />

The Range field contains start <strong>and</strong> stop<br />

absolute memory addresses in outstation. Data<br />

are Bytes B1 to B2. I-size = 0, or 4-6 for<br />

individual object size prefixes (response<br />

messages only).<br />

6 - All Object Mode Specifies all objects in the referenced<br />

group/variation. Only used for requests. There<br />

is no range field with this mode. I-size must =<br />

0.<br />

7 8<br />

8 16<br />

9 32<br />

Non-Ranged<br />

Mode<br />

11 As for I-size Object Identifier<br />

Mode<br />

Specifies a list of unrelated points. The Range<br />

field contains the number of points referenced.<br />

I-size = 0: No indexes, points only<br />

I-size = 1: Indexes are 8 Bit<br />

I-size = 2: Indexes are 16 Bit<br />

I-size = 3: Indexes are 32 Bit<br />

The Range field contains the number of<br />

Object Identifiers following. Each Object<br />

Identifier is preceded by a ‘Size’ field. The<br />

size of the Size <strong>and</strong> Range fields depends on I-<br />

size:<br />

I-size = 1: Fields are 8 Bit<br />

I-size = 2: Fields are 16 Bit<br />

I-size = 3: Fields are 32 Bit<br />

From the qualifier code table it may be seen that there are five different referencing<br />

modes, or ways of referencing or identifying the data objects contained within messages.<br />

Also, for some of the referencing modes there are three Q-codes applicable. These allow<br />

for three different bit-sizes for the numbers in the range field.<br />

The index-size sub-field<br />

For most of the referencing modes, additional information is provided by the I-size subfield.<br />

The specific meaning of the sub-field is dependent on the referencing mode. In each<br />

case where the I-size sub-field is used (ie is non-zero), it gives the size of additional fields<br />

that are given for each data object. Depending on the referencing mode, these extra fields<br />

contain either an identifier, an index, or a number giving the object size in bytes.<br />

The I-size codes are shown in the table below. The use of these is demonstrated in the<br />

following sub-sections for each referencing mode.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!