The following notation modes can be used in the
definition part | notation mode | identifier | Example | How to convert | Example conversion result |
#COFF | Hexadecimal | & H " | & HOFFF | No Conversion | &HFFF |
Decimal notation | None | 123 | Decimal → Hexadecimal | & H007B | |
% notation | [%] | % 50 | (1) | & H0800 | |
decimal notation | "." | 0.25 | (2) | & H0400 | |
# ADR5 | Hexadecimal | & H " | & H8000 | No Conversion | &H8000 |
Decimal notation | None | 123 | Decimal → Hexadecimal | & H007B | |
millisecond notation | "ms" | ms300.0 | (3) | & H33AE |
The item of “Conversion method” indicates how to perform the conversion from “value in each notation mode to actual data”. The conversion methods (1), (2) and (3) are as follows.
(1) (Coefficient value) = 4095 × (Notation value) / 100
(2) (Coefficient value) = 4096 × (Notation value)
(3) (Address constant value) = 44100 × (Notation value) / 1000
* All of (1), (2), and (3) are calculated in floating point, and the result is finally rounded to zero.
* The format of the actual data after conversion (on the EXC file) is as follows.
defined part | actual data format |
#COEF | Hexadecimal number in 13bit2's complement format |
#ADRS | hex in 16bit linear format |
* Pay attention to the difference (4095 and 4096) between the constants in (1) and (2).