MACRO DEFINITION A macro is a collection of printer commands, control codes and/or data created by the user that is downloaded and stored in the printer's memory. Once stored in the printer, a macro can be invoked by a single command. Macros can eliminate the need to download the same information repeatedly, thus saving transmission time. The number of macros that can be stored in the printer's memory is limited only by the amount of available memory (except in LJ II or earlier where 32 macros is the limit). Practical uses of macros include forms, letterhead, logos and lengthy printer commands.
MACRO CREATION STEPS
MACRO INVOCATION 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 (Ec&f2X), (Ec&f3X), (Ec&f4X). This performs
the macro in the specified mode: 2 = Execute 3 = Call 4 = Overlay
THE PRINT ENVIRONMENT
DELETING MACROS There are several mechanisms provided by PCL macro control for explicit deletion of macros from user memory. These include commands to delete all macros, all temporary macros, or an individual macro by reference to its macro ID number. See the Macro Control Command. Both temporary and permanent macros are deleted from memory whenever the printer's power is turned off.
MACRO CONTROL COMMAND The macro control command provides mechanisms
for definition, invocation, and deletion of macros.
Ec&f#X
# = 0 Start macro definition (last ID specified)
# = 1 Stop macro definition
# = 2 Execute macro (last ID specified)
# = 3 Call Macro (last ID specified)
# = 4 Enable macro (last ID specified)
# = 5 Disable automatic overlay (last ID specified)
# = 6 Delete all macros
# = 7 Delete all temporary macros
# = 8 Delete macro (last ID specified)
# = 9 Make macro temporary (last ID specified)
# = 10 Make macro permanent (last ID specified)
MACRO NOTES
* A macro may call or execute another macro, which in turn may call or execute another macro, two levels of nesting are allowed. When macros larger than 64K are stored in FLASM memory (SIMMs or DIMMs) the available levels may be reduced.
* Other than call and execute, no macro control operations may occur within a macro.
* A printer reset (EcE or UEL) is not allowed in a macro.
* The macro enabled for automatic overlay is invoked on each page, until the macro is disabled or deleted, a reset occurs (through software or control panel), or the page length, page size or orientation is changed.
* HP-GL/2 commands are only supported in a macro in the LaserJet 4 family and above.
* PCL macro control commands are not allowed while in HP-GL/2 context.
Copyright Hewlett-Packard Co. 1993 The information contained herein is subject to change without notice. Hewlett-Packard shall not be liable for incidental or consequential damages in connection with the use of this material.
See Also:
file: /Techref/language/pcl/lj1690.htm, 6KB, , updated: 2005/5/10 14:05, local time: 2024/10/8 15:12,
44.220.251.236:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/language/pcl/lj1690.htm"> Macros</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.