Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI System Management Tools

Max (Tag-based PE function)

  • Last UpdatedOct 04, 2024
  • 1 minute read

Return the maximum of a set of values.

Syntax

Max(x1, x2, ..., xn)

Arguments

x1...xn

May be numbers, times, or time periods, but all must be the same.

Returns

The maximum value of the arguments. The result has the same data type as the arguments.

Exceptions

Arguments whose run-time values are digital states are ignored. If all values are digital states, Max returns an error value.

Example

Max('*', 'y', 'Saturday')

Max(14, 'tag1', 14.5, TagVal('tag2','14-Dec-97'))

Max('*'-'*-h', 't'-'y', TimeEq('tag1', 'y', 't',50))

Min (page )

In This Topic
TitleResults for “How to create a CRG?”Also Available in