User Store (Graphic Save) - TransAct POSjet 1500 Programmer's Manual

Transact posjet 1500: software guide
Hide thumbs Also See for POSjet 1500:
Table of Contents

Advertisement

Programmer' s Guide
Same-As-Previous Compression
In same-as-previous compression, the command does not contain any graphics data. The command specifies that
the printer is to use the previous scan line data for the current scan line. ESC h <1> <1> <255>.

User Store (Graphic Save)

®
The POSjet
1500 Printer maintains a 16K (16384 bytes) section of flash memory and up to 192K of extended flash
memory to save user information. The information can be either macros or user-defined characters. These groups of
data are indexed by name and may be called up at any time after they are stored. See the sections on Macros and
User-defined Characters for definitions of these functions.
To allow the host application to maintain these groups of data, a series of user store maintenance commands are
available. As referenced earlier in this manual, the user can define a limited number of custom characters and define
a macro. These character/macro definitions can also be saved in user store. However, only one character definition
and one macro can be active at any time. One macro and one user-defined character definition can be flagged to load
and run at startup. If a flag is set, the printer will automatically process the macro and/or load the user-defined
character set at initialization.
Because user store is intended to be loaded only a few times and then printed as part of normal operation, the
programmer must take some care during the definition phase. The programmer must assume the responsibility to
assure the 16K buffer size is not exceeded. User store can save macros and user-defined character sets.
When the basic user store is full, it can be moved to extended user store. Individual items in the extended user store
can not be erased. The entire extended user store must be erased all at once. You may place two items in user store
with the same name and the last defined item will be used.
Defining Macros
Macros can be defined two ways. The first is by using the begin and end named macro commands. These
commands start the recording process and automatically save the macro when it is complete. The macro data is not
processed as it is sent to the printer.
Function
Begin named macro record
ASCII
[ESC] [US] b <Name..> <0>
Then send the data to be recorded. The printer does not process the data. The terminating <0>
may be replaced with an & or redefined. See [ESC] [EM]T<n> or &%UT<n> on page 150.
Function
End name macro record
ASCII
[ESC] [US] e <Name..> <0>
The second way to define macros is to use [ESC] g commands to define the macro and then the
save macro data command to save the data. The terminating <0> may be replaced with an & or
redefined. See [ESC] [EM]T<n> or &%UT<n> on page 150.
Function
Start macro record
ASCII
[ESC] g <1>Then send the data to be recorded. (The data is processed and printed).
Function
Stop macro record
ASCII
[ESC] g <2>Then save the macro.
Function
Save macro data
ASCII
[ESC] [US] m <Name..><0>
Saving User-defined Characters. To save user-defined characters, first define the character set.
Nov-07
®
POSjet
1500
Rev M
Codes and Commands
Page 145

Advertisement

Table of Contents
loading

Table of Contents