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

PI DataLink

Expression examples

  • Last UpdatedNov 21, 2022
  • 1 minute read

The following examples show expressions that evaluate data items and manipulate or do calculations on the values of data items:

  • Arithmetic operation on PI points

    ('sinusoid')^3 + 'cdf144'/10

    Returns the sum of the value of the PI point sinusoid cubed and the value of the PI point cdf144 divided by 10.

  • Boolean evaluation of PI point

    abs('mytag') >= 14.65

    Returns true (non-zero) if the absolute value of the PI point mytag is at least 14.65.

  • Boolean evaluation of PI AF attribute

    '\\Server\Database\Element|Manufacturer' = "ACME"

    Returns true if the value of the PI AF attribute Manufacturer is ACME.

  • Complex Boolean evaluation of simultaneous condition of two PI points

    'sinusoid' < 45 and sqr('vdf1002') > 2

    Returns true if the value of the PI point sinusoid is less than 45 and the square root of the value of the PI point vdf1002 is greater than 2.

  • Evaluation of digital-state point

    StateNo('BA:Phase.1')

    Returns the digital state number (also known as the digital state code) of the digital point BA.Phase.1 rather than returning the digital state value of the point.

Related Links
TitleResults for “How to create a CRG?”Also Available in