Lexmark MX826 Printer Languages and Interfaces Technical Reference - Page 16

PCL emulation commands by function alphanumeric ID

Page 16 highlights

Printer Control Language (PCL) emulation 16 PCL emulation commands by function (alphanumeric ID) Command / Parameters Function / Result ESC&n#W [operation] [string] Alphanumeric ID Where: Selects the media type using a character string. The string ID is case • # = number of data bytes that make up sensitive and may be up to 511 bytes long. the operation and string. The string ID specifies the media type requested. • Operation = 100 or 1 byte = 0x64 or 'd' Media Type / Alphanumeric String ascii Plain / PaperPlain For example: Bond / Bond 100-Media Select Transparency / Transparency • String = paper type. See alphanumeric Card Stock / Card Stock string list at the right. Labels / Labels Letterhead/ Letterhead Pre-printed / Preprinted Colored / PaperColor Envelope / Envelope Custom Type 1 / Custom Type 1 or User Type 1 Custom Type 2 / Custom Type 2 or User Type 2 Custom Type 3 / Custom Type 3 or User Type 3 Custom Type 4 / Custom Type 4 or User Type 4 Custom Type 5 / Custom Type 5 or User Type 5 Custom Type 6 / Custom Type 6 or User Type 6 For example, the following shows the command and parameters used to select bond paper: ESC&n5WdBond To select letterhead paper: ESC&n11WdLetterhead PCL emulation commands by function (cursor positioning) Command / Parameters Function / Result ESC&a#C Where: # = number of columns1. Horizontal Cursor Position (in columns) Moves the cursor to a new position along the horizontal axis. Note: If set, the space character width of the active font or the Horizontal Motion Index (HMI) determines the column width. ESC&a#H Where: # = number of decipoints1. 1 decipoint equals 1/720 inch. Horizontal Cursor Position (in decipoints) Moves the cursor to a new position along the horizontal axis. ESC*p#X Where: # = number of PCL units1. Horizontal Cursor Position (in PCL units) Moves the cursor to a new position along the horizontal axis. Note: PCL units are set by the Unit-of-Measure Command. 1 Parameter preceded by + or - sign denotes a relative cursor move from the current cursor position. Parameter without a sign denotes an absolute cursor move from the top left margin.

  • 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

PCL emulation commands by function (alphanumeric ID)
Command / Parameters
Function / Result
ESC
&n#W [operation] [string]
Where:
#
= number of data bytes that make up
the operation and string.
Operation
= 100 or 1 byte = 0x64 or ‘d’
ascii
For example:
100—Media Select
String
= paper type. See alphanumeric
string list at the right.
Alphanumeric ID
Selects the media type using a character string. The string ID is case
sensitive and may be up to 511 bytes long.
The string ID specifies the media type requested.
Media Type
/
Alphanumeric String
Plain / PaperPlain
Bond / Bond
Transparency / Transparency
Card Stock / Card Stock
Labels / Labels
Letterhead/ Letterhead
Pre-printed / Preprinted
Colored / PaperColor
Envelope / Envelope
Custom Type 1 / Custom Type 1
or
User Type 1
Custom Type 2 / Custom Type 2
or
User Type 2
Custom Type 3 / Custom Type 3
or
User Type 3
Custom Type 4 / Custom Type 4
or
User Type 4
Custom Type 5 / Custom Type 5
or
User Type 5
Custom Type 6 / Custom Type 6
or
User Type 6
For example, the following shows the command and parameters used
to select bond paper:
ESC
&n5WdBond
To select letterhead paper:
ESC
&n11WdLetterhead
PCL emulation commands by function (cursor positioning)
Command / Parameters
Function / Result
ESC
&a#C
Where:
#
= number of columns
1
.
Horizontal Cursor Position (in columns)
Moves the cursor to a new position along the horizontal axis.
Note:
If set, the space character width of the active font or the
Horizontal Motion Index (HMI) determines the column width.
ESC
&a#H
Where:
#
= number of decipoints
1
. 1 decipoint
equals 1/720 inch.
Horizontal Cursor Position (in decipoints)
Moves the cursor to a new position along the horizontal axis.
ESC
*p#X
Where:
#
= number of PCL units
1
.
Horizontal Cursor Position (in PCL units)
Moves the cursor to a new position along the horizontal axis.
Note:
PCL units are set by the Unit-of-Measure Command.
1
Parameter preceded by + or - sign denotes a relative cursor move from the current cursor position. Parameter
without a sign denotes an absolute cursor move from the top left margin.
Printer Control Language (PCL) emulation
16