Lexmark Dot Matrix Technical Reference - Page 28

Escape Sequences, Printer Command Parameters

Page 28 highlights

Code Name Symbol Description Value (Dec) Carriage CR Return Moves the current print position to the left 13 margin of the current line. Double- SO Wide Printing by Line Prints all characters in double-width 14 mode. Condensed SI Printing Condenses printing from 10 characters per 15 inch (cpi) to 17.1 and 12 cpi to 20. Select DC1 Selects the printer. 17 Printer Select 10 DC2 cpi Returns condensed printing to normal (10 18 cpi) Deselect DC3 Printer Signals the printer to stop accepting data 19 from the computer. This control code has no effect on the parallel interface. Cancel DC4 DoubleWide Printing by Line Cancels double-width printing mode and 20 returns printing to normal. Cancel Data CAN Clears current line buffer of data already 24 received to print on the current line since last Form Feed, Line Feed, Carrier Return, or Cancel. Space SP Moves the print position one character 32 space to the right. Value (Hex) 0D 0E 0F 11 12 13 14 18 20 Escape Sequences An escape sequence (two or more characters of information) lets you change the way the printer is currently printing. Like a control code, it gives you control over the printed output. The escape sequence begins with the character ESC (decimal 027, hexadecimal 1B). The printer recognizes this character as the beginning of a printer command signalling that the information that follows is control information and not data to be printed. Printer Command Parameters A command parameter sets the value for a command. This value stays constant until either a different value resets the command or a command resets the printer to its default values. For example, after the printer receives a command 28 Section 3: IBM Emulation Mode Printer Commands

  • 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
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227

Section 3: IBM Emulation Mode Printer Commands
28
Escape Sequences
An escape sequence (two or more characters of information) lets you change the
way the printer is currently printing. Like a control code, it gives you control
over the printed output. The escape sequence begins with the character ESC
(decimal 027, hexadecimal 1B). The printer recognizes this character as the
beginning of a printer command signalling that the information that follows is
control information and not data to be printed.
Printer Command Parameters
A command parameter sets the value for a command. This value stays constant
until either a different value resets the command or a command resets the
printer to its default values. For example, after the printer receives a command
Carriage
Return
CR
Moves the current print position to the left
margin of the current line.
13
0D
Double-
Wide
Printing by
Line
SO
Prints all characters in double-width
mode.
14
0E
Condensed
Printing
SI
Condenses printing from 10 characters per
inch (cpi) to 17.1 and 12 cpi to 20.
15
0F
Select
Printer
DC1
Selects the printer.
17
11
Select 10
cpi
DC2
Returns condensed printing to normal (10
cpi)
18
12
Deselect
Printer
DC3
Signals the printer to stop accepting data
from the computer. This control code has
no effect on the parallel interface.
19
13
Cancel
Double-
Wide
Printing by
Line
DC4
Cancels double-width printing mode and
returns printing to normal.
20
14
Cancel
Data
CAN
Clears current line buffer of data already
received to print on the current line since
last Form Feed, Line Feed, Carrier Return,
or Cancel.
24
18
Space
SP
Moves the print position one character
space to the right.
32
20
Code
Name
Symbol
Description
Value
(Dec)
Value
(Hex)