Epson FX-100 User Manual - Page 152

Pin Labels, CHR$27KCHR$255CHR$7

Page 152 highlights

Often a figure needs more than half a line. To reserve more than 255 columns for graphics, the second number (n,) must be greater than 0. But n2 does not represent a number of single dots; it represents a number of groups, each of which contains 256 dots. Using a 1 in the second slot means "reserve one group of 256 dots plus whatever is in the first slot." A 2 in that spot means "reserve two groups of 256 dots (512) plus . . ." and so on-up to 7 times 256 (or 1792) dots on the FX-80 and up to 12 times 256 (or 3072) on the FX-100. Actually, the FX-80 will accept numbers larger than 7 for n2, but it is pointless to send them because the printer treats them as modulo 8. That is, 8 works the same as 0, 9 as 1, 10 as 2, etc. Similarly, the FX-100 treats numbers above 12 as modulo 13. The maximum number of dots you can reserve on the FX-80, then, is: CHR$(27)"K"CHR$(255)CHR$(7); which is 255 dots plus 7 times 256 dots . . . for a total of 2047 dots per row. On the FX-100, you can reserve 255 plus 12 times 256 . . . for a total of 3327 dots per row. But on a Single-Density print line you can only fit 480 dots. For now, we'll stick with Single-Density, which means that we won't use numbers over 480. Later we'll see that the FX does have Graphics Modes of greater density. Some systems, such as those for the IBM-PC and the Epson QX-10, also require WIDTH statements for longer lines. See your system documentation. Pin Labels Once you put the printer into Graphics Mode, your next step is to tell the print head which pins to fire at each new position. You do this by sending numbers via the CHR$ function. Each number that you send represents a unique combination of pins. You might expect that the eight pins would be numbered 1 through 8 (as they are in Figure 10-1). But that won't work because you are going to send one number to represent all the pins to fire in one column. Using the 1-through-8 system, you would send such a total as 10 and the FX wouldn't know if this meant pins 4 and 6 or pins 2,3, and 5. 135

  • 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

Often a figure needs more than half a line. To reserve more than
255
columns for graphics, the second number (n,) must be greater than 0.
But
n
2
does
not represent a number of single dots; it represents a num-
ber of groups, each of which contains 256 dots. Using a 1 in the second
slot means “reserve one group of 256 dots plus whatever is in the first
slot.” A 2 in that spot means “reserve two groups of 256 dots (512) plus
. . .” and so on-up to 7 times 256 (or 1792) dots on the FX-80 and up
to
12
times
256 (or 3072) on the FX-100.
Actually, the FX-80 will accept numbers larger than 7 for n
2
, but it is
pointless to send them because the printer treats them as modulo
8.
That is, 8 works the same as 0, 9 as 1, 10 as 2, etc.
Similarly, the FX-100 treats numbers above
12 as modulo 13. The
maximum number of dots you can reserve on the FX-80, then, is:
CHR$(27)"K"CHR$(255)CHR$(7);
which is 255 dots plus
7 times 256 dots . . . for a total of 2047 dots per
row. On the FX-100, you can reserve
255 plus 12 times 256 . . . for a
total of
3327 dots per row.
But on a Single-Density print line you can only fit
480 dots.
For now, we’ll stick with Single-Density, which means that we
won’t use numbers over
480. Later we’ll see that the FX does have
Graphics Modes of greater density.
Some systems, such as those for the IBM-PC and the Epson QX-10,
also require WIDTH statements for longer lines. See your system doc-
umentation.
Pin Labels
Once you put the printer into Graphics Mode, your next step is to
tell the print head which pins to fire at each new position. You do this
by sending numbers via the
CHR$ function. Each number that you
send represents a unique combination of pins.
You might expect that the eight pins would be numbered 1 through
8 (as they are in Figure 10-1). But that won’t work because you are
going to send one number to represent all the pins to fire in one col-
umn. Using the 1-through-8 system, you would send such a total as 10
and the FX wouldn’t know if this meant pins 4 and 6 or pins 2,3, and 5.
135