Characteristics of the Custom Logic Program
Introduction
The data transferred to or from the LTMT main unit is in the form of 16-bit registers. The registers are numerically ordered and referenced by a 16-bit register address (0–65,535).
The customized program can modify the values of three types of registers:
-
LTMT main unit registers
-
Temporary registers
-
Non-volatile registers
Logic Memory Characteristics
The list of commands for the customized program is saved in an area of the internal non-volatile memory of the LTMT main unit.
The format of this logic memory is illustrated in this table:
Memory location |
Item |
Range |
Description |
---|---|---|---|
0 |
Logic Program Size (n) |
0–8,191 0 means that no customized program is loaded. |
16-bit word |
1 |
Logic Checksum |
0–65,535 |
Sum of program memory from offset 2–n+2 |
2 |
Logic ID |
268–511, refer to |
Identifier of the customized program within the LTMT main unit |
3 |
Logic Command/Argument 1 |
Depending on the Logic Commands |
One word of logic function |
4 |
Logic Command/Argument 2 |
||
5 |
Logic Command/Argument 3 |
||
— |
— |
– |
– |
n+2 |
Logic Command/Argument n |
– |
One word of logic function |
Logic Memory Limits
The program size is dependent on the number of logic commands. While in the text editor a command and its arguments will occupy a single line, in the memory, it will occupy as many memory locations as there are arguments.
For example, the command timer 0.1 980 will use four memory locations.