User`s guide
STORING DATA IN THE PRINTER MEMORY
102 Copyright © 2006, Cognitive.
Example 1 The following commands store the format that
prints the label in the Format Recall example. Data
is still needed for the description, price, and
combined item/price. The printer will send prompts
for this data to the serial port at print time. This is
a standard stored format; notice that commands
that define fixed data are freely mixed with
commands that define variable data.
!S~ 3 F FORM_1
WIDTH 224
JUSTIFY CENTER
ULTRA_FONT A24 (3,2,0) 224 0 ~DESCRIPTION>
STRING 18X23 29 30 SALE PRICE:
JUSTIFY LEFT
ULTRA_FONT A50 (5,2,0) 240 30 ~PRICE>
BARCODE CODE39X 20 150 60 ~ITEM/PRICE>
END
Example 2 This file stores the same label using enhanced
format storage. Notice that all commands specifying
variable data are grouped at the end of the file and
separated from the fixed data commands by the
delimiter character (the \ character in this case).
Do not send prompts to the printer when using
enhanced format storage.
!S\ 3 E220 EFORM_1
WIDTH 224
JUSTIFY CENTER
STRING 18X23 29 30 SALE PRICE:
\
ULTRA_FONT A24 (3,2,0) 224 0 \
JUSTIFY LEFT
ULTRA_FONT A50 (5,2,0) 240 30 \
BARCODE CODE39X 20 150 60 \
END