Epson LQ-1500 User Manual - Page 53

How Many Names Can One Code Have?, often marked

Page 53 highlights

and some of the LQ-1500's functions. Because of these standard codes, you can use your LQ-1500 printer with virtually any kind of computer without having to worry about their ability to talk to each other. Your LQ-1500 printer can communicate with any computer that uses ASCII. How Many Names Can One Code Have? Although these codes are standard from computer to computer, the way they are referred to is not standard. The same ASCII code can be called by many different names. For example, the letter A is represented by the decimal number 65 in ASCII. This code may either be called A or 65. In the BASIC programming language, this code may be referred to as CHR$(65). At other times, ASCII codes are referred to by their hex value. Hex is short for hexadecimal, which is a base-16 numbering system (our usual numbering system is a base-10 system). Since 16 digits are required for a base-16 number system, hex uses the digits 0 through 9 and the letters A through F. In hex, A is 41H, where the H stands for hex. Most of the time we don't have to give this code system a thought. If you press A on the keyboard, the computer sends the code to print an A to the printer. Some ASCII codes don't have keys on the keyboard. The most important of these are the codes that have values of less than 32. These codes are used to control many of the LQ-1500's functions. Most keyboards can produce these codes, by holding down the control key (often marked CTRL) while pressing a letter key. The combination of CRTL/A produces ASCII 1, CTRL/B produces ASCII 2, and so on. Because of the way these codes are created, they are often referred to as control A, control B, etc. Most of these control codes also have names that describe their functions. For example ASCII 13, which is the code to start a new line, is called carriage return. The following chart shows many different ways of referring to the code for the carriage return function. 46

  • 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

and some of the LQ-1500’s functions. Because of these standard codes,
you can use your LQ-1500 printer with virtually any kind of com-
puter without having to worry about their ability to talk to each other.
Your LQ-1500 printer can communicate with any computer that uses
ASCII.
How Many Names Can One Code Have?
Although these codes are standard from computer to computer, the
way they are referred to is not standard. The same ASCII code can be
called by many different names. For example, the letter A is repre-
sented by the decimal number 65 in ASCII. This code may either be
called
A
or 65. In the BASIC programming language, this code may
be referred to as CHR$(65).
At other times, ASCII codes are referred to by their
hex
value. Hex
is short for hexadecimal, which is a base-16 numbering system (our
usual numbering
system
is a base-10 system). Since 16 digits are
required for a base-16 number system, hex uses the digits 0 through 9
and the letters A through F. In hex, A is 41H, where the H stands for
hex.
Most of the time we don’t have to give this code system a thought. If
you press A on the keyboard, the computer sends the code to print an
A to
the
printer.
Some ASCII codes don’t
have
keys on the keyboard. The
most
important of these are the codes that have values of less than 32. These
codes are used to control many of the LQ-1500’s functions. Most key-
boards can produce these codes, by holding down the control key
(often marked
CTRL)
while pressing a letter key. The combination of
CRTL/A
produces ASCII 1,
CTRL/B
produces ASCII 2, and so on.
Because of the way
these
codes are created, they are often referred to
as control
A, control B,
etc.
Most of these control codes also have names
that
describe their
functions. For example ASCII 13, which is the code to start a new line,
is called carriage
return.
The following chart shows many different
ways of referring to the code for the carriage return function.
46