7.4. Handling Macros; 7.4.1. Delete all macros; 7.4.2. Delete all temporary macros- Page 125

Brother HL-2140 Command Reference Guide for Software Developers

Table of Contents

Technical Reference Guide
GLOSSARY
background image

 

CHAPTER 2 PCL - 105 

7.4.

 

Handling Macros 

7.4.1.

 

Delete all macros 

Esc&f6X (27)(38)(102)(54)(88) <1Bh><26h><66h><36h><58h> 

ï‚Ÿ

 

This command deletes all macros from the printer's memory. 

 

7.4.2.

 

Delete all temporary macros 

Esc&f7X (27)(38)(102)(55)(88) <1Bh><26h><66h><37h><58h> 

ï‚Ÿ

 

This command deletes all temporary macros from the printer's memory. Temporary macros are those which 
have not been made permanent with the Esc&f10X command. 

 

7.4.3.

 

Delete macro  

Esc&f8X (27)(38)(102)(56)(88) <1Bh><26h><66h><38h><58h> 

ï‚Ÿ

 

This command deletes from printer memory the macro whose ID number was specified most recently. 

 

7.4.4.

 

Make macro temporary 

Esc&f9X (27)(38)(102)(57)(88) <1Bh><26h><66h><39h><58h> 

ï‚Ÿ

 

This command makes the macro whose ID number was specified most recently temporary (that is, it will not 
be retained if the printer is reset). 

7.4.5.

 

Make macro permanent 

Esc&f10X (27)(38)(102)(49)(48)(88) 

<1Bh><26h><66h><31h><30h><58h> 

ï‚Ÿ

 

This command makes the macro whose ID number was specified most recently permanent (that is, it will be 
retained if the printer is reset). 

 

7.4.6.

 

Delete all macros from the storage device 

Esc&f1030X (27)(38)(102)(49)(48)(51)(48)(88)
 <1Bh><26h><66h><31h><30h><33h><30h><58h> 

ï‚Ÿ

 

This command deletes all macros and all data from the storage device. 

 

7.4.7.

 

Delete macro from the storage device 

Esc&f1036X (27)(38)(102)(49)(48)(51)(54)(88)
 <1Bh><26h><66h><31h><30h><33h><36h><58h> 

ï‚Ÿ

 

This command deletes the macro whose ID number was specified most recently from the storage device. 

 

7.4.8.

 

Save macro into the storage device 

Esc&f1038X (27)(38)(102)(49)(48)(51)(56)(88)
 <1Bh><26h><66h><31h><30h><33h><38h><58h> 

ï‚Ÿ

 

This command saves the macro whose ID number was specified most recently into the storage device. 

 

Macro example 

  

10 REM ***** A EXAMPLE OF A MACRO *****  
20 ESC$=CHR$(27)  
30 WIDTH "LPT1:",255  
40 REM --- RESET PRINTER ---  
50 LPRINT CHR$(27);"E":  
60 REM --- SET MACRO ID TO 0 ---  
70 LPRINT ESC$+"&f0Y";  
80 REM --- START MACRO DEFINITION ---  
90 LPRINT ESC$+"&f0X";  
100 REM --- SET CURSOR POSITION X=1800 DOT, Y=0 DOT ---  
110 LPRINT ESC$+"*p1800x0Y";  

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

Lists of information found in Brother HL-2140 Command Reference Guide for Software Developers - Page 125

  • 7.4.
  • 7.4.
  • 1. Delete all macros Esc&amp;f6X (27)(38)(102)(54)(88) &lt;1Bh&gt;&lt;26h&gt;&lt;66h&gt;&lt;36h&gt;&lt;58h&gt; ï‚Ÿ This command deletes all macros from the printer's memory.
  • 7.4.
  • 2. Delete all temporary macros Esc&amp;f7X (27)(38)(102)(55)(88) &lt;1Bh&gt;&lt;26h&gt;&lt;66h&gt;&lt;37h&gt;&lt;58h&gt; ï‚Ÿ This command deletes all temporary macros from the printer's memory.
  • 7.4.
  • 3. Delete macro Esc&amp;f8X (27)(38)(102)(56)(88) &lt;1Bh&gt;&lt;26h&gt;&lt;66h&gt;&lt;38h&gt;&lt;58h&gt; ï‚Ÿ This command deletes from printer memory the macro whose ID number was specified most recently.
  • 7.4.
  • 4. Make macro temporary Esc&amp;f9X (27)(38)(102)(57)(88) &lt;1Bh&gt;&lt;26h&gt;&lt;66h&gt;&lt;39h&gt;&lt;58h&gt; ï‚Ÿ This command makes the macro whose ID number was specified most recently temporary (that is, it will not be retained if the printer is reset).
  • 7.4.
  • 5. Make macro permanent Esc&amp;f10X (27)(38)(102)(49)(48)(88) &lt;1Bh&gt;&lt;26h&gt;&lt;66h&gt;&lt;31h&gt;&lt;30h&gt;&lt;58h&gt; ï‚Ÿ This command makes the macro whose ID number was specified most recently permanent (that is, it will be retained if the printer is reset).
  • 7.4.
  • 6. Delete all macros from the storage device Esc&amp;f1030X (27)(38)(102)(49)(48)(51)(48)(88) &lt;1Bh&gt;&lt;26h&gt;&lt;66h&gt;&lt;31h&gt;&lt;30h&gt;&lt;33h&gt;&lt;30h&gt;&lt;58h&gt; ï‚Ÿ This command deletes all macros and all data from the storage device.
  • 7.4.
  • 7. Delete macro from the storage device Esc&amp;f1036X (27)(38)(102)(49)(48)(51)(54)(88) &lt;1Bh&gt;&lt;26h&gt;&lt;66h&gt;&lt;31h&gt;&lt;30h&gt;&lt;33h&gt;&lt;36h&gt;&lt;58h&gt; ï‚Ÿ This command deletes the macro whose ID number was specified most recently from the storage device.
  • 7.4.
  • 8. Save macro into the storage device Esc&amp;f1038X (27)(38)(102)(49)(48)(51)(56)(88) &lt;1Bh&gt;&lt;26h&gt;&lt;66h&gt;&lt;31h&gt;&lt;30h&gt;&lt;33h&gt;&lt;38h&gt;&lt;58h&gt; ï‚Ÿ This command saves the macro whose ID number was specified most recently into the storage device.

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