Macros - Lexmark Optra T Reference

Technical reference
Hide thumbs Also See for Optra T:
Table of Contents

Advertisement

Macros

When creating a macro, first assign it an ID number. If this number is identical to an
existing macro ID in RAM, the old macro is deleted when you specify the Macro
Control Start Definition. Next, start the macro definition, send the contents of the
macro, and stop the macro definition.
Note:
Example:
This example creates a macro to print the Wigit Corp. logo, then calls the logo macro
in the body of a letter.
ESC
&f1Y
ESC
&f0X
ESC
&a+72H
ESC
(8U
ESC
(s1p18v0s3b4101T
W
ESC
&a-21.6H
ESC
(s12v1S
igit
ESC
&a+72H
ESC
(s18v0S
C
ESC
(s12v1S
orp.
ESC
&a+72H
ESC
&f1X
ESC
&f10X
...
...
From:
ESC
&f1y3X
...
Thank you for ...
ESC
&f1y3X
...
Although a macro may be called or executed from within another macro
(nesting), a macro cannot be defined within another macro definition. Each
macro must be defined separately.
2-66
|Set the macro ID to 1
|Start the macro definition
|Relative move right 1/10 inch (+72/720th)
|Select Roman-8 symbol set
|Select CG Times 18 point bold
|Print W
|Relative move left 0.03 inch
|Select (CG Times) 12 point (bold) italic
|Print igit
|Relative move right 1/10 inch
|Select 18 point and turn off italic
|Print C
|Select 12 point italic
|Print orp.
|Relative move right 1/10 inch
|End of macro definition
|Make Macro ID 1 permanent
|Print the header From:
|Set the macro ID to 1 and call the macro
|Print the letter
|Print the closing
|Set the macro ID to 1 and call the macro
PCL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents