
7/17/2009
CHAPTER 2 "PCL" - 12
3.2. Escape
Sequences
Escape sequences, also known as PCL (Printer Control Language) commands, tell the printer which operations
to perform. An escape sequence consists of the
Esc
character followed by a string of characters which define the
operation to be performed. Some escape sequences require parameter values. These are included in the sequence
as numeric characters. The final letter of an escape sequence must be uppercase: all others must be lowercase.
You can send the printer instructions by embedding escape sequences in programs or in word processed
documents.
In this manual escape sequences are shown as they would be entered, except that the character # in a sequence
indicates that a number should be included at that point in the sequence. If no number is included, the printer
interprets that parameter’s value as 0.
When downloading fonts or sending raster scan images to the printer the final uppercase character of the
sequence is followed by the relevant data.
Two escape sequences can be combined into one if the first three characters of each sequence (including the
Esc
character itself) are the same. Hence,
Esc*c45G
and
Esc*c2P
may be combined to give
Esc*c45g2P
. The
uppercase ‘G’ which terminated the first sequence becomes a lowercase character in the combined sequence.
Combined escape sequences are executed left to right, so be careful to place commands in the order in which
you want them to be executed.
3.2.1. Line
termination
You can set the carriage return, line feed and form feed control codes to perform compound functions. You can
either do this using the printer’s control panel (see the User Guide) or by sending the printer the following
escape sequence:
Esc&k#G (27)(38)(107)#(71)
<1Bh><26h><6Bh>#<47h>
•
0 = Carriage return, line feed and form feed perform their normal functions.
•
1 = Carriage return performs carriage return/line feed, line feed and form feed perform their normal
functions.
•
2 = Carriage return performs its normal function, line feed performs carriage return/line feed and form feed
performs carriage return/form feed.
•
3 = Carriage return performs carriage return/line feed, line feed performs carriage return/line feed and form
feed performs carriage return/form feed.
0
CR
→
CR LF
→
LF FF
→
FF
1
CR
→
CR+LF LF
→
LF FF
→
FF
2
CR
→
CR LF
→
CR+LF FF
→
CR+FF
3
CR
→
CR+LF LF
→
CR+LF FF
→
CR+FF
Esc*c45G
Esc*c2P
Esc*c45g2P
Содержание HL-2600CN Series
Страница 4: ......
Страница 15: ...2009 06 29 CHAPTER 1 INTRODUCTION 1 CHAPTER 1 INTRODUCTION ...
Страница 20: ...2009 06 29 CHAPTER 1 INTRODUCTION 6 ...
Страница 21: ...7 17 2009 CHAPTER 2 PCL 1 CHAPTER 2 PCL PRINTER CONTROL LANGUAGE ...
Страница 129: ...2009 06 29 CHAPTER 3 PCL5C 1 CHAPTER 3 PCL5C ...
Страница 147: ...2009 06 29 CHAPTER 4 HP GL 2 1 CHAPTER 4 HP GL 2 GRAPHICS LANGUAGE ...
Страница 149: ...2009 06 29 CHAPTER 4 HP GL 2 3 7 6 Character Plot Instructions 38 7 6 1 Introduction 39 8 INDEX 52 ...
Страница 200: ...2009 06 29 CHAPTER 4 HP GL 2 54 ...
Страница 201: ...2009 06 29 CHAPTER 5 PJL 1 CHAPTER 5 PJL PRINTER JOB LANGUAGE ...
Страница 276: ...2009 06 29 CHAPTER 6 EPSON 1 CHAPTER 6 EPSON FX 850 ...
Страница 304: ...2009 06 29 CHAPTER 7 IBM PROPRINTER 1 CHAPTER 7 IBM PROPRINTER XL ...
Страница 325: ...2009 06 29 CHAPTER 7 IBM PROPRINTER 22 ...
Страница 326: ...2009 06 29 CHAPTER 8 BAR CODE CONTROL 1 CHAPTER 8 BAR CODE CONTROL ...
Страница 337: ...2009 06 29 CHAPTER 9 HP GL 1 CHAPTER 9 HP GL GRAPHICS LANGUAGE ...
Страница 364: ...2009 06 29 CHAPTER 9 HP GL 28 ...
Страница 365: ...2009 06 29 CARBON COPY FUNCTION 1 CHAPTER 10 CARBON COPY FUNCTION ...
Страница 373: ...2009 06 29 APPENDIX A COMPARISON LIST 1 APPENDIX A COMPARISON LIST ...
Страница 462: ...2009 06 29 APPENDIX C HBP MODE COMMANDS 1 APPENDIX C HBP MODE COMMANDS For HL 820 1020 1040 Only ...
Страница 475: ...2009 06 29 APPENDIX C HBP MODE COMMANDS 14 ...
Страница 485: ...2009 06 29 APPENDIX D REFERENCE LIST OF MX 2000 4000 5000 7000 SERIES UNIQUE COMMANDS 10 ...