CommFailValueAttrMask

Select the attributes that qualify as a communication failure. The property value is formed by adding together bit values from the table below.

Bit Number Defined Constant Name Meaning
0 #DATA_ATTR_MANUAL_DATA The value was from the tag's ManualData parameter
1 #DATA_ATTR_MANUAL_ENTRY The value was manually entered
2 #DATA_ATTR_EDITED_DATA The historical value was manually edited
3 #DATA_ATTR_QUESTIONABLE The tag was marked as questionable
4 #DATA_ATTR_STALE_DATA The value was reported as stale by VTSDriver
5 #DATA_ATTR_IMPORTED The value was imported from a CSV file
6 #DATA_ATTR_COMMFAIL The driver experienced a comm failure
7 #DATA_ATTR_QUALITY The tag has marked the value as unreliable
8 #DATA_ATTR_DRIVER_COMMFAIL The PLC reported a downstream comm failure
9 #DATA_ATTR_DRIVER_QUALITY The PLC reported the value may be unreliable
10 #DATA_ATTR_DRIVER_OVERRIDDEN (*) The PLC reported the value was overridden
11 #DATA_ATTR_DRIVER_NODATA (*) The PLC reported there is no data available

 

The CommFailValueAttrMask can be set to include any of the bits, e.g. a mask 1001 would match DATA_ATTR_MANUAL_DATA and DATA_ATTR_QUESTIONABLE.

The default mask value includes:

Bit number 4 - #DATA_ATTR_STALE_DATA

Bit number 6 - #DATA_ATTR_COMMFAIL

Bit number 8 - DATA_ATTR_DRIVER_COMMFAIL

Bit number 11 - #DATA_ATTR_DRIVER_NODATA

or 0b100101010000 = 2384

 

Related property: CommFailValueOption to specify special handling.

(See: Bitwise Parameters & Operations)

 

Section: System

Default: CommFailValueAttrMask = 2384

*No restart required (Settings.Dynamic property)