
Revision C 16/01/96
Chapter 4 "Diablo 630" - 5
4.2. Control codes
Control codes are ASCII codes that instruct the printer to perform a particular operation, such as a line
feed. Send a control code to the printer by sending the same type of instruction you would use to print a
character using its ASCII code number. For example, the ASCII code for a form feed is 12, so to get the
printer to perform a form feed use the following BASIC statement:
LPRINT CHR$(12);
The CHR$ operator is normally used to convert an ASCII code into its corresponding character.
4.3. escape sequences
Escape sequences tell the printer the Diablo 630 mode function to perform. An escape sequence consists
of the ESC character followed by one or more characters which define the operation to be performed.
Send an escape sequence to the printer by sending the same type of instruction you would use to print
characters using their ASCII codes. Some escape sequences require parameter values or data following
them, for example, commands which turn a particular feature on and off. Numerical parameter data, too,
is sent to the printer as if it were a character code to be printed. For example, to move the print position
to the third column position on the page the required escape sequence is Esc HT 3. In BASIC this would
be:
LPRINT CHR$(27); CHR$(9); CHR$(3);
Содержание HL- SERIES
Страница 13: ...Revision A 16 01 96 Chapter 1 Introduction ...
Страница 16: ...Revision C 16 01 96 Chapter 2 PCL 1 Chapter 2 PCL ...
Страница 123: ...Revision C 16 01 96 Chapter 2 PCL 3 W width raster area 78 Y y offset raster 79 ...
Страница 124: ...Revision C 16 01 96 Chapter 3 PJL 1 Chapter 3 PJL Printer Job Language ...
Страница 180: ...Revision C 16 01 96 Chapter 4 Diablo 630 1 Chapter 4 Diablo 630 ...
Страница 200: ...Revision C 16 01 96 Chapter 5 EPSON FX 850 1 Chapter 5 EPSON FX 850 ...
Страница 237: ...Revision C 16 01 96 Chapter 6 IBM Proprinter XL 1 Chapter 6 IBM Proprinter XL ...
Страница 259: ...Revision C 16 01 96 Chapter 7 Bar Codes Control 1 Chapter 7 Bar Code Control ...
Страница 267: ...Revision C 16 01 96 Chapter 8 HP GL2 1 CHAPTER 8 HP GL 2 Graphics Language ...
Страница 280: ...Revision C 16 01 96 Chapter 8 HP GL2 14 220 END Sample 21 ...
Страница 328: ...Revision C 16 01 96 Chapter 9 HP GL 1 CHAPTER 9 HP GL Graphics Language ...
Страница 332: ...Revision C 16 01 96 Chapter 9 HP GL 5 1 3 2 Printing Area a b d c a b c d mm A4 4 5 5 5 Letter 6 5 5 5 Legal 6 5 5 5 ...
Страница 342: ...Revision C 16 01 96 Chapter 9 HP GL 15 Sample 68 ...
Страница 387: ...Revision C 16 01 96 APPENDIX A COMPALISON LIST 24 RESOLUTION 300 600 300 600 300 600 ...