-
32
-
EM-481
NOVATEK-ELECTRO
Table C.4
– Data types
UINT16
16-bit unsigned integer
. It occupies one register.
INT16
16-bit signed integer.
INT16BLE
16-bit signed integer with reverse order of byte transfer.
INT32
32-bit signed integer
. It occupies 2 registers.
INT32BLE
32-bit signed integer with reverse order of bytes.
INT32WLE
32-bit signed integer with reverse order of words.
BIT
1-bit value for the digital inputs and flags.
INT32BE
32-bit signed integer.
For compatibility, the analog to
INT32
.
F32EP0R
32-bit rounded to an integer with floating point.
F32EP1R
32-bit with floating-point, multiplied by 10, rounded.
F32EP2R
32-bit with floating-point, multiplied by 100, rounded.
F32EP3R
32-bit with floating-point, multiplied by 1000, rounded.
F32BLEEP0R
32-bit with reverse order of bytes and floating-point.
F32BLEEP1R
32-bit with reverse order of bytes and floating-point *10.
F32BLEEP2R
32-bit with reverse order of bytes and floating-point *100.
F32BLEEP3R
32-bit with reverse order of bytes and floating-point *1000.
F32WLEEP0R
32-bit with reverse order of words and floating-point.
F32WLEEP1R
32-bit with reverse order of words and floating-point *10.
F32WLEEP2R
32-bit with reverse order of words and floating-point *100.
F32WLEEP3R
32-bit with reverse order of words and floating-point *1000.
Example:
!PARAMS
0 3 UINT16 H 240
2.4. VARS Section
It contains variables, processing the parameters and other calculations (e.g. the sum of the parameters). The
lines in this section are in ascending order, starting from zero. Each line has the following format:
<index> <source type> <argument 1> [argument 2]
Index: the sequential number of the line.
The types of the arguments:
<bit number>
- is the bit number of the parameter from 0 and above. For 16-bit parameters it is no more
than 15. For 32-bit parameters it is not more than 31;
<int
>
- 32-bit signed integer;
<param ref>
- parameter reference of format Pn, where n is index of the parameter;
<var ref>
- variable reference of format Vn, where n is index of the variable.
<cond ref> -
reference to the Cn format condition, where n is the condition index