Lexmark MC3224 Printer Languages and Interfaces Technical Reference - Page 39

Creating macros, Additional compression modes

Page 39 highlights

Printer Control Language (PCL) emulation 39 All lines of data must be the same length. If they are not, then add zeroes (0) to attain the same length. Note: If the uncompressed image extends beyond the logical page dimensions or beyond the raster width specified in the Raster Width command (ESC*r#S), then the image is clipped at print time. Additional compression modes When the compression mode is 1008 (Lexmark adaptive), TIFF word and double-word can be printed using compression scan modes 254 and 255 respectively. This compression method sends a raster image as a block of raster data. Creating macros 1 Assign an ID number for the macro. Note: If the number is identical to an existing macro ID in RAM, then the old macro is deleted when you specify the Macro Control Start Definition. 2 Start the macro definition. 3 Send the macro contents. 4 Stop the macro definition. Note: Define each macro separately. Example: This example creates a macro to print the Wigit Corp. logo, and 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 |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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148

All lines of data must be the same length. If they are not, then add zeroes (0) to attain the same length.
Note:
If the uncompressed image extends beyond the logical page dimensions or beyond the raster width
specified in the Raster Width command (
ESC
*r#S
), then the image is clipped at print time.
Additional compression modes
When the compression mode is 1008 (Lexmark adaptive), TIFF word and double-word can be printed using
compression scan modes 254 and 255 respectively. This compression method sends a raster image as a block
of raster data.
Creating macros
1
Assign an ID number for the macro.
Note:
If the number is identical to an existing macro ID in RAM, then the old macro is deleted when you
specify the Macro Control Start Definition.
2
Start the macro definition.
3
Send the macro contents.
4
Stop the macro definition.
Note:
Define each macro separately.
Example:
This example creates a macro to print the Wigit Corp. logo, and then calls the logo macro in the body of a letter.
ESC
&f1Y
|Set the macro ID to 1
ESC
&f0X
|Start the macro definition
ESC
&a+72H
|Relative move right 1/10 inch (+72/720th)
ESC
(8U
|Select Roman-8 symbol set
ESC
(s1p18v0s3b4101T
|Select CG Times 18 point bold
W
|Print W
ESC
&a-21.6H
|Relative move left 0.03 inch
ESC
(s12v1S
|Select (CG Times) 12 point (bold) italic
igit
|Print igit
ESC
&a+72H
|Relative move right 1/10 inch
ESC
(s18v0S
|Select 18 point and turn off italic
C
|Print C
ESC
(s12v1S
|Select 12 point italic
orp.
|Print orp.
ESC
&a+72H
|Relative move right 1/10 inch
ESC
&f1X
|End of macro definition
Printer Control Language (PCL) emulation
39