The parameter is important in periodical archiving - defines the behaviour of the function if the archive database does not contain a value with the time specified by the parameter time. Possible values:
@TRUE - the function returns invalid value,
@FALSE - the function retrieves the value with nearest older time.
valid
An optional parameter with the same meaning as the VALID|INVALID clauses in the GETARCHVAL action. This parameter can be used to retrieve the last valid (@TRUE) or invalid (@FALSE) value for a given time (ignoring all subsequent values that are not valid or invalid).
Example
The statement in the example below calculates the difference between current value of the object H.Arc1 and its value a minute ago.
Pridať komentár