Macro Creation - HP PCL 5 Reference Manual

Printer language technical reference manual
Hide thumbs Also See for PCL 5:
Table of Contents

Advertisement

Macro Creation

Designate a unique identification (ID) number prior to the definition
of a macro using the Macro ID command. This number is assigned to
the macro. If a macro is already associated with this ID number, the
previously existing macro is deleted from user memory during the
definition of the new macro. Subsequent macro operations are
accomplished using the macro ID number.
A macro is created in the printer in several steps. First, the start
macro command is sent to the printer to indicate the start of a macro
definition. Next, the printer commands, control codes, and data that
constitute the macro are sent to the printer, in the intended order of
their execution. Finally, the End Macro command is sent to the printer
to indicate the end of the macro definition
Table 12-1
Assign ID
Number
Start Macro
Definition
Macro data
Macro data
Stop
MacroDefinition
To invoke a macro, send the Macro ID command with the ID number
of the macro, then send the Macro Control command with a value
field of 2, 3, or 4 (
macro in the specified mode: Execute (value field=2), Call (value
field=3), or Overlay (value field=4). Refer to the following section
"Macro Invocation" for a description of these modes.
EN
Macro ID command (
unique identification number (14) to the macro.
Macro Control command,
following commands and data are to be stored
as a macro.
Escape sequences, control codes, HP-GL/2
commands and text required to perform the
desired operation.
Macro Control command,
end of the macro data (definition).
E
E
,
, or
&f2X
&f3X
C
C
E
) assigns a
&f14Y
C
E
, indicates the
&f0X
C
E
, identifies the
&f1X
C
E
). This performs the
&f4X
C
Macro Creation 12-3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Laserjet 4100

Table of Contents