Define a Variable
This command defines the content of the nth variable.
ASCII |
US k n d1 d2 … di NUL |
Hexadecimal |
1F 6B n d1 d2 … di 0 |
Decimal |
31 107 n d1 d2 … di 0 |
Value of n |
The variable ID. n=1 to 50 d1, d2, … , di: Strings of character data. Strings terminated with NUL |
Default |
n—1 |
The maximum data length is 57 bytes. Variables can be included in the macro and pre–defined backside data. The defined variables are only saved in RAM and need to be redefined after a power cycle.
Exceptions
Variable data can only be characters. If any control code is included, these commands are ignored.
Note: This command does not support printing position. In standard mode, printer cannot print data that is higher than current print position. If in page mode, user can use positioning command (1D 24 or 1D 5C) for page mode.