17.2 Definitions

(1)    Declarative Statements

Declarative statements are used to define the operation expression. There are three types of declarative statements; substitution sentence, command sentence and expression statements.

Type

Format

Substitution Sentence

Variable = Formula

Command Sentence

Subroutine

Expression Statement

; All sentences after semicolon ‘;’

 

 

(2)    Formula

CIMON-SCADA provides various types and formats of the formula such as constants, variables, functions etc. The formula and the operator are usually used as <Formula><Operator><Formula> format. Here, the <Operator> excludes only ‘=’.

Type

Description

Constant

Includes integer, real number, string and internal constant.

Integer

[Sign][Digit]Numeral

Sign

+, - (Omitted sign represents +.)

Numeral

0 1 2 3 4 5 6 7 8 9 A B C D E F

Digit

Assign as 2#(Binary), 8#(Octal), 16#(Hexadecimal) format. Omitted digit represents decimal.

Real Number

Mantissa[Exponent]

Mantissa Part

Assign as shown below.

[Sign][Numbers].Numbers

[Sign]Numbers.[Numbers]

[Sign]Numbers

Exponent Part

Assign as shown below.

E[Sign]Numbers

e[Sign]Numbers

String

Assign as shown below.

“ASCII Codes”

Internal Constant

There are 2 predefined internal constants in CIMON-SCADA as shown below.

CONSTANT_P1:  (3.1415...)

CONSTANT_EXP: e (2.7183…)

Variable

Tag

The tag name defined in the database.

Tag Variable

The variable/constant related to the tags defined in the database.

Internal variable

The internal variable defined in the UltimateAccess Web.

Function

Function

A function for the arithmetic operation.

Subroutine

An internal command function of UltimateAccess Web.

Operator

Followings are the operators provided by UltimateAccess Web.

=, ~, !, +, -, *, /, %, |, ^, &&, <<, >>, ||, <, >, <=, >=, ==, !=