Epson LQ-1000 User Manual - Page 116

L0 For X=70 To, Lprint Chr$x: Next X, Lprint Chr$27e, Lprint Sample Text

Page 116 highlights

Therefore, if you run the following BASIC program while your LQ is in the hex dump mode, you get the printout below it. The printer will print all but the last line and then stop. Press the ON LINE button to print the last line. l0 FOR X=70 TO 73 20 LPRINT CHR$(X): NEXT X 30 LPRINT CHR$(27)"E" 40 LPRINT "Sample text" 50 LPRINT CHR$(27)"@" 4 6 0D 0A 4 7 0D 0A 4 8 0D 0A 4 9 0D 0A 18 4 5 0D 0 A 5 3 6 1 6 D 7O 6C 6 5 2 0 7 4 6 5 7 8 7 4 0 D 0 A 1B 4O 0 D 0A F..G..H..I...E.. Sample text... @. You can consult Appendix B to find the meaning of the hexadecimal codes. The following explanation of the first line will put you on the right track for using the hex dump mode. The first code in the first line is hex 46 (the same as decimal 70), which is the code for "F"; therefore "F" is printed in the first position in the guide section. Then, because there is no semicolon in line 20, BASIC sends a carriage return and a line feed, hex codes 0D and 0A. Each of these is represented by a dot in the guide section. The program then sends the hex codes 47, 48, and 49, with each followed by a carriage return and line feed. When the program gets to line 30, it sends ESCape "E" and a carriage return and line feed. These are hex codes lB, 45, 0D, and 0A, which are represented in the guide section by a dot, an E, and two more dots. Now you can follow a hex dump printout on your own. Some computer systems change one or more codes when sending them to the printer. The ability of the LQ to dump in hexadecimal lets you determine which codes are creating problems for your system. A hex dump printout of a program shows you exactly what the printer is receiving, regardless of what the computer is sending. The D-5

  • 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

Therefore, if you run the following BASIC program while your LQ
is in the hex dump mode, you get the printout below it. The printer
will print all but the last line and then stop. Press the ON LINE button
to print the last line.
l0 FOR X=70 TO
73
20 LPRINT CHR$(X): NEXT X
30
LPRINT CHR$(27)"E"
40 LPRINT "Sample text"
50 LPRINT CHR$(27)"@"
46
0D
0A
47
0D
0A
48
0D
0A
49
0D
0A
18
45
0D
0A
F..G..H..I...E..
53
61
6D
7O
6C
65
20
74
65
78
74
0D
0A
1B
4O
0D
Sample text... @.
0A
You can consult Appendix B to find the meaning of the hexadecimal
codes. The following explanation of the first line will put you on the
right track for using the hex dump mode.
The first code in the first line is hex 46 (the same as decimal 70),
which is the code for “F”; therefore “F” is printed in the first position in
the guide section. Then, because there is no semicolon in line 20,
BASIC sends a carriage return and a line feed, hex codes 0D and 0A.
Each of these is represented by a dot in the guide section. The program
then sends the hex codes 47, 48, and 49, with each followed by a
carriage return and line feed.
When the program gets to line 30, it sends ESCape “E” and a car-
riage return and line feed. These are hex codes lB, 45, 0D, and 0A,
which are represented in the guide section by a dot, an E, and two
more dots. Now you can follow a hex dump printout on your own.
Some computer systems change one or more codes when sending
them to the printer. The ability of the LQ to dump in hexadecimal lets
you determine which codes are creating problems for your system.
A hex dump printout of a program shows you exactly what the
printer is receiving, regardless of what the computer is sending. The
D-5