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: |
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 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. |
