GetValueAttribute

GetValueAttribute is only supported by the IO & Calculations tag.

Description:

Returns the state of one bit from the bitwise value attributes of a tag.

Returns: Boolean
Usage: Script Only.
Related to:  
Format: IO.GetValueAttribute(AttribNum)
Parameters:  
AttribNum
Attribute bit number to obtain.
Comments:

Querying Value Attributes

Version 12 of VTScada introduced value attributes. These can be queried using "Value!" rather than "Value" for the field name or array of field names. Value! stores bitwise values according the following table.

Attributes flagged with a star (*) apply only if the I/O tag is attached to a DNP3 driver or a custom driver supporting this feature.

Refer to the constant, #NUM_DATA_ATTR_BITS, to discover the number of bits in data attributes for your version of VTScada.

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

Bit 7 - #DATA_ATTR_QUALITY is set via another tag in the IO configuration.

Bit 5 - #Data_ATTR_IMPORTED is set via another tag in the IO configuration when using the History Import tool.