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

AVEVA™ Plant SCADA

Numbers and Strings

  • Last UpdatedJul 13, 2023
  • 2 minute read

Allowed format for integer constants in decimal format is as follows:

IntegerConst = 0 or [sign] <non-zero_digit> <digit>*;

Where:

  • sign :: = + | -

  • non-zero_digit ::= 1-9

  • digit ::= 0-9

For example, an integer constant is a zero or consists of an optional sign followed by one or more digits. Leading zeros are not allowed. Integer constants outside the range –2147483648 to 2147483647 cause an overflow error.

Prepending either 0x or 0X causes a literal integer constant to be interpreted as hexadecimal notation. The +/- sign is supported.

The acceptable float for integers in hexadecimal is as follows:

IntegerHexConst = [<sign>] <0><x (or X)> <hexdigit>*

Where:

  • sign ::= + or -

  • hexdigit ::= 0-9, A-F, a-f (only eight hexdigits [32-bits] are allowed)

Allowed format for floats is as follows:

FloatConst ::= [<sign>] <digit>* .<digit>+ [<exponent>;]

or

[<sign>] <digit>+ [.<digit>* [<exponent>]];

Where:

  • sign ::= + or -

  • digit ::= 0-9 (can be one or more decimal digits)

  • exponent = e (or E) followed by a sign and then digit(s)

Float constants are applicable as values for variables of type float, real, or double. For example, float constants do not take the number of bytes into account. Script validation detects an overflow when a float, real, or double variable has been assigned a float constant that exceeds the maximum value.

If no digits appear before the period (.), at least one has to appear after it. If neither an exponent part nor the period appears, a period is assumed to follow the last digit in the string.

If an equipment.item reference exists that has a format similar to a float constant with an exponent (such as "5E3"), then use the equipment.item qualifier, as follows:

equipment.item("5E3")

Strings have to be surrounded by double quotation marks. They are referred to as quoted strings. The double-double quote indicates a single double-quote in the string. For example, the string:

Joe said, "Look at that."

can be represented in QuickScript .NET as:

"Joe said, ""Look at that."""

QuickScript .NET Variables

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