7.2. Defining a Macro; 7.2.1. Macro ID; 7.2.2. Start macro definition- Page 123

Brother HL-2220 Command Reference Guide for Software Developers

2014 Dodge Charger SRT Owner Manual

Table of Contents

Technical Reference Guide
GLOSSARY
background image

 

CHAPTER 2 PCL - 103 

7.2.

 

Defining a Macro 

To define a macro you must first assign an ID number to it, then send to the printer a Start Macro Definition 
command, the macro definition itself (consisting of a sequence of PCL commands) and finally an End Macro 
Definition command. 

7.2.1.

 

Macro ID 

Esc&f#Y (27)(38)(102)#(89) 

<1Bh><26h><66h>#<59h> 

ï‚Ÿ

 

This command assigns an identity number to a macro that is to be downloaded, or references an existing 
macro in the printer's memory. 

ï‚Ÿ

 

# is  the ID number of a macro. The ID number must be in the range 0-32767. 

ï‚Ÿ

 

If you specify the ID number of an existing macro and then download a new macro definition to the printer, 
the new macro will overwrite the existing macro. 

 

7.2.2.

 

Start macro definition 

Esc&f0X (27)(38)(102)(48)(88) <1Bh><26h><66h><30h><58h> 

ï‚Ÿ

 

This command signifies that the following commands constitute a macro definition. 

 

7.2.3.

 

End macro definition 

Esc&f1X (27)(38)(102)(49)(88) <1Bh><26h><66h><31h><58h> 

ï‚Ÿ

 

This command terminates the macro definition. 

 

Detailed Information for Brother HL-2220 Command Reference Guide for Software Developers

Lists of information found in Brother HL-2220 Command Reference Guide for Software Developers - Page 123

  • 7.2.
  • 7.2.
  • 1. Macro ID Esc&amp;f#Y (27)(38)(102)#(89) &lt;1Bh&gt;&lt;26h&gt;&lt;66h&gt;#&lt;59h&gt; ï‚Ÿ This command assigns an identity number to a macro that is to be downloaded, or references an existing macro in the printer's memory.
  • 67. ï‚Ÿ If you specify the ID number of an existing macro and then download a new macro definition to the printer, the new macro will overwrite the existing macro.
  • 7.2.
  • 2. Start macro definition Esc&amp;f0X (27)(38)(102)(48)(88) &lt;1Bh&gt;&lt;26h&gt;&lt;66h&gt;&lt;30h&gt;&lt;58h&gt; ï‚Ÿ This command signifies that the following commands constitute a macro definition.
  • 7.2.
  • 3. End macro definition Esc&amp;f1X (27)(38)(102)(49)(88) &lt;1Bh&gt;&lt;26h&gt;&lt;66h&gt;&lt;31h&gt;&lt;58h&gt; ï‚Ÿ This command terminates the macro definition.

Related Documents for Brother HL-2220 Command Reference Guide for Software Developers