Novatek-electro RS-485 Operating Manual page 35

Interface controller
Table of Contents

Advertisement

VARLEVAR <var ref> <var ref>
VARLEVAL <var ref> <int>
VARLSVAR <var ref> <var ref>
VARLSVAL <var ref> <int>
VARGEVAR <var ref> <var ref>
VARGEVAL <var ref> <int>
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>
ALARMOFF <alarm reason>
PARAMWRVAR <param ref> <var ref>
PARAMWRVAL <param ref> <int>
SENDSMS <phone ref> <str ref>
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, instead 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;
NOVATEK-ELECTRO
35
-
-
Comparison of two variables - The condition is met when the first variable
by reference is not greater than the second.
Comparison of a variable with a given value - The condition is met when
the reference variable is no larger than the specified value.
Comparison of two variables - The condition is met when the first variable
by reference is less than the second.
Comparison of a variable with a given value - The condition is met when
the reference variable is less than the specified value.
Comparison of two variables. The condition is fulfilled when the first
variable by reference is not less than second variable.
Comparison of a variable with a specified value. The condition is fulfilled
when a variable by reference is not less than the specified value.
Turn on alarm LED. Red LED alarm will be on to the action of
ALARMOFF with the same number of <alarm reason>.
Turn off alarm LED
Record the parameter with the value of the variable
Record the parameter with the set value
Send SMS
EM-481

Advertisement

Table of Contents
loading

This manual is also suitable for:

Em-481

Table of Contents