Epson FX-185 User Manual - Page 151

Graphics Mode, LPRINT, CHR$27KCHR$n, CHR$n

Page 151 highlights

Each pass of the print head contains one piece of the total pattern, which can be as tall or short as you desire. You don't have to use the whole page or even an entire line for your graphics figures. In fact, you can reserve as little or as much space as you like for a figure-and position it anywhere on the page. Graphics Mode Multi-line figures are printed in lines that are either seven or eight rows tall. For each graphics figure, you must first enter one of the seven versions of Graphics Mode and then tell the printer the number of columns you wish to print on each line. In other words, you specify the density of the dots. Here is the format for entering Single-Density Graphics Mode (60 dots per inch). LPRINT CHR$(27)"K"CHR$(n ) CHR$(n ); 1 2 The two number slots (n1 and n2) determine the number of columns reserved for graphics. Why two numbers instead of one? To get around a limitation of the BASIC CHR$ function, which with only one reservation slot would not let you print a figure across the entire width of the page. An 8-inch page can hold up to 480 Single-Density graphics dots per row. But since the BASIC CHR$ function is limited to numbers from 0 to 255, you can't send a number as large as 480 directly to the printer. That's where the second number slot fits in. You use the two sets of numbers together to send large numbers to the printer. The first number that you specify (n1) indicates a number of columns (0 - 255), as you'd expect. A 255 in that position says "reserve 255 columns for graphics," which means that any Single-Density figure less than half a page wide can be handled easily by the first number alone. Although you may sometimes need only this first slot for specifying width, you must not stop with that specification. You must still satisfy the printer, which always expects a value for the second slot (n,). Send it a 0. 134

  • 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
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268

Each pass of the print head contains one piece of the total pattern,
which can be as tall or short as you desire. You don’t have to use the
whole page or even an entire line for your graphics figures. In fact,
you can reserve as little or as much space as you like for a figure-and
position it anywhere on the page.
Graphics Mode
Multi-line figures are printed in lines that are either seven or eight
rows tall. For each graphics figure, you must first enter one of the
seven versions of Graphics Mode and then tell the printer the number
of columns you wish to print on each line. In other words, you specify
the density of the dots.
Here is the format for entering Single-Density Graphics Mode (60
dots per inch).
LPRINT
CHR$(27)"K"CHR$(n
1
) CHR$(n
2
);
The two number slots (n
1
and n
2
) determine the number of columns
reserved for graphics.
Why two numbers instead of one? To get around a limitation of the
BASIC CHR$ function, which with only one reservation slot would
not let you print a figure across the entire width of the page. An 8-inch
page can hold up to
480
Single-Density graphics dots per row. But
since the BASIC CHR$ function is limited to numbers from 0 to
255,
you can’t send a number as large as 480 directly to the printer.
That’s where the second number slot fits in. You use the two sets of
numbers together to send large numbers to the printer. The first num-
ber that you specify (n
1
) indicates a number of columns
(0
-
255),
as
you’d expect. A
255
in that position says “reserve
255
columns for
graphics,” which means that any Single-Density figure less than half a
page wide can be handled easily by the first number alone. Although
you may sometimes need only this first slot for specifying width, you
must not stop with that specification. You must still satisfy the printer,
which always expects a value for the second slot (n,). Send it a
0.
134