Epson LX-80 User Manual - Page 80

Pin Labels, the number of columns you are

Page 80 highlights

The LX-80 has several different graphics densities, but we'll keep things simple by using only one in the first exercises. The code for entering single-density graphics mode is ESCape "K" nl n2. In Microsoft BASIC the command is given in this format: L P R I N T CHR$(Z?)"K'*CHR$(Nl)CHR$(NZ); ESCape "K" specifies single-density graphics, and the next two numbers (n, and n2) specify the number of columns reserved for graphics. The graphics command requires more than one number to specify how many columns to reserve because as many as 1920 columns are possible in graphics printing. Since the LX-80 uses eight digit binary numbers, it can't accept decimal numbers larger than 255. Therefore, the graphics mode command uses two numbers for reserving columns. The number of columns reserved is the first number plus 256 times the second number. Since the command is set up for two numbers, you must supply two even if you only need one. When you need less than 256 columns, just make nt the number of columns you are reserving and make n2 a zero. Pin Labels Once you put the printer into graphics mode and reserve the number of columns you want, your next step is to tell the print head which pins to fire in each column. There are 256 possible combinations of eight pins, and you send only one number for each column. The numbering system that allows you to use a single number to specify which of the 256 possible patterns you want is shown in Figure 9-1. 76

  • 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

The LX-80 has several different graphics densities, but we’ll keep
things simple by using only one in the first exercises. The code for
entering single-density graphics mode is ESCape “K” n
l
n
2
. In Mi-
crosoft BASIC the command is given in this format:
LPRINT
CHR$(Z?)“K’*CHR$(Nl)CHR$(NZ);
ESCape “K” specifies single-density graphics, and the next two num-
bers (n, and n
2
) specify the number of columns reserved for graphics.
The graphics command requires more than one number to specify
how many columns to reserve because as many as 1920 columns are
possible in graphics printing. Since the LX-80 uses eight digit binary
numbers, it can’t accept decimal numbers larger than 255. Therefore,
the graphics mode command uses two numbers for reserving col-
umns.
The number of columns reserved is the first number plus 256 times
the second number. Since the command is set up for two numbers,
you must supply two even if you only need one. When you need less
than 256 columns, just make
nt
the number of columns you are
reserving and make
n2
a zero.
Pin Labels
Once you put the printer into graphics mode and reserve the
number of columns you want, your next step is to tell the print head
which pins to fire in each column. There are 256 possible combina-
tions of eight pins, and you send only one number for each column.
The numbering system that allows you to use a single number to
specify which of the 256 possible patterns you want is shown in
Figure 9-1.
76