Epson LX-86 User Manual - Page 78

Pin Labels, CHR$27KCHR$NlCHR$N2

Page 78 highlights

The LX-86 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: LPRINT CHR$(27)"K"CHR$(Nl)CHR$(N2); ESCape "K" specifies single-density graphics, and the next two n.umbers (n1 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-86 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 nl 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-l. 74

  • 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

The LX-86 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$(27)“K”CHR$(Nl)CHR$(N2);
ESCape “K” specifies single-density graphics, and the next two num-
.
bers (n
1
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-86 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 n
l
the number of columns you are
reserving and make n
2
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-l.
74