Brother PCL Technical Reference Manual

Brother PCL Technical Reference Manual

Brother technical reference manual laser printer
Table of Contents

Advertisement

B
B
T
e
c
h
n
i
T
e
c
h
n
i
T
e
c
h
n
i
<
M
O
D
E
L
<
M
O
D
E
L
H
L
-
1
0
5
0
/
1
H
L
-
1
0
5
0
/
1
1
6
6
0
e
/
2
1
6
6
0
e
/
2
1
6
7
0
N
/
3
2
1
6
7
0
N
/
3
5
0
5
0
/
5
0
7
5
0
5
0
/
5
0
3
4
5
0
C
N
/
6
3
4
5
0
C
N
/
6
2
0
7
0
N
2
0
7
0
N
r
o
t
h
e
r
L
a
r
o
t
h
e
r
L
c
a
l
R
e
c
a
l
R
e
c
a
l
R
e
S
C
O
V
E
R
E
S
C
O
V
E
R
E
0
7
0
/
1
2
5
0
/
1
2
0
7
0
/
1
2
5
0
/
1
2
0
6
0
/
2
4
0
0
C
/
2
0
6
0
/
2
4
0
0
C
/
2
6
0
N
/
2
4
6
0
/
7
2
6
0
N
/
2
4
6
0
/
7
0
N
/
5
1
4
0
/
5
1
7
0
N
/
5
1
4
0
/
5
1
0
5
0
/
6
0
5
0
D
/
6
0
5
0
/
6
0
5
0
D
/
6
/
5
2
4
0
/
5
2
5
0
D
/
5
2
4
0
/
5
2
5
0
D
s
e
r
P
r
i
n
t
a
s
e
r
P
r
i
n
t
f
e
r
e
n
c
f
e
r
e
n
c
f
e
r
e
n
c
D
B
Y
T
H
I
S
D
B
Y
T
H
I
S
7
0
N
/
1
4
5
0
/
1
7
0
N
/
1
4
5
0
/
1
4
0
0
C
e
/
3
4
0
0
4
0
0
C
e
/
3
4
0
0
0
5
0
/
1
8
5
0
/
1
8
0
5
0
/
1
8
5
0
/
1
8
5
0
D
/
5
1
7
0
D
N
5
0
D
/
5
1
7
0
D
N
0
5
0
D
N
/
8
0
5
0
5
0
D
N
/
8
0
5
N
/
5
2
7
0
D
N
/
N
/
5
2
7
0
D
N
/
e
r
e
r
e
G
u
i
d
e
G
u
i
d
e
G
u
i
d
M
A
N
U
A
L
>
M
A
N
U
A
L
>
4
7
0
N
/
P
2
5
0
0
4
7
0
N
/
P
2
5
0
0
C
N
/
1
6
5
0
/
C
N
/
1
6
5
0
/
7
0
N
/
5
0
4
0
/
7
0
N
/
5
0
4
0
/
/
2
6
0
0
C
N
/
/
2
6
0
0
C
N
/
0
N
/
2
7
0
0
C
N
/
0
N
/
2
7
0
0
C
N
/
5
2
8
0
D
W
5
2
8
0
D
W
e
e
e
/
/

Advertisement

Table of Contents
loading

Summary of Contents for Brother PCL

  • Page 1 < < > >...
  • Page 2 Revised for Addition of HL-5140/5150D/5150DN and addition of a section of Carbon Copy and addition of a table of Tray Selection of TRAYCOMMAND Special. Revised for Addition of HL-2070N. Revised for Addition of HL- 5240/5250DN/5270DN/5280DW. © Copyright Brother Industries, Ltd. 2001 ALL RIGHTS RESERVED...
  • Page 3 Compilation and Publication Under the supervision of Brother Industries Ltd., this manual has been compiled and published, covering the latest product's descriptions and specifications. The contents of this manual and the specifications of this product are subjected to change without notice.
  • Page 4: Table Of Contents

    TABLE OF CONTENTS GLOSSARY CHAPTER 1 INTRODUCTION 1. ABOUT THE MANUAL ----------------------------------------------------------------------------------- 3 2. AREAS OF USE ------------------------------------------------------------------------------------------- 4 CHAPTER 2 PCL 1. COMMAND LIST ------------------------------------------------------------------------------------------ 7 2. INTRODUCTION -----------------------------------------------------------------------------------------10 3. CONTROLLING THE PRINTER ----------------------------------------------------------------------11 4. JOB CONTROL -------------------------------------------------------------------------------------------15 5. USHING FONT--------------------------------------------------------------------------------------------36 6.
  • Page 5 1. COMMAND LIST ------------------------------------------------------------------------------------------ 3 2. INTRODUCTION ------------------------------------------------------------------------------------------ 5 3. EMULATION DETAILS ---------------------------------------------------------------------------------- 6 4. TERMINOLOGY ------------------------------------------------------------------------------------------- 7 5. CONTROLLING THE PRINTER ----------------------------------------------------------------------- 8 6. COMMANDS------------------------------------------------------------------------------------------------ 9 7. INDEX -------------------------------------------------------------------------------------------------------28 CHAPTER 7 IBM PROPRINTER XL 1. COMMAND LIST ------------------------------------------------------------------------------------------ 3 2.
  • Page 6 Anchor point The top left-hand corner of the PCL picture frame. You can position this on the page using a PCL command. Anisotropic scaling A form of image scaling using the SC command in HP-GL and HP-GL/2 mode in which the user units can be of different sizes.
  • Page 7 Effective window The area of the page on which HP-GL and HP-GL/2 output can appear. The effective window is determined by the overlap of the logical page, the PCL picture frame, the hard clip and the soft clip limits. Emulation mode A mode of operation in which the printer imitates the functions of a different model.
  • Page 8 Font descriptor A block of data that is downloaded to the printer as the first part of a downloaded font. The font descriptor describes the characteristics that are common to every character in the font, such as stroke weight, and contains other relevant information.
  • Page 9 The area of the physical page on which the cursor can be positioned in LaserJet mode. You can use PCL commands to specify the position of the logical page on the physical page. Also known as the PCL addressable area.
  • Page 10 A downloaded font that is retained when a printer reset is performed. Permanent macro A macro stored in the printer that will not be erased if the printer is reset. Physical page The paper or envelope on which the printer prints.
  • Page 11 The ROM cannot be altered unless the type of ROM fitted to the printer is Flash ROM, in which case it can be written to electronically via the parallel port of the printer .
  • Page 12 To use the font again you must download it again. Temporary macro A macro that is erased from the printer's memory when a reset is performed. If you want to use the macro again you must redefine it and download it to the printer again.
  • Page 13 Vertical motion index. The vertical distance that the print position moves down the page when a line feed is performed. This can be set using printer commands or with the printer's control panel by adjusting the "Lines" menu option in PAGE...
  • Page 14: Introduction

    2006/05/31 CHAPTER 1 INTRODUCTION CHAPTER 1 INTRODUCTION - 1...
  • Page 15 2006/05/31 CONTENTS 1. ABOUT THE MANUAL ...3 2. AREAS OF USE...4 Using Word Processing Packages and Spreadsheets... 4 Graphics... 4 Programming... 4 Font Development ...5 CHAPTER 1 INTRODUCTION - 2...
  • Page 16: About The Manual

    Some example programs are included to give you useful ideas. This manual is for our PCL models. For the differences between each model, see the Appendix "Model Comparison."...
  • Page 17: Areas Of Use

    In this case you will not need to use this manual, as your software package will perform the task of controlling the printer for you. Other packages allow you to embed software commands within your word-processed or spreadsheet documents.
  • Page 18: Font Development

    Font Development In LaserJet mode you can send your own character designs to an HL-Series laser printer and print text using them. To do this you need first to design your characters on paper. Having done this you can then either input and download your characters using a commercial software package, or encode your designs numerically and write your own program to download them.
  • Page 19 2006/05/31 CHAPTER 2 PRINTER CONTROL LANGUAGE CHAPTER 2 "PCL" - 1...
  • Page 20 Change emulation mode ...24 4.2. The Page ... 25 4.2.1. Physical page...25 4.2.2. Printable area...25 4.2.3. Logical page...25 4.2.4. Text area ...25 4.2.5. HP-GL/2 graphics window ...25 4.2.6. Portrait page dimensions ...26 4.2.7. Landscape page dimensions ...27 CHAPTER 2 "PCL" - 2...
  • Page 21 User-defined symbol sets ...44 5.2.2. Symbol set ID code command ...44 5.2.3. Define symbol set...44 5.2.4. Symbol set control command...46 5.2.5. Selecting the symbol set ...46 5.2.6. Selecting the type of character spacing...48 5.2.7. Selecting the pitch...48 CHAPTER 2 "PCL" - 3 2006/05/31...
  • Page 22 Horizontal 1200-dpi image format mode (Raster Graphic Mode 1027) ...89 6.4. Vector Graphics ... 91 6.4.1. Enter HP-GL/2 mode ...91 6.5. The Picture Frame ... 92 6.5.1. The default picture frame ...92 6.5.2. Set picture frame anchor point...92 CHAPTER 2 "PCL" - 4...
  • Page 23 8.5.10. Location type 1 (currently selected) font ...102 8.5.11. Font extended response...103 8.5.12. Macro response ...104 8.5.13. Use-defined pattern response ...104 8.5.14. Symbol set response ...104 8.5.15. Entity error codes...105 8.5.16. Free space command...105 CHAPTER 2 "PCL" - 5 2006/05/31...
  • Page 24 2006/05/31 8.5.17. Font cache ...106 8.5.18. Memory status response ...106 8.5.19. Memory error response ...106 8.5.20. Flush all pages command...106 8.5.21. Echo command...106 INDEX... 107 CHAPTER 2 "PCL" - 6...
  • Page 25: Command List

    Symbol set ID code command Esc(f#W Define symbol set Esc*c#S Symbol set control command Esc(symbol set ID Select the symbol set Esc(s#C, Esc)s#C Select the symbol set Esc(s#P, Esc)s#P Selecting the type of character spacing CHAPTER 2 "PCL" - 7 2006/05/31...
  • Page 26 Delete all temporary macros Delete macro Make macro temporary Make macro permanent Delete all macros from the storage device Delete macro from the storage device Save macro into the storage device Execute data AppleTalk configuration CHAPTER 2 "PCL" - 8...
  • Page 27 MIO video I/O port control Status Readback Esc*s#T Set status readback location type Esc*s#U Set status readback location unit Esc*s#I Inquire status readback entity Esc*s1M Free space command Esc&r#F Flush all pages command Esc*s#X Echo command CHAPTER 2 "PCL" - 9 2006/05/31...
  • Page 28: Introduction

    There are many resident fonts in the printer and you can gain access to more by inserting a font cartridge/card or the storage device into the printer or by downloading fonts from your computer.
  • Page 29: Controlling The Printer

    CONTROLLING THE PRINTER 3.1. Control Codes Control codes are ASCII codes that tell the printer to perform a given function, such as a carriage return. You can send these codes to the printer as part of a program. 3.1.1. Backspace ASCII code 8.
  • Page 30: Escape Sequences

    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.
  • Page 31 3.2.2. End-of-line wrap If the printer tries to print a line of text that is longer than the width of the text area, the end of the line will normally be lost. However, you can set the printer to flow text onto the next line so that text is not lost.
  • Page 32: End-Of-Line Wrap

    3.3.3. Modified print environment The modified print environment is made up of all the current printer settings. If you call a macro or go into HP- GL/2 graphics language the modified print environment settings are saved. When the macro has been executed, or when you quit HP-GL/2, these saved settings are restored.
  • Page 33: Job Control

    International DL International C5 International DL 1037 Long Edge Feed <1Bh><26h><6Ch>#<41h> HL-1250/ HL-1660e/ HL-2400C/ 1070 1270N/ P2500 2060 2400Ce HL-1850/1870N/5040/5050/5070N/ 2460 7050 5140/5150D/5170DN/6050/6050D/ 6050DN/2070N/5240/5250DN/5270D N/5280DW CHAPTER 2 "PCL" - 15 2006/05/31 HL-3400CN HL-1450/ HL-1650/ HL-3260N 1470N 1670N 2600CN 3450CN 8050N 2700CN...
  • Page 34: Media Type Selection

    • The cursor is moved to the top left of the text area on the new page. • Depending on your model, you may also set the page size from the printer’s control panel or remote printer console program (see the User Guide).
  • Page 35 2006/05/31 • If the printer has data to print when this command is executed, the command is valid from the next page immediately after the data is printed. CHAPTER 2 "PCL" - 17...
  • Page 36: Paper Source

    ← ← ← ← Envelope ← ← ← ← ← ← ← ← ← Tray 3 ← ← CHAPTER 2 "PCL" - 18 HL-1660e/2060/ HL-3260N 1650/1670N ← ← ← ← ← ← ← ← ← MP Tray ← ← ←...
  • Page 37 ← ← ← ← ← ← ← ← ← ← ← ← ← Fixed tray ← ← Auto selection CHAPTER 2 "PCL" - 19 HL-8050N HL-3450CN 2600CN/ 2700CN ← ← ← ← ← ← ← ← ← ← ← ←...
  • Page 38: Left Long-Edge Offset Registration

    • # can be positive or negative. Use a positive number to move the logical page downwards on the physical page, and a negative number to move it upwards. <1Bh><26h><6Ch>#<55h> Positive Negative <1Bh><26h><6Ch>#<5Ah> Negative Positive CHAPTER 2 "PCL" - 20...
  • Page 39: Simplex/Duplex Printing

    # can be 0, 1, or 2. • # = 0 indicates the next side. If there is a page being processed, the printer finishes the processing of that page. If there are no pages being processed, this command is ignored.
  • Page 40 2006/05/31 • You can also perform a printer reset using the printer’s control panel or remote printer console program (see the User Guide). CHAPTER 2 "PCL" - 22...
  • Page 41: Reset To Factory Default Settings

    Escz (27)(122) A printer self test causes a test sheet to be printed out to show that the machine is working properly. Depending on the model, you may also see the test pattern for HRC setting. 4.1.14. Exit current emulation mode...
  • Page 42: Change Emulation Mode

    EscCRE (27)(13)(69) This command changes the emulation mode to Epson FX-850 mode. Depending on the model, you can also switch between emulation modes using the printer’s control panel (see the User Guide). Emulations available for each model are listed below.
  • Page 43: The Page

    All these settings can be made either from the printer’s control panel (see the User Guide) or using PCL commands. 4.2.5. HP-GL/2 graphics window The HP-GL/2 graphics window is the area of the physical page on which images can be printed using HP-GL/2 commands.
  • Page 44: Portrait

    3035 4298 2893 4298 3300 5100 3150 5100 CHAPTER 2 "PCL" - 26 Physical page Printable area Logical page Default HP-GL/2 picture frame Physical page length Maximum logical page length Distance from edge of physical page to edge of logical page...
  • Page 45: Landscape

    3900 5580 3900 3035 4180 3035 3300 4980 3300 CHAPTER 2 "PCL" - 27 2006/05/31 Physical page Printable area Logical page Default HP-GL/2 picture frame Physical page length Maximum logical page length Distance from edge of physical page to edge of logical page...
  • Page 46: Coordinates

    4.2.9. Units You can specify cursor movement within the PCL coordinate system using one of three different unit systems. Decipoints A decipoint is one-tenth of a typographic point measurement = 1/720".
  • Page 47: Resetting The Horizontal Margins

    • The factory default top margin setting is half an inch below the top of the logical page. • Depending on your model, the top margin can be set from the printer’s control panel (see the User Guide). 10 REM ******* SET TOP MARGIN TO 10 LINES *******...
  • Page 48: Setting The Vertical Motion Index (Vmi)

    • # can have any value in the range 0-32767 and can have up to four decimal places. • If you are using a fixed space font the HMI is the horizontal distance moved across the page when the printer prints one character.
  • Page 49: Setting Line Spacing

    • Changing the line spacing setting does not affect the position of the top margin. • The factory default setting is 6 - that is, the printer will print six lines of text per inch. • Depending on your printer model, the number of lines per page can also be set from the printer’s control panel or remote printer console (see the User Guide).
  • Page 50: Page Length

    4.2.19. Perforation skip You can set the printer to flow text from one page to the next when it encounters a line feed (or half line feed) that would otherwise move the cursor position to below the bottom of the text area. When perforation skip is enabled the cursor is automatically moved to the top left hand corner of the text area on the next page and printing continues.
  • Page 51: Positioning The Cursor

    You can position the cursor anywhere on the logical page. In addition, the cursor position is automatically changed when text or graphics are printed. You can either position the cursor using absolute PCL coordinate values or position it relative to the current cursor position, using dots, decipoints or rows and columns as units.
  • Page 52: Horizontal Position

    • An unsigned number as the parameter signifies that the horizontal repositioning is absolute - the cursor will be repositioned the specified number of columns to the right of the left edge of the logical page, the PCL coordinate system’s y-axis.
  • Page 53: Positioning The Cursor Using Control Codes

    • An unsigned number as the parameter signifies that the horizontal repositioning is absolute - the cursor will be repositioned the specified number of decipoints to the right of the left edge of the logical page, the PCL coordinate system’s y-axis.
  • Page 54: Half Line Feed

    • Sending this command to the printer causes the page length, text length, top, left and right margins to be set to their user default values. Any previously transmitted data is printed out and the cursor is positioned at the top left hand corner of the text area on the next page.
  • Page 55 • All subsequent text is printed in the newly selected orientation. • The PCL coordinate system and margin settings are rotated through the specified angle. Hence the cursor coordinates will change. • HP-GL/2 graphics images cannot be rotated using this command.
  • Page 56: Using Fonts

    The laser printer does its best to print using the font you specified, but if amongst all its available fonts it does not have the exact one that you specified, it will compromise and give you what it regards as the closest available font.
  • Page 57: Bound Fonts

    5.1.6. Font sources Depending on your printer model, fonts available to the printer can be in one of three places, either in the printer’s ROM as supplied from the factory, on a cartridge/card, on the storage device, or in the printer’s RAM.
  • Page 58 2006/05/31 The printer comes with some bitmap fonts contained in its ROM and many scalable typefaces which can be used to create scalable fonts. CHAPTER 2 "PCL" - 40...
  • Page 59: Card/Cartridge Fonts

    If the memory contains too many fonts the printer may run out of memory. Since downloaded fonts are stored in the printer’s RAM they are lost when the printer is switched off, and you must download them again before you can use them.
  • Page 60: Criteria For Font Selection

    5.1.15. Criteria for font selection The printer will try to match your stated font requirements as best it can with the fonts available to it in any of the three possible font locations. In most cases you will be specifying a font you know to be present in one of the locations and the resulting printed text will appear exactly as you envisaged.
  • Page 61: Stroke Weight

    Univers and Palatino. The printer has its own resident typefaces. When selecting a particular typeface ensure that it meets all your other specified criteria, otherwise the printer will substitute a font of a different typeface that can satisfy the other, higher priority criteria, such as style and stroke weight.
  • Page 62: Font Selection Commands

    • If an existing ID code is used for a user-defined symbol set, it is overwritten. • Up to 2047 downloadable user-defined symbol sets can be stored subject to the printer's memory capacity. • If a memory full error occurs while downloading the user-defined symbol set, the symbol set which is being downloaded becomes invalid.
  • Page 63 1 specifies an 8-bit font with character codes 20H to 7FH and 80H to FFH acceptable. 2 specifies 8-bit 256 all character fonts. Only when the printer is set to transparent print mode can the characters 0, 7~15 and 27 be printed.
  • Page 64: Symbol Set Control Command

    • Symbol set IDs consist of a number followed by a letter. • Default symbol set ID is Roman-8. If an invalid default symbol set ID is selected, the symbol set becomes Roman-8. • The selectable symbol set varies depending on the printer model. Symbol set ISO 60 : Norwegian 1...
  • Page 65 180 REM --- PAPER EJECT --- 190 LPRINT CHR$(12); 200 END There is a further group of symbol sets that are available for Brother fonts only. You can select these as follows: Esc(s#C (27)(40)(115)#(67) • This command selects the symbol set (character set) for the primary font.
  • Page 66: Selecting The Type Of Character Spacing

    • # = the number of characters to be printed per inch. However, the actual size range is defined in combination with the character height. • The printer’s in-built bitmap fonts all have a pitch of either 10, 12 or 16.66 characters per inch, and you can specify any of these as follows: Esc&k0S...
  • Page 67: Selecting The Height

    • The selection will apply to whichever font you are currently specifying (primary or secondary). • If the printer doesn't have the specified size font, the next largest size font is used. If the printer doesn't have a larger sized font, the next smallest one is used.
  • Page 68: Selecting The Stroke Weight

    Esc)s#T (27)(41)(115)#(84) <1Bh><29h><73h>#<54h> • This command designates the typeface of the secondary font. • If the typeface you specify is not available in any of the three font source locations the printer will substitute a font of a different typeface.
  • Page 69: Font Orientation

    The printer’s built-in fonts are all portrait fonts. If you switch the orientation of the logical page to landscape and select a font, the printer will automatically create the landscape font in its memory. This saves you having to make the landscape font available by installing a card/cartridge or by downloading the font, but takes up printer memory and may cause the printer to run out of space when trying to compose complex page layouts.
  • Page 70: Transparent Print Data

    • Floating underlining means that the underline is drawn in the same place for all the characters on a particular line. • The command below disables the underline facility. Esc&d@ <1Bh><26h><70h>#<58h> (27)(38)(100)#(68) <1Bh><26h><64h>#<44h> (27)(38)(100)(64) <1Bh><26h><64h><40h> CHAPTER 2 "PCL" - 52...
  • Page 71: Downloadable Font Manipulation

    Fonts that you have bought on diskette can be downloaded to the printer from diskette or hard disk using the DOS COPY command or a font downloading applications program. To create your own fonts you can use PCL commands to send the various blocks of data that comprise a do(wnloadable font. There are also a number of PCL commands that enable you to manage fonts that you have already downloaded (both those that you have bought and those you may have created yourself).
  • Page 72: Creating Downloadable Fonts

    Alternatively, you can create a new downloadable font and download the necessary blocks of data that comprise the downloadable font using PCL commands. To send a font, you must send...
  • Page 73 • The Font descriptor has information for the whole character set. When this font descriptor is sent to the printer with a font header to identify the font ID, the descriptor parameters become the basis of the downloaded fonts. • The data format for each type of font descriptor block is shown below.
  • Page 74 76 Global Italic Angle Desc. size Global Intellifont Data Size 80 Global Intellifont Data n Copyright (optional) Reserved (LSB) 0 Font Type Reserved Spacing Style LSB Typeface LSB Serif Style Placement Underline Height Height Extended Checksum CHAPTER 2 "PCL" - 56...
  • Page 75 Global Intellifont Data size Size - 2 Desc. size Global Intellifont Data n Copyright (optional) Reserved (LSB) 0 Font Type (10) Reserved Spacing Style LSB Typeface LSB Serif Style Placement Underline Thickness Height Extended Checksum CHAPTER 2 "PCL" - 57 2006/05/31...
  • Page 76 Reserved Spacing Style LSB Typeface LSB Serif Style Placement Underline Thickness Height Extended Variety Checksum –1 Bitmap font Intellifont bound scalable font Intellifont unbound scalable font TrueType bound scalable font Special bitmap font CHAPTER 2 "PCL" - 58 (LSB) 0...
  • Page 77 = (32 x number) + (ASCII value of letter - 64). For example, Math-8 has the symbol set ID ‘8M’ so it would be encoded as (32 x 8) + (77 – 64) = 269. CHAPTER 2 "PCL" - 59 2006/05/31...
  • Page 78 Arabic (McKay’s version) 3 of 9 Barcode Matrix 2 of 5 Barcode CODABAR Barcode Code 11 Barcode USPS Zip 1 inch 600 dpi 17 chara. 1 inch 0.17646 = 45.17376 CHAPTER 2 "PCL" - 60 = 141.17646 Symbol set ID...
  • Page 79 Bits 0 to 11 specify the typeface family and bits 12 to 15 specify the vending company. 12 11 Vendor CHAPTER 2 "PCL" - 61 {Master x Resolution ÷(height x 8)} 300 dots = 166.667...
  • Page 80 ( According to HP's manual, this should be set to 0.) This printer ignores the value for scalable fonts. • Height extended (UB) - the fractional part of the height of the font. For a 10 point font the bytes value would be calculated as follows: 1200 X 10/72 = 166.667, the Height byte takes the value 166...
  • Page 81 Miscellaneous uses (South Asian, Armenian, other alphabets, bar codes, OCR, Math, PC Semi-graphics, etc.) 0 - 2 Symbol Index field. 111 - MSL Symbol Index CHAPTER 2 "PCL" - 63 2006/05/31 not available for Bitmap fonts and {Master Y-resolution x (Height ÷8)}...
  • Page 82 0 if font has access to the semi-graphic character of the PC-8, PC-850, etc. character sets; otherwise set to 1. 0 if font is compatible with ITC Zapf Dingbats series 100, 200, etc.; otherwise set to 1. 111 if font is arranged in MSL symbol Index order. CHAPTER 2 "PCL" - 64...
  • Page 83: Unicode Symbol Index Character Complement Bits

    (e.g., MC Text, ISO 8859/1 Latin 1); otherwise set to 1. 0 if font is compatible with traditional PCL character sets (e.g., Roman- 8, Legal, ISO 4 United Kingdom); otherwise set to 1. 0 if font is compatible with the Macintosh character set (MS Text);...
  • Page 84: Sending A Character Code

    Esc*c#E (character code) <1Bh><2Ah><63h>#<45h> • This command sends a character code for the bitmap font ( MSL number for unbound fonts ) to the printer. The font data must follow immediately. • # is the character code. # can be from 0 to 65535. The specified character is defined by the data which follows the character code.
  • Page 85 The attribute is specified in units of 1/1200" and can be in the range - 32768 to 32767. [Intellifont scalable font data] Byte Format 2 - 3 Descriptor size 4 - 5 Contour Character data Last data Reserved CHAPTER 2 "PCL" - 67 Data Continuation Data Continuation Class Checksum 2006/05/31...
  • Page 86 Data Continuation Checksum Data Continuation Class ignore checksum - specifies the character format. Format Bitmap font Intellifont-scalable font TrueType scalable font Class Bitmap Compressed Bitmap Contour (Intellifont scalable) Compound Contour (Intellifont scalable) TrueType Scalable CHAPTER 2 "PCL" - 68...
  • Page 87 TrueType font file. • Checksum (UB) - should be a value which, when added to "Character data + Glyph ID + TrueType Glyph data" size, produces a zero result. CHAPTER 2 "PCL" - 69 Data Continuation (0)
  • Page 88 Top offset = 22 dots Baseline Character height = 31 dots Cursor position after character has been printed Character reference point Left offset Character width = 26 dots = 2 dots Delta X = 30 dots CHAPTER 2 "PCL" - 70...
  • Page 89 Top offset = 27 dots Character height = 26 dots Raster scan Left offset = 22 dots Baseline Character width = 31 dots Cursor position after character has been printed Character reference point Delta X = 30 dots CHAPTER 2 "PCL" - 71...
  • Page 90: Using Graphics

    2006/05/31 USING GRAPHICS This HL Series printer affords the user considerable flexibility in the creation of graphic images. Vector, raster and rectangle graphics are available, all of which allow a range of shading and filling options. The HP-GL/2 graphics commands that are supported are described in the HP-GL/2 section of this manual.
  • Page 91: Set Pattern Transparency

    • Opaque mode means that the destination image will not be visible through the patterned areas of the source image when the source image has been printed on top of the destination image. Pattern Source image Possible results <1Bh><2Ah><76h>#<4Fh> CHAPTER 2 "PCL" - 73 2006/05/31 With opaque source image...
  • Page 92: Set Area Fill Identity

    For example Pattern Source image Destination image With transparent pattern Possible results Fill patterns # = 1 # = 2 # = 4 # = 5 CHAPTER 2 "PCL" - 74 With opaque pattern <1Bh><2Ah><63h>#<47h> # = 3 # = 6...
  • Page 93: User-Defined Pattern Command

    • The Pattern reference point should be placed on a physical page and the base pattern is positioned at the pattern reference point for tiling. <1Bh><2Ah><63h>#<57h> Continuation (0) Reserved (0) Continuation (0) Reserved (0) X=Y: 300 or 600 <1Bh><2Ah><70h>#<52h> CHAPTER 2 "PCL" - 75 2006/05/31...
  • Page 94: User-Defined Pattern Control

    Esc*c#Q (27)(42)(99)#(81) • # = 0 deletes all (temporary and permanent) user-defined patterns from the printer memory. • # = 1 deletes all temporary user-defined patterns from the printer memory. • # = 2 deletes the pattern whose ID number was specified most recently.
  • Page 95 180 LPRINT ESC$; "*c5G"; ESC$; "*v3T"; : LPRINT "E"; 190 LPRINT ESC$; "*c3G"; ESC$; "*v3T"; : LPRINT "R"; 200 LPRINT ESC$; "*c1G"; ESC$; "*v3T"; : LPRINT "N"; 210 REM --- PAPER EJECT --- 220 LPRINT CHR$(12); 230 END <Sample file 6> CHAPTER 2 "PCL" - 77 2006/05/31...
  • Page 96: Plotting Rectangles

    (0-100%) with the Set Area Fill Identity command. This feature is unique to these HL Series printers. Fill Solid black White Gray scale (1 - 8) Cross hatch pattern User-defined pattern Current pattern Gray scale ( 1 - 64) <1Bh><2Ah><63h>#<41h> <1Bh><2Ah><63h>#<48h> <1Bh><2Ah><63h>#<42h> <1Bh><2Ah><63h>#<56h> <1Bh><2Ah><63h>#<50h> CHAPTER 2 "PCL" - 78...
  • Page 97 320 REM --- PRINT 8-GRAY SCALE PATTERN --- 330 LPRINT ESC$; "*c"; XL; "A"; 340 LPRINT ESC$; "*c"; YL; "B"; 350 LPRINT ESC$; "*c"; GRAY; "G"; 360 LPRINT ESC$; "*c2P"; 370 RETURN <Sample file 7> CHAPTER 2 "PCL" - 79 2006/05/31...
  • Page 98: Raster Graphics

    • # is 75, 100, 150, 200, 300 or 600. • The lower the resolution you specify, the less printer memory your raster image will occupy. • Use this command before you issue a Begin Raster Graphics command, otherwise the resolution that you specify will not take effect until the next time you re-enter raster graphics mode.
  • Page 99: Set Raster Area Height

    6.3.8. Set compression mode Esc*b#M (27)(42)(98)#(77) Identifies the method of compression used to encode the raster image that is to be sent to the printer. • # is 0, 1, 2, 3, 5, 9, 1152 or 1024. • # = 0 signifies no compression is to be used.
  • Page 100 This element identifies multiple empty rows. The next two bytes (upper byte first) contain the empty row count. This element identifies duplicate rows. The next two bytes (upper byte first) contain the duplicate row count. Second, third byte Number of bytes of data Number of empty row or repetition CHAPTER 2 "PCL" - 82...
  • Page 101 Replacement count = 7 + 1 = 8 Command byte for mode 9 compression (repeated replacement data) Offset count Control bit CHAPTER 2 "PCL" - 83 Offset count Replacement count-1 Optional offset count byte = 0 11 11 22 33 44 55 66 77...
  • Page 102 The header size is 94 Bytes. Both the header and the picture data are transferred by the ESC*b###W(###=data length) command. The normal PCL transfer graphics data command has a limitation on the data size and ### should not exceed 32767. Unlike other modes, this mode is special and does not have the 32767 size limitation.
  • Page 103 2C 01 00 00 : 300 dpi, 90 01 00 00 : 400 dpi, 58 02 00 00 : 600 dpi 400 and 600 dpi are available when the printer operates in 600 dpi mode. C8 00 00 00 : 200 dpi,...
  • Page 104 32,767 bytes. This printer supports both "MM" (big endian) format and "II" (little endian) format. The Print model is not applied to this type of data transfer. The printer has some limitations on the TIFF format as follows:- 1.
  • Page 105: Start Raster Transfer

    • # = 1 denotes that the image will be printed starting from the current cursor position. • The transfer of raster data to the printer continues until either an End Raster Transfer command is sent or a command other than Send Raster Data, Set Compression Mode or Set Raster Y-Offset is sent.
  • Page 106 600 DATA 38,3F,F0,70 610 DATA 18,0F,C0,60 620 DATA 1C,00,00,E0 630 DATA 0E,00,01,C0 640 DATA 07,00,03,80 650 DATA 03,C0,0F,00 660 DATA 01,F0,3E,00 670 DATA 00,7F,F8,00 680 DATA 00,1F,E0,00 690 REM --- DATA END --- <Sample file 8> CHAPTER 2 "PCL" - 88...
  • Page 107: Horizontal 1200-Dpi Image Format Mode (Raster Graphic Mode 1027)

    (If you select a mode other than PCL mode, 1200 dpi printing mode cannot be selected.) The PCL Mode set command for 1200 dpi Image Format is ESC *b1027M. The transfer raster data command (ESC*b###W) then transfers horizontal 1200 dpi data.
  • Page 108 Non-compressed data When the most significant bit in the first 2 bytes is 0, the printer goes into non-compression mode. The following 11 bits then indicate the number of words of data, the least significant 4 bits are not used. After that, the image data follows word by word.
  • Page 109: Vector Graphics

    • # = 0 the cursor is positioned at the previous HP-GL/2 cursor position. If this is the first time you have switched to HP-GL/2 mode since switching the printer on, the cursor is placed at the origin of the HP-GL/2 graphics window.
  • Page 110: The Picture Frame

    The Picture Frame The PCL picture frame is the rectangular area of the page on which you can print graphic images. You can position and size the picture frame to suit your requirements and achieve effects such as scaling or distortion of vector graphics images.
  • Page 111: Macros

    A printer reset will delete macros from the printer’s memory unless they have been explicitly designated as permanent. The PCL picture frame commands, the printer reset command and HP-GL/2 graphic language commands cannot be invoked from within a macro. CHAPTER 2 "PCL" - 93...
  • Page 112: Defining A Macro

    To define a macro you must first assign an ID number to it, then send to the printer a Start Macro Definition command, the macro definition itself (consisting of a sequence of PCL commands) and finally an End Macro Definition command.
  • Page 113: Running A Macro

    • This command overlays the macro whose ID number was specified most recently. 7.3.4. Disable macro for overlay Esc&f5X (27)(38)(102)(53)(88) • This command stops overlaying the macro whose ID number was specified most recently. <1Bh><26h><66h><32h><58h> <1Bh><26h><66h><33h><58h> <1Bh><26h><66h><34h><58h> <1Bh><26h><66h><35h><58h> CHAPTER 2 "PCL" - 95 2006/05/31...
  • Page 114: Handling Macros

    • This command deletes all macros from the printer’s memory. 7.4.2. Delete all temporary macros Esc&f7X (27)(38)(102)(55)(88) • This command deletes all temporary macros from the printer’s memory. Temporary macros are those which have not been made permanent with the Esc&f10X command. 7.4.3. Delete macro Esc&f8X (27)(38)(102)(56)(88) •...
  • Page 115: Execute Data

    420 END 7.4.9. Execute data The data saved in the storage device by using Printer's control panel "SAVE DATA" function can be printed by the following command. It can also be printed by operation of the Printer control panel. EscCR!#E (27)(13)(33)#(69) •...
  • Page 116: Mio Video I/O Port Control

    • Laser diode video interface port of the MIO port is opened. EscCR!12342M <1Bh><0Dh><21h><31h><32h><33h><34h><32h><4Dh> • Laser diode video interface port of the MIO port is opened and the print start command is sent to the printer engine immediately after sending the VSREQ signal. (27)(13)(33)(49)(50)(51)(52)(48)(77)
  • Page 117: Status Readback

    If a status request (command) is received, the printer produces the response data. The printer accumulates this data in an I/O status buffer and saves the response in this buffer until a user reads it or you turn off the printer.
  • Page 118: Status Response Syntax

    Status Response Syntax All of the status responses begin with "PCL", Carriage Return control code and a Line Feed control code. The response is ended by a Carriage Return and a Line Feed control code. At the end of the transaction, status responses are ended by a Form Feed Control code.
  • Page 119: Inquire Status Readback Entity

    0, and whenever you reset the printer, the value is reset to the default value. • The location unit setting is retained by the printer. If the printer does not send this command to change the setting for an entity request, then it uses the currently available location units.
  • Page 120: Bitmap Fonts

    SYMBOLSETS="0D, 0D, 0N, 0S, 0U, 1E, 1F, 1G, ..." 8.5.10. Location type 1 (currently selected) font For a status location type 1 (currently selected) font, the printer returns a single font, the printer font which is currently selected. The following are the keywords and data returned.
  • Page 121: Font Extended Response

    "DEFID" specifies the internal ID number of the font which is shown on the test print the number which is used to select the font as the default font from the control panel of printer or from PJL. The "DEFID=" number is made of two parts, which are a location and an ID number. The locations which are likely are as follows;...
  • Page 122: Macro Response

    The symbol set response indicates all of the symbol set IDs ("IDLIST") for all of the symbol sets in the identified location. There can be bound and unbound scalable fonts in the identified location (type and unit). A symbol set response may be shown as follows. INFO SYMBOLSETS IDLIST="0U, 2K, 8M, 11U" Bd" CHAPTER 2 "PCL" - 104...
  • Page 123: Entity Error Codes

    Example responses in this section for "SYMBOLSETS=" do not indicate the complete list of symbol sets which are available internally, but only a partial list . The internal symbol sets depend on the printer and might differ according to the printer.
  • Page 124 These stored bitmap characters are known as the font cache. If a Brother HL-Series printer encounters a memory low condition, all of the font cache is automatically deleted. Also, font cache and temporary entities can be cleared by a Printer Reset command.
  • Page 125 ... 42, 49 raster image ... 81 select... 49 high resolution control ... 80 HMI... 30 horizontal cursor position ... 34 horizontal margin ... 29 horizontal motion index ... 30 horizontal plot size... 92 CHAPTER 2 "PCL" - 107 2006/05/31...
  • Page 126 ... 38 scale... 49 secondary font... 11, 41 self test ... 23 simlex printing ... 21 solid ... 50 source ... 72 source transparency... 72 space... 11 status location type 1 font ... 102 CHAPTER 2 "PCL" - 108...
  • Page 127 ... 104 V vector graphics... 91 vertical cursor position... 33 vertical motion index ... 30 vertical plot size ... 92 VMI... 30 W width raster image ... 81 Y y-offset raster image ... 81 CHAPTER 2 "PCL" - 109 2006/05/31...
  • Page 128: Pcl5C

    2006/05/31 CHAPTER 3 PCL5C CHAPTER 3 "PCL5C" - 1...
  • Page 129 INTRODUCTION... 3 COLOR MODES ... 4 2.1. Using Simple Color Mode - Set Simple Color ... 4 2.2. Using PCL Color Mode - Set PCL Color Setting ... 5 2.3. Using HP-GL/2 Color Mode... 9 COLOR PALETTES ... 10 3.1.
  • Page 130: Introduction

    INTRODUCTION This chapter describes the enhanced commands for the PCL5C emulation. PCL5C is upwards-compatible with PCL5e. For the commands of PCL5e, refer to “Chapter 2 PCL” which describes the PCL5e emulation. If you are reading this technical manual for the first time, it is recommended that you read Chapter 2 first before reading this Chapter.
  • Page 131: Color Modes

    3) HP-GL/2 Color Mode Simple Color Mode allows you to use a maximum of 8 colors easily. PCL Color Mode allows you to use a maximum of 16,000,000 colors logically. HP-GL/2 Mode allows you to use vector graphics in color.
  • Page 132: Using Pcl Color Mode - Set Pcl Color Setting

    # stands for the number of bytes of data that follow this command. This command sets the palette size and transformation between the entered value and device-specific value. This command has two types of format, short format and long format. Here are the formats for the PCL color setting.
  • Page 133 2006/05/31 [Example] If you want to send index No. 7,6,5,4,3,2,1,0; Enter ’ESC*v6W 00h 00h 04h 08h 08h 08h’, then select Send Index No by Plane. Select 4 bits/index. (2 ESC*r1A ESC*b1V 10101010B ESC*b1V 11001100B ESC*b1V 11110000B ESC*b1W 00000000B ESC*rC Send Index No by Pixel (= 1) •...
  • Page 134 (i.e.) ESC*b#V r, r, r, r, r...→ Plane 1 ESC*b#V g, g, g, g, g...→ Plane 2 ESC*b#W b, b, b, b, b...→ Plane 3 ESC*b#V r, r, r, r, r...→ Plane 1 ESC*b#V g, g, g, g, g...→ Plane 2 ** The Italic characters shown above are the index No.
  • Page 135 2006/05/31 ♣ Bits/index • Specifies the palette size at 2 • When the encoding mode is 0 or 1, the palette size selected by the bits/index value specifies the range of the index No., which can be used for raster data. •...
  • Page 136: Using Hp-Gl/2 Color Mode

    2.3. Using HP-GL/2 Color Mode Two methods are provided to set the color mode in the HP-GL/2 mode. Set the color mode by the PCL command, then transfer to the HP-GL/2 mode. Execute the NP command. For the details on how to use the color selections in the HP-GL/2 mode, refer to Section 6 ‘HP-GL/2’.
  • Page 137: Color Palettes

    • This command sets the value which was set by the Set Color #1, #2, #3 commands to 0. - 1) (The value n is specified by the Bit/Index setting in the Set PCL Color Setting CHAPTER 3 "PCL5C" - 10...
  • Page 138: Select Color

    • This command does not affect the User-defined color pattern or HP-GL/2. (The HP-GL/2 command selects the color using the SP command.) • The value to be selected by this command is never affected by the Set PCL Color Setting, Set Render Algorithm, Download Dither Matrix or Set Gamma Correction commands.
  • Page 139: Color Graphics

    • This command signals the start of the transfer of raster image data to the printer. • The transfer of raster data to the printer continues until either an End Raster Transfer command is sent or a command other than Send Raster Data, Set Compression Mode or Y-Offset is sent.
  • Page 140: Set Scale Algorithm

    * Default value = 0 • Immediately after the printer receives this command, it switches to HP-GL/2 mode, interpreting commands as HP-GL/2 commands until it receives an Enter PCL Mode, Reset or UEL command, or until the printer is turned off and on.
  • Page 141: Enhance Output

    2006/05/31 ENHANCE OUTPUT 5.1. Set Render Algorithm Command ESC*t#J (27)(42)(116)#(74) <1Bh><2Ah><70h>#<4Ah> # = 0 Scatter dither Snap to primaries Snap black to white, all other colors to black = 3 * Scatter dither Scatter dither Monochrome device best dither Monochrome scatter dither Clustered dither Monochrome clustered dither User-defined dither...
  • Page 142: Set Gamma Correction

    If the Format is set to 0 or 20, it sends monochrome format. For details, refer to ‘Chapter 2 PCL’. Pixel encoding: set to either of 1 bit or 8 bits. If selecting 1 bit, 1 pixel is assigned to 1 bit (2 colors).
  • Page 143: Hp-Gl/2 Graphics Language

    A few HP-GL/2 commands are added for the HL-2400C/Ce, HL-3400CN, HL-2600CN, HL-3450CN, HL- 2700CN color laser printer, and the features of some existing commands are also expanded. The new or revised HP-GL/2 commands as follows are described in this chapter;...
  • Page 144: Np (Number Of Pens) Command

    Range = 2 ~ 32768 Default value = 8 • This command makes the palette the specified size after the Initialize Set Instruction command or Set PCL Color Setting command is executed. • The n value represents the palette number with the value of 2...
  • Page 145 ... 16 long format... 8 monochrome mode ...14 NP command...17 number of pens ...17 palette...4 palette size...5 PC command...16 PCL color mode ...5 pen color ...16 pixel ...6 Plane ...5 pop palette...11 push palette ...11 raster data send ...13 raster image...5...
  • Page 146 2006/05/31 CHAPTER 4 HP-GL/2 GRAPHICS LANGUAGE CHAPTER 4 HP-GL/2 - 1...
  • Page 147 2006/05/31 ONTENTS COMMAND LIST ... 4 INTRODUCTION ... 6 TERMINOLOGY ... 7 3.1. Picture Frame... 7 3.2. Anchor Point ... 7 3.3. Graphics Window ... 7 3.4. Hard Clip Limits... 7 3.5. Soft Clip Limits ... 7 3.6. Graphics Units ... 7 3.7.
  • Page 148: Index

    2006/05/31 7.6. Character Plot Instructions... 38 7.6.1. Introduction ...39 INDEX... 52 CHAPTER 4 HP-GL/2 - 3...
  • Page 149 2006/05/31 COMMAND LIST Default set instruction Initialize set instruction Input scaling point Input relative scaling points Scale Window Rotate coordinate system Pen up Pen down Plot absolute Relative coordinate pen move Draw absolute arc Draw relative arc Absolute arc three point Relative arc three point Polyline encoded Bezier relative...
  • Page 150 Absolute direction Relative direction Define variable text path Relative character movement Character fill mode Set absolute character size Set relative character size Character slant Scalable or bitmap fonts Extra space Transparent data CHAPTER 4 HP-GL/2 - 5 2006/05/31...
  • Page 151: Introduction

    HP-GL/2 graphics language or to print out existing HP-GL/2 format images. HP-GL/2 is a part of the PCL emulation, which includes graphics command. The Default plotting measurement unit in the HP-GL/2 graphics mode is 1/1016" ( 0.025 mm).
  • Page 152: Terminology

    TERMINOLOGY 3.1. Picture Frame The printer frame is the rectangular area of the page on which graphic output can be printed. This is based on the logical page defined for the selected paper size. 3.2. Anchor Point The anchor point of the picture frame is the top left hand corner of the frame. This can be moved on the page using PCL language page control commands.
  • Page 153: Absolute And Relative Plotting

    2006/05/31 3.10. Absolute and Relative Plotting Drawing commands are of two distinct types: absolute commands, in which the coordinates specified are the absolute user or graphics coordinates and relative commands, whose coordinates are relative to the coordinate position at which the previous graphics command terminated. 3.11.
  • Page 154: Command Syntax

    COMMAND SYNTAX An HP-GL and HP-GL/2 command can consist of up to four items: a mnemonic, a parameter field, a separator and a terminator. 4.1. Mnemonic The two-letter mnemonic is the name of the command and should help remind you of its function. 4.2.
  • Page 155: The Hp-Gl Graphics Window

    2006/05/31 THE HP-GL GRAPHICS WINDOW 5.1. Units When you first enter graphics mode, the prevailing coordinate system has its origin in the bottom left hand corner of the graphics window and has x- and y-units of 1/1016". Using the SC command you can divide the axes into more convenient units.
  • Page 156: Preparing To Print Graphic Images

    To quit graphics mode use the Esc%#A command. Set # to 0 if you want to place the cursor at the previous PCL cursor position. This is the default setting. Set # to 1 if you want to place the cursor at the current HP-GL/2 pen position.
  • Page 157: Commands

    2006/05/31 COMMANDS 7.1. Initialize Commands DF - Default set instruction DF[;] • Returns the graphics mode to default conditions. The following are the default settings. Function Plot mode Absolute direction Line type Line pattern length Anchor corner Line Attributes User-Defined line type Window Symbol mode Character Fill Mode...
  • Page 158 IN - Initialize set instruction IN[;] • Returns the graphics mode to initial conditions; Function Plot mode Relative character direction Line type Line pattern length Window Symbol mode Anchor corner Line attributes User-defined line type Pen position Character set Character size transformation Scalable or bitmap fonts Character slant Character fill...
  • Page 159: Plot Area And Unit Setting Instructions

    • The default location of P1 is the lower left corner and P2 is the upper right corner of the PCL picture frame. • Using this instruction without a parameter field initializes the scaling points(P1,P2) to the default location.
  • Page 160 SC - Scale <HP-GL/2> SC [ X , type [ left, bottom]] [;] (Type =1) SC [ X factor factor ; X coordinate of P1 ; Y coordinate of P1 Type ; type of scaling Left ; percentage of unused space to be left to the left of the scaling area bottom ;...
  • Page 161 100. If you do not specify the value for bottom, it is automatically set to the default value = 50%. P1(0,0) • You must either specify both left and bottom, or specify neither. However, the printer can only use one of these two parameters at a time, depending where the extra space is on a page. \ •...
  • Page 162 • If you have previously used an IW command, the window is also rotated. Any part of the window that falls outside the hard clip limits will be clipped. • The command remains in effect until another RO command is used or until the printer is initialized with the IN instruction.
  • Page 163: Pen Control And Plot Instructions

    2006/05/31 7.3. Pen Control and Plot Instructions Instruction PU - Pen up PU [ X,Y [,...]] [;] X ; X coordinate of the cursor movement destination Y ; Y coordinate of the cursor movement destination • X and Y are either relative or absolute, depending on whether a PA or a PR was the last plot command executed.
  • Page 164 PA - Plot absolute PA [ X, Y [,...]] [;] X ; X coordinate of the cursor movement destination Y ; Y coordinate of the cursor movement destination • Coordinates are absolute values in user or current units. • Whether used with or without parameters the command establishes absolute plotting as the plotting mode. •...
  • Page 165 2006/05/31 AA - Draw absolute arc AA [ X, Y, qc [, qd ]] [;] X ; Arc centre X coordinate qc ; Arc angle in degrees • Coordinates are absolute coordinates in current units. • Starting from the current position, this command plots an arc centred on the absolute coordinates X, Y having the specified arc angle and chord angle, with the radius being the distance between the current position and the point X,Y.
  • Page 166 AR - Draw relative arc AR X, Y, qc(, qd)[;] X ; Arc centre X coordinate qc ; Arc angle in degrees • Coordinates are relative values in current units. • Starting from the current cursor position the command plots an arc whose centre is at the relative coordinate position (X,Y) and which has the specified arc and chord angles.
  • Page 167 2006/05/31 RT - Relative arc three point RT X ; x-coordinate of intermediate point ; y-coordinate of intermediate point ; x-coordinate of end point ; y-coordinate of end point qd ; the chord angle used to draw the arc • The specified coordinates of the two points are relative to the current pen position. •...
  • Page 168 • Transmit each number to the printer least significant digits first. Terminate each number with the most significant digit. This must be specified from a different ASCII range from the preceding digits in the number.
  • Page 169 2006/05/31 • To avoid placing an unwanted dot at the centre of the circle precede the CI command with a PU command. 10 '-- Circle -- 20 WIDTH "LPT1:",255 30 LPRINT CHR$(27);"E"; 40 LPRINT CHR$(27);"%0B"; 50 LPRINT "IN;SP1;"; 60 LPRINT "SC-75,75,-75,75,1;" 70 LPRINT "PA0,0;LT;CI5;LT0;CI-12;"...
  • Page 170: The Polygon Group

    • Using the command with no parameters clears the polygon buffer and enters polygon mode. This is equivalent to the PM0; command. • If a DF or IN command is invoked in the polygon mode, the printer quits polygon mode, clears the polygon buffer and executes the subsequent command.
  • Page 171 2006/05/31 10 '-Edge Rectangle Absolute- 20 WIDTH "LPT1:", 255 30 LPRINT CHR$(27); "E"; 40 LPRINT CHR$(27); "%0B"; 50 LPRINT "IN;SP1;"; 60 LPRINT "SC0,150,0,150,1;" 70 LPRINT "PA25;105;EA65;130;" 80 LPRINT "PA30;110;EA70,135;" 90 LPRINT "PA35;115;EA75;140;" 100 LPRINT CHR$(27); "%0A"; 110 LPRINT CHR$(27); "E"; 120 END <sample 31>...
  • Page 172 • r specifies the radius of the circle. A positive value for r places the 0° reference point onto the positive x- axis and a negative value for r places the 0° reference point onto the negative x-axis. • The value for q1 is a clamped real number. current position •...
  • Page 173 2006/05/31 90 LPRINT "FT4,100,45;RA4250,4750;" 100 LPRINT CHR$(27); "%0A"; 110 LPRINT CHR$(27); "E"; 120 END <Sample 34> RR - Fill rectangle relative RR X, Y[;] X ; X coordinate of opposite corner for the rectangle Y ; Y coordinate of opposite corner for the rectangle •...
  • Page 174 10 ' - Fill Wedge - 20 WIDTH "LPT1:", 255 30 LPRINT CHR$(27); "E"; 40 LPRINT CHR$(27); "%0B"; 50 LPRINT "IN;SP2;FT3,100;" 60 LPRINT "PA2000,5000;" 70 LPRINT "WG1250,90,180,5;" 80 LPRINT "SP3;EW1250,90,180,5;" 90 LPRINT "SP4;FT4,100,45;" 100 LPRINT "WG1250,270,120;" 110 LPRINT "SP3;EW1250,270,120;" 120 LPRINT "SP1;FT1;" 130 LPRINT "WG1250,30,60;"...
  • Page 175: Plot Function Instructions

    • This command specifies the anchor corner which is the starting position of a fill pattern. • If no parameters are specified the lower left hand corner of the PCL picture frame, according to the current coordinate system, becomes the anchor position. This is equivalent to AC0,0;...
  • Page 176 Option 1 for n=21 specifies the PCL cross-hatch patterns. There are 6 types of PCL cross-hatch patterns. • Option 2 for n=21 is ignored. • Option 1 for n=22, the PCL user-defined patterns defined by the ESC*c#W command with a unique ID code. • Option 2 for n=22 is ignored. •...
  • Page 177 • Labels are always drawn with rounded ends and joins. • An LA command remains in effect until another LA command is issued, until default settings are restored with the DF command or until the printer is initialized with an IN command. 10 '-Line Attributes- 20 WIDTH "LPT1:", 255...
  • Page 178 • An LT command remains in effect until another LT command is issued, until the default settings are restored with the DF command or until the printer is initialized with an IN command. • If no parameters are specified the line type is set to be solid. The previous line type, pattern length and any line residue are saved.
  • Page 179 • If a width of zero is specified the thinnest width possible ( 1 dot wide ) is set. • Metric widths are scaled by the ratio of the PCL picture frame to the HP-GL/2 plot size. If the ratio for the two axes is different, the smaller one is used.
  • Page 180 • The screen type must have the value 0, 1, 2, 21, 22 or 130. 0 = no screen, 1 = shaded fill ( one of eight gray scales ), 2 = raster fill as defined by the RF command, 21 = a pre-defined PCL cross-hatch pattern and 130 = shaded fill ( one of sixty-four gray scales ).
  • Page 181 • With screen type 21 option 1 specifies one of six predefined PCL cross-hatch patterns (patterns 1 - 6). option 2 is ignored. • With screen type 22, option 1 specifies the ID number of PCL user-defined pattern which is defined by the ESC*c#W command. option 2 is ignored.
  • Page 182 170 'Source 2 180 LPRINT "FT10,50;PA4000,5000;RR500,500;PA4500,5500;RR500,500;" 190 LPRINT "FT10,1;PA4500,5000;RR500,500;PA4000,5500;RR500,500;FT;" 200 ' 210 '( POLYGON ) 220 LPRINT "PA2000,1000;PM0;PDPA4000,1000,3000,3000;PM1;" 230 LPRINT "PA2500,1200,3500,1200,3000,2500;PM1;" 240 LPRINT "PA3000,800,3700,2500,2300,2500;PM1;" 250 LPRINT "PM2;FP;" 260 LPRINT CHR$(27); "%0A"; 270 LPRINT CHR$(27); "E"; 280 END <Sample 45> UL - User-defined line type UL [ i ] [,g [...,]] [;] i ;...
  • Page 183 2006/05/31 • The command sets all pen widths to a default of 0.35mm. Hence it should be used before the PW command. • Using the command with no parameter defaults the type to 0 (metric) and all pen widths to 0.35mm. •...
  • Page 184 7.6.1. Introduction The character group commands enable you to print text to accompany your HP-GL/2 generated graphics without leaving graphics mode. You can use any font that would be available to you in LaserJet emulation mode and you can modify various printing characteristics of the text such as the size, direction and slant of the characters.
  • Page 185 2006/05/31 • attribute = 1 : Symbol set Valu HP Large Characters Roman Extensions ECMA-94 Latin1 (8-bit APL (typewriter paired) Swedish for names Danish/Norwegian v2 APL (bit paired) Industrial 2 of 5 Barcode International Reference CODABAR Barcode MSI/Plessey Barcode HP European Spanish HP Latin Spanish Roman - 8 (Default) UPC/EAN Barcode...
  • Page 186 20 WIDTH "LPT1:", 255 30 LPRINT CHR$(27); "E"; 40 LPRINT CHR$(27); "%0B"; 50 LPRINT "IN;SP1;"; 60 LPRINT "PA2200,7000;SD2,0,4,11.5,5,0;" 70 LPRINT "DT#;LBLaser printer#" 80 LPRINT "PA2000,5000;SD2,1,4,20,5,1;" 90 LPRINT "LBLaser printer#" 100 LPRINT "PA1000,3000;SD2,1,4,50,5,1;" 110 LPRINT "LBLASER PRINTER#" 120 LPRINT CHR$(27); "E";...
  • Page 187 • The default standard font is the HP-GL stick font. • The font remains current until the printer is initialized with an IN command, until the default conditions are resorted with the DF command or until an SA command is used.
  • Page 188 : the identity number of any accessible font • This command allows you to select any accessible font, which has previously been given an identity number in PCL mode, as the secondary (alternate) font. All subsequently printed labels will appear in the secondary font.
  • Page 189 • p must either be in the range 1 - 9, 11 - 10 and 21. The label origin position specified by each p parameter value is shown below. 21 sets the label origin to the same one in PCL.
  • Page 190 • If you omit the parameter the label origin is the bottom left hand corner of the first character's character cell - equivalent to LO11;. • The command remains in effect until the printer is initialized with an IN command, until the default conditions are restored with the DF command or until another LO command is used.
  • Page 191 2006/05/31 90 LPRINT "DT";" 100 LPRINT "DT0,2;LB_*_1988#"; "DI2,2;LB_*_1989#"; 110 LPRINT "DT2,0;LB_*_1990#"; "DI2,-2;LB_*_1991#"; 120 LPRINT "DT0,-2;LB_*_1992#"; "DI-2,-2;LB_*_1993#"; 130 LPRINT "DT-2,0;LB_*_1994#"; "DI-2,2;LB_*_1995#"; 140 LPRINT "PA3500,5350;DI", COS(0),SIN(0); "LB_*_2000"; CHR$(13); "#"; 150 LPRINT "DI", COS(RAD); SIN(RAD); "LB_RETURN POINT"; CHR$(13); "#"; 160 LPRINT CHR$(27); "%0A"; 170 LPRINT CHR$(27);...
  • Page 192 DV - Define variable text path DV [ path [,line]] [;] path : text printing path - horizontal or vertical, and left to right, right to left, upwards or downwards. line: the effect of a line feed. • This command determines the printing direction for labels and the carriage return point. •...
  • Page 193 Only scalable fonts can be both filled and edged - bitmap fonts and the stick font cannot be edged and can only be filled with raster fill, shading or PCL cross-hatch patterns. Scalable characters can be filled with any pattern specified by the FT command.
  • Page 194 10 ' -Absolute Character Size- 20 WIDTH "LPT1:", 255 30 LPRINT CHR$(27); "E"; 40 LPRINT CHR$(27); "%0B"; 50 LPRINT "IN;SP1;"; 60 LPRINT "PA700,3000;DT#;LBPrinter#" 70 LPRINT "PA700,2000;SI0.75,1;LBPrinter#" 80 LPRINT "SI;SD1,21,2,1,3,12,5,0,6,0,7,52;SS;" 90 LPRINT "PA40003000;LBPrinter#" 100 LPRINT "PA4000,2000;SI1,1.5;LBPrinter#" 110 LPRINT CHR$(27); "%0A"; 120 LPRINT CHR$(27); "E"; 130 END <Sample 57>...
  • Page 195 ES0,0; • An ES command remains in effect until another ES command is executed, a DF or IN command is executed or the printer is reset, either with the EscE command or from the control panel. TD - Transparent data TD [ mode ] [;]...
  • Page 196 • mode is set to either 0 or 1. If mode is set to 0, control codes perform their normal functions and are not printed. If mode=1, all characters are printed, if possible. No control characters perform any function except the label terminator. Any non-printing or undefined characters appear as a space. •...
  • Page 197: Index

    Pen down ...18 Pen up ...18 Pen width ...34 Plot absolute...19 Polygon mode ...25 Polyline encoded...22 printer frame ...7 Raster rill definition ...34 Relative arc three point ...22 Relative character movement...47 relative commands ...8 Relative coordinate pen move...19 Relative direction...46 Rotate coordinate system ...17...
  • Page 198 Select primary font ... 43 Select secondary font ... 43 Select standard font ... 42 Select unit for pen width ... 37 separators ... 9 Set absolute character size... 48 Set relative character size ... 49 soft clip limits... 7 Symbol mode ...
  • Page 199: Pjl Printer Job Language

    2006/05/31 CHAPTER 5 PRINTER JOB LANGUAGE CHAPTER 5 PJL - 1...
  • Page 200 2006/05/31 ONTENTS INTRODUCTION ... 4 1.1. About PJL ... 4 1.2. In Case of Using PJL with a Non-PJL Printer ... 5 1.2.1. PCL jobs...5 1.2.2. Postscript jobs...5 1.2.3. Other printer languages ...5 1.3. PJL Syntax and Format ... 6 1.4.
  • Page 201 6.5. Reset Command ... 48 6.6. Set Command ... 48 STATUS READBACK COMMANDS... 50 7.1. Introduction ... 50 7.1.1. Synchronization with the printer...50 7.1.2. Basic format of status readback responses...50 7.2. Inquire Command ... 51 7.3. DINQUIRE Command... 52 7.4.
  • Page 202: Introduction

    Note : The commands for Printer status readback or Front panel control can be invoked in modes other than PCL or BR-Script. However, the commands for printer status readback get the information from PCL or BR- Script and the commands for front panel control perform the settings for PCL or BR-Script.
  • Page 203: In Case Of Using Pjl With A Non-Pjl Printer

    1.2.1. PCL jobs For a PCL printer which does not support the PJL language, the PJL command is printed as ASCII text until initial PCL printer reset command (<ESC>E) is received. After receiving the PCL reset command, the printer ejects the page and proceeds with the PCL print job on a new page.
  • Page 204: Pjl Syntax And Format

    2006/05/31 1.3. PJL Syntax and Format Syntax <For Example> @PJL ENTER LANGUAGE = emulation [<CR>]<LF> @PJL ENTER LANGUAGE @PJL ENTER LANGUAGE < .. > <LF> < HT > < LF > < CR > < SP > < ESC > <...
  • Page 205: Variables

    Syntax warnings and semantic warnings are issued for commands which include unsupported options, values which are out of range, or wrong or missing commands, etc. When the printer receives commands which would create a syntax warning or semantic warning, it operates the command as long as possible, however, the portion of the command which would create a warning is ignored.
  • Page 206: How To Use Pjl

    HOW TO USE PJL 2.1. Overview PJL resides "above" printer languages such as Postscript and PCL. Each job can be distinguished from the other jobs by PJL, and it can switch between PJL commands and printer language commands for each job. PJL Code 2.2.
  • Page 207: Command Group

    Displays altered message on the control panel and takes the printer off-line STMSG Displays altered message on the control panel and takes the printer off-line. If status readback is enabled, returns name of the key. CHAPTER 5 PJL - 9 2006/05/31...
  • Page 208: Kernel Commands

    • The @PJL prefix which is placed at the beginning of a PJL job must follow immediately after the UEL command . • If the printer receives codes other than the PJL prefix, it enables the default printer language and prints the job.
  • Page 209: Enter Command

    • The specified emulation will be used immediately after the terminating <LF> of the ENTER command. • If the printer does not receive the ENTER command, it uses the default printer language which is set by the control panel or the printer language which is set by the SET PERSONALITY command.
  • Page 210: Printer Language Switching

    As the desired emulation is explicitly specified, this method is the most reliable. 4.6.2. Implicit switching If a default printer language is configured, and the PJL ENTER command is not described on a PJL line, the printer uses the default printer emulation. This may not always select your desired emulation.
  • Page 211: Job Separation Commands

    5.2. JOB Command The JOB Command sends information at the start of a PJL job to the printer and aligns the job with the page status information. It also specifies which pages of a job are to be printed. Note: JOB and EOJ command are always used in pairs.
  • Page 212: Eoj Command

    <ESC>%-12345X@PJL <CR><LF> 5.3. EOJ Command The EOJ command indicates to the printer that the job is completed. You must use this command whenever you use the JOB command. Note: JOB and EOJ command always are used in pairs. You must not use one without the other.
  • Page 213: Environment Commands

    6.1. Introduction Our recent printers have many features which you are able to set using printer commands, through the printer control panel or by using the remote printer console program. A combination of PJL commands and printer emulation commands allows you to set printer features to the desired state.
  • Page 214: Pjl Reset Conditions

    Remember the following points when you use PJL to set the printer to a desired state. 1. The current feature settings are the same as the control panel values ( or values in the remote printer console program) when beginning a PJL job.
  • Page 215: Pjl Environment Variables

    Note: 1. Use PJL commands only when no printer language commands are available for a desired feature. 2. When setting printer features with PJL, use the SET and RESET commands when you want to affect the current PJL job only.
  • Page 216: Variables

    6.2. Variables 6.2.1. Variables for HL-1050/1070/1250/1270N/1450/1470N/P2500/1650/1670N/3260N/2460/ 7050/1850/1870N/5040/5050/5070N/5140/5150D/5170DN/6050/6050D/6050DN/8050N/ 2070N/5240/5250DN/5270DN/5280DW General PJL Environment Variables The PJL environment variables which are not printer language-specific are listed in the following table. When using these variables, do not use LPARM. Variables COPIES MANUALFEED ECONOMODE ECONOLEVEL...
  • Page 217 Centronics interface to ON or OFF. DTRCTRL Selects when DTR becomes low. 0 = the printer is turned off-line by the SEL switch, the input buffer is full, or when a printer error occurs. 1 = the printer is turned off-line by the SEL switch or when a printer error occurs.
  • Page 218 Description Selects the language for the RPC program. If set to ON, the printer keeps the permanent fonts and macros of PCL when the emulation is changed to another mode. Auto emulation mode Enables bold printing in IBM or EPSON...
  • Page 219 Variables Description CPLOCK Returns the lock status of the control panel. If OFF, the control panel is unlocked. If ON, the control panel is locked. PASSWORD Password for panel lock to write to the NVRAM with the DEFAULT/INITIALIZE command. BIDI POWERSAVE Sets the power save mode ON or OFF.
  • Page 220 2006/05/31 Variables MEDIATYPE IMAGEADAPT INTRAY 1 (Read Only) INTRAY 2 (Read Only) Description Media Type. The temperature of fixing unit is adjusted depending on this setting. Configuration of the High Resolution Control hardware. Returns the auto-selection lock status for the MP tray. Returns the auto-selection lock status for the Tray1 (HL-8050N) Returns the auto-selection lock status for...
  • Page 221 Variables Description INTRAY 3 Returns the auto-selection lock status for the optional lower paper cassette. (Read Only) Returns the auto-selection lock status for the Tray3 (HL-8050N) INTRAY 4 Returns the auto-selection lock status for the optional lower paper cassette. (Read Only) Returns the auto-selection lock status for the Tray4 (HL-8050N) INTRAY 5...
  • Page 222 2006/05/31 Variables INTRAY2SIZE INTRAY3SIZE Description Selects the paper size in Tray2. Selects the paper size in Tray1 (HL- 7050/6050/6050D/6050DN 5240/5250D N/5270DN/5280DW). Selects the paper size in Tray3. Selects the paper size in Tray2 (HL- 7050/6050/6050D/6050DN 5240/5250D N/5270DN/5280DW). CHAPTER 5 PJL- 24 Sample Value Range LETTER, LEGAL, EXECUTIVE, A3, A4, B5, A5, A6, COM10, C5,...
  • Page 223 Variables Description INTRAY4SIZE Selects the paper size in Tray4. Selects the paper size in Tray3 (HL- 7050/5240/5250DN/5270DN/5280DW). INTRAY5SIZE Selects the paper size in Tray5. Selects the paper size in Tray4 (HL- 7050). SOURCETRAY Selects the paper source tray. CHAPTER 5 PJL - 25 2006/05/31 Sample Value Range LETTER, LEGAL, EXECUTIVE,...
  • Page 224 2006/05/31 Variables MPTRAYSIZE MPTRAY MPPAPERIN TRAY1SIZE Description MP tray priority for AUTO feeder selection mode. Continues printing by holding down Go switch for manual feeding. CHAPTER 5 PJL- 26 Sample Value Range LETTER, LEGAL, EXECUTIVE, A3, A4, B5, A5, A6, COM10, C5, DL, MONARCH, LEDGER, JISB4, LTRS, A4S, EXECUTIVE, B5S (HL-3260N)
  • Page 225 Variables Description TRAY2SIZE TRAY3SIZE TRAY4SIZE DENSITY Returns the printing density level setting from 1 to 15. The default value is 8. CHAPTER 5 PJL - 27 2006/05/31 Sample Value Range A3, JISB4, LEDGER, A4, A4S, A5, B5, B5S, A6, LEGAL LETTER, LTRS, EXECUTIVE, EXECUTIVES, COM10, C5, DL MONARCH (HL-3260N)
  • Page 226 2006/05/31 Variables LOWTONER RAS1200MODE PSBINARY PSQUOTEBIN DOWNFPROD BITMAPFPROD OEMFONT COMPABITMAP FSEL300DPI DEFPAPER PSIMAGEMASK Description Continues printing when the toner is low. Creates bold and italic fonts from download fonts. Creates bold and italic fonts from bitmap fonts. Enables EC font CHAPTER 5 PJL- 28 Sample Value Range STOP, CONTINUE (HL-3260N/...
  • Page 227 Variables Description HPESCE PROTECTOFF ISRFONT Sets the Israeli font ON or OFF. TRANSFER Selects the transfer current. PARALLEL ERRORPRINT BOISEIDMODE CONDENCESIZE FXLFSETMODE FXLFITAMODE ENVINTERVAL CHAPTER 5 PJL - 29 2006/05/31 Sample Value Range RESET, FF (HL-1650/1670N/ 2460/7050/1850/1870N/5040/ 5050/5070N/5140/5150D/ 5170DN/6050/6050D/6050DN/ 8050N/2070N/5240/5250DN/527 0DN/5280DW) AUTO, NORMAL (HL-1650/ 1670N/2460/7050/1850/1870N/...
  • Page 228 2006/05/31 Variables PSCEILMODE PS300RESO DUPLEX BINDING TRAYPRIORITY FFSUPPRESS LCDDENSITY FAXRINGDELAY FAXREDUCTION FAXRAMSIZE RECEIVEMODE FAXINTERVAL Description Duplex mode Returns the setting of binding edge selection for duplex printing. Sets the LCD angle value. CHAPTER 5 PJL- 30 Sample Value Range FLOOR, CEIL (HL-1650/1670N/ 3260N/2460/7050/1850/1870N/ 5040/5050/5070N/5140/5150D/ 5170DN/6050/6050D/6050DN/...
  • Page 229 Variables Description GLPENSIZE1 GLPENSIZE2 GLPENSIZE3 GLPENSIZE4 GLPENSIZE5 GLPENSIZE6 GLPENGRAY1 GLPENGRAY2 GLPENGRAY3 GLPENGRAY4 GLPENGRAY5 GLPENGRAY6 STBBUSY ACKBUSY PICKUPRETRY COLLATE Sets the collate printing. TIMESETYEAR TIMESETMONTH TIMESETDAY TIMESETHOUR CHAPTER 5 PJL - 31 2006/05/31 Sample Value Range 1 to 16 (HL-3260N/2460/7050) 1 to 10 (HL-8050N) 1 to 16 (HL-3260N/2460/7050) 1 to 10 (HL-8050N) 1 to 16 (HL-3260N/2460/7050)
  • Page 230 2006/05/31 Variables TIMESETMIN TIMESETSEC TIMESTYLE SUMMERTIME ZONESET TIMEZONE OUTBIN MAILBOXPROTECT AVOIDMAILBOXFULL TOWERFEED RAMDISKSIZE TRANSFERVOLT COLDSTARTMODE TNCHARGETIME TNCHARGEMODE FUSERSLEEPCTRL Description Sets the cold start mode. CHAPTER 5 PJL- 32 Sample Value Range 0 to 59 (HL-3260N/2460/7050/ 8050N) 0 to 59 (HL-3260N/2460/7050/ 8050N) UMD, MDY, DMY (Hl-3260N/ 2460/7050/8050N)
  • Page 231 Variables Description THICKPRDLY BONDPRDLY FLICKER MODE APPLEUSBPS Sets Postscript Pure Binary Printing from Macintosh via USB. DX1JOB1PAGE Sets 1JOB1PAGE Printing mode. As for HL-6050 series, supported ROM version is 1.18 or later. AUTOONLINE Sets auto return function from setting Panel mode to Ready mode. BUTTONREPEAT Sets key repeating speed in Panel mode.
  • Page 232 2006/05/31 Variables CARBON5TRAY CARBON6TRAY CARBON7TRAY CARBON8TRAY CARBON1MACRO CARBON2MACRO CARBON3MACRO CARBON4MACRO CARBON5MACRO CARBON6MACRO CARBON7MACRO CARBON8MACRO CARBON1MACROID CARBON2MACROID CARBON3MACROID CARBON4MACROID CARBON5MACROID CARBON6MACROID CARBON7MACROID CARBON8MACROID CARBONMACRO Description Select input tray for the fifth page. Select input tray for the sixth page. Select input tray for the seventh page. Select input tray for the eighth page.
  • Page 233 PCL-Specific Variables The following values are PCL (HP LaserJet emulation) specific and can be set and requested using PJL. These variables must be set using the LPARM : PCL option. Variables Description PAPER Sets the paper size. ORIENTATION Sets the orientation.
  • Page 234 2006/05/31 Variables FONTSOURCE FONTNUMBER PITCH PTSIZE Description Sets the font source to Internal fonts or Permanent Soft Fonts Sets the font number Pitch of the default font in units of characters per inch. The pitch value can be specified to two decimal places Height of the default font in units of points.
  • Page 235 Variables Description SYMSET Sets the symbol set. AUTOLF Sets AUTO LF AUTOCR Sets AUTO CR AUTOWRAP Sets AUTO WRAP AUTOSKIP Sets AUTO SKIP CHAPTER 5 PJL - 37 Sample Value Range ROMAN8, ISOL1, ISOL2, ISOL5, PC8, PC8DN, PC850, PC852, PC8TK, WINL1, WINL2, WINL5, DESKTOP, PSTEXT, VNINTL, VNUS, MSPUBL, MATH8, PSMATH, VNMATH, PIFONT,...
  • Page 236: Chapter 6 Epson Fx

    2006/05/31 EPSON-Specific Variables The following values are EPSON (EPSON FX-850 emulation) specific and can be set and requested using PJL. These variables must be set using the LPARM : EPSON option. Variables PAPER ORIENTATION LEFTMARGIN RIGHTMARGIN TOPMARGIN BOTMARGIN FORMLINES FONTSOURCE Description Sets the paper size.
  • Page 237 Variables Description FONTNUMBER Sets the font number PITCH Pitch of the default font in units of characters per inch. The pitch value can be specified to two decimal places PTSIZE Height of the default font in units of points. The point size can be specified to a quarter of a point SYMSET Sets the symbol set.
  • Page 238 2006/05/31 IBM-Specific Variables The following values are IBM (IBM Proprinter XL emulation) specific and can be set and requested using PJL. These variables must be set using the LPARM : IBM option. Variables PAPER ORIENTATION LEFTMARGIN RIGHTMARGIN TOPMARGIN BOTMARGIN FORMLINES FONTSOURCE Description Sets the paper size.
  • Page 239 Variables Description FONTNUMBER Sets the font number PITCH Pitch of the default font in units of characters per inch. The pitch value can be specified to two decimal places PTSIZE Height of the default font in units of points. The point size can be specified to a quarter of a point SYMSET Sets the symbol set.
  • Page 240 The following values are PostScript ( BR-Script ) specific and can be set and requested using PJL. The BR- Script mode is standard in some models but may be available only when the optional BR-Script 2 ROM board is installed into the printer. These variables must be set using the LPARM : IBM option. Variables...
  • Page 241 HPGL-Specific Variables The following values are HPGL (HP LaserJet emulation) specific and can be set and requested using PJL. These variables must be set using the LPARM: HPGL option. Variables Description PAPER Sets the paper size. ORIENTATION Sets the orientation. SYMSET Sets the symbol set.
  • Page 242: Variables For Hl-1660E/2060/2400C/2400Ce/3400Cn/2600Cn/3450Cn/2700Cn

    2006/05/31 6.2.2. Variables for HL-1660e/2060/2400C/2400Ce/3400CN/2600CN/3450CN/2700CN General PJL Environment Variables The PJL environment variables which are not printer language-specific are listed in the following table. When using these valuables, do not use the LPARM command. Variables COPIES PAPER ORIENTATION FORMLINES MANUALFEED...
  • Page 243 MP Tray Priority For AUTO feeder selection mode. AUTOSLEEP Power Save Mode TIMEOUTSLEEP Timeout for Power Save mode. The printer goes into the power save mode after this time-out period (minutes). MEDIATYPE Media Type. The temperature of fixing unit is adjusted depending on this setting.
  • Page 244 The variables marked * are available for HL-2400Ce, HL-3400CN, HL-2600CN, HL-2700CN and HL- 3450CN only. PCL-Specific Variables The following values are PCL (HP LaserJet emulation) specific and can be set and requested using PJL. These variables must be set using the LPARM : PCL option. Variables...
  • Page 245: Default Command

    PJL reset condition happens. It is recommended to restrict the use of the DEFAULT command when the printer is shared by several users such as in a network environment. This allows use of the standard print environment and avoids changing default features for each print job.
  • Page 246: Reset Command

    • The setting values selected with the SET command are valid until the next PJL reset condition occurs. • If the SET command is used in a job, use the RESET command after the job to reset the printer to User default settings.
  • Page 247 2006/05/31 Examples: <ESC>%-12345X@PJL <CR><LF> @PJL COMMENT Setting PCL job <CR><LF> @PJL COMMENT to desired state <CR><LF> @PJL SET RET = DARK <CR><LF> @PJL SET PAGEPROTECT = OFF <CR><LF> @PJL SET RESOLUTION = 600 <CR><LF> @PJL ENTER LANGUAGE = PCL <CR><LF>...
  • Page 248: Status Readback Commands

    7.1.1. Synchronization with the printer The printer sends the status responses to the same I/O port as it received the request from. Therefore, in a shared or network environment, if the I/O port was used by another user and the printer is still processing the previous job, the printer may send a response of the status of the previous user's job against the request from the current application.
  • Page 249: Inquire Command

    Response Syntax @PJL INQUIRE [LPARM : personality] variable <CR><LF> value <CR><LF> <FF> If the variable is not supported by the printer, it returns the response in the following syntax : @PJL INQUIRE [LPARM : personality] variable <CR><LF> "?" <CR><LF> <FF>...
  • Page 250: Dinquire Command

    Response Syntax: @PJL DINQUIRE [LPARM : personality] variable <CR><LF> value <CR><LF> <FF> If the variable is not supported by the printer, it returns the response in the following syntax : @PJL DINQUIRE [LPARM : personality] variable <CR><LF> "?" <CR><LF> <FF>...
  • Page 251: Echo Command

    When the application receives the correct response for the requested ECHO command, the printer is now ready for the application and you can be sure that the status information following is for the requested command by the application.
  • Page 252: Info Command

    The parameter is recommended to be unique, distinguishable words from other print jobs, such as the time determined by the real time clock and user name, so as to confirm the received message from the printer is definitely the answer for the ECHO command which the application sent.
  • Page 253: Id Category

    7.5.1. ID category The application can use @PJL INFO ID command to find out the printer model name. As the features of the printer may be changed by future revisions, the application should check them by using the @PJL INFO CONFIG command.
  • Page 254: Config Category

    USTATUS (unsolicited status) commands, font sources, RAM size, number of lines and characters on the LCD supported by the printer, with the format of the number of available types and/or the description of each type. The printer sends back a list of multiple information for one @PJL INFO CONFIG command.
  • Page 255: Memory Category

    The free memory size may vary according to the personality (printer language). In order to know the free memory size in PCL, use the <ESC>*s1M (Free Space command) in the PCL status readback commands. Example The application sends the following command to the printer : <ESC>%-12345X@PJL<CR><LF>...
  • Page 256: Status Category

    @PJL ECHO This is a sample 2-28-1993 19:10:00<CR><LF> @PJL INFO STATUS<CR><LF> <ESC>%-12345X The printer sends back the answer for the above command when BR-Script mode and letter sized paper are selected and it is in idle status: @PJL ECHO This is a sample 2-28-1993 19:10:00<CR><LF>...
  • Page 257 LIGHT<CR><LF> MEDIUM<CR><LF> DARK<CR><LF> PAGEPROTECT=OFF [4 ENUMERATED]<CR><LF> OFF<CR><LF> LETTER<CR><LF> LEGAL<CR><LF> A4<CR><LF> RESOLUTION=600 [2 ENUMERATED]<CR><LF> 300<CR><LF> 600<CR><LF> PERSONALITY=AUTO EPSON [8 ENUMERATED]<CR><LF> AUTO<CR><LF> PCL<CR><LF> POSTSCRIPT<CR><LF> Interactive<CR><LF> IBMProprinterXL<CR><LF> EPSONFX850<CR><LF> HPGL<CR><LF> TIMEOUT=10 [2 RANGE]<CR><LF> INTRAY1=UNLOCKED [2 ENUMERATED]<CR><LF> UNLOCKED<CR><LF> LOCKED<CR><LF> INTRAY2=UNLOCKED [2 ENUMERATED]<CR><LF> UNLOCKED<CR><LF> LOCKED<CR><LF> AUTOCONT=ON [2 ENUMERATED]<CR><LF>...
  • Page 258: Ustatus Category

    <FF> 7.5.6. USTATUS category The application can send the @PJL INFO USTATUS command to check the possible unsolicited status types of the printer and the current setting value and possible values for them. Syntax @PJL INFO USTATUS [<CR>]<LF> Response Syntax @PJL INFO USTATUS <CR><LF>...
  • Page 259: Ustatus Command

    If the unsolicited status is set to ON with the USTATUS command, the printer sends unsolicited status information to the host computer at the time interval set by USTATUS TIMED command from when the status changes. On the other hand, the DINQUIRE, INQUIRE and INFO commands make the printer send a response only once, just after they are received.
  • Page 260: Device Variable

    7.6.1. Device variable The @PJL USTATUS DEVICE command allows the printer to send status messages when the printer status changes. The printer will send the status by the status code shown in the table below. Status code 10000 - 10999...
  • Page 261: Job Variables

    7.6.2. JOB variables The @PJL USTATUS JOB = ON command allows the printer to send the job processing status. This is sent to the application whenever a JOB and EOJ command is issued so that the application knows when a job starts and ends.
  • Page 262: Page Variable

    PAGES=5<CR><LF> <FF> 7.6.3. PAGE variable The @PJL USTATUS PAGE = ON command allows the printer to send the information about the print completion of a particular page. Using this command, you can monitor the job process on a page-by-page basis.
  • Page 263: Ustatusoff Command

    You can recover a failed job with the combination of JOB and EOJ commands and the USTATUS PAGE command. JOB/EOJ commands inform the printer of the beginning and ending of each job and the USTATUS PAGE command informs the application of completion of printing of each page of a job.
  • Page 264: Device Attendance Commands

    By using this command, the printer can display a message you specify on the printer control panel LCD and the printer will go off-line. After the operator puts the printer back on-line by the on-line / off-line key, the printer name is returned by the printer to the application.
  • Page 265: Opmsg Command

    ON LINE key or resets the printer (Press SHIFT key and RESET key, then press SET key.) When the printer is put back to on-line by the operator, the printer returns a status message giving the name of the key.
  • Page 266 34) up to 16 characters total including spaces or horizontal tab. Characters must be enclosed in double quotes. After the operator presses the key in order to put the printer back to on-line, this variable will be returned with the status response.
  • Page 267: Index

    JOB Command ... 13 job name ... 13 JOB recovery... 65 K Kernel command...10 O OPMSG command ...67 P PCL-specific variables ...35, 43, 46 PERMFONT ...10 PJL RESET command ...48 PostScript-specific variable ...46 print environment...15 PRTCONFIG ...10 R RDYMSG command...66 reset conditions ...16...
  • Page 268 2006/05/31 CHAPTER 6 EPSON FX-850 CHAPTER 6 EPSON - 1...
  • Page 269: Command List

    3.1. Ignored Commands ...6 3.2. Resolution ...6 4. TERMINOLOGY... 7 4.1. Syntax ...7 4.2. Conventions ...7 5. CONTROLLING THE PRINTER ... 8 5.1. The Control Panel ...8 5.2. Control codes...8 5.3. Escape sequence ...8 6. COMMANDS ... 9 6.1. Basic printer operations ...9 6.2.
  • Page 270: Command List

    Select / cancel half speed mode Enable printer Disable printer Esc @ Initialize printer Esc CR mode Reset printer / change emulation mode Esc CR ! # R User reset Esc EM n Paper input control Esc 9 Enable out-of-paper sensor...
  • Page 271 2006/05/31 Esc H Esc W n Esc SO Esc 4 Esc 5 Esc S n Esc T Esc w n Esc - n Esc ! n Esc 6 Esc 7 Esc l n Esc R n Esc t n Esc & NUL n1 n2 ( n3 <character definition data> ) Esc % n NUL Esc : 0 0 0 Esc * m n1 n2 <...
  • Page 272: Introduction

    Alternatively, applications software (for example, your word-processing or spreadsheet software) may send the necessary commands to the printer automatically. Check the manual that came with your software for instructions on how to use your application with an Epson FX-850 printer.
  • Page 273: Emulation Details

    The following commands are ignored: the BEL control code (ASCII code 7) which is normally used to sound a printer’s bell, the DC1 (ASCII 17) and DC3 (ASCII 19) control codes, used to enable and disable a printer, the Esc 9 and Esc 8 commands, which normally enable and disable the out-of-paper sensor, the Esc <...
  • Page 274: Terminology

    4.2. Conventions Although the machine is a laser printer and does not physically have a print head, for the purposes of this emulation description, we refer to the location on the page at which the printer is currently positioned to print as the print position.
  • Page 275: Controlling The Printer

    Commands are invoked using either control codes or escape sequences. You can send them to the printer as part of a program using the same command that you would use to print a string on the printer. For example in BASIC you would use the LPRINT command.
  • Page 276: Commands

    The most common printer operations are described in this section. Some are invoked using control codes alone - the rest require escape sequences. For the sake of completeness, several instructions which are part of the Epson FX-850 mode instruction sets, but which an HL Series printer ignores are included. Null NUL (ASCII code 0) is ignored.
  • Page 277 2006/05/31 Set inter-character space EscSPn (27)(32)n <1Bh><20h>n • This command allows you to set the space between successive characters. • n is the space between characters in multiples of 1/120". • n must be in the range 0 to 127. LPRINT CHR$(27);...
  • Page 278 The printer ignores this command. Initialize printer Esc@ (27)(64) <1Bh><40h> • This command resets the printer. • All remaining data is printed out and the printer default settings are restored. LPRINT CHR$(27); CHR$(64); 'Printer reset CHAPTER 6 EPSON - 11 <1Bh><3Dh> <1Bh><3Eh> <1Bh><23h>...
  • Page 279 • If you set mode to ‘E’ in Epson FX-850 mode , a printer reset is performed. • If you set mode to ‘FD’, to reset the printer to its factory default settings, LaserJet mode (the factory default emulation mode) is selected and the LaserJet factory default environment is restored. For a list of the factory default settings see the sub-section “Factory default environment”...
  • Page 280: Page Set Up

    (27)(78)n • This command sets the bottom margin and enables perforation skip, that is, whenever the print position reaches the bottom margin the printer performs a page eject and moves the print position to the top of the next page.
  • Page 281 2006/05/31 • If the bottom margin specified by this command would be located above the top margin, the command is ignored. LPRINT CHR$(27); CHR$(78); CHR$(4); 'Set bottom margin to 4 lines. CHAPTER 6 EPSON - 14...
  • Page 282: Line Spacing

    • This command sets the line spacing to 7/72". All subsequent line feed operations will move the print position 7/72" down the page. • Since the printer resolution is 600 dots per inch the line spacing will not be exactly 7/72". LPRINT CHR$(27); CHR$(49); 'Set line spacing to 7/72".
  • Page 283: Using Tabs

    • The default tab stop settings are at every eighth column, starting at the ninth column. The default column width is 1/10". • The default settings are adopted when the printer is first switched on or when you perform a reset with the Esc @ instruction.
  • Page 284: Using Standard Characters

    • n must be in the range from 0 to 7. • The default channel is channel 0. Channel 0 is the current channel when the printer is first switched on or after a reset with the Esc @ command.
  • Page 285 2006/05/31 Set pitch to 12 characters per inch EscM (27)(77) This command sets the printing pitch to 12 characters per inch (cpi). LPRINT CHR$(27); CHR$(77); 'Set pitch to 12 cpi Select / cancel proportional spacing Escpn (27)(112)n • This command allows you to turn proportional spacing on or off. •...
  • Page 286 Select double-strike mode EscG (27)(71) This command turns double-strike mode on. Subsequent text is printed with a bold stroke width. LPRINT CHR$(27); CHR$(71); 'Turn double-strike printing mode on Cancel double-strike mode EscH (27)(72) This command turns double-strike mode off. Subsequent text is printed with a medium stroke width. LPRINT CHR$(27);...
  • Page 287 2006/05/31 Select italic mode Esc4 (27)(52) • This command enables the italic printing mode. Subsequent text is printed in italic style. • You can still use italic text even after selecting the extended character set with the Esc t command. LPRINT CHR$(27);...
  • Page 288 Select printing mode Esc!n (27)(33)n • This command allows you to select a combination of printing modes with just one command. • The various modes are weighted as shown. Add the numbers that correspond to each mode you require and set n to the total. 10 characters per inch 12 characters per inch Proportional spacing...
  • Page 289 EscRn (27)(82)n • This command selects one of the available international character sets, refer to the printer User Guide for supported character sets. • Each character set varies slightly from the others and contains a small number of special characters necessary for printing in that particular language.
  • Page 290: Using Customized Characters

    ROM and the characters you have downloaded. • Set n to 0 to select the printer standard characters. In this mode you cannot print any of your own defined characters.
  • Page 291: Graphics

    • In order to use your own customized characters in conjunction with the standard characters contained in the printer, you must first download the printer standard ROM characters to the printer RAM, then define and download your own customized characters, and finally select the downloaded characters for printing using the Esc % 1 NUL escape sequence.
  • Page 292 • c is the character which signifies the graphics mode: K = single-density (60 dpi), L = double-density (120 dpi), Y = double-speed, double-density (120 dpi) and Z = quadruple-density (240 dpi). • m defines the new horizontal resolution to be assigned to the specified graphics mode. m must be in the range 0 to 7.
  • Page 293 2006/05/31 Print single-density image EscKn <image data> • This command enables you to define and print a single line raster bit image on a single text line. • n and n define the number of bytes that comprise the image. •...
  • Page 294 72 dots per inch. • You can only use this command in portrait orientation. • The printer always prints as fast as possible, hence this command is the exact equivalent of the Esc L command. 10 WIDTH “LPT1:”,255 20 LPRINT “*** ESC Y n1 n2 ***”...
  • Page 295: Index

    2006/05/31 INDEX 9 bit image... 25 absolute print position ... 10 Backspace... 9 Carriage return ... 9 characters define ... 23 condensed character ... 18 control codes ... 8 control panel... 8 data MSB... 11 double-density image ... 26 double-height printing... 20 double-speed double-density image ...
  • Page 296 2006/05/31 CHAPTER 7 IBM PROPRINTER CHAPTER 7 IBM PROPRINTER - 1...
  • Page 297: Emulation Details

    3. EMULATION DETAILS... 6 3.1. Ignored Commands... 6 3.2. Resolution ... 6 3.3. Character Set selection... 6 3.4. Controlling the Printer ... 6 3.5. Control Codes ... 6 3.6. Escape sequences... 6 4. NOTATION USED IN THIS EMULATION DESCRIPTION ... 7 4.1.
  • Page 298: Command List

    Form Feed Carriage return Esc5n Automatic line feed Enable printer EscQ22 Disable printer EscQ3 Disable printer EscCRmode Reset printer / change emulation mode EscCR!#R User reset EscEMn Paper input control EscCn Set page length EscCNULn Set page length EscXmn Set left and right margins...
  • Page 299 2006/05/31 EscKn1n2<image data> EscLn1n2<image data> EscYn1n2<image data> EscZn1n2<image data> Set single-density image mode Set double-density image mode Set double-speed, double-density image mode Set quadruple-density image mode CHAPTER 7 IBM PROPRINTER - 4...
  • Page 300: Introduction

    Some of these HL Series printers offer a complete emulation of the IBM Proprinter. In Proprinter XL mode you can drive the printer directly by incorporating control codes and escape sequences in your program, or alternatively, applications software (for example, your word-processing software) may send the necessary commands to the printer automatically.
  • Page 301: Emulation Details

    Numerical parameter data, too, is sent to the printer as if it were a character code to be printed. For example, to set the left and right margin settings to be at 10 and 70 columns across the page the required escape sequence is Esc X 10 70. In BASIC this would be: LPRINT CHR$(27);...
  • Page 302: Notation Used In This Emulation Description

    A letter, word or number in upright bold text is the literal character which and should be sent to the printer as a character code. A letter or word in italics is a variable and you must substitute the appropriate value or values when using the command.
  • Page 303: Commands

    COMMANDS 5.1. Basic Printer Operation The most common printer operations are described in this section. Most are invoked using control codes. For the sake of completeness the instructions which HL Series printers ignore are included. Null NUL (ASCII 0) is ignored.
  • Page 304 The new emulation mode default settings come into effect, except when the mode is set to ‘FD’. • If you set the mode to ‘FD’ to reset the printer to its factory default settings, LaserJet mode (the factory default emulation mode) is selected and the LaserJet factory default environment is restored.
  • Page 305 2006/05/31 Paper input control EscEMn (27)(25)n n Value HL-1660e/2060/3260N/2460/7050/1650/1670N/1850/1870N/5050/5070N/ 5150D/5170DN/6050/6050D/6050DN/8050N/5240/5250DN/5270DN/5280DW n = 0 Initialize the feeder mode. n = 1 Feed from the MP tray. (Except for HL-8050N) n = 2 Feed from Tray 1. n = 3 Feed from Tray 2. n = 4 Feed from Tray 3.
  • Page 306: Page Format

    (27)(78)n • This command sets the bottom margin and enables perforation skip, that is, whenever the print position reaches the bottom margin the printer performs a page eject and moves the print position to the top of the next page.
  • Page 307 • This command sets the line spacing to 7/72". All subsequent line feed operations will move the print position 7/72" down the page. • Since the printer's resolution is 600 dots per inch the line spacing will not be exactly 7/72". LPRINT CHR$(27); CHR$(49); 'Set line spacing to 7/72".
  • Page 308 Set horizontal tabs EscD<n1><n2><n3>...NUL <1Bh><44h>n1n2n3...<00h> • This command enables you to set up to 28 horizontal tab stops using the current character pitch. • The tab stops should be set in ascending order. • Esc D 0 clears all horizontal tab settings. •...
  • Page 309 2006/05/31 5.3. Using Characters Select character set I Esc7 (27)(55) This command selects IBM Character set I for use in subsequent printing operations. LPRINT CHR$(27); CHR$(55); 'Select character set I Select character set II Esc6 (27)(56) This command selects IBM character set II for use in subsequent printing operations. LPRINT CHR$(27);...
  • Page 310 Set enlarged character mode for a single line (14) <0Eh> • This command turns enlarged character mode on for one line only. The subsequent line of text is printed using double-width characters and with the line space setting doubled. • The following commands cancel enlarged character mode set using the SO control code: CR, CAN, LF, FF, VT, Esc W 0, DC4 and Esc [@.
  • Page 311 2006/05/31 Underline mode Esc-n (27)(126)n • This command turns character underlining on or off. • If n is set to 1 subsequent text is underlined. • Horizontal tab spaces are not underlined irrespective of whether underlining mode is on or off. •...
  • Page 312 • If n is set to 2 the printer's standard font and letter quality are selected. • If n is set to 4 the download font (the characters you sent to the printer using the Esc = command) and draft quality are selected.
  • Page 313 2006/05/31 • If bits 1 and 2 of n grid. • If bits 1 and 2 of n • Bits 5 to 7 of n proportional spacing mode. Up to seven columns can be skipped. • Bits 1 to 4 of n Up to fifteen columns can be used to define the character.
  • Page 314 Simply set a bit to 1 if you want a dot to appear in that position, and to 0 if you want white space to appear. • This printer always prints as fast as possible, hence this command is the exact equivalent of the Esc L command.
  • Page 315 2006/05/31 Set quadruple-density image mode EscZn <image data> (27)(90)n1n2<image data> data> • This command enables you to define and print a single line raster bit image on a single text line. • n and n define the number of bytes that comprise the image. •...
  • Page 316: Index

    INDEX Automatic line feed ... 9 Backspace... 8 cancel ... 15 Carriage return ... 8 character set... 6, 14 characters... 17 condensed character ... 14 control codes ... 6 double-density image mode ... 18 double-height / double-width mode ... 16 emphasized character ...
  • Page 317: Chapter 8 Barcode Control

    2006/05/31 CHAPTER 8 BAR CODE CONTROL CHAPTER 8 BAR CODE CONTROL - 1...
  • Page 318: Introduction

    2006/05/31 ONTENTS 1. INTRODUCTION ... 3 2. PRINT BAR CODES OR EXPANDED CHARACTERS ... 4 3. DEFINITION OF PARAMETERS ... 5 3.1. Bar Code Mode ... 5 3.2. Bar Code Style, Expanded Character Shading, Line Block Drawing & Box Drawing Shading ... 5 3.3.
  • Page 319: Introduction

    2006/05/31 INTRODUCTION Some of the HL series printers can print bar codes in the HP LaserJet, EPSON FX-850, and IBM Proprinter XL emulation modes, refer to the printer User guide for information. CHAPTER 8 BAR CODE CONTROL - 3...
  • Page 320: Print Bar Codes Or Expanded Characters

    2006/05/31 PRINT BAR CODES OR EXPANDED CHARACTERS ESC i n ... n \ (27)(105)n ... n (92) <1Bh><69h>n ... n <5Ch> Creates bar codes or expanded characters according to the parameters “n n”. For further information about the parameters, see the following “Definition of Parameters.” This command must end with the “ \ ” code (5CH).
  • Page 321: Definition Of Parameters

    DEFINITION OF PARAMETERS This bar code command can have the following parameters in the parameter segment (n ... n). Parameters are effective only within the single command sequence using the syntax ESC i n ... n \. They do not take effect in any subsequent bar code commands.
  • Page 322: Bar Code Scaling (Width Only)

    Human readable line OFF This parameter specifies whether or not the printer prints the human readable line below the bar code. Human readable characters are always printed with OCR-B font at 10 cpi pitch and all the current character style enhancements are masked.
  • Page 323: Bar Code, Expanded Character, Line, Block Drawing & Box Drawing Offset In The X-Axis

    3.7. Bar Code, Expanded Character, Line, Block Drawing & Box Drawing Offset in the X-axis n = “xnnn” or “Xnnn” This parameter specifies the offset from the current print position in the “u”- or “U”-specified units. 3.8. Bar Code & Expanded Character Offset in the Y-axis n = “ynnn”...
  • Page 324: Bar Code Data Start

    Any number of characters other than as above causes a data error and the bar code data is printed as normal print data. If the check digit is incorrect, the printer calculates it and replaces it with the correct check digit so that the correct bar code data will be printed.
  • Page 325: Box Drawing

    • When Code 128 Set A, Set B, or Set C is selected with the parameter “t12” or “12,” “t13” or “T13,” or “t14” or “T14” respectively: Code sets A, B and C are individually selectable. Set A encodes characters in the range Hex 00 to 5F. Set B encodes characters in the range Hex 20 to 7F.
  • Page 326: Table Of Code(Ean) 128 Set C

    2006/05/31 3.16. Table of Code(EAN) 128 set C Code(EAN) 128 set C describes an original command. The correspondence table is as follows. No. Code 128 Set C Input command No. Code 128 Set C Input command 0x00 0x01 0x02 0x03 0x04 0x05 0x06...
  • Page 327: Example Program Listings

    2006/05/31 EXAMPLE PROGRAM LISTINGS 10 ' Barcode 20 WIDTH "LPT1:", 255 30 ' CODE 39 40 LPRINT CHR$(27); "it0r1s0x00y00b123456\"; 50 'INTER LEAVED 60 LPRINT CHR$(27); "it1r1s0x70y00b123456\"; 70 ' EAN-13 80 LPRINT CHR$(27); "it5r1s0x00y020b123456789012?\"; 90 LPRINT CHR$(27); "it5r1s0x70y020b123456789012?+12345\"; 100 ' UPC-A 110 LPRINT CHR$(27);...
  • Page 328: Chapter 9 Hp-Gl Graphics Language

    2006/05/31 CHAPTER 9 HP-GL GRAPHICS LANGUAGE CHAPTER 9 HP-GL - 1...
  • Page 329: Command List

    2006/05/31 ONTENTS COMMAND LIST ... 3 INTRODUCTION ... 4 2.1. HP-GL Syntax ... 4 2.2. Font Selection ... 4 2.3. Coordinate System and Printing Area... 4 2.3.1. Coordinate system ...4 2.3.2. Printing area...5 COMMANDS ... 6 3.1. Initialization and Default Setting Instructions ... 6 3.2.
  • Page 330: Command List

    Character plot Absolute direction Relative direction Character plot Set absolute character size Set relative character size Character slant User-defined character Set high resolution control (Brother original) User reset (Brother original) Factory reset (Brother original) CHAPTER 9 HP-GL - 3 2006/05/31...
  • Page 331: Introduction

    2006/05/31 INTRODUCTION The HP-GL graphics mode emulates 40 out of 56 instructions for the HP 7475A plotter made by Hewlett- Packard. Default measurement unit in the HP-GL graphics mode is 1/1016"(0.025mm). 2.1. HP-GL Syntax A command consists of a two-letter instruction mnemonic, a parameter field (not needed for some instructions) and a terminator.
  • Page 332: Printing Area

    2.3.2. Printing area 3400CN/3260N/3450CN) Letter Legal CHAPTER 9 HP-GL - 5 (mm) 5 (HL- 2006/05/31...
  • Page 333: Commands

    2006/05/31 COMMANDS 3.1. Initialization and Default Setting Instructions DF - Default set instruction DF[;] • Returns the graphics mode to the default conditions. • The following are the default settings. Function Plot mode Relative character direction Line type Line pattern length Window Relative character size Symbol mode...
  • Page 334: Plot Area And Unit Setting Instructions

    Function Fill type Fill distance Fill slant Pen thickness Pen condition Rotation Scaling points 3.2. Plot Area and Unit Setting Instructions Instruction Function Scaling point Scale Input window Rotate coordinate system Page output IP - Input scaling point IP [ P1 , P1 [,P2 coordinate of P1...
  • Page 335: Pen Control And Plot Instructions

    2006/05/31 IW - Input window IW [ X X1-Window lower left X coordinate X2-Window upper right X coordinate • This instruction sets the window inside which plotting can be performed. • Graphic units are always used. • Coordinate values for X1, Y1, X2 and Y2 are integer numbers from 0 to 32,767. •...
  • Page 336 PU - Pen up PU [ X,Y [,...]] [;] X ; X coordinate of the cursor movement destination Y ; Y coordinate of the cursor movement destination • X and Y are either relative or absolute, depending on whether a PA or a PR was the last plot command executed.
  • Page 337 2006/05/31 10 '*** PAEX1 *** 20 LPRINT "IN;SP1;" 30 LPRINT "PA2000,6000;PD0,6000,2000,7500,2000,6000;PU2500,6000;" 40 LPRINT "PAPD4500,6000,2500,7500,2500,6000;PU10365,500;" 50 END <Sample 62> 10 ' *** PAEX2 *** 20 LPRINT "IN;SP1;SC0,100,0,100;" 30 LPRINT "PA50,30;PD25,30,50,50,50,30;PU55,30;" 40 LPRINT "PAPD80,30,55,50,55,30,PU;" 50 END <Sample 63> PR - Relative coordinate pen move PR [X, Y [,...]] [;] X ;...
  • Page 338 AA - Draw absolute arc AA [ X, Y, qc [, qd ]] [;] X ; Arc centre X coordinate qc ; Arc angle in degrees • X and Y coordinates are absolute coordinates in user units or graphics units. •...
  • Page 339 2006/05/31 • Plotting is performed only when the pen is down. • When the pen is up, plotting is not performed but the cursor position moves to the plot end point. • When scaling has been performed, the cursor is moved by relative coordinates in user units. •...
  • Page 340: The Polygon Group

    10 '*** CIEX1 *** 20 LPRINT "IN;SP1;IP2650,1325,7650,6325;" 30 LPRINT "SC-100,100,-100,100;" 40 LPRINT "PA-60,50;CI40,45;" 50 LPRINT "PA60,50;CI40,30;" 60 LPRINT "PA-60,-50;CI40,15;" 70 LPRINT "PA60,-50;CI40,5;" 80 END <Sample 65> 10 '*** CIEX2 *** 20 LPRINT "IN;SP1;IP2650,1325,8650,7325;" 30 LPRINT "SC0,170,0,170;" 40 LPRINT "PA100,100;LT;CI10,5;LT0;CI-20,5;LT1;CI30,5;" 50 LPRINT "LT2;CI-40,5;LT3;CI50,5;LT4;CI- 60,5;LT5;CI70,5;LT6;CI80,5;"...
  • Page 341 2006/05/31 • When there is no scaling, the coordinate values for X and Y are integer numbers. 10 '*** EAEX *** 20 LPRINT "IN;SP1;PA7000,4000;" 30 LPRINT "PT.3;FT1;RA6000,3000;" 40 LPRINT "SP3,;EA6000,3000;" 50 LPRINT "SP4;FT3,100;RA8000,3000;" 60 LPRINT "SP3,;EA8000,3000;" 70 LPRINT "SP5;PT.3;FT2;RA8000,5000;" 80 LPRINT "SP3;EA8000,5000;" 90 LPRINT "SP6;FT4,100,45;RA6000,5000;"...
  • Page 342 EW - Edge wedge EW r,q1,qc(,qd)[;] r ; Radius in user units or graphics units qc ; Arc angle qd ; Chord angle • Plots a wedge centred on the current position with radius r, start point angle q1, arc angle qc and chord angle •...
  • Page 343 2006/05/31 RA - Fill rectangle absolute RA X, Y[;] X ; X coordinate of opposite angle for the rectangle Y ; Y coordinate of opposite angle for the rectangle • X and Y coordinates are absolute coordinates in user units or graphics units. •...
  • Page 344 WG - Fill wedge WG r,q1,qc(,qd)[;] r ; Radius in user units or graphics units qc ; Arc angle qd ; Chord angle • Fill in a wedge centred on the current position with radius r, start point angle q1, arc angle qc and chord angle qd.
  • Page 345: Plot Function Instructions

    2006/05/31 3.5. Plot Function Instructions Instruction FT - Fill type FT [ n [, d [, q]]] [;] n : Fill type d : Fill interval (interval between the parallel lines of the area being filled) q : Fill angle (degrees ) •...
  • Page 346 PW-Pen width PW n[;] w ; width (unit = 1/300 inch) • This command specifies the width of the currently selected pen. • The value of w is an integer number from 1 to 10. SM - Symbol mode SM c[;] c ;...
  • Page 347: Character Plot Instructions

    2006/05/31 XT - X-axis tick XT [;] • Plots vertical tick marks as specified by the TL instruction from the current position. • After plotting, the cursor returns to its point of origin. • Plotting is performed whether the pen is up or down. YT - Y-axis tick YT [;] •...
  • Page 348 Character Set ANSI ASCII 9825 Character Set French/German Scandinavian Spanish/Latin American JIS ASCII ROMAN 8 Extensions ISO IRV ISO Swedish ISO Swedish for Names ISO Norway, Version 1 ISO German ISO French ISO Kingdom ISO Italian ISO Spanish ISO Portuguese ISO Norway, Version 2 SS - Select standard character set SS [;]...
  • Page 349 2006/05/31 LB - Character plot LB [ cs ] < terminator > [;] cs : character string • Plots character strings, numerical expressions, variables etc. • Plotting is performed whether the pen is up or down. • After plotting, the cursor moves to the position of the next character. 10 '*** LBEX1 *** 20 LPRINT "SP2;PA1000,4000;"...
  • Page 350 DR - Relative direction DR [ run, rise ] [;] run : X direction component rise : Y direction component • A percentage of the distance in the X and Y directions between P1 and P2 is used as the units •...
  • Page 351 2006/05/31 10 '*** SIEX1 *** 20 LPRINT "IN;SP1;PA1000,1000;" 30 LPRINT "SI2,1.5;LBLASER";CHR$(3) 40 END <Sample 86> 10 '*** SIEX2 *** 20 LPRINT "IN;SP1;PA5000,3000:" 30 LPRINT "SI-.35,.35;LBCHARACTER";CHR$(3) 40 END <Sample 87> 10 '*** SIEX3 *** 20 LPRINT "IN;SP1;PA5000,3000;" 30 LPRINT "SI.35,-.35;LBCHARACTER";CHR$(3) 40 END <Sample 88>...
  • Page 352 10 '"*** SLEX *** 20 LPRINT "DF;SP1;SI1.3,1.3;PA100,6000;" 30 LPRINT "SL2;LBLASER";CHR$(3) 40 LPRINT "SL-2;PR3000,0;LBLASER";CHR$(3) 50 END <Sample 91> UC - User-defined character UC X1, Y1, X2, Y2..., Xn, Yn[;] Xi : Number of grids in X direction Yi : Number of grids in Y direction •...
  • Page 353: Dual Context Extensions

    (Brother original) EscCRFD • This command causes a factory reset to be performed, restoring all the printer's factory default settings. • You can also perform a factory reset using the printer's control panel (see the User Guide). CHAPTER 9 HP-GL - 26...
  • Page 354: Index

    INDEX Absolute direction ... 22 Alternate character set... 20 Character plot ... 22, 23 character set... 4 Character slant... 24 Circle plot... 12 Default set instruction ... 6 Define label terminator... 21 Draw absolute arc... 11 Draw relative arc ... 11 Edge rectangle absolute...
  • Page 355: Chapter 10 Carbon Copy Function

    2006/05/31 CHAPTER 10 CARBON COPY FUNCTION CARBON COPY FUNCTION- 1...
  • Page 356: Detailed Information

    2006/05/31 ONTENTS 1. OUTLINE... 3 1.1. Outline of the function ... 3 2. SPECIFICATIONS ... 4 2.1. Explanation of each function ... 4 2.1.1. Carbon copy mode setting...4 2.1.2. Setting of the number of copies ...4 2.1.3. Paper tray selection setting ...4 2.1.4.
  • Page 357: Outline

    Outline of the function This function allows you to print two or more copies of the one page data on the printer side. The function also allows you to select the paper tray and register an additional macro for each copy. Therefore it is possible to change the printing format for each copy by selecting the paper tray to change the paper type or registering different macros.
  • Page 358: Specifications

    Additional macro setting Sets the additional macro for each copy. The macro data of the PCL emulation which is registered in the storage device or memory can be used. The macro is registered by using the printer driver, macro registration command of the PCL emulation or other.
  • Page 359: How To Set Each Function

    2.2. How to set each function 2.2.1. Setting on the control panel PRINT CARBON MENU MENU When CARBON COPY=OFF is set, other carbon menu is not indicated. The setting indication of each copy is shown on the control panel for the number of copies which is in the CARBON COPIES menu to set the paper tray and macro.
  • Page 360: Setting With The Pjl Command

    2006/05/31 2.2.2. Setting with the PJL command This function supports each of the SET, DEFAULT, INQUIRE and DINQUIRE commands in the commands. PJL command CARBONMODE CARBONCOPIES CARBON1TRAY CARBON1MACRO CARBON1MACROI CARBON2TRAY CARBON2MACRO CARBON2MACROI CARBON3TRAY CARBON3MACRO CARBON3MACROI CARBON4TRAY CARBON4MACRO CARBON4MACROI CARBON5TRAY CARBON5MACRO CARBON5MACROI CARBON6TRAY CARBON6MACRO...
  • Page 361: Example

    2.3. Example The following sections describe the setting method of the example below. The number of copies is 4 (four). The carbon copy function is enabled by sending the data only through the parallel interface. 1st page: The paper is fed from the Tray 1. The ID=128 macro is added. 2nd page: The paper is fed from the Tray 2.
  • Page 362: Detailed Information

    3.1.1. Usable emulation Only the PCL emulation can be used since the macro is supported only on the PCL emulation. For the request to use the EPSON / IBM emulation, however, the filter function which converts the EPSON / IBM emulation data to the PCL emulation one is provided.
  • Page 363: Appendix A Comparison List

    2006/05/31 APPENDIX A COMPARISON LIST APPENDIX A -COMPARISON LIST-1...
  • Page 364 IBM PROPRINTER XL... 24 BAR CODE ... 26 HP-GL ... 27 PJL ... 29 General PJL Environment Variables...32 PCL Specific Variables ... 38 PostScript Specific Variables ... 40 EPSON Specific Variables ... 41 IBM Specific Variables ... 42 APPENDIX A -COMPARISON LIST-2...
  • Page 365: Pcl5/5E (Paper Size)

    In this chapter, you can find which commands are supported by your printer. PCL5/5e (Paper Size) COMMAND Esc&l1A √ √ √ Paper Size Executive Esc&l2A √ √ √ Paper Size Letter Esc&l3A √ √ √ Paper Size Legal Esc&l6A Paper Size Ledger Esc&l25A...
  • Page 366 2006/05/31 COMMAND Esc&l1028A Paper Size 13”X19" Esc&l1033A Paper Size Organizer J Esc&l1034A Paper Size Organizer K Esc&l1035A Paper Size Organizer L Esc&l1036A Paper Size Organizer M Esc&l1037A Paper Size DL Long Edge Feeding Esc&l1038A Paper Size Folio Esc&l2048A √ √ √...
  • Page 367: Pcl5/5E (Tray: If Pjl Traycommand Is Normal.)

    PCL5/5e (Tray: If PJL TRAYCOMMAND is NORMAL.) COMMAND Esc&l0H √ √ √ Paper Eject Esc&l1H √ √ Primary Tray Upper der1 Cassette Esc&l2H √ √ √ Manual Feed Esc&l3H Envelope Esc&l4H √ Secondary Tray Lower der2 Cassette Esc&l5H Optional Tray Lower Cassette Esc&l7H...
  • Page 368: Pcl5/5E (Tray: If Pjl Traycommand Is Special.)6

    2006/05/31 COMMAND Esc&l1001H Fixed Tray Esc&l1002H Auto Selection PCL5/5e (Tray: If PJL TRAYCOMMAND is SPECIAL.) COMMAND Esc&l0H √ √ √ Paper Eject Esc&l1H √ √ Primary Tray Feed Upper Cassette Esc&l2H √ √ √ Manual Feed Esc&l3H Envelope Esc&l4H √ Secondary Tray Feed Lower...
  • Page 369 COMMAND Esc&l6H Esc&l7H √ Automatic Selection Esc&l8H Optional Tray Esc&l9H Optional Tray Esc&l100H Tray ID 1 Esc&l101H Tray ID 2 Esc&l102H Tray ID 3 Esc&l103H Tray ID 4 Esc&l1001H Fixed Tray Esc&l1002H Auto Selection √ Tray2 √ √ √ √ √...
  • Page 370: Pcl5/5E (Others)

    Long-edge Offset Esc&l#Z √ √ √ Short-edge Offset Esc&l#X Copy Volume Esc&l#T √ √ √ Job Separation EscE √ √ √ Printer Reset EscCR!#R User Reset √ √ √ √ √ √ √ √ √ √ √ √ √ √...
  • Page 371 COMMAND Escz √ √ √ Self-test Esc%-12345X √ √ √ Esc&u#D √ √ √ Unit of Measure Esc&a#L √ √ √ Left Margin Esc&a#M √ √ √ Right Margin Esc9 √ √ √ Clear Side Margin Esc&l#E √ √ √ Top Margin Esc&l#C √...
  • Page 372 2006/05/31 COMMAND Esc&a#V √ √ √ Vertical Position(decipoint) Esc&a#C √ √ √ Horizontal Position(column) Esc&a#H √ √ √ Horizontal Position(decipoint) Esc*p#X √ √ √ Horizontal Position(dot) Esc&f0S √ √ √ Push Cursor Position Esc&f1S √ √ √ Pop Cursor Position Esc= √...
  • Page 373 COMMAND √ √ √ Secondary Font Select √ √ √ Primary Font Select Esc*c#R √ √ √ Symbol Set ID Set Esc(f#W √ √ √ Define Symbol Set Esc*c#S √ √ √ Symbol Set Control Esc(symbol ID √ √ √ Selecting the Symbol Set Esc(s#C, √...
  • Page 374 2006/05/31 COMMAND Esc(s#T, √ √ √ Esc)s#T Typeface Esc&p#X √ √ √ Transparent Print Esc&d#D, √ √ √ Esc&d@ Auto Underline Esc*c#D √ √ √ Download Font Font ID Set Esc*c#F √ Download Font Control #: 0 ~ 6 Esc(#X √...
  • Page 375 COMMAND Esc*v#O √ √ √ Select Pattern Transparency Mode Esc*c#G √ √ √ Pattern ID Setting Esc*c#W √ √ √ Define Pattern Esc*p#R √ √ √ Set Pattern Reference Point Esc*c#Q √ √ √ User-defined Pattern Control Esc*v#T Select Pattern Esc*c#A √...
  • Page 376 2006/05/31 COMMAND Esc*r#F √ √ √ Raster Graphics Presentation Esc*r#T √ √ √ Raster Height Esc*r#S √ √ √ Raster Width Esc*b#Y √ √ √ Raster Y Offset Esc*b#M √ √ Set Compression Mode #: 0, #: 0, 1, 2, 3, 1, 2, 5, 9, 1027, 3, 5,...
  • Page 377 COMMAND Esc%#B √ √ √ Enter HP-GL/2 Mode Esc*c0T √ √ √ Set Picture Frame Anchor Point Esc*c#Y √ √ √ Picture Frame Vertical size Esc*c#X √ √ √ Picture Frame Horizontal size Esc*c#L √ √ √ HP-GL2 Plot Vertical Size Esc*c#K √...
  • Page 378 2006/05/31 COMMAND Esc&f7X √ √ √ Delete Temporary Macro Esc&f8X √ √ √ Delete Current Macro Esc&f9X √ √ √ Make Temporary Macro Esc&f10X √ √ √ Make Permanent Macro Esc&f1030X √ Delete All Macro from Card Esc&f1036X √ Delete Current Macro from Card Esc&f1038X √...
  • Page 379: Typeface Selection (Pcl)

    Typeface Selection (PCL) COMMAND TYPEFACE Esc(s129T Anelia Esc(s128T Brougham Esc(s130T Letter Gothic √ √ Esc(s104T OCR-A √ √ Esc(s110T OCR-B √ √ Esc(s152T Helsinki Esc(s153T Tennessee Esc(s154T Helsinki Narrow Esc(s155T Atlanta √ Esc(s156T Brussels Esc(s157T Copenhagen √ Esc(s158T Portugal √...
  • Page 380 2006/05/31 COMMAND TYPEFACE Esc(s16686T BR Symbol √ √ Esc(s16602T Helsinki √ √ Esc(s16901T Tennessee √ √ Esc(s31402T W Dingbats √ √ ESC(s134T Bermuda Script √ ESC(s132T Germany √ ESC(s133T San Diego √ ESC(s135T US Roman √ √ √ √ √ √...
  • Page 381 HP-GL/2 COMMAND HL-1050/1070/1250/1270N/1450/1470N/P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2460/7050/1850/1870N/5050/5070N/ 5150D/5170DN/2600CN/3450CN/6050/6050D/6050DN/8050N/2700CN/2070N/5240/5250DN/5270DN/5280DW √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ APPENDIX A -COMPARISON LIST-19 2006/05/31...
  • Page 382 2006/05/31 COMMAND HL-1050/1070/1250/1270N/1450/1470N/P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2460/7050/1850/1870N/5050/5070N/ 5150D/5170DN/2600CN/3450CN/6050/6050D/6050DN/8050N/2700CN/2070N/5240/5250DN/5270DN/5280DW √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ APPENDIX A -COMPARISON LIST-20...
  • Page 383 Epson FX-850 COMMAND HL-1050/1070/1250/1270N/1450/1470N/P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2460/7050/1850/1870N/ Esc SP n Esc a n Esc $ n1 n2 Esc \ n1 n2 Esc < Esc > Esc # Esc @ Esc CR!#R Esc EM n Esc C n Esc C NUL n Esc l n Esc Q n Esc N n Esc O...
  • Page 384 2006/05/31 COMMAND HL-1050/1070/1250/1270N/1450/1470N/P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2460/7050/1850/1870N/ Esc / n Esc P Esc M Esc p n Esc SI Esc E Esc F Esc G Esc H Esc W n Esc SO Esc 4 Esc 5 Esc S n Esc T Esc w n Esc -n Esc ! n Esc 6...
  • Page 385 COMMAND HL-1050/1070/1250/1270N/1450/1470N/P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2460/7050/1850/1870N/ Esc L n1 n2 Esc Y n1 n2 Esc Z n1 n2 5050/5070N/5150D/5170DN/2600CN/3450CN/6050/6050D/6050DN/8050N/2700CN/2070N √ √ √ APPENDIX A -COMPARISON LIST-23 2006/05/31...
  • Page 386: Ibm Proprinter Xl

    2006/05/31 IBM ProPrinter XL COMMAND HL-1050/1070/1250/1270N/1450/1470N/P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2460/7050/1850/1870N/ 5050/5070N/5150D/5170DN/2600CN/3450CN/6050/6050D/6050DN/8050N/2700CN/2070N/5240/5250DN/5270DN/5280DW Esc 5 n Esc Q 22 Esc Q 3 Esc CR ! #R Esc EM n Esc C n Esc C NUL n Esc X m n Esc N n Esc O Esc 0 Esc 1 Esc A n Esc 2...
  • Page 387 COMMAND HL-1050/1070/1250/1270N/1450/1470N/P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2460/7050/1850/1870N/ 5050/5070N/5150D/5170DN/2600CN/3450CN/6050/6050D/6050DN/8050N/2700CN/2070N/5240/5250DN/5270DN/5280DW Esc E Esc F Esc W n Esc S n Esc T Esc - n Esc _ n Esc [ @ n1n2n3n4n5n6 Esc \ n1 n2 Esc ^ Esc I n Esc = n1 n2 20 n3 Esc K n1 n2 Esc L n1 n2 Esc Y n1 n2...
  • Page 388: Bar Code

    2006/05/31 BAR CODE COMMAND HL-1050/1070/1250/1270N/1450/1470N/P2500/1660e/2060/2400C/2400Ce/3400CN/1650/1670N/3260N/2460/7050/1850/1870N/5050/ 5070N/5150D/5170DN/2600CN/3450CN/6050/6050D/6050DN/8050N/2700CN/2070N/5240/5250DN/5270DN/5280DW CODE 39 Interleaved 2 of 5 FIM(US-Post Net) Post Net EAN8,EAN13, UPC A UPC E Codabar UPS Code128 set A UPS Code128 set B UPS Code128 set C ISBN(EAN) ISBN(UPC-E) EAN128 set A EAN 128 set B EAN 128 set C √...
  • Page 389: Hp-Gl

    HP-GL COMMAND √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √...
  • Page 390 2006/05/31 COMMAND √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √...
  • Page 391: Pjl

    PJL commands are supported by HL-1050, HL-1070, HL-1250, HL-1270N/1450/1470N, HL-P2500, HL-1660e, HL-2060, HL-2400C, HL-2400Ce, HL-3400CN, HL-1650, HL-1670N, HL-3260N, HL-2460, HL-7050, HL-1850, HL-1870N, HL-5040, HL-5050, HL-5070N, HL-5140, HL-5150D, HL-5170DN, HL-2600CN, HL-3450CN, HL-6050, HL-6050D, HL-6050DN, HL-8050N, HL-2070N, HL-5240, HL-5250DN, HL-5270DN, HL-5280DW and HL-2700CN. Other our printers does not support PJL.
  • Page 392 2006/05/31 COMMAND @PJL JOB [NAME = "job name"] [START = first page] [NAME = "job name"] [START = first page] [END = last page] [PASSWORD = "password"] [<CR>]<LF> [END = last page] [PASSWORD = "password"] [<CR>] <LF> @PJL EOJ [NAME = "job √...
  • Page 393 @PJL OPMSG DISPLAY = √ √ "message" [<CR>]<LF> @PJL STMSG DISPLAY = √ √ "message" [<CR>]<LF> *1 This option is available only when the optional BR-Script 2 ROM Board is installed into the printer. √ √ √ √ √ √ √...
  • Page 394: General Pjl Environment Variables

    2006/05/31 General PJL Environment Variables GENERAL PJL ENVIRONMENT VARIABLES COPIES 1 ~ 200 PAPER LETTER √ √ √ LEGAL √ √ √ √ √ √ √ √ √ EXECUTIVE √ √ √ √ √ √ COM10 √ √ √ MONARCH √...
  • Page 395 GENERAL PJL ENVIRONMENT VARIABLES LTRS EXECUTIVES ORIENTATION FORMLINES MANUALFEED PAGEPROTECT RESOLUTION 300, 600 300, 600, HQ1200 PERSONALITY AUTO √ √ √ √ √ √ √ √ √ EPSON √ √ √ POSTSCRIPT √ HPGL TIMEOUT INTRAY1 INTRAY2 INTRAY3 INTRAY4 INTRAY5 AUTOCONT LOWTONER √...
  • Page 396 2006/05/31 GENERAL PJL ENVIRONMENT VARIABLES INTRAY1SIZE LETTER LEGAL EXECUTIVE JISB5 COM10 MONARCH A4LONG CUSTOM LEDGER JISB4 A3PLUS LTRS EXECUTIVES FOLIO POSTCARD ORGANIZERJ ORGANIZERK ORGANIZERL ORGANIZERM √ √ √ √ √ √ √ √ √ √ √ √ √ √ √ √...
  • Page 397 GENERAL PJL ENVIRONMENT VARIABLES USERDEFINED NOCASSETTE INTRAY2SIZE A4LETTER B5EXECUTIVE ENVELOPES LEGAL A4LONG LETTER JISB5 EXECUTIVE FOLIO POSTCARD NOCASSETTE INTRAY3SIZE INTRAY4SIZE INTRAY5SIZE SOURCETRAY AUTO MPTRAY TRAY1 TRAY2 TRAY3 TRAY4 TRAYID1 ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ √ √...
  • Page 398 2006/05/31 GENERAL PJL ENVIRONMENT VARIABLES TRAYID2 TRAYID3 TRAYID4 ECONOMODE ECONOLEVEL XOFFSET YOFFSET TIMEOUTEMU 1 ~ 99 PRIORITY EPSON, IBM AUTOFF TIMEOUTFF CDCCHIGH ON, OFF DTRCTRL 0 ~ 3 XOFFTIMINGSEL 0, 1, 2, 3 AUTOSLEEP ON, OFF TIMEOUTSLEEP IBMCHARE1 DEMOPRINT ON, OFF LANG ENGLISH √...
  • Page 399 √ THIN √ BOND ENVELOPES ENVTHICK ENVTHIN RECYCLED *2 This option is available only when the optional BR-Script 2 ROM Board is installed into the printer. √ √ √ √ √ NORMAL, MIDDLE, HIGH 1 ~ 15 0 ~ 65535 √...
  • Page 400: Pcl Specific Variables

    2006/05/31 PCL Specific Variables PCL SPECIFIC VARIABLES HL-1050/1070/ 1250/1270N/1450/ 1470N/P2500 FONTSOURCE I, S FONTNUMBER 0,1,2, ... n PITCH 0.44, 0.45 ~ 99.99 PTSIZE 4.00, 4.25 ~ 999.75 LEFTMARGIN 0 ~ 145columns RIGHTMARGIN 10 ~ 155 columns TOPMARGIN 0, 0.33, 0.5, 1.0, 1.5, 2.0 inch...
  • Page 401 PCL SPECIFIC VARIABLES HL-1050/1070/ 1250/1270N/1450/ 1470N/P2500 SYMSET ROMAN8, ISOL1, ISOL2, ISOL5, ISOL6, PC8, PC8DN, PC850, PC852, PC8TK, PC775, PC1004, WINL1, WINL2, WINL5, WINBALT, DESKTOP, PSTEXT, VNINTL, VNUS, MSPUBL, MATH8, PSMATH, VNMATH, PIFONT, LEGAL, ISO2, ISO4, ISO6, ISO10, ISO11, ISO14, ISO15,...
  • Page 402: Postscript Specific Variables

    2006/05/31 PostScript Specific Variables POSTSCRIPT HL-1050/ HL-1070 SPECIFIC 1250/1450/ VARIABLES P2500 PRTPSERRS ON, OFF ORIENTATION PORTRAIT, LANDSCAPE CRLFCONV APPLETALKPS ON, OFF HL-1270N/ HL-1660e/ 1470N 2060/ 1650/1670N/ 2400C/Ce/ 1850/1870N/ 3400CN/ 5050/5070N/ 2600CN/ 5150D/5170DN 3450CN/ 2700CN ON, OFF ON, OFF ON, OFF PORTRAIT, PORTRAIT, PORTRAIT,...
  • Page 403: Epson Specific Variables

    EPSON Specific Variables EPSON SPECIFIC HL-1050/1070/1250/ VARIABLES 1270N/1450/1470N ORIENTAION PORTRAIT LANDSCAPE LEFTMARGIN 0 ~ 145 columns RIGHTMARGIN 10 ~ 155 columns TOPMARGIN 0, 0.33, 0.5, 1.0, 1.5, 2.0 inch BOTMARGIN 0, 0.33, 0.5, 1.0, 1.5, 2.0 inch FORMLINES 5~128 FONTNUMBER 0,1,2, ...n PITCH 0.44, 0.45 ~ 99.99...
  • Page 404 2006/05/31 IBM Specific Variables IBM SPECIFIC HL-1050/1070/1250/ VARIABLES 1270N/1450/1470N ORIENTATION PORTRAIT, LANDSCAPE LEFTMARGIN 0 ~ 145 columns RIGHTMARGIN 10 ~ 155 columns TOPMARGIN 0, 0.33, 0.5, 1.0, 1.5, 2.0 inch BOTMARGIN 0, 0.33, 0.5, 1.0, 1.5, 2.0 inch FORMLINES 5 ~ 128 FONTNUMBER 0, 1, 2, ...
  • Page 405: Appendix B Flash/Pcmcia Card Commands

    2006/05/31 APPENDIX B FLASH/PCMCIA CARD COMMANDS <For HL-1270N/1470N/1660e/2060/2400C/2400Ce/3400CN/ 1650/1670N/2460/3260N/7050/1850/1870N/5070N/5170DN /2600CN/3450CN/6050/6050D/6050DN/8050N/2700CN/5270D N/5280DW Only> APPENDIX B - FLASH/PCMCIA CARD COMMANDS - 1...
  • Page 406 3.6.5 Save image (Printing location not fixed) ...14 Copy Card (For HL-1660e/2060/2400C/2400Ce/3400CN/2460/3260N/7050 /2600CN/3450CN Only) ...15 USE CARD COMMANDS FROM PCL... 16 Execute Macros...16 Use Download Fonts ...17 USE CARD COMMANDS FROM POSTSCRIPT ... 18 APPENDIX B - FLASH/PCMCIA CARD COMMANDS - 2...
  • Page 407: Introduction

    For the HL- 1270N/1470N/1650/1670N/1850/1870N/5070N/5170DN/6050/6050D/6050DN/5270DN/5280DW printer, please note that the part of the internal printer flash memory can be used as though it was a HDD. For the HL-6050/6050D/6050DN printer, the internal printer flash memory is available after their firmware version 1.18.
  • Page 408: How To Read The Card Commands Specification

    2006/05/31 HOW TO READ THE CARD COMMANDS SPECIFICATION Each command is described in the following four sections of this manual. Commands Command data sequences and syntax. ESC or CR stands for 0x1b or 0x0d as follows; ESC ----0x1b CR ---- 0x0d Available Devices The supported memory card devices which can be used for each command are represented in this manual using the abbreviations as follows.
  • Page 409: Commands

    Default value is 1 (slot 1). The card is reset to the default value under the following circumstances:- 1) When the printer is turned on. 2) When the printer is reset on the control panel. Error APPENDIX B - FLASH/PCMCIA CARD COMMANDS - 5...
  • Page 410: Format Command

    This command executes a physical format for the storage device. This will delete all existing data on the device. When two devices are installed into the printer, the command formats the device specified by the select storage device command. When only one device is installed, the command formats that device.
  • Page 411: Save Data Command

    This command saves data of the specified type with the data ID which is set with the ESC & f # Y (Macro ID Configuration) command. If there is insufficient memory in the printer to store the data, a memory full error occurs. When the printer supports two or more storage devices, the command saves the data onto the device specified by the select storage device command.
  • Page 412: Data

    This command saves data which is sent from the PC with the specified ID onto the device. If there is insufficient memory in the printer to store the data, a memory full error occurs. When the printer supports two or more storage devices, the command saves the data onto the device specified by the select storage device command.
  • Page 413: Font

    The ID specified with the ESC * c # D (Font ID ) command is used for registration. When two devices are installed into the printer, the command saves the font onto the device specified by the select storage device command. When only one device is installed, the command saves the font onto that device.
  • Page 414: Delete All Download Fonts

    This command deletes all the download fonts which are saved in the device. When two devices are installed into the printer, the command deletes the download fonts in the device specified by the select storage device command. When only one device is installed, the command deletes the download fonts in that device.
  • Page 415: Save Download Font With Specified Id

    This command saves the font with the ID which is specified with the ESC * C # D (Font ID) command. When two devices are installed into the printer, the command saves the download fonts in the device specified by the select storage device command. When only one device is installed, the command saves the download fonts in that device.
  • Page 416: Macro

    This command deletes all the macros which are saved in the device. When two devices are installed into the printer, the command deletes all the macros in the device specified by the select storage device command. When only one device is installed, the command deletes all the macros in that device.
  • Page 417: Save Macro With Specified Id

    After transferring the last print data into the image data area, this command saves the data with the ID which is specified with the ESC & f # Y (Macro ID Configuration) command as a PCL command on the device.
  • Page 418: Save Image (Printing Location Not Fixed)

    After transferring the last print data into the image data area, this command saves the data with the ID which is specified with the ESC & f # Y (Macro ID Configuration) command as a PCL command on the device.
  • Page 419: Copy Card (For Hl-1660E/2060/2400C/2400Ce/3400Cn/2460/3260N/7050 /2600Cn/3450Cn Only)

    Copy Card (For HL-1660e/2060/2400C/2400Ce/3400CN/2460/3260N/7050 /2600CN/3450CN Only) Command ESC CR ! 12357F Available Devices F, A Description 1) Flash memory card After executing a logical format on the transfer device, this command copies to the transfer device only when the two devices have the same memory size. It is essential that the transfer device has already been formatted.
  • Page 420: Use Card Commands From Pcl

    Available Devices F, A, H, I Description The macros saved in the device can be executed from the PCL command language as well as saving macros in the printer memory. The priority for searching is as follows; 1. Macro in printer memory 2.
  • Page 421: Use Download Fonts

    Available Devices F, A, H, I Description The download fonts saved in the device can be selected from the PCL command language as well as saving download fonts in printer memory. The priority for searching is as follows; 1. Font in printer memory 2.
  • Page 422: Use Card Commands From Postscript

    For PostScript, the following command should be used to specify the hard disk which is to be used; (%disk#%) ** # = number The above number corresponds to the slots of the HL-1660e/2060/2400C/2400Ce/3400CN/2460/2460N/ 7050/2600CN/3450CN/2700CN printer as follows; Slot 1: Slot 2: Internal HDD: (%disk2%)
  • Page 423: Appendix Chbp Mode Commands

    2006/05/31 APPENDIX C HBP MODE COMMANDS <For HL-820/1020/1040 Only> APPENDIX C HBP MODE COMMANDS - 1...
  • Page 424 2006/05/31 ONTENTS DESCRIPTIONS ... 3 COMMAND TO ENTER HBP MODE ... 4 HBP COMMANDS... 5 Command List ... 5 Commands (Detailed Explanation)... 6 3.2.1 Resolution setting commands...6 3.2.2 Economy mode setting commands ...6 3.2.3 Sleep mode setting commands ...7 3.2.4 Mode setting commands...8 3.2.5 Engine related setting commands ...9...
  • Page 425: Descriptions

    DESCRIPTIONS The HBP mode commands can be used for the HL-820/1020/1040 printers only. The following commands and syntax are used in these specifications. Description: meaning or code <Esc>: 0 x 1b <Space>: 0 x 20 <LF>: 0 x 0a 1byte of data sign for combining data ( This is not a control code.) (••••)B: character string enclosed in parentheses means 1 data byte described in binary format...
  • Page 426: Command To Enter Hbp Mode

    Epson emulation and Auto emulation for HL-1040). The printer reports an error if it receives this command when it is already in HBP mode. The printer enters HBP mode when it receives this command. This mode continues until one of following occurs.
  • Page 427: Hbp Commands

    Command List <Character string> Not used : An error occurs in the printer if these character strings are sent as commands. Reserved : These commands are not necessary to create the driver. Do not use these commands. <Functions>...
  • Page 428: Commands (Detailed Explanation)

    (2) The printer power is turned off. (3) InputPrime Signal is brought LOW. After (1) is sent, the printer resolution is uncertain. The driver must resend this command again after the HBP mode switch command is sent. After (2) or (3), the resolution returns to default (600 dpi).
  • Page 429: Sleep Mode Setting Commands

    HL-1040 also accepts the PJL command which sets the sleep time. The sleep time set by the PJL command is valid both in HBP mode and in Non-HBP modes. (PCL, EPSON or IBM emulation) APPENDIX C HBP MODE COMMANDS - 7...
  • Page 430: Mode Setting Commands

    Print Overrun error. 1 = The printer does not clear the input buffer when a Paper Jam error or Undefined Code error occurs. The printer recovers automatically 10 seconds later from a Print Overrun error.
  • Page 431: Engine Related Setting Commands

    The value of n (0-255) sets the toner stirring time in seconds. The value 0 gives the default setting of 30 seconds stored in the printer, and 1- 6 is fixed at 6 seconds. Toner is stirred by the @K+CHR$ (0) command.
  • Page 432: Graphic Data Input Commands

    It is recommended to send 1 page of print data without dividing into sections when the 1 page print data is more than the printer memory (500 Kbytes) as the printer will print this ' on the fly' and sending it in one block will improve the print performance.
  • Page 433: Graphic Data Format

    Graphic Data Format The data format, which follows the @G+ [number of data bytes (3 bytes)] command, is as shown below. the number of command byte 1 command bytes for raster 1 the number of command byte 1 command bytes for raster 2 The number of command byte 1...
  • Page 434 2006/05/31 The 5th byte data onward is replaced by the twelve data bytes AAh. 11101010b,02h,Aah When the replacement position and the amount of replacement data are overflow, the next data byte becomes an Expansion Offset Byte. However, if the number is FFh, 00h is added. The number of command bytes = 300, FFh+2Dh The number of command bytes = 510, FFh+FFh+00h If there are more than two command bytes for 1 raster, the replacement position for the second command...
  • Page 435: Recommended Command String

    RECOMMENDED COMMAND STRING The command strings below shows the recommended command stream for two pages of a print job. <Esc>%-12345X@PJL<LF> @PJL DEFAULT AUTOSLEEP=0<LF> @PJL DEFAULT TIMEOUTSLEEP= 15<LF> <Esc>%-12345X@PJL<LF> @PJL ENTER LANGUAGE = HBP<LF> @L<00H> @E<00H> @T<0FH> @M<81H> @J<00H><00H> @J<02H><00H> @G<size(3byte)><data> @G+ <00H><00H><01H><FFH>...
  • Page 436 2006/05/30 APPENDIX D REFERENCE LIST OF MX-2000/4000/5000/ 7000 SERIES UNIQUE COMMANDS APPENDIX D REFERENCE LIST OF MX-2000/4000/5000/7000 SERIES UNIQUE COMMANDS - 1...
  • Page 437 PJL mailbox protection & bin number setting ... 6 3.1.3. PJL avoidance of mailbox bin full ... 6 3.1.4. PCL output tray setting ... 7 3.1.5. PS output tray & mode setting ... 7 3.1.6. PS mailbox protection & bin number setting... 9...
  • Page 438: Introduction

    (MX-7000 / MX-7005 / MX-7010 ) Mailbox units. The MX-2000 series Mailbox units are optionally installed onto the HL-2060 printer, the MX-4000 series are optionally installed onto the HL-2460 printer, MX-5000 series are optionally installed onto the HL-3260N printer, and MX-7000 series are optionally installed onto the HL-7050 printer.
  • Page 439: General Specification

    2006/05/30 GENERAL SPECIFICATION The Mailbox unit is an option for the HL-2060, HL-2460, HL-3260 or HL-7050 printer and the MX-2000/4000/ 7000 series composed of three types of units. The MX-2001/4100/7000 Lower Mailbox unit consists of five bins. The MX-2002/4200/7005 Upper Mailbox unit is additionally installed onto the MX-2001/4100 and also consists of five bins.
  • Page 440: Command Reference List

    1) PJL output tray & mode setting 2) PJL mailbox protection & bin number setting 3) PJL avoidance of output bin full 4) PCL output tray setting 5) PS output tray & mode setting 6) PS mailbox protection & bin number setting For the details on each command, refer to the following sections.
  • Page 441: Pjl Avoidance Of Mailbox Bin Full

    OFF: Paper is ejected to the printer face-down output tray when the specified tray is full. • Paper is not ejected to the printer face-down output tray even when the specified tray is full. Default = OFF Explanation • When paper is ejected into a bin specified by a setting command which limits the bin selection, this command selects whether to eject automatically paper to the printer face-down output tray or not when the specified bin is full.
  • Page 442: Pcl Output Tray Setting

    • This command is ignored when the specified tray is not available. • The PJL OUTBIN command is ignored when this command is executed. • Refer to the Technical Reference Guide Section 4.1.2 ‘Output tray’ in Chapter 2 ‘PCL’. 3.1.5. PS output tray & mode setting Command <HL-2060>...
  • Page 443 2006/05/30 Explanation • This operator selects the specified output tray and output mode. • This operator is ignored when no tray is specified. • The ‘1’ and ‘2’ parameters are executed for all output trays other than ones which are defined and protected as mailboxes.
  • Page 444: Ps Mailbox Protection & Bin Number Setting

    3.1.6. PS mailbox protection & bin number setting Command <HL-2060> # setoutputprotect <HL-2460/3260/7050> <</BROutbinProtect #>> setpagedevice Parameter <HL-2060/2460/7050> • Lower unit: • Lower unit + Upper unit: <HL-3260> #1 to 4 from bottom to top Default = 0 Explanation • This operator sets the bins with numbers larger than the TrayNumber specified as mailbox use only. They cannot then be used for either stacker or sorter functions.
  • Page 445 2006/05/31 APPENDIX E REFERENCE LIST OF FS-5050 UNIQUE COMMANDS APPENDIX E REFERENCE LIST OF FS-5050 SERIES UNIQUE COMMANDS - 1...
  • Page 446 PJL staple on/off ... 5 3.1.5. PS staple on/off... 5 3.1.6. PJL job offset on/off ... 6 3.1.7. PS job offset on/off... 6 3.1.8. PCL job separate (Esc&l1T) Command... 6 APPENDIX E REFERENCE LIST OF FS-5050 SERIES UNIQUE COMMANDS - 2...
  • Page 447: Introduction

    This manual covers the general specifications and the command reference list of the FS-5050 Finisher/Stapler units, which are optionally installed onto the HL-3260 printer. GENERAL SPECIFICATION The Finisher/Stapler unit is an option for the HL-3260 printer. Function Finisher/ Printed pages can be sorted or stapled.
  • Page 448: Ps Output Tray Command

    • This command is ignored when the Finisher/Stapler unit is not available. • The difference between the SET and DEFAULT selection and the effective period of this setting follow the PJL specifications. 3.1.2. PCL output tray Command Esc&l#G (27)(38)(108)#(71) Parameter # denotes the output tray.
  • Page 449: Pjl Staple On/Off

    3.1.4. PJL staple on/off Format @PJL SET/DEFAULT STAPLE=StapleName Parameter StapleName* • UPPER LEFT: Select the upper left of the Finisher/Stapler unit • UPPER RIGHT: Select the upper right of the Finisher/Stapler unit • LOWER LEFT: Select the lower left of the Finisher/Stapler unit •...
  • Page 450: Pjl Job Offset On/Off

    Explanation • This command selects the job off set. • This command is ignored when the Finisher/Stapler unit is not available. <Example> <<BRjoboffset true>>setpagedevice 3.1.8. PCL job separate (Esc&l1T) Command Esc&l1T (27)(38)(108)(49)(84) Explanation • This command separates the job. • This command is ignored when the Finisher/Stapler unit is not available.

Table of Contents