Epson FX-185 User Manual - Page 162

Density Varieties, CHR$n, B$=CHR$85+CHR$42, LPRINT, SINGLE-DENSITY GRAPHICS

Page 162 highlights

for form feed-CHR$(12)--to the printer, the computer system intercepts it and sends instead a series of line feeds-CHRS(10). It does this whether the CHR$ commands represent true commands, parameters for commands, or data. It screens out all instances of its reserved numbers. You can see how this could upset the printing of graphics. In this example, you would get pins 2 and 4 (whose sum is 10) when you wanted pins 3 and 4 (whose sum is 12). Does this mean that if your computer system transmutes some control codes, you can't use the pin patterns of those numbers in your graphics programs? Well . . . yes, it does. At least, not via the usual CHR$ function. But you can often design around these problems by using other numbers with similar patterns, or you can POKE the trouble codes directly to the FX. Learning how to cope with these problems is part of learning how to use the printer with your system. See Appendix F for help. Density Varieties The FX printer offers you the 16 text densities that we printed out as Figure 5-2, and seven graphics density settings that we list later in this chapter (Table 11-1). Remember that you can choose a text density by specifying it in the Master Select ESCape code sequence, and that you can switch densities later by changing one parameter in that code. The FX has a similar command sequence for specifying and changing modes for its graphics densities. Here is the commands format: LPRINT CHR$(27)"*"CHR$(m)CHR$(n )CHR$(n ); 1 2 where m indicates the number (0 - 6) of the desired Graphics Mode, and the settings n1 and n2 are the usual graphics width settings. The seven modes include six densities and the two speeds for DoubleDensity. Before you try out any of the new graphics density settings, record a sample line of Single-Density. To do so, enter this new program: 20 A$=CHR$(27)+"*"+CHR$(0)+CHR$(50)+CHR$(0) 30 B$=CHR$(85)+CHR$(42) 40 LPRINT A$;: FOR X=1 TO 25: LPRINT B$;: NEXT X 50 LPRINT " SINGLE-DENSITY GRAPHICS 60 LPRINT A$;: FOR X=1 TO 25: LPRINT B$;: NEXT X 70 LPRINT 80 LPRINT CHR$(27)"@" 145

  • 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

for form feed-CHR$(12)--to the printer, the computer system inter-
cepts it and sends instead a series of line feeds-CHRS(10). It does this
whether the CHR$ commands represent true commands, parameters
for commands, or data. It screens out all instances of its reserved
numbers. You can see how this could upset the printing of graphics. In
this example, you would get pins 2 and
4
(whose sum is
10)
when you
wanted pins 3 and 4 (whose sum is 12).
Does this mean that if your computer system transmutes some con-
trol codes, you can’t use the pin patterns of those numbers in your
graphics programs? Well . . . yes, it does. At least, not via the usual
CHR$ function. But you can often design around these problems by
using other numbers with similar patterns, or you can POKE the trou-
ble codes directly to the FX. Learning how to cope with these problems
is part of learning how to use the printer with your system. See
Appendix F for help.
Density Varieties
The FX printer offers you the 16 text densities that we printed out as
Figure 5-2, and seven graphics density settings that we list later in this
chapter (Table
11-1).
Remember that you can choose a text density by
specifying it in the Master Select ESCape code sequence, and that you
can switch densities later by changing one parameter in that code.
The FX has a similar command sequence for specifying and chang-
ing modes for its graphics densities. Here is the commands format:
LPRINT CHR$(27)"*"CHR$(m)CHR$(n
1
)CHR$(n
2
);
where m indicates the number (0 - 6) of the desired Graphics Mode,
and the settings
n
1
and n
2
are the usual graphics width settings. The
seven modes include six densities and the two speeds for Double-
Density.
Before you try out any of the new graphics density settings, record
a sample line of Single-Density. To do so, enter this new program:
20 A$=CHR$(27)+"*"+CHR$(0)+CHR$(50)+CHR$(0)
30 B$=CHR$(85)+CHR$(42)
40 LPRINT A$;: FOR X=1 TO 25: LPRINT B$;: NEXT X
50 LPRINT "
SINGLE-DENSITY GRAPHICS
60 LPRINT A$;: FOR X=1 TO 25: LPRINT B$;: NEXT X
70 LPRINT
80 LPRINT CHR$(27)"@"
145