-
34
-
EM-481
NOVATEK-ELECTRO
Example:
!STRS
0 *U*
-
awaria 21: korotkoe zamykanie TS2
2.6. PHONES Section
It contains texts that are used for addressing SMS. The lines in this section are in ascending order, starting from
zero. Each line has the following format:
<index> <text(phone number)>
Index: the sequential number of the line.
Special sequences in the text of the line:
• *U* - MODBUS ID by default
• *<var ref>* - a reference to a variable, for example *V2*
• ** - means one character*
Note
- if there are no numbers in the phone number other than 0, then SMS to this number will not be sent.
Example:
!PHONES
# Ivanoff - comment
0 067*V0*
2.7. CONDS Section
It contains conditions that compare variables. The lines in this section are in ascending order, starting from zero.
Each line has the following format:
<index> <condition type> <argument 1> [argument 2]
Index: the sequential number of the line.
The types of the arguments:
<int>
- 32-bit signed integer;
<cond ref>
- reference to the condition of the format Cn, where n is the index of conditions;
<var ref>
- reference to the variable of format Vn, where n is the index of the variable;
Table C.6
– Condition types
IF
<cond ref>
Copy of the condition
CONDIS
<int>
Set to the specified value -
The condition is met if the value is not 0. It can
be used for adjustment or for unconditional actions for each update cycle.
NOT
<cond ref>
Logical NOT
. The condition is satisfied, when the referred condition did not
happen and vice versa.
AND
<cond ref> <cond ref>
Logical AND
. Condition is satisfied, when both refereed conditions
happened.
OR
<cond ref> <cond ref>
Logical OR
. The condition is satisfied, when any referred conditions occurred.
VAREQVAR
<var ref> <var ref>
Comparison of two variables
. The condition is fulfilled, if they are equal.
VAREQVAL
<var ref> <int>
Comparison of a variable with a specified value
. The condition is fulfilled
when a variable by reference is equal to the specified value.
VARNEVAR
<var ref> <var ref>
Comparison of two variables -
The condition is met if they are not equal.
VARNEVAL
<var ref> <int>
Comparison of a variable with a given value -
The condition is met when
the reference variable is not equal to the specified value.
VARGRVAR
<var ref> <var ref>
Comparison of two variables
. The condition is fulfilled when the first
variable by reference is more than the second variable.
VARGRVAL
<var ref> <int>
Comparison of a variable with a specified value
. The condition is fulfilled
when a variable by reference is more than the specified value.