-
35
-
NOVATEK-ELECTRO EM-481
VARLEVAR
<var ref> <var ref>
Comparison of two variables -
The condition is met when the first variable
by reference is not greater than the second.
VARLEVAL
<var ref> <int>
Comparison of a variable with a given value -
The condition is met when
the reference variable is no larger than the specified value.
VARLSVAR
<var ref> <var ref>
Comparison of two variables -
The condition is met when the first variable
by reference is less than the second.
VARLSVAL
<var ref> <int>
Comparison of a variable with a given value -
The condition is met when
the reference variable is less than the specified value.
VARGEVAR
<var ref> <var ref>
Comparison of two variables
. The condition is fulfilled when the first
variable by reference is not less than second variable.
VARGEVAL
<var ref> <int>
Comparison of a variable with a specified value
. The condition is fulfilled
when a variable by reference is not less than the specified value.
Example:
!CONDS
0 VAREQVAL V0 1
1 NOT C0
2.8. ACTS Section
It contains actions that can be performed (action is performed only by references from the section of the
reactions
REACTS
, during the performance of the conditions indicated there). The lines in this section are in
ascending order, starting from zero. Each line has the following format:
<index> <action type> <argument 1> [argument 2]
Index: the sequential number of the line.
The types of the arguments:
<int>
- 32-bit signed integer;
<alarm reason>
- is the number of reason of the alarm
– when any of the alarms is enabled, red LED of
alarm is on, so to turn off the indicator, each of them needs to be turned off;
<param ref>
- reference to the parameter of format Pn, where n is the index of the parameter;
<phone ref>
- reference to the phone of format Hn, where n is the index of the phone;
<str ref>
- reference to the line of format Sn, where n is the index of the line;
<var ref>
- reference to variable of format Vn, where n is the index of the variable.
Table C.7
– Types of actions
ALARMON
<alarm reason>
Turn on alarm LED
. Red LED alarm will be on to the action of
ALARMOFF with the same number of <alarm reason>.
ALARMOFF
<alarm reason>
Turn off alarm LED
PARAMWRVAR
<param ref> <var ref>
Record the parameter with the value of the variable
PARAMWRVAL
<param ref> <int>
Record the parameter with the set value
SENDSMS
<phone ref> <str ref>
Send SMS
Example:
!ACTS
0 SENDSMS H1 S0
1 PARAMWRVAL P0 31
2.9. REACTS Section
It contains the responses, a list of actions that must be performed under specified conditions. Lines do not have
numbering, inst
ead of an index is “*”. Each line has the following format:
* <cond ref> <response type> <act ref>
The types of the arguments:
<cond ref>
- reference to the condition of the format Cn, where n is the index of the condition;