Epson LQ-1000 User Manual - Page 146

Commands by Function, LPRINT CHR$27 CHR$81 CHR$60, LPRINT CHR$&H1B CHR$&H51 CHR$&H3C

Page 146 highlights

Commands by Function This section describes all the LQ control codes. They are divided in the following way: Print Quality Character Width Print Enhancement Page Formatting Word Processing Graphics User-Defined Characters MSB Control Other Codes Each command has a format section and a comment section. The format section gives the ASCII, decimal, and hexadecimal codes for the command. In some cases there is also a control key code because some commercial software programs can use a control key for a code between 0 and 27 (decimal). In this section, CTRL O for example, means hold down the control key while you press O. Letters in parentheses, such as (n) or (d), are variables, which are explained in the comments sections. In BASIC you can use either decimal or hexadecimal numbers, and if there is a single letter in the second ASCII code column, you can use that letter in quotation marks instead of the number below it. For example, the format section for the right margin command is as fol- lows: ASCII code: ESC Decimal: 27 Hexadecimal: 1B Q (n) 81 ( n ) 51 (n) In BASIC you can send the command to set the right margin to 60 in three ways: Decimal: LPRINT CHR$(27) CHR$(81) CHR$(60) Hex: LPRINT CHR$(&H1B) CHR$(&H51) CHR$(&H3C) Decimal with quotes: LPRINT CHR$(27) "Q" CHR$(60) ESCape sequences that require a 0 or 1 with a letter, such as ESC 'Wl" to turn on double-width, can use either the ASCII code or the numeral in quotation marks for the 0 or 1. For example, in BASIC you can turn on double-width with either of the formats below: LPRINT CHR$(27)"Wl" or LPRINT CHR$(27)"W"CHR$(l) I-4

  • 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

Commands by Function
This section describes all the LQ control codes. They are divided in
the following way:
Print Quality
Character Width
Print Enhancement
Page Formatting
Word Processing
Graphics
User-Defined Characters
MSB Control
Other Codes
Each command has a format section and a comment section. The
format section gives the ASCII, decimal, and hexadecimal codes for
the command. In some cases there is also a control key code because
some commercial software programs can use a control key for a code
between
0
and
27
(decimal). In this section, CTRL O for example,
means hold down the control key while you press O.
Letters in parentheses, such as (n) or (d), are variables, which are
explained in the comments sections.
In BASIC you can use either decimal or hexadecimal numbers, and
if there is a single letter in the second ASCII code column, you can use
that letter in quotation marks instead of the number below it. For
example, the format section for the right margin command is as fol-
lows:
ASCII code:
ESC
Q
(n)
Decimal:
27
81
(n)
Hexadecimal:
1B
51
(n)
In BASIC you can send the command to set the right margin to
60
in
three ways:
Decimal:
LPRINT CHR$(27) CHR$(81) CHR$(60)
Hex:
LPRINT CHR$(&H1B) CHR$(&H51) CHR$(&H3C)
Decimal with quotes:
LPRINT CHR$(27) "Q" CHR$(60)
ESCape sequences that require a 0 or 1 with a letter, such as ESC
‘Wl”
to turn on double-width, can use either the ASCII code or the
numeral in quotation marks for the 0 or
1.
For example, in BASIC you
can turn on double-width with either of the formats below:
LPRINT CHR$(27)"Wl"
or
LPRINT CHR$(27)"W"CHR$(l)
I-4