User's Manual

Performing Advanced Functions
<command> + ... use next free id-nr for the config entry and return the
id number
<command> <nr> configure given element/entry
<command> -<nr> delete given element/entry
Most of the table commands accept a parameter <modemask> which is a bitmask
and describes in which operation modes the specified descriptor will be active. The
A740 has three operation modes and it starts up with mode number zero.
Operation mode switches can be selected with the LC command (see below). The
modes are referred to as “normal mode”, “power save operation mode” or mode 1,
and “exception operation mode” or mode 2. Modes 1 and 2 can also be used with
other meanings, since these modes have no hardwired or special meanings. Also
note that “misery state”, which is activated when the battery voltage drops to 5.5V,
is different from the aforementioned operating modes which only affect the
operation of the data acquisition.
The commands which use this syntax are marked as such in the descriptions
remarks section.
CALC
DESCRIPTION: This command allows configuring the calculation functions used for data
acquisition. Needed values are: the modes, in which the entry is active, the interval
the calculations are carries out, a reference time the calculations (and data
acquisitions) are aligned to, the number of and the individual (physical) input
channels used, the number of and the individual (logical) output channels needed
and finally the parameters to the calculation, e.g. the number of values to build am
arithmetical mean value of.
PARAMETERS: CALC <canr> <modemask> <interval> <Tref> <flags> <function>
<nr_of_input_pcs> <pc> <mask for which outputs to use>
<nr_of_output_lcs> <lc> <nr_of_params> [ <param> ... ]
<canr> — Calculation number, an integer value starting from 0.
<modemask> — A bitmask which specifies the modes, in which the entry
is active.
<interval> — The interval in second within which the calculation has to
deliver a complete value.
<Tref> — A timestamp (a time_t) giving the starting time and
measurement time(s) for this calculation (reference point in time). A time
value in the future will start measurements at this point in time, provided all
the measurements can be taken in the remaining time.
<flags> — 0 acts as a NOP, 1 specifies, that the interval info for this
calculation has to be saved, too.
<function> — A number specifying the calculation function used here.
The meaning of the numbers is:
o 0 arithmetical average (1 param = nr_of_samples)
o 1 circular average (3 params, nr_of_samples, lowest value,
highest value)
o 2 minimum (1 param = nr_of_samples)
o 3 maximum (1 param = nr_of_samples)
40