02.02.2018 Views

Practical_modern_SCADA_protocols_-_dnp3,_60870-5_and_Related_Systems

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

6.3.11 Flags in objects<br />

Slave devices may ignore whether a master calls for data with or without flags, <strong>and</strong> may<br />

send the requested data with or without a flag at the choice of the slave.<br />

The rules are:<br />

6.3.12 16- <strong>and</strong> 32-bit variations<br />

• Slave may decide when to provide flag<br />

• Slave may ignore whether master asks for flag or not<br />

• If slave does not provide flag, point may be assumed to be normal,<br />

ie no fault bits set<br />

• A master must be able to process object variations with or without flags<br />

• A slave must have a default configuration for object variation responses<br />

to non-specific requests<br />

• These are class or variation 0 requests<br />

• Slave responds with default variation<br />

• Slave must respond with specific variation if requested<br />

6.3.13 Over-range analog objects<br />

• If a hardware device is over-range, over-range flag is set<br />

• But hardware data is reported unaltered<br />

• This could be +2047 or –2048 for a 12-bit DAC for example<br />

If a hardware device is over-range:<br />

• Over-range bit in flag field is set<br />

• Data is reported as is from device<br />

If a measured value is within range of the hardware, but exceeds that which can be<br />

represented by the data object variation requested, then a maximum positive or negative<br />

value is returned.<br />

6.3.14 Counter roll-over<br />

There is a problem in interpretation of the roll-over flag for counter objects. This arises<br />

from the flexibility provided by object variations which means a master will not know<br />

whether a counter rolled over at 16 bits or 32 bits.<br />

• Slaves may choose not to set the roll-over flag<br />

• Roll-over point must be specified in device profile<br />

• A slave must have a default configuration for object variation responses to<br />

non-specific requests. This will specify the default counter object size<br />

• A slave must provide at least 16 bits of a 32-bit counter if polled for 16-bit<br />

counter object<br />

• Master must poll frequently enough to avoid roll-over in polled systems<br />

It is recommended that roll-over flags are not set by slave devices <strong>and</strong> are ignored by<br />

masters.

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

Saved successfully!

Ooh no, something went wrong!