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

AVEVA™ Historian

IFBAD Examples

  • Last UpdatedAug 17, 2022
  • 1 minute read

Example 1

This example uses the following tag name:

  • Pump101.Flow measures the flow rate of a pump in liters per second (L/s)

The following expression returns the flow rate of a pump, but any "bad" quality values are replaced with -1.

IFBAD( Pump101.Flow, -1 )

Example 2

The following expression

IFBAD( 60 / SysTimeSec, -1 )

Example 3

This example uses the following tag names:

  • Pump101.Flow measures the flow rate of a pump in liters per second (L/s)

  • Pump102.Flow measures the flow rate of a pump in liters per minute (L/min)

The following expression returns the flow rate of a pump, but any "bad" quality values are replaced with the value from a second pump at the corresponding time.

IFBAD( Pump101.Flow, Pump102.Flow )

The units for each tag in the expression are implicitly converted to match the units of the first tag, so the expression's results are in liters per second.

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