Formulas

- Numbers - Constants - Variables/PV Names - Basic Computations - Boolean Operations - Functions -

The Data Browser, the Alarm Server 'filter' and maybe other CSS tools support the following type of formula.

Numbers

Numbers can be entered as

Constants

Predefined constants

Variables/PV Names

In the Data Browser, formulas can contain variables which are mapped to other Data Browser traces. In the Alarm Server 'filter', formulas can contain PV names. In either case, enclose names that contain numbers or other special characters with single quotes:

Basic Computations

Basic computations are supported with the standard order of operations:

Boolean Operations

Boolean operations result in 0.0 or 1.0 for 'false' respectively 'true', supporting the following operators for comparisons, 'not', 'or', 'and', as well as the C/Java type if-then-else operator:

Functions

Random number [0 ... x[:

The following functions take one or two arguments as indicated and return the value defined by the respective Java 'Math' routine:

These special functions take two or more arguments: