TimeEQ (Tag-based PE function)
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2023
- PI Server
Find the total time in seconds, within a range, when a point is equal to a given value.
Syntax
TimeEq(tagname, starttime, endtime, value)
Arguments
tagname
A tagname.
starttime
Beginning of the time range to search. Relative times are relative to endtime, if endtime is not itself a relative time.
endtime
End of the time range to search. Relative times are relative to starttime, if starttime is not itself a relative time. This time must be after starttime.
value
Must be an integer or real number or digital state (character string); the value to search for.
Returns
The time period in seconds within the given range, for which the point was exactly equal to the given value.
Example
TimeEq('tag1', 't', '*',40.0)
TimeEq('digitaltag', '-1d', '*',TagVal('digitaltag', '14-Dec-97'))
TimeEq('digitaltag', '14-Dec-97', '*', "On")
TimeGE (page ), TimeGT (page ), TimeLE (page ), TimeLT (page ), TimeNE (page )
Note: For more information, see TimeGT.