Section 10
HP PCL Macro Commands and
Programming Hints
Your printer uses several commands during a typical print operation. During some opera-
tions the same print routine may be repeated several times. PCL provides a macro feature
so you can reduce the number of commands sent to the printer. A macro is a collection of
escape sequences, control codes, and data downloaded to the printer that can be initiated
through a single command.
*
CREATING A MACRO
Each macro needs a unique identification (ID) number that must be assigned before you de-
fine the macro. If you assign an existing macro's number to a new macro, the existing mac-
ro is overwritten in the user memory as you define the new macro. All subsequent macro
operations are performed by using the macro ID number.
You create a macro in three steps.
first, send an escape sequence to the printer that indicates the start of a macro def-
inition.
second, send the escape codes, control codes, and data that you want in the mac-
ro. These items must be sent in the intended order of execution.
third, send an escape code to the printer that indicates the end of the macro defi-
nition.
CONTROLLING A MACRO
Macros are stored in user memory. Depending on the amount of memory available in the
IntelliBar M Series, up to 32 macros can be stored simultaneously.
You can use three different ways to invoke a macro:
execute
call
overlay.
Содержание Intellibar M412
Страница 115: ...9 2 HP PCL Graphics Commands Figure 9 1 Star Shaped Raster Image...
Страница 122: ...HP PCL Graphics Commands 9 9 Figure 9 4 Example of Raster Graphic Image Data...
Страница 126: ...HP PCL Graphics Commands 9 13 Figure 9 6 Shading Levels...
Страница 127: ...9 14 HP PCL Graphics Commands Figure 9 7 Fill Patterns...