-
33
-
NOVATEK-ELECTRO EM-481
Table C.5
– Types of sources
COPY
<var ref>
Copy the variable.
VAL
<int>
Set to the specified value.
PARAMVAL
<param ref>
Copy the value of the parameter.
PARAMBIT
<param ref> <bit number>
Copy one bit of the parameter value.
PARAMERC
<param ref>
Copy the last error code of MODBUS parameter.
PARAMERN
<param ref>
Copy the error counter of reading the parameter
(it is reset to 0
after successful reading, and is incremented by 1 after each update,
for which read attempts of the parameter was terminated).
VARADDVAR
<var ref> <var ref>
Sum of two variables.
VARADDVAL
<var ref> <int>
The sum of the variable and a given value
VARMULVAR
<var ref> <var ref>
Product of two variables
VARMULVAL
<var ref> <int>
The product of a variable and a given value
VARSUBVAR
<var ref> <var ref>
Difference of two variables
VARSUBVAL
<var ref> <int>
The difference between a variable and a given value
VARDIVVAR
<var ref> <var ref>
Quotient of two variables (the remainder is discarded)
VARDIVVAL
<var ref> <int>
The quotient of variable and a given value (without remainder)
VARMODVAR
<var ref> <var ref>
The remainder of the division of two variables
VARMODVAL
<var ref> <int>
The remainder of the division of the variable by a given value
VARSMIN
<var ref> <var ref>
The minimum of all variables in the specified range
VARSMINIDX
<var ref> <var ref>
The number of the minimum variable in the specified range
VARSMAX
<var ref> <var ref>
Maximum of all variables in the specified range
VARSMAXIDX
<var ref> <var ref>
The number of the maximum variable in the specified range
VARSSUM
<var ref> <var ref>
The sum of all variables in the specified range
VARSSELBYC
<var ref> <cond ref>
Choice of one variable from the range by condition
- The value of
that variable from the range (from the specified to the current one),
the order of which in the range corresponds to the first condition that
is fulfilled (starting from the specified one). To use such a variable, it
is necessary to describe not only a list of variables above it, but also
a list of conditions. Since the conditions usually refer to variables,
such a list of conditions is placed "in a break" in the variable list, after
which the variable is placed in the coninued "VARS" section. It is
recommended that the last condition in the list be described in such a
way that it is always fulfilled to limit the list.
Example:
!VARS
0 PARAMBIT P0 0
2.5. STRS Section
It contains the text used as message for actions. The lines in this section are in ascending order, starting from
zero. Each line has the following format:
<index> <text>
Index: the sequential number of the line.
Special sequences in the line text:
*U*
- MODBUS ID by default;
*<var ref>*
- variable reference, such as
*V2*
**
- means a single character *