User’s Manual1 DATECS LP-1000
32 33
5.3 Generating a graphic image
Generating a text
The command is used for inserting textual information in the image.
Format: Aa,b,c,d[*],e,f,g,[*]h
a Starting coordinate on X for the upper left angle of
the text: 0 - 2047.
b Starting coordinate on Y for the upper left angle of
the text: 0 - 4095.
c Text orientation: 0=0
o
, 1=90
o
, 2=180
o
, 3=270
o
where rotation is clockwise.
d Font selection, where the following values are
possible:
0: 12x24 dots
1: 8x12 dots
2: 10x16 dots
3: 12x20 dots
4: 14x24 dots
5: 32x48 dots
6: 24 x 24 dots Hangeul or Chinese font
(For Korean or Chinese version only)
d can be a Latin letter in which case it is a name of a
loadable font. The size of the symbols is there
contained. Around each of the in-built fonts there is
a white frame 1 dot wide so that the printable size is
actually 2 points bigger than the size stated above.
e Selection of a multiplier for X of the font. Possible
values are 1 - 8.
f Selection of a multiplier for Y of the font. Possible
values are 1 - 9.
g Printing mode: N - normal, R - inverted, B - bold, W
inverted bold. The loadable font can be printed
only in a normal mode.
h Text data. The format for generating a text and a
barcode is the same and is described further on.
If code table 11 (Hebrew) or 12 (Arabic) is selected, the text is printed
from right to the left. You can change the print direction placing the
symbol ‘*’ before the text data. If the symbol ‘*’ is placed after the font
name, then code table 0 (CP437) is used for this text line indepen-
dent of the last command ‘I’ executed.
Format: Va,b,c,d,e
a The number of the variable (0 - 31)
b Maximum length (1 - 63)
c Alignment - possible values:
N No alignment - actual length is used.
R The string of the variable is right aligned - on
the left the set length is filled with the additional
symbol.
L The string of the variable is left aligned - on the
right the set length is filled with the additional
symbol.
C The string of the variable is center aligned
while on both sides the maximum length is filled
in with the additional symbols.
d This is the additional symbol for the preceding
argument. If it is not selected space is used.
e A suggestive text (prompt). This is a string closed
by brackets and a max. length of 25 symbols. At
initialization of the variable the printer sends this
text over the serial port.
Example: V1,6,L,”Name:”
Defines a variable No.1 with a maximum length of 6
bytes, left aligned with spaces.
Initialization of variables and counters
After this command the printer asks for initialization values for the
defined counters and variables in the order of their logical
numbers. After each entry the printer sends a text prompt via its
serial port. If a longer string is sent it will cut off from the right end.
Empty strings will call out the old value of the counter or variable.
Initializing a counter with a string, which cannot be interpreted as
a positive number will be rejected.
Format: ?
Clearing the content of variables and counters
The command clears the contents and deactivates all variables and
counters.
Format: VC