Epson LQ-1500 User Manual - Page 54

use this code often with the LQ-1500 because it allows you to use the, many features of the printer.

Page 54 highlights

Carriage return CR 13 0DH CTRL/M CHR$(13) Its common name The abbreviation of its name Its decimal ASCII code Its hexadecimal ASCII code Its control-code name Its usage in BASIC So your problem is to figure out what code you want to use, no matter what it is called. You may find that this can be quite a problem. Your computer's manual may say to use ASCII 10 while your spreadsheet program recommends a CTRL/J. You need to know that they are both talking about the same code. This manual tells you the different names for the same code. Appendix A gives a complete summary of all the control codes (also called commands). Appendix E contains a conversion chart for all the common names for the ASCII codes. Some of the LQ-1500's functions are controlled by codes consisting of one character. These are the ASCII codes with decimal values between 1 and 31, and are the codes that you can type by holding the control key while you press a letter key. For example, the code ASCII 12 is the same as CTRL/L and advances the paper to the top of a new page. Of course the LQ-1500 has many more than 31 functions. To use the many additional functions, you use one special code to enable all the control codes that consist of more than one character. This code is called Escape, and in this manual it is abbreviated as . You will use this code often with the LQ-1500 because it allows you to use the many features of the printer. Here is an example of how the escape code is used. It may seem tricky at first, but follow along and you'll soon understand. The code to turn on the italic print function is "4". The 4 in this code is the numeral 4, not ASCII 4; the numeral 4 is ASCII 52. Remember that the ASCII codes 0 through 32 have commonly used abbreviations for their names. In these cases we use the abbreviations. q is the abbreviation for escape, which is also ASCII 27. Therefore, the "4" that turns on italic print actually is ASCII 27 followed by ASCII 52. But "4" is easier to understand and remember. 47

  • 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

Carriage return
Its common name
CR
The abbreviation of its name
13
Its decimal ASCII code
0DH
Its hexadecimal ASCII code
CTRL/M
Its control-code name
CHR$(13)
Its usage in BASIC
So your problem is to figure out what code you want to use, no
matter what it is called. You may find that this can be quite a problem.
Your computer’s manual may say to use ASCII 10 while your spread-
sheet program recommends a
CTRL/J.
You need to know that they
are both talking about the same code.
This manual tells you the different names for the same code.
Appendix A gives a complete summary of all the control codes (also
called commands). Appendix E contains a conversion chart for all the
common names for the ASCII codes.
Some of the LQ-1500’s functions are controlled by codes consisting
of one character. These are the ASCII codes with decimal values
between 1 and 31, and are the codes that you can type by holding the
control key while you press a letter key. For example, the code ASCII
12
is the same as
CTRL/L
and advances the paper to the top of a new
page.
Of course the LQ-1500 has many more than 31 functions. To use the
many additional functions, you use one special code to enable all the
control codes that consist of more than one character. This code is
called Escape, and in this manual it is abbreviated as <ESC> . You will
use this code often with the LQ-1500 because it allows you to use the
many features of the printer.
Here is an example of how the escape code is used. It may seem
tricky at first, but follow along and you’ll soon understand. The code
to turn on the italic print function is <ESC>
“4”.
The
4
in this code is
the numeral
4,
not ASCII
4;
the numeral
4
is ASCII
52.
Remember that the ASCII codes 0 through
32
have commonly used
abbreviations for their names. In these cases we use the abbreviations.
<ESC>q is the abbreviation for escape, which is also ASCII
27.
Therefore, the <ESC> “4” that turns on italic print actually is ASCII
27
followed by ASCII
52.
But <ESC>
“4”
is easier to understand and
remember.
47