TagSpan
- Last UpdatedJan 11, 2023
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
For an attribute associated with a PI point, get a point's span from the point database.
Syntax
TagSpan(attname)
Arguments
-
attname
The name of an attribute with a PI point data reference, enclosed in single quotes
Returns
The point's span. If the point's type is digital, returns an integer whose value is the number of digital state defined for the point.
Example
-
TagSpan('sinusoid')
[Returns 100]
-
TagSpan('cdt158')
[Returns 200]