Brother Laser Printer HL-Series Technical Reference Guide Revision A Revision B December, 1993 January, 1994 Revision C October, 1994 Addition of Appendix A "Comparison list for some models" Addition of the model HL-660/HL-1260
Copyright © 1993 - 1994 Brother Industries Ltd. ALL RIGHTS RESERVED Trademark acknowledgments Brother is a registered trademark and Twinriter a trademark of Brother Industries Ltd. PostScript is a registered trademark of Adobe Incorporated. Epson is a registered trademark and FX-850 a trademark of Seiko Epson Corporation. Hewlett Packard, HP, LaserJet and PCL are registered trademarks and LaserJet 4, HP-GL, and HP-GL/2 are trademarks of Hewlett Packard Company.
Contents Glossary Chapter 1 - Introduction to the HL Series Laser printer DESCRIPTION OF THE PRINTER ABOUT THE MANUAL AREAS OF USE Using word-processing packages and spreadsheets Graphics Programming 2 2 2 2 3 3 Chapter 2 - PCL COMMAND LIST INTRODUCTION CONTROLLING THE PRINTER ENVIRONMENTS JOB CONTROL THE PAGE USING FONTS USING GRAPHICS MACRO STATUS READBACK 2 5 6 9 10 15 32 68 89 95 Chapter 3 - PJL , Printer Job Language INTRODUCTION PJL SYNTAX AND FORMAT HOW TO USE PJL KERNEL COMMANDS JOB SEPARATION
COMMAND LIST INTRODUCTION EMULATION DETAILS NOTATION USED IN THIS EMULATION DESCRIPTION COMMANDS 2 4 4 5 5 Chapter 7 - Barcode Control Chapter 8 - HP-GL/2 TABLE OF CONTENTS INTRODUCTION TERMINOLOGY COMMAND SYNTAX THE HP-GL GRAPHICS WINDOW PREPARING TO PRINT GRAPHICS IMAGES COMMANDS INITIALIZATION AND DEFAULT SETTING INSTRUCTIONS PLOT AREA AND UNIT SETTING INSTRUCTIONS PEN CONTROL AND PLOT INSTRUCTIONS THE POLYGON GROUP PLOT FUNCTION INSTRUCTIONS CHARACTER PLOT INSTRUCTIONS 2 4 4 5 6 6 8 8 10 16 25 32 44
Glossary Absolute plotting A method of plotting in the HP-GL and HP-GL/2 graphics language where coordinates are specified relative to the origin of the coordinate system currently in use. 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.
Control code An ASCII code that tells the computer to perform a particular function, such as a carriage return. Control panel reset A reset or factory reset performed using the printer control panel. Cross-hatching A method of shading using perpendicular diagonal lines that cross one another. Current units The current unit type in use in HP-GL and HP-GL/2 mode. Current units are either user units or graphics units depending on whether an SC command has been used.
Fill A shading applied to a shape that you have drawn. Fixed spacing See monospacing. Font A collection of characters that are designed to work in harmony together. A font has several characteristics that identify it uniquely: character or symbol set, spacing, pitch, height or point size, style, stroke weight and typeface. Fonts can either be resident in the printer's ROM, installed on cartridge or downloaded from your computer. You can either buy downloadable fonts commercially or create your own.
Internal font A font that is stored in the printer ROM and is therefore always available for use, for example, Brougham 10 pitch, or a font generated from a scalable typeface stored in the printer's ROM, for example, Tennessee bold 15 pt. Isotropic scaling A form of image scaling using the SC command in HP-GL or HP-GL/2 mode in which the user units must be of equal size. Hence it may not be possible to use the entire graphics window to display the image. Justification The way in which text is aligned.
PCL picture frame See picture frame. Pen Although this printer is a laser printer the HP-GL/2 and HP-GL graphics languages retains the notion of a pen and allows you to select between two pens, white and black. You must select a pen before you can draw anything. The HP-GL and HP-GL/2 language were originally developed for use with plotters and the terminology remains.
Print position The position from which printing of the next character or graphic object will begin, providing that no operations that change the print position are performed in the interim. Proportional spacing Fonts intended for high quality typographic output use a method of character spacing in which the space occupied by a single character on a line of text depends on the individual design of the character. This is known as proportional spacing.
and then select 14 pt. as the height. The printer has many resident typefaces. You can also buy scalable typeface cartridge and disks. Secondary font In LaserJet mode the printer maintains two current font settings. The secondary font is the second of these. Serif A kind of typeface normally used for body text. Serif typefaces have little hooks (serifs) on the individual characters that makes text more readable. Soft clip limits See graphics window. The soft limits are determined by the IW command.
you switch on the printer in LaserJet mode or change to LaserJet emulation from another emulation mode. You can reset the printer to its user default settings either by using a printer command or using the control panel. User units Coordinate units specified by the user with the HP-GL and HP-GL/2 SC command. Vector graphics A method of defining graphic images in terms of coordinates, points and lines. The HP-GL and HP-GL/2 graphics language uses this method.
Revision A 16/01/96 Chapter 1 Introduction
About the manual This technical reference manual is intended to help you get the most out of each of the emulation modes supported by your HL Series laserprinter. It is divided into nine sections - this introductory section and one section for each of the emulation modes. Each emulation mode section describes the software commands (the escape sequences and control codes) that you can use to make the printer perform each of its available functions. Some example programs are included to give you useful ideas.
GRAPHICS HP-GL/2 or HP-GL mode offers many powerful graphic features that enable you to draw and print detailed images quickly and easily. Many commercial graphic packages, notably computer-aided design applications programs, produce HP-GL/2 or HP-GL output. LaserJet mode also has several graphics features. You can either write your own programs to generate images or use existing graphics software.
Revision C 16/01/96 Chapter 2 PCL Chapter 2 "PCL" - 1
Revision C 16/01/96 Command list Control Codes Escape sequences Esc&k#G Esc&s#C EscY EscZ 6 Line Termination End-of-line wrap Display function mode Display function mode Environments 7 8 8 8 8 9 Job Control Esc&l#A Esc&l#H Esc&l#U Esc&l#Z Esc&l#S Esc&a#G Esc&l#X Esc&l1T EscE EscCR FD EscCR!#R Escz Esc%-12345X EscCR## Page size Paper source Left long-edge offset registration Top offset registration Simplex/Duplex printing Paper Side Selection Number of copies Job separation command Reset Reset to fact
Revision C 16/01/96 Esc(s#V, Esc)s#V EscCR!#H, EscCR!#V Esc(s#S, Esc)s#S Esc(s#B, Esc)s#B Esc(s#T, Esc)s#T Esc&p#X Esc&d#D, Esc&d@ Esc&*c#D Esc*c#F Esc(#X, Esc)#X Esc)s#W Esc*c#E Esc(s#W Seelcting the height Scaling the scalable fonts vertically or horizontally Selecting the style Selecting the stroke weight Selecting the typeface Transparent print data Underlining text Font ID Operations on downloaded fonts Selecting a downloaded font Sending the font descriptor Sending a character code Sending a characte
Revision C 16/01/96 EscCR!#E Esc&b#W EscCR!1234#M Execute Data AppleTalk Configuration MIO Video I/O port control 93 94 94 Status Readback Esc*s#T Esc*s#U Esc*s#I Esc*s1M Esc&r#F Esc*s#X Set status readback location type Set status readback location unit Inquire status readback entity Free space command Flush All pages command Echo command 95 97 97 98 104 105 105 Chapter 2 "PCL" - 4
Revision C 16/01/96 Introduction This laserprinter provides a complete emulation of the Hewlett Packard LaserJet 4 printer. Features include raster and vector graphics, support for bitmap and scalable fonts and page control. There are many resident fonts in the printer and you can gain access to more by inserting a font cartridge/card or PCMCIA card into the printer or by downloading fonts from your computer.
Revision C 16/01/96 Controlling the printer 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. Backspace (08) <08h> ASCII code 8. This code moves the cursor one column to the left. Line feed (10) <0Ah> ASCII code 10. This code performs a line feed. Form feed (12) <0Ch> ASCII code 12. This code ejects the most recently printed page from the printer.
Revision C 16/01/96 Escape sequences Escape sequences, also known as PCL (Printer Control Language) commands, tell the printer which operations to perform. An escape sequence consists of the Esc character followed by a string of characters which define the operation to be performed. Some escape sequences require parameter values. These are included in the sequence as numeric characters. The final letter of an escape sequence must be uppercase: all others must be lowercase.
Revision C 16/01/96 Line termination You can set the carriage return, line feed and form feed control codes to perform compound functions. You can either do this using the printer’s control panel (see the User Guide) or by sending the printer the following escape sequence: • 0 = Carriage return, line feed and form feed perform their normal functions. • 1 = Carriage return performs carriage return/line feed, line feed and form feed perform their normal functions.
Revision C 16/01/96 Environments Factory default environment The factory default environment is the collection of printer settings programmed into the printer before it leaves the factory. You can restore the factory default environment using the printer’s control panel. See the User's Guide to find how to reset the printer from the printer's control panel. Some settings cannot be restored to the factory default environment with the RESET operation from printer's control panel.
Revision C 16/01/96 Job control Page size Esc&l#A (27)(38)(108)#(65) <1Bh><26h><6Ch>#<41h> # stands for the type of paper or envelope to be used. • Values for # correspond to the paper or envelope sizes shown in the table. Envelopes sizes are shown in the shaded part of the table.
Revision C 16/01/96 Paper source Esc&l#H (27)(38)(108)#(72) <1Bh><26h><6Ch>#<48h> # denotes the paper source. Values for # may be 0, 1, 2, 3, or 4. • • • • • • • • • If # = 0 the current page is ejected and the paper source remains the same. If # = 1 the current page is printed and the upper cassette becomes the paper source. If # = 2 the current page is printed and paper is fed in manually. If # = 3 the current page is printed and envelopes are fed in manually.
Revision C 16/01/96 Top offset registration Esc&ll#Z (27)(38)(108)#(90) <1Bh><26h><6Ch>#<5Ah> # stands for the distance in decipoints (1/720") that the top edge of the logical page is to be moved. • Values for # may be in the range -32,767 to 32,767. • The distance specified is relative to the logical page’s current position. • # 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.
Revision C 16/01/96 • # = 1 indicates the front side. If the currently processing page is odd page, the printer finishes the process to the page and attaches a dammy page. If the odd page had already processed to the page and even page has not been processed yet, only a dammy page is attached. If the currently processing page is even page, the printer finishes the process to the page. If even and odd pages had been processed and the next odd page has not been processed yet, this command is ignored.
Revision C 16/01/96 • Depending on models you may make the control panel setting locked ("SETTING LOCK=ON"). In that case, the parameters 1 and 2 are ignored. Printer self test Escz (27)(122) <1Bh><7Ah> • A printer self test causes a test sheet to be printed out to show that the machine is working properly. Depending on the models, you may also see the test pattern for HRC setting.
Revision C 16/01/96 The page Physical page The physical page refers to the size of the paper or envelope currently in use: A4, Letter, B5, JIS B5, Legal and Executive are the permitted paper sizes: Monarch, COM-10, International DL and International C5 are the allowable envelope sizes. Printable area The printable area is a rectangular area of the physical page on which the printer can print. Its edges are 1/6" in from the edges of the physical page.
Revision C 16/01/96 Portrait page dimensions (DEFAULT VALUES) H G F Physical page Printable area Logical page E E G G Default HP-GL/2 picture frame D B B Physical page length D Maximum logical page length F DIstance from edge of physical page to edge of logical page F G H C A PAPER SIZE A B C LETTER 2550 3300 2400 LEGAL 2550 4200 2400 EXECUTIVE 2175 3150 2025 A4 2480 3507 2338 B5 2078 2952 1936 JIS B5 2148 3030 2010 B6 1476 2078 1334 A5 1754 2480 1612 A6 1240 1754 1098 A4 80 chara 2480 35
Revision C 16/01/96 Landscape page dimenSions ( DEFAULT VALUES) H G F Physical page Printable area E E Logical page D B Default HP-GL/2 picture frame G G B Physical page length D Maximum logical page length F DIstance from edge of physical page to edge of logical page G H F C A PAPER SIZE A B C D LETTER 3300 2550 3180 2550 LEGAL 4200 2550 4080 2550 EXECUTIVE 3150 2175 3030 2175 A4 3507 2480 3389 2480 B5 2952 2078 2834 2078 JIS B5 3030 2148 2910 2148 B6 2078 1476 1960 1476 A5 2480 1754 2
Revision C 16/01/96 Coordinates The printer control language coordinate system has its origin at the intersection of the left edge of the logical page and the top margin. The x-coordinate value of the current cursor position increases as the cursor moves from left to right, the y-coordinate value increases as the cursor moves down the page. The cursor can be explicitly positioned anywhere on the current logical page using the PCL coordinate system.
Revision C 16/01/96 Setting the left and right margins Esc&a#L (27)(38)(97)#(76) <1Bh><26h><61h>#<4Ch> # stands for the distance between the left edge of the logical page and the left margin in columns. Esc&a#M (27)(38)(97)#(77) <1Bh><26h><61h>#<4Dh> # stands for the distance between the left edge of the logical page and the right margin in columns. • The column width is as defined by the HMI.
Revision C 16/01/96 Resetting the horizontal margins Esc9 (27)(39) <1Bh><39h> • This command resets the left and right margins to the left and right edges of the logical page respectively. Setting the top margin Esc&ll#E (27)(38)(108)#(69) <1Bh><26h><6Ch>#<45h> # stands for the distance between the top of the logical page and the top margin in rows. • The row height is as defined by the VMI.
Revision C 16/01/96 Setting the vertical motion index (VMI) Esc&ll#C (27)(38)(108)#(67) <1Bh><26h><6Ch>#<43h> # stands for the height of one row in 1/48". • # can have any value in the range 0-32767. • The distance specified by the VMI is the vertical distance moved down the page when the printer performs a line feed. The VMI is also sometimes referred to as the line pitch. • If you try to set a VMI that is greater than the current length of the logical page the command is ignored.
Revision C 16/01/96 Setting the horizontal motion index (HMI) Esc&k#H (27)(38)(107)#(72) <1Bh><25h><6Bh>#<48h> # stands for the width of one column in 1/120". • # 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.
Revision C 16/01/96 Setting line spacing Esc&ll#D (27)(38)(108)#(68) <1Bh><25h><6Ch>#<44h> # stands for the number of lines to be printed per inch. • # can have any of the following values: 1, 2, 3, 4, 6, 8, 12, 16, 24 or 48. • This command performs the same function as the VMI command. • 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.
Revision C 16/01/96 Page length Esc&ll#P (27)(38)(108)#(80) <1Bh><25h><6Ch>#<50h> # stands for the length of the logical page in lines (at the current VMI). • If you specify a page length greater than is allowed by the physical size of the paper in the currently installed paper tray, a control panel message prompts you to load paper of the appropriate size.
Revision C 16/01/96 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. In case of using dots, the units value is defined by the ESC & u # d command. The commands for positioning the cursor are listed below.
Revision C 16/01/96 Vertical cursor positioning in Decipoints Esc&a#V (27)(38)(97)#(86) <1Bh><26h><61h>#<56h> # = number of decipoints in 1/720" • A plus or minus sign preceding the number of decipoints parameter indicates that the cursor is to be positioned relative to its current position. A signed positive parameter value signifies that the cursor is to be repositioned vertically downwards on the page, a negative value means that it will be moved upwards.
Revision C 16/01/96 Units Esc*p#X (27)(38)(112)#(88) <1Bh><26h><70h>#<58h> # = number of units • Units value is defined by the Esc & u # D command. • A plus or minus sign preceding the number of dots parameter indicates that the cursor is to be positioned relative to its current position. A signed positive parameter value signifies that the cursor is to be repositioned to the right on the page, a negative value means that it will be moved to the left.
Revision C 16/01/96 Horizontal cursor positioning in Decipoints Esc&a#H (27)(38)(97)#(72) <1Bh><26h><61h>#<48h> # = number of decipoints 1/720" • A plus or minus sign preceding the number of decipoints parameter indicates that the cursor is to be positioned relative to its current position. A signed positive parameter value signifies that the cursor is to be repositioned to the right on the page, a negative value means that it will be moved to the left.
Revision C 16/01/96 Positioning the cursor using control codes The carriage return, space, horizontal tab and backspace control codes can also be used to reposition the cursor using the current VMI and HMI settings. Using the cursor position stack You can save and retrieve up to 20 cursor positions using the cursor position stack. Esc&f#S (27)(38)(102)#(115) <1Bh><26h><66h>#<73h> # = 0 or 1 • Setting # to 0 stores the current cursor position on the stack.
Revision C 16/01/96 Logical page orientation Esc&ll#O (27)(38)(108)#(79) <1Bh><26h><6Ch>#<4Fh> # = 0, 1, 2 or 3 • This command sets the orientation of the logical page relative to the physical page. • Values of # produce orientations as follows: 0 = portrait, 1 = landscape, 2=reverse portrait and 3 = reverse landscape. • 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.
Revision C 16/01/96 Text direction Esc&a#P (27)(38)(97)#(80) <1Bh><26h><61h>#<50h> # = 0, 90, 180 or 270. • This command changes the orientation of the logical page relative to the physical page, but without the side effects of the logical page orientation command. Hence you can print text in different directions on the same page. • Values of # have the following effects: 0 = portrait, 90 = landscape, 180 = reverse portrait and 270 = reverse landscape.
Revision C 16/01/96 Using fonts Introduction A font is a collection of characters that have common characteristics, such as size, style and typeface, and which ranges over a given set of symbols. For example, 12 point Tennessee Bold in the Roman-8 symbol set is a typical HL Series font. Different sorts of fonts are used to create various typographic effects.
Revision C 16/01/96 Microsoft Windows 3.
Revision C 16/01/96 Primary and secondary fonts The printer maintains two sets of font characteristics which define its primary and secondary fonts. The primary font is the one it will use by default, the secondary font can be selected instead. This facility enables you to have two parallel font definitions that you can switch between easily without invoking long escape sequences. You can select the primary and secondary fonts using PCL commands.
Revision C 16/01/96 Symbol collections The symbol collections contain many symbols and a symbol set is made from symbol collections by selecting the required symbols for unbound fonts. As symbol collections have more symbols than symbol sets, unbound fonts can have more symbols than bound fonts. Due to the compatibility between symbol sets and symbol collections, the printer searches the designated MSL or Unicode number by using a symbol set mapping table.
Revision C 16/01/96 Font selection commands User-defined symbol sets User-defined symbol sets can be used with Unbound scalable fonts. Three new commands below are prepared for user-defined symbol set. To define a symbol set, its ID code must be defined at first. Next, a list of symbols for the symbol set must be downloaded. Then, you can use the defined ID code for symbol set selection. Symbol Set ID Code Command Esc*c#R (27)(42)(99)#(82) <1Bh><2Ah><63h>#<52h> • Value for # can be from 0 to 2047.
Revision C 16/01/96 Define Symbol Set Esc(f#W[data] (27)(49)(102)#(87) <1Bh><28h><66h>#<57h> • # value can be from 18 to 32767. • # stands for number of bytes in the data which is followed this command. • 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.
Revision C 16/01/96 10 - 17: Character Requirement Flag ( 8 bytes ) Used in conjunction with the character complement field in the header of the font descriptor, to decide the compatibility of a symbol set for an unbound font. This flag indicates which symbol collections are necessary to make the required symbol set. Each bit in this field stands for the selection of each symbol collection.
Revision C 16/01/96 Symbol set control command Esc*c#S (27)(42)(99)#(83) <1Bh><2Ah><63h>#<53h> • Values for # can be 0, 1, 2, 4, or 5. • 0 specifies to delete all temporary and permanent user-defined symbol sets. • 1 specifies to delete all temporary user-defined symbol sets. • 2 specifies to delete current user-defined symbol set. • 4 specifies to make current user-defined symbol set temporary. • 5 specifies to make current user-defined symbol set permanent.
Revision C 16/01/96 User-defined symbol sets are available for the HL-10h, HL-1260 and HL-660. They are defined by the command ESC ( f # W. Esc)symbol set ID (27)(41) <1Bh><29h> • This command selects the symbol set (character set) for the secondary font. • To select any of the above symbol sets for the secondary font simply substitute ‘)’ for ‘(’ in the command shown in the table.
Revision C 16/01/96 • To select any of the above symbol sets for the secondary font simply substitute ‘)’ for ‘(’ in the command shown in the table.
Revision C 16/01/96 Selecting the pitch Esc(s#H (27)(40)(115)#(72) <1Bh><28h><73h>#<48h> • This command designates the pitch for the primary font. Esc)s#H (27)(41)(115)#(72) <1Bh><29h><73h>#<48h> • This command designates the pitch for the secondary font. • # = 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.
Revision C 16/01/96 Scaling the scalable fonts vertically or horizontally EscCR!#H (27)(13)(33)#(72) <1Bh><0Dh><21h>#<48h> • This command designates the height of the scalable fonts. EscCR!#V (27)(13)(33)#(86) <1Bh><0Dh><21h>#<56h> • This command designates the width of the scalable fonts. • # can be from 0.25 ~ 3.00 in 0.01 increments. • # value is set to 0.25 when # is specified less than 0.25, and # value is set to 3.00 when # is specified bigger than 3.00.
Revision C 16/01/96 Selecting the stroke weight Esc(s#B (27)(40)(115)#(66) <1Bh><28h><73h>#<42h> • This command designates the stroke weight of the primary font. Esc)s#B (27)(41)(115)#(66) <1Bh><29h><73h>#<42h> • This command designates the stroke weight of the secondary font • # is an integer between –7 and 7. A value of 0 signifies a medium stroke weight, negative numbers signify thin or light stroke weights and positive numbers signify bold stroke weights.
Revision C 16/01/96 OCR-B Esc(s110T Esc)s110T Bermuda Script Germany San Diego US Roman Esc(s134T Esc(s132T Esc(s133T Esc(s135T Esc)s134T Esc)s132T Esc)s133T Esc)s135T * * * * * * * 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.
Revision C 16/01/96 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 downloadable font.
Revision C 16/01/96 Selecting a downloaded font Esc(#X (27)(40)#(88) <1Bh><28h>#<58h> • This command selects a downloaded font as the primary font. Esc)#X (27)(41)#(88) <1Bh><29h>#<58h> • This command selects a downloaded font as the secondary font. • # is the ID number of the downloaded font.
Revision C 16/01/96 Cell width Cell height Baseline distance x-height Baseline Underline distance Underline thickness Chapter 2 "PCL" - 48
Revision C 16/01/96 • 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. < Bitmapped font > ··· This type of font descriptor is not recommended for HL-10h,1260 and 660.
Revision C 16/01/96 < Intellifont Scalable Bound font > Byte 15 (MSB) 8 7 0 Font Descriptor Size (>80) 2 Descriptor Format (10) Font Type 4 Style MSB Reserved 6 Base Line Position 8 Cell Width 10 Cell Height 12 Orientation Spacing 14 Symbol Set 16 Pitch (Default HMI) 18 Height 20 x-Height 22 Width Type St yle LSB 24 Stroke Weight T ypeface LSB 26 Typeface MSB Serif St yle 28 Quality Placement 30 Underline Distance Underline Height 32 Text Height 34 Text Width 36 First Code 38 Last Code 40 Pitch Extended Hei
Revision C 16/01/96 < Intellifont Scalable Unbound font > Byte 15 (MSB) 8 0 Font Descriptor Size (<88) 2 Descriptor Format (11) 4 Style MSB 6 Base Line Position 8 Cell Width 10 Cell Height 12 Orientation 14 Symbol Set 16 Pitch (Default HMI) 18 Height 20 x-Height 22 Width Type 24 Stroke Weight 26 Typeface MSB 28 Quality 30 Underline Distance 32 Text Height 34 Text Width 36 Reserved 38 Number of Contours (Characters) 40 Pitch Extended 42 Cap Height 44 - 47 Font Number 48 - 63 Font Name 64 Scale Factor 66 Mast
Revision C 16/01/96 < TrueType Scalable Bound font > Byte 15 (MSB) 8 7 (LSB) 0 0 Font Descriptor Size (>72) 2 Descriptor Format (15) Font Type 4 Style MSB Reserved 6 Base Line Position 8 Cell Width 10 Cell Height 12 Orientation Spacing 14 Symbol Set 16 Pitch (Default HMI) 18 Height 20 x-Height 22 Width Type Style LSB 24 Stroke Weight Typeface LSB 26 Typeface MSB Serif Style 28 Quality Placement 30 Underline Distance Underline Thickness 32 Text Height 34 Text Width 36 First Code 38 Last Code / Number of char
Revision C 16/01/96 • Font type (UB) - specifies type of symbol set. 0 Bound font. A 7-bit font with character codes 20H to 7FH acceptable. 1 Bound font. A 8-bit font with character codes 20H to 7FH and 80H to FFH acceptable. 2 Bound font. 8-bit all character codes are printable. However, 00H, 07H to 0FH and 1BH are printable only when the data is defined as transparent print data. 10 Unbound font. Character codes corresponding to MSL numbers are acceptable. 11 Unbound font.
Revision C 16/01/96 • Cell width (UI) - ignored by this printer. the width in dots of the character cell. This can be from 1 to 65535. • Cell height (UI) - ignored by this printer. the height in dots of the character cell. This can be from 1 to 65535. • Orientation (UB) - 0(portrait), 1(landscape), 2(reverse portrait) or 3(reverse landscape). Ignored by this printer. • Spacing (B) - the type of spacing, 0 (fixed pitch) or 1 (proportional spacing).
Revision C 16/01/96 • Pitch (UI) - This value defines the default spacing for each point size in 1/4 dots. Combined with Pitch Extended to specify the pitch of the font in 1/1024 dots. This is available for fixed pitch font characters including the space character, and the space character of proportional spacing fonts. For example, in case of a 17 cpi font (at 600 dpi), 1 inch 17 chara. 600 dpi 1 inch 4 1 = 141.17646 the value of Pitch (UI) should be 141. The remainder of 0.
Revision C 16/01/96 • Stroke weight (SB) - valid values are from –7 to +7. 0 denotes the normal (Roman) stroke width, –7 is the lightest possible stroke and 7 is the boldest. Value –7 –6 –5 –4 –3 –2 –1 0 1 2 3 4 5 6 7 Stroke Weight Ultra thin Extra thin Thin Extra light Light Demi light Semi light Medium, Book, or Text Semi bold Demi bold Bold Extra bold Black Extra black Ultra black • Typeface family (UB) – the typeface.
Revision C 16/01/96 • Quality (UB) - ignored by this HL Series printer. This byte specifies the fonts quality according to the following table. Value 0 1 2 Quality Data processing Near letter quality Letter quality • Placement (SB) - ignored by this HL Series printer. This byte specifies the placement of characters relative to the baseline according to the following table.
Revision C 16/01/96 • Cap height data (UI) - ignored by this HL Series printer. This word specifies for the font the distance between the baseline and the top of an unaccented capital letter (for example, ‘H’), as a percentage of the font’s em rule, ‘—’. • Font number (ULI) - ignored by this HL Series printer. This 4-byte field specifies the number assigned to the font by the vending company. The number is stored as a hexadecimal value in the lower three bytes, bytes 44, 45 and 46.
Revision C 16/01/96 • Global Intellifont Data Size (UI) - indicates the size of the global Intellifont data block. • Global Intellifont Data - includes the global intellifont data. • Character Complement (Array of UB) - identifies the symbol set compatibility for unbound fonts used with the Character Requirement flag in the symbol set descriptor. MSL Symbol Index Bit Field 58 - 63 55 - 57 52 - 54 50 - 51 48 - 49 3 - 47 0-2 Designated Use Reserved for Latin fonts. Reserved for Cyrillic fonts.
Revision C 16/01/96 Unicode Symbol Index Character Complement bits Bit Field 31 30 29 28 27 26 25 24 23 22 Designated Use 0 if font is compatible with 7-bit ASCII; otherwise set to 1. 0 if font is compatible with ISO 8859/1 Latin 1 (West Europe) character sets; otherwise set to 1. 0 if font is compatible with ISO 8859/2 Latin 2 (East Europe) character sets; otherwise set to 1. 0 if font is compatible with Latin 5 (Turkish) character sets (e.g., ISO 8859/9 Latin 5,PC-Turkish); otherwise set to 1.
Revision C 16/01/96 *Segment Identifier (UI) Each item in the data segment part has an identification number. Value 17219 17232 18260 20545 22618 65535 Mnemonic CC CP GT PA XW Data Segment Character Complement Copyright Global TrueType Data Panose Description X windows font name Null Segment *Segment Size (UI) - indicates the size of each item in the data segment.
Revision C 16/01/96 [Bitmapped font ] Byte Data 0 - 1 Format 2 - 3 Descriptor size 4 - 5 Orientation 6 - 7 Left offset 8 - 9 Top offset 10 - 11 Character width 12 - 13 Character height 14 - 15 Delta X 16 - Raster Character Data Continuation Class Reserved < Bitmapped continuation data > Byte 0-1 2 Format Raster Character Data Data Continuation • The bytes which follow the header are the raster data that make up the character. • Attributes are in one of four numerical formats.
Revision C 16/01/96 • Character height (UI) - the height of the download character in grid dots. This can be in the range 1 to 16384. • Delta X (UI) - the horizontal distance from the bottom left hand corner of the character’s grid that the cursor is moved after the character is printed. The attribute is specified in units of 1/1200" and can be in the range 32768 to 32767.
Revision C 16/01/96 • Class (UB) . indicates the character format. Value 1 2 3 4 15 Class Bitmap Compressed Bitmap Contour (Intellifont scalable) Compound Contour (Intellifont scalable) TrueType Scalable • Contour data size (UI) - specifies the contour data size. • Metric Data offset (SI) - relative to the address of the coutour data size field. • Contour Tree Offset (SI) -relative to the address of the coutour data size field. • XY Data Offset (SI) -relative to the address of the contour data size field.
Revision C 16/01/96 • The character data follows these header bytes. Characters are represented as raster data and the data bytes are used to build up an image of the character from left to right and from top to bottom, according to the character width and height settings. • Format (UB) - 15 specifies TrueType font. • Continuation (B) - specifies whether the character data represents a new character (0) or is a continuation of the character described by the previous character descriptor block (non-zero).
Revision C 16/01/96 Portrait character Paper motion Raster scan Top offset = 22 dots Baseline Character height = 31 dots Cursor position after character has been printed Character reference point Left offset = 2 dots Character width = 26 dots Delta X = 30 dots Chapter 2 "PCL" - 66
Revision C 16/01/96 Landscape character Paper motion 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" - 67
Revision C 16/01/96 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.
Revision C 16/01/96 Set source transparency Esc*v#N (27)(42)(118)#(78) <1Bh><2Ah><76h>#<4Eh> • This command sets the source image transparency. • # is either 0 or 1. Set # to 0 to select transparent mode, and to 1 to specify opaque mode. • Transparent mode means that parts of the destination image will be visible through the white space areas of the source image when the source image has been printed on top of the destination image.
Revision C 16/01/96 Set pattern transparency Esc*v#O (27)(42)(118)#(79) <1Bh><2Ah><76h>#<4Fh> • This command sets the pattern transparency. • # is either 0 or 1. Set # to 0 to select transparent mode, and to 1 to specify opaque mode. • Transparent mode means that parts of the destination image will be visible through the patterned areas of the source image when the source image has been printed on top of the destination image.
Revision C 16/01/96 Set area fill identity Esc*c#G (27)(42)(99)#(71) <1Bh><2Ah><63h>#<47h> • This command sets the pattern ID of a shading tone, a fill pattern, or a user-defined pattern for subsequent selection with the Set Pattern Type command. • # 1 ~ 100 specify the percentage of a gray scale. • # 1 ~ 6 select a fill pattern. • # 1 ~ 32767 select a user-defined pattern. • You can specify a gray scale tone from 1 to 100.
Revision C 16/01/96 < For model HL-10h, HL-1260 and HL-660 > MSB 0 - 1 Format (20) Continuation (0) 2 - 3 Pixel Encoding (1) Reserved (0) 4 - 5 Height in Pixels 6 - 7 Width in Pixels 8 - 9 X resolution 10 - 11 Y resolution 12 - Pattern Image LSB • A pattern which is defined at 600 dpi cannot be converted one at 300 dpi. • Format - set to 0 or 20. • Continuation - set to 0. • Pixel Encoding - set to 1. • Height in Pixels - specifies the pattern height by the number of rows.
Revision C 16/01/96 Set pattern type Esc*v#T (27)(42)(118)#(84) <1Bh><2Ah><76h>#<54h> • This command selects the fill pattern (black, white, gray scale or cross-hatch pattern) for use with subsequent graphics operations. • # is in the range 0 to 4 or 130. • # = 0 selects solid black as the fill pattern. • # = 1 selects white as the fill pattern (all source images will be completely white). • # = 2 selects one of eight gray scales.
Revision C 16/01/96 Pattern example 10 WIDTH "LPT1:", 255 20 ESC$ = CHR$(27) 30 REM --- RESET PRINTER --40 LPRINT ESC$; "E"; 50 REM --- SET SOURCE=TRANSPARENT --60 REM --- SET PATTERN=OPAQUE --70 LPRINT ESC$; "*v0n1O"; 80 REM --- BACKGROUND --90 LPRINT ESC$; "*c80G"; ESC$; "*v2T"; 100 LPRINT ESC$; "*p100x100Y"; ESC$; "*c1000a300b2P"; 110 REM --- PATTERN --120 LPRINT ESC$; "*p150x300Y"; 130 LPRINT ESC$; "(s1p48v0s0b4101T"; 140 LPRINT ESC$; "*c1G"; ESC$; "*v3T"; : LPRINT "P"; 150 LPRINT ESC$; "*c2G"; ESC$; "*
Revision C 16/01/96 Set rectangle height Esc*c#B (27)(42)(99)#(66) <1Bh><2Ah><63h>#<42h> • This command sets the height of the rectangle to be printed in dots. • # is a number of dots. Esc*c#V (27)(42)(99)#(86) <1Bh><2Ah><63h>#<56h> • This command sets the height of the rectangle to be printed in decipoints. • # is a number of decipoints. Draw filled rectangle Esc*c#P (27)(42)(99)#(80) <1Bh><2Ah><63h>#<50h> • This command fills a rectangular area with the specified shading option.
Revision C 16/01/96 Gray scale example 10 ESC$ = CHR$(27) 20 WIDTH "LPT1:", 255 30 REM --- DRAW A PATTERN USING 64 GRAY SCALES --40 X = 50: Y = 100: XL=50 :YL=200 50 FOR GRAY = 0 TO 100 STEP 2 60 GOSUB 220 70 X=GRAY*10+50 :XL=X-XL 80 GOSUB 260 90 XL=X 100 NEXT GRAY 110 REM --- DRAW A PATTERN USING 8 GRAY SCALES --120 Y=400 130 FOR GRAY = 0 TO 100 STEP 2 140 GOSUB 220 150 X=GRAY*10+50 :XL=X-XL 160 GOSUB 320 170 XL=X 180 NEXT GRAY 190 REM --- PAPER EJECT --200 LPRINT CHR$(12) 210 END 220 REM --- SET THE CURSO
Revision C 16/01/96 Raster graphics Positioning the cursor Position the cursor using the commands described in the chapter entitled “The Page”, using dots, decipoints or rows and columns as coordinate units. Set raster resolution Esc*t#R (27)(42)(116)#(82) <1Bh><2Ah><74h>#<52h> • This command sets the raster image resolution in dots per inch. • # is 75, 100, 150, 200, 300 or 600. • The lower the resolution you specify, the less printer memory your raster image will occupy.
Revision C 16/01/96 • The default value of # is 3. X Y (X1,Y1) = Cursor position (X1, Y1) #=0 Y X (X1, Y1) #=0 Landscape Portrait Y X (X1, Y1) Y X (X1, Y1) #=3 #=3 Landscape Portrait Set raster area height Esc*r#T (27)(42)(114)#(84) <1Bh><2Ah><72h>#<54h> • This command sets the height of the raster image to be printed. • # is the number of raster rows.
Revision C 16/01/96 Set raster y-offset Esc*b#Y (27)(42)(98)#(89) <1Bh><2Ah><62h>#<59h> • This command sets the offset (number of blank rows to be skipped) for the raster image to be printed. • # is the number of rows that are left blank at the top of the image. • # must be in the range 0-32767 • This command is only effective in raster graphics mode, that is, after a Start Raster Graphics mode command.
Revision C 16/01/96 • # = 5 indicates that adaptive compression is to be used. This compression compresses multiple rows (block) into one transfer graphics command. Most of other compression method compresses only one row to one transfer graphics command. One transfer graphic command (ESC *b##W) can contain only up to 32,767 bytes. As mode 5 compression compresses multiple rows, the amount of transferred data may become large.
Revision C 16/01/96 Command byte for mode 9 compression (non repeated replacement data) 7 6 5 4 3 2 1 0 0 Offset count Replacement count-1 Control bit If the control bit is 0, replacement data is not repeated data. Bits 6 to 3 contain the offset count. This field value is from 0 to 15. If this value is 15, the next byte of the control bytes is an optional offset count. The value of this optional offset count byte is from 0 to 255.
Revision C 16/01/96 If the control bit is 1, replacement data is repeated data. Bits 6 to 5 contain the offset count and bits 4 to 0 contain the 'replacement count(repeat count) - 2'. If bit 6 and bit 5 are '1', then an optional offset byte follows the control byte. If the value of this optional offset byte is 255, another (second) optional offset byte follows the first optional offset byte. The addition of the offset count in the control byte and any optional offset bytes gives the total offset count.
Revision C 16/01/96 • # = 1152 indicates that CCITT G3/G4 data compression is to be used. This format is popular in optical document storage area as this compression is effective to store black and white type pictures. As G3/G4 format does not have picture size/resolution information, the printer requires a header at the beginning of the picture data. The header size is 94 Byte. Bothe the header and the picture data are transferred by the ESC*b###W(###=data length) command.
Revision C 16/01/96 • # = 1024 indicates the TIFF format. This is valid only for 600 dpi data. The raster graphics data is transferred with the ESC*b###W (### = data length) command. The TIFF file follows this mode set command. This printer does not support LZW compression. Pages that contain TIFF data are printed in the gray scale mode. The TIFF data contains the header, tag, and print data. This mode supports TIFF Version 5.0 file format.
Revision C 16/01/96 Send raster data Esc*b#W (27)(42)(98)#(87) <1Bh><2Ah><62h>#<57h> • This command sends a single row of the raster image to the printer for printing. • # signifies the number of bytes to be sent. • If more data is transmitted than can be fitted onto one row of the specified raster area, the excess data will be ignored.
Revision C 16/01/96 Raster graphics example 10 REM ***** A EXAMPLE OF RASTER GRAPHICS ***** 20 ESC$=CHR$(27) 30 WIDTH "LPT1:",255 40 REM --- SET GRAPHICS RESOLUTION TO 300 DPI --50 LPRINT ESC$+"*t300R"; 60 REM --- START RASTER GRAPHICS --70 LPRINT ESC$+"*r1A"; 80 REM --- TRANSFER RASTER GRAPHICS --90 FOR I=1 TO 28 100 REM --- TRANSFER 1 LINE OF DOTS (4 byte = line) --110 LPRINT ESC$+"*b4W"; 120 FOR J=1 TO 4 130 READ A$ 140 LPRINT CHR$(VAL("&H"+A$)); 150 NEXT J 160 NEXT I 170 REM --- END RASTER GRAPHICS --18
Revision C 16/01/96 Vector graphics For large-scale graphic images it is more efficient to use vector graphics. In Laserjet 4 emulation mode you can set up the page area on which to print vector graphics images. The vector graphics capabilities of this HL Series printer working in HP-GL/2 mode are described in the HP-GL/2 section of this manual. Enter HP-GL/2 mode Esc%#B (27)(37)#(66) <1Bh><25h>#<42h> • This command enters HP-GL/2 graphics mode.
Revision C 16/01/96 Specify vertical plot size Esc*c#L (27)(42)(99)#(76) <1Bh><2Ah><63h>#<4Ch> • This command specifies the height in inches of an imported image. • # is the height of the image in inches. • # can be in the range 0 to 32767 and can have up to four places of decimals. • This command is only applicable to existing graphic images which are being imported from an application. • The imported graphic will be scaled so that its height matches that of the HP-GL/2 graphics window.
Revision C 16/01/96 Macros The purpose of a macro A macro is a sequence of commands that you wish to execute. You can specify the command sequence and download it to the printer after which you can execute it with a single command. For example, you might wish to draw a raster image at the top of each page you print. Rather than sending the same sequence of commands every time you print a new page, it is more efficient to define a macro to draw the image and store the macro in the printer’s memory.
Revision C 16/01/96 End macro definition Esc&f1X (27)(38)(102)(49)(89) <1Bh><26h><66h><31h><59h> • This command terminates the macro definition. Running a macro Macros can be invoked in three different ways: they can be executed, called or enabled for overlay. When a macro is 'executed' it uses the current modified print environment. Any changes it makes to the environment are permanent.
Revision C 16/01/96 Handling macros Delete all macros Esc&f6X (27)(38)(102)(54)(89) <1Bh><26h><66h><36h><59h> • This command deletes all macros from the printer’s memory. Delete all temporary macros Esc&f7X (27)(38)(102)(55)(89) <1Bh><26h><66h><37h><59h> • 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.
Revision C 16/01/96 Make macro permanent Esc&f10X (27)(38)(102)(49)(48)(89) <1Bh><26h><66h><31h><30h><59h> • This command makes the macro whose ID number was specified most recently permanent (that is, it will be retained if the printer is reset).
Revision C 16/01/96 Execute data The data saved in the PCMCIA card by using Printer's control panel "SAVE DATA" function can be printed by the following command. It is also printed by the operation of Printer control panel. EscCR!#E (27)(13)(33)#(69) <1Bh><0Dh><21h>#<45h> • # indicates the DATA ID. • Execute the data which is saved in the flash memory card or Hard Disk card. • The printer uses the current environment when this command is executed.
Revision C 16/01/96 AppleTalk Configuration Esc&b#W[key][value] (27)(38)(98)#(87)[Key](32)[value] <1Bh><26h><62h>#<57h>[Key]<20h>[value] • # value can be from 0 to 32767. • # stands for number of bytes in the data which is followed this command. • [key] should be [RENAME], [JOB] or [TYPE]. • If the key is [RENAME], this command allows the printer to change the name field of AppleTalk name binding protocol. &b#WRENAMEprintername printername should be specified with 1 to 31 characters.
Revision C 16/01/96 Status readback Introduction Status readback features are explained in this section. The printer sends a status response message after receiving a request for its status by these commands. You can get the information as shown below from the printer.
Revision C 16/01/96 Status Response 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. The printer clears the status responses when Printer resolution or Page protection or Emulation language is changed. The printer processes status requests and their related response in the order in which the printer receives them.
Revision C 16/01/96 Set Status Readback Location Type ESC*s#T (27)(42)(115)#(84) <1Bh><2Ah><73h>#<54h> This command determines the status location type to the value of #. The location type is used in association with the location unit in order to specify an entity location for a status request. • #=0 specifies an invalid location. When the printer receives an Inquire Entity Command, an error response is generated. This is the default value. When you execute a printer reset, this value is reset to 0.
Revision C 16/01/96 Inquire Status Readback Entity ESC*s#I (27)(42)(115)#(73) <1Bh><2Ah><73h>#<49h> • Specifies the entity type and makes the printer produce a status response for the entity identified in the status readback location (type and unit). Value 0 1 2 3 4 entity type Font Macro User-defined Pattern Symbol set Font extended Entity Status Response The status response for an inquire status readback entity command differs according to the type of the requested entity.
Revision C 16/01/96 Bitmap Fonts With regard to bitmap fonts, the printer returns the "SELECT=" line. This specifies the font selection features. For instance, the printer returns the printer's internal, bitmap, Roman-8 LetterGothic font as follows. PCL INFO FONTS SELECT"=(8U(s0p16.66h8.5v0s0b130T" Bound Scalable Fonts With regard to bound scalable fonts, an underscore( "...s1p__v0s...,") in the "SELECT=" line means it is a bound scalable font. Also, the related features are indicated.
Revision C 16/01/96 Location Type 1 (currently selected) Font With regard to 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. The printer returns the "LOCTYPE=" and "LOCUNIT=" after the "SELECT=" line for every font. "SELECT=" line changes for bound and unbound scalable fonts. For all scalable fonts, the actual size (height or pitch ) is indicated instead of the underscores.
Revision C 16/01/96 Font Extended Response The font extended response supplies a method to return the name and internal ID number of the font as well as the "SELECT=" line. It is the same as a font status response since "SELECT=", "SYMBOLSETS=", "LOCTYPE=", and "LOCUNIT=" are returned in the same way. With regard to a font extended request, it returns the two additional keywords, "DEFID=" and "NAME=" as follows.
Revision C 16/01/96 Macro Response The status response for macros indicates all of the macro IDs ("IDLIST=") for the macros in a particular location. Status location type 1( selected at present ) is an ineffective location for macros and an error is returned. A macro status response may be shown as follows.
Revision C 16/01/96 Symbol Set 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. PCL INFO SYMBOLSETS IDLIST="0U, 2K, 8M, 11U" Status location type 1 (selected at present) is an incorrect location for unbound font symbol sets and returns an error.
Revision C 16/01/96 Free Space Command ESC*s1M (27)(42)(115)(48)(77) <1Bh><2Ah><73h><31h><4Dh> The amount of memory which is free for use is returned by this command. Two values are returned: the total amount of free memory and the largest block of free memory. When you send a value other than 1, an error ( "ERROR = INVALID UNIT" )is returned.
Revision C 16/01/96 Flush All Pages Command ESC&r#F (27)(38)(114)#(70) <1Bh><26h><72h>#<46h> This command suspends accepting data from a PC and clears the user memory. • #=0 suspends receiving data and ejects all complete data. Incompleted data remains in the printers memory. • #=1 suspends receiving data and ejects all data remaining in the printer memory. Echo Command ESC*s#X (27)(42)(115)#(88) <1Bh><2Ah><73h>#<58h> This command is used to distinguish each request and response.
Revision C 16/01/96 INDEX Escape, 6 Exit current emulation mode, 14 A adaptive compression, 80 anchor point, 87 AppleTalk Configuration, 94 APT, 84 area fill, 71 B Backspace, 6 binding, 12 Bitmap fonts, 32 bold, 44 Bound fonts, 33 F factory default environment, 9 factory default settings, 13 fill pattern, 73 fixed spacing, 41 fixed underlining, 45 floating underlining, 45 Flush All Pages Command, 105 font descriptor, 47 Font ID, 46 Font orientation, 45 Font Response (Status Readback), 98 fonts, 32 Form
Revision C 16/01/96 Location Unit - Status Readback, 97 Logical page, 15 lower cassette, 11 M macro execution, 90 Macro ID, 89 macro overlay environment, 9 Macro Response (Status Readback), 102 Macros, 89 manual paper feed, 11 measurement, 18 Memory status, 95 MIO Video I/O port control, 94 Mode 9 compression, 80 modified print environment, 9 multi-purpose tray, 11 O Operations on downloaded fonts, 46 orientation, 30 orientation - raster image, 77 Scaling of scalable fonts, 43 secondary font, 6 Selecting
Revision C 16/01/96 W Y width - raster area, 78 y-offset (raster), 79 Chapter 2 "PCL" - 3
Revision C 16/01/96 Chapter 3 PJL Printer Job Language Chapter 3 "PJL" - 1
Revision C 16/01/96 TABLE OF CONTENTS TABLE OF CONTENTS ......................................................................................................................................... 2 1. INTRODUCTION ................................................................................................................................................ 4 1.1 ABOUT PJL...........................................................................................................................................
Revision C 16/01/96 7. STATUS READBACK COMMANDS................................................................................................................33 7.1. INTRODUCTION ...........................................................................................................................................33 Synchronization with the printer...............................................................................................................33 Basic Format of Status Readback Responses ..
Revision C 16/01/96 1. INTRODUCTION 1.1 About PJL Printer Job Language(PJL) provides job status control by sending the printer status information to the application. PJL can be a valuable tool for the single-user environment, but is a much more useful tool for the networking / sharing environment. PJL Emulations ( BR-Script, PCL, IBM, EPSON etc... ) Printer PJL allows job-level control that cannot be accomplished with PCL, Postscript or other emulations. PJL includes five major features.
Revision C 16/01/96 1.2. In case of using PJL with non-PJL Printer Our resent printer models HL-10h, HL-600 series, HL-660 and HL-1260 support PJL, however, earlier models do not . If the PJL commands are sent to a non-PJL printer, the printer acts as follows; 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 (E) is received.
Revision C 16/01/96 1.3. PJL Syntax and Format Syntax : @PJL ENTER LANGUAGE = emulation [] @PJL ENTER LANGUAGE @PJL ENTER LANGUAGE [ ] < .. > < HT > < LF > < CR > < SP > < ESC > < FF > < WS > < words > PJL Prefix Command name Option name Enter this portion verbatim The words in brackets [ ... ] indicates optional parameters. You should not type the brackets themselves in the command. The words in < ..
Revision C 16/01/96 1.4. Variables PJL can use alphanumeric, numeric variables and strings. Alphanumeric variables The first character must always be a character in any combination of letters and digits Letters consists of the uppercase characters (ASCII 65-90) and lowercase characters (ASCII 97-122). Digits consists of the numbers 0-9 (ASCII 48-57).
Revision C 16/01/96 2. 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 PCL Job PJL Code Postscript Job PJL Code 2.2. PJL Job Requirement Some conditions are required in order for PJL commands to work correctly.
Revision C 16/01/96 3 COMMAND GROUP Command Group Command Command Description Kernel Commands Exits current printer language and returns control to PJL. Orders the printer to execute the specified operation. Moves to the SUPERUSER mode.
Revision C 16/01/96 4. KERNEL COMMANDS 4.1. Introduction This section explains three PJL command, UEL, ENTER and COMMENT. These commands provide the minimum set of tools to operate job control. UEL command (Universal Exit Command) ENTER command COMMENT command 4.2. UEL Command The Universal Exit Command causes the printer to exit the current printer language and sets the printer into PJL mode. Syntax : %-12345X • The UEL command is a data stream sequence.
Revision C 16/01/96 4.3. EXECUTE command The EXECUTE command orders the printer to execute the specified operation. This command is supported only by HL-660 series printer. Syntax : @PJL ENTER operation [] Parameters : • operation SHUTDOWN : DEMOPAGE : RESIFONT : PERMFONT: PRTCONFIG: The printer goes into the sleep mode. The printer prints the demo page. The printer prints the list of resident fonts. The printer prints the list of permanent download fonts.
Revision C 16/01/96 Example : %-12345X@PJL @PJL ENTER LANGUAGE = PCL E.......PCL JOB........E %-12345X @PJL COMMENT Start of Postscript job @PJL ENTER LANGUAGE = POSTSCRIPT %!PS-ADOBE......Postscript JOB.....^D %-12345X @PJL COMMENT End of Postscript job %-12345X 4.5. COMMENT command The COMMENT command is used to add an information line, such as an explanation for the PJL command.
Revision C 16/01/96 4.6. Printer Language Switching There are three methods of switching printer languages. Explicit Switching Explicit switching means the method which uses the PJL ENTER LANGUAGE command to switch to the desired emulation. As the desired emulation is explicitly specified, this method is the most reliable. 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.
Revision C 16/01/96 5. JOB SEPARATION COMMANDS 5.1. Introduction This section explains two PJL command, JOB and EOJ. These commands are used to determine the boundaries of a job. When these commands are used with status readback, the printer also can send status information at the beginning and end of each job. 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.
Revision C 16/01/96 • If job status is available and a JOB command is received, the printer returns a job status message. • NOTE: Resetting the page count according to unsolicited page status information does not affect the current page. Example : %-12345X@PJL @PJL JOB NAME = "KKK data from spooler" %-12345X@PJL @PJL COMMENT Postscript Job @PJL JOB NAME = "YYY data from spooler 2" @PJL ENTER LANGUAGE = POSTSCRIPT %!PS.......PS JOB........
Revision C 16/01/96 Example : %-12345X@PJL @PJL JOB NAME = "KKK data from spooler" %-12345X@PJL @PJL COMMENT Postscript Job @PJL JOB NAME = "YYY data from spooler 2" @PJL ENTER LANGUAGE = POSTSCRIPT %!PS.......PS JOB........^D %-12345X@PJL @PJL EOJ NAME = "End of YYY data" %-12345X@PJL @PJL ENTER LANGUAGE = PCL E.........PCL JOB........
Revision C 16/01/96 6. ENVIRONMENT COMMANDS 6.1. Introduction The HL-10h, HL-1260 and HL-660 printers have many features which you are able to set using printer commands or through the printer control panel (remote printer console program). A combination of PJL commands and printer emulation commands allows you to set printer features to the desired state.
Revision C 16/01/96 The diagram below illustrates how the environments interact and how the modified print environment is affected. FACTORY DEFAULT ENVIRONMENT @PJL INITIALIZE USER DEFAULT ENVIRONMENT CONTROL PANEL OR @PJL DEFAULT @PJL RESET PJL CURRENT ENVIRONMENT @PJL SET LANGUAGE RESET, @PJL ENTER, OR ANY LANGUAGE SWITCH MODIFIED PRINT ENVIRONMENT PJL reset conditions The result of PJL reset conditions is different from that of a printer language reset (for example, ESC E).
Revision C 16/01/96 Remember about environments 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. 2. The current feature settings (Modified Print Environment) become the same as the PJL Current Environment when the printer enters a printer language.
Revision C 16/01/96 6.2. Variables Variables for HL-10h 1) 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. Variables COPIES PAPER ORIENTATION FORMLINES MANUALFEED RET Description Number of uncollated copies for each page of the job. Paper size. INTRAY1SIZE (Read Only) Page orientation. Number of lines per page. Manual feed mode.
Revision C 16/01/96 2)PCL-Specific Variables The following values are PCL (HP LaserJet 4 emulation) specific and can be set and requested using PJL. These variables must be set using LPARM : PCL option. Variables FONTSOURCE FONTNUMBER PITCH PTSIZE SYMSET Description The valid values for FONTSOURCE are I (Internal Fonts) C(Cartridge Fonts) C1 (Card Fonts) S (Permanent Soft Fonts) If the specified value becomes invalid, it is automatically changed to the default value. Font number.
Revision C 16/01/96 Variables for HL-660 1) 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.
Revision C 16/01/96 2) PCL-Specific Variables The following values are PCL (HP LaserJet 4 emulation) specific and can be set and requested using PJL. These variables must be set using LPARM : PCL option. Variables PAPER Description Set the paper size. ORIENTATION LEFTMARIN RIGHTMARGIN TOPMARGIN BOTMARGIN FORMLINES FONTSOURCE Set the orientation. Set the left margin. Set the right margin Set the top margin Set the bottom margin. Set the number of lines.
Revision C 16/01/96 3) 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 LPARM : EPSON option. Variables PAPER Description Set the paper size. ORIENTATION LEFTMARIN RIGHTMARGIN TOPMARGIN BOTMARGIN FORMLINES FONTNUMBER PITCH Set the orientation. Set the left margin Set the right margin Set the top margin Set the bottom margin. Set the number of lines.
Revision C 16/01/96 4) 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 LPARM : IBM option. Variables PAPER Description Set the paper size. ORIENTATION LEFTMARIN RIGHTMARGIN TOPMARGIN BOTMARGIN FORMLINES FONTNUMBER PITCH Set the orientation. Set the left margin Set the right margin Set the top margin Set the bottom margin. Set the number of lines.
Revision C 16/01/96 Variables for HL-1260 1) 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.
Revision C 16/01/96 Variables DUPLEX BINDING FIRSTPRINT DENSITY LANG CPLOCK PASSWORD ECONOMODE ECONOLEVEL MPTRAY AUTOSLEEP TIMEOUTSLEEP MEDIATYPE HUMIDITY Description Duplex mode Returns the setting of binding edge for duplex printing. First print mode. This makes the first print speed faster by moving the polygon motor at Power On. Setting to MIDDLE is effective only the first page after the Power ON. Setting to HIGH makes scanner moving everytime. Returns the printing density level from 1 to 15.
Revision C 16/01/96 2)PCL-Specific Variables The following values are PCL (HP LaserJet 4 emulation) specific and can be set and requested using PJL. These variables must be set using LPARM : PCL option. Variables FONTSOURCE FONTNUMBER PITCH PTSIZE SYMSET Description The valid values for FONTSOURCE are I (Internal Fonts) C (Cartridge Fonts) C1 (Card Fonts) S (Permanent Soft Fonts) If the specified value becomes invalid, it is automatically changed to the default value. Font number.
Revision C 16/01/96 6.3. Default command The DEFAULT command changes the User-Default environment which is stored in NV-RAM and it is activated following a PJL reset condition. The current print environment is not affected by the DEFAULT command, but when a PJL reset condition happens, this command takes effect. This doesn't change the current print environment, but is activated when a PJL reset condition happens.
Revision C 16/01/96 6.4. Initialize command The INITIALIZE command resets the PJL Current Environment and User Default Environment variables to the Factory Default values. I/O configuration values and the unsolicited status settings are not affected by this command.
Revision C 16/01/96 6.5. Reset command The PJL RESET command resets the PJL Current Environment variables to the User Default values. Use this command at the end of any PJL jobs which use the PJL SET command.
Revision C 16/01/96 6.6. Set command The SET command enables you to change the value of PJL Current Environment variables during a PJL job, or until a PJL reset condition resets the default values. Use this command to make a job-specific environment. Syntax: @PJL SET [LPARM : personality] variable = value [] • LPARM : Personality This optional parameter is used to set personality(emulation) -specific environment variables.
Revision C 16/01/96 7. STATUS READBACK COMMANDS 7.1. Introduction Applications can request, by sending a PJL command to the printer, information such as configuration and status of the printer. The printer can be programmed to send back this information when requested, and also can send back voluntarily unsolicited information of its status such as cover open, off-line state, toner empty, displayed prompt message on the LCD, and other necessary information.
Revision C 16/01/96 7.2. Inquire Command The INQUIRE command is used in order to get the information of the current value of a specified variable in the PJL DEFAULT setting. (PJL environment). It is possible to get the information of variables the value of which PJL can not change (Read-only). This INQUIRE command can request only one variable at a time.
Revision C 16/01/96 Examples : Example 1 : This example requests the current print environment settings for RET, PAPER, and ORIENTATION : %-12345X@PJL @PJL COMMENT ***Requesting*** @PJL COMMENT about PJL Default Settings** @PJL ECHO 19:15:00 02-20-1993 @PJL INQUIRE RET @PJL INQUIRE PAPER @PJL INQUIRE ORIENTATION %-12345X The printer may return, for example, the following response against the above INQUIRE commands : @PJL ECHO 19:15:00
Revision C 16/01/96 7.3. DINQUIRE Command The DINQUIRE command is used so as to get the information of the default value of a specific variable in the PJL Environment. (User Default Settings). It is also possible to get the value from variables which PJL can not change (Read-only). The returned value of User Default Settings is identical to the Control Panel Setting. This DINQUIRE command can request only one variable at a time.
Revision C 16/01/96 Examples : Example 1 : This example requests the current print environment settings for RET, PAPER, and ORIENTATION : %-12345X@PJL @PJL COMMENT ***Requesting*** @PJL COMMENT about User Default Settings** @PJL ECHO 20:30:00 02-20-1993 @PJL DINQUIRE RET @PJL DINQUIRE PAPER @PJL DINQUIRE ORIENTATION %-12345X The printer may return, for example, the following response against the above DINQUIRE commands: @PJL ECHO 20:30:00
Revision C 16/01/96 7.4. ECHO Command The ECHO command requests the printer to send back a specified message, in order to ensure that the printer is ready for communication with the application and that the received answer from the printer is what the application requested. The application must send this command before starting PJL communication.
Revision C 16/01/96 7.5. INFO Command The INFO command requests the printer to send back information on a specific category of the printer such as 'ID' (model name), 'CONFIG' (printer configuration), 'MEMORY' (available printer memory), 'STATUS' (current printer status), 'VARIABLES' (list of setting variables), 'USTATUS' (list of unsolicited status variables), 'PAGECOUNT' (total printing page number of the printer), 'PHYSICALMEMORY' (Physical memory size of printer) as shown in the following table.
Revision C 16/01/96 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.
Revision C 16/01/96 Parameters : Parameter feature Range of Characters alphabetical letters (ASCII 65-90 or 97122), numbers (ASCII 48-57) * Beginning with a letter value numbers feature information alphabetical letters (ASCII 65-90 or 97122), numbers (ASCII 48-57) * separated from others by spaces alphabetical letters (ASCII 65-90 or 97122), numbers (ASCII 48-57) alphabetical letters (ASCII 65-90 or 97122), numbers (ASCII 48-57) returned option attribute Description Name of an item of the printer co
Revision C 16/01/96 LANGUAGES [5 EMULATED] PCL POSTSCRIPT IBM EPSON HPGL USTATUS [4 ENUMERATED] DEVICE JOB PAGE TIMED FONT CARTRIDGE SLOTS [2 ENUMERATED] CARTRIDGE CARTRIDGE1 MEMORY=2097152 DISPLAY LINES=1 DISPLAY CHARACTER SIZE=16 In this example, IN TRAYS [2 ENUMERATED] indicates that there are two options in IN TRAYS (paper sources), and MEMORY=2097152 indicates the RAM siz
Revision C 16/01/96 STATUS Category The application can use @PJL INFO STATUS command to check the printer on-line/off-line status, the current message on the LCD, and a status code. The ONLINE=TRUE indicates the printer is online, while the ONLINE=FALSE shows it is off-line. Refer to the list of the PJL Status Codes in the Appendix for the meanings of the returned status codes.
Revision C 16/01/96 A4 EXECUTIVE MONARCH COM10 C5 DL B5 ORIENTATION=PORTRAIT [2 ENUMERATED] PORTRAIT LANDSCAPE FORMLINES=60 [2 RANGE] 5 128 MANUALFEED=OFF [2 ENUMERATED] OFF ON RET=MEDIUM [4 ENUMERATED] OFF LIGHT MEDIUM DARK PAGEPROTECT=OFF [4 ENUMERATED] OFF LETTER LEGAL A4 RESOLUTION=600 [2 ENUMERATED]
Revision C 16/01/96 B5 LPARM:PCL FONTSOURCE=I [4 EMULATED] I C C1 S LPARM:PCL FONTNUMBER=0 [2 RANGE] 0 70 LPARM:PCL PITCH=10.00 [2 RANGE] 0.44 99.99 LPARM:PCL PTSIZE=12.00 [2 RANGE] 4.00 999.75 LPARM:PCL SYMSET=ROMAN8 [43 ENUMERATED] ROMAN8 ISOL1 ISOL2 .... ....
Revision C 16/01/96 Parameters: Variable DEVICE Value ON VERBOSE OFF JOB ON PAGE OFF ON TIMED OFF 5 to 300 0 Description Makes unsolicited device status valid for any status change Makes unsolicited device status valid for any of PJL parser warning, error, and status change Makes unsolicited device status invalid for any status change Makes unsolicited job status (reporting job start/job end) valid Makes unsolicited job status invalid Makes unsolicited page status (reporting respective page printed
Revision C 16/01/96 7.6. USTATUS Command Sending the USTATUS command makes unsolicited printer status (sending the printer status information to the host computer automatically without being requested for it) valid or invalid. 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.
Revision C 16/01/96 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 11000 - 11999 20000 - 20999 25000 - 25999 27000 - 27999 30000 - 30999 35000 - 25999 40000 - 40999 41000 - 41999 Status Status information such as printer on-line or off-line.
Revision C 16/01/96 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. Example : The application sends the following commands to the printer. %-12345X@PJL @PJL USTATUS JOB = ON @PJL JOB NAME = "JOB 88554" %-12345X@PJL @PJL ENTER LANGUAGE = PCL E . . . PCL Job . . .
Revision C 16/01/96 TIMED Variable The @PJL USTATUS TIMED = XXX command enables the printer to send printer status information to the application at the specified time period. This time interval can be set to 0 and from 5 to 300 seconds. If set to 0, this function is turned off.
Revision C 16/01/96 7.7. USTATUSOFF command The @PJL USTATUSOFF command makes all unsolicited status reporting inactive. Syntax : @PJL USTATUSOFF [] Parameters : • There are no parameters for this command. Example : %-12345X@PJL @PJL USTATUSOFF @PJL USTATUS DEVICE = ON %-12345X 7.8. JOB Recovery You can recover a failed job with the combination of JOB and EOJ commands and the USTATUS PAGE command.
Revision C 16/01/96 8. DEVICE ATTENDANCE COMMANDS 8.1. Introduction You can change display messages on the printer control panel by using PJL. The Operator can be alerted by this feature to what specific actions should be taken. This chapter shows you three device attendance commands. RDYMSG By using this command, you can change the message "00 READY" on the printer control panel into whatever message you like. This command does not change the printer's online/offline state.
Revision C 16/01/96 8.2. RDYMSG Command With the RDYMSG command, you can change the message "00 READY" on the printer control panel into a specified message. The printer will be kept online.
Revision C 16/01/96 8.3. OPMSG Command With the OPMSG command, you can display any message you like on the printer switch panel LCD. The printer will go off-line and stop printing until the operator presses the ON LINE key or resets the printer (Press SHIFT key and RESET key, then press SET key.
Revision C 16/01/96 8.4. STMSG Command With the STMSG command, you can display any message you like on the printer switch panel LCD. The printer will go off-line and stop printing until the operator presses the 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 key.
Revision C 16/01/96 INDEX B Basic Format of Status Readback Responses, 33 M MEMORY Category for INFO command, 43 C COMMENT command, 12 conditions, 8 CONFIG Category for INFO command, 41 Context Switching, 13 D Default command, 29 DEMOPAGE, 11 Device Attendance Commands, 53 Device Variable for USTATUS command, 49 DINQUIRE Command, 37 E ECHO Command, 39 emulation switching, 11 End of Job, 15 ENTER command, 11 Environment Commands, 17 EOJ Command, 15 EPSON-Specific Variables, 24 EXECUTE command, 11 Explic
Revision C 16/01/96 Chapter 4 Diablo 630 Chapter 4 "Diablo 630" - 1
Revision C 16/01/96 Command list BEL Esc US n Esc S Esc RS n SP BS Esc BS Esc 5 Esc 6 Esc / Esc \ LF Esc U Esc LF Esc D FF CR Esc " Esc # Esc 3 Esc 4 DC1 DC3 Esc CR mode Esc @ Esc CR ! # R Esc EM n Esc FF n Esc T Esc L Esc C Esc 9 Esc 0 Esc 1 Esc 8 HT Esc HT n Esc VT Esc VT n Esc 2 Esc P Esc Q Esc O Esc F Esc W Esc & Esc E Esc R Esc X Esc H Esc I Esc Y Esc Z Bell Set horizontal motion index (HMI) Reset horizontal motion index (HMI) Set vertical index (VMI) Space Backspace Backspace 1/120" Set forward prin
Revision C 16/01/96 1. Introduction In this emulation 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. Check the manual that came with your software package for instructions on how to configure your software to run in Diablo 630 mode. 2.
Revision C 16/01/96 3. Terminology 3.1. Syntax The following conventions are used in this description of the Diablo 630 mode software commands: A letter, control code, word or number in upright bold text is a literal character and should be sent to the printer as the character code. A letter or word in italics is a variable and you must substitute the appropriate value or values when using the command. A statement element enclosed in angle brackets < > may be of any size up to some specified maximum. 3.2.
Revision C 16/01/96 4.2. Control codes Control codes are ASCII codes that instruct the printer to perform a particular operation, such as a line feed. Send a control code to the printer by sending the same type of instruction you would use to print a character using its ASCII code number.
Revision C 16/01/96 5. Commands 5.1. Basic printer operation 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 three instructions which are part of the Diablo 630 mode instruction set, but which the HL Series printers ignore are included. Bell BEL (07) <07h> BEL (ASCII code 7) is ignored.
Revision C 16/01/96 Set vertical motion index (VMI) EscRSn (27)(30)n <1Bh><1Eh>n This command sets the unit of vertical movement - the vertical motion index or VMI. The VMI is the vertical distance the print position moves on the page when a line feed is performed. The setting determines the distance the print position moves when vertical tab commands are invoked. The VMI is set to be (n–1)/48".
Revision C 16/01/96 Set forward printing mode Esc5 (27)(53) <1Bh><35h> This command enables the printer to print text to the right of the right margin. Text cannot be printed outside the printable area. The Set Backward Printing Mode command, Esc 6, the Auto Backward Printing Mode command, Esc /, and the carriage return control code, CR, all cancel forward printing.
Revision C 16/01/96 Half line feed EscU (27)(85) <1Bh><55h> This command moves the current print position down the page by a distance equal to half the current VMI. If the print position is such that this operation would move it beyond the bottom margin, the print position is moved to the top of the next page instead.
Revision C 16/01/96 Carriage return CR (13) <0Dh> The CR control code (ASCII 13) moves the print position to the left margin on the current line. If automatic line feed is on, this code moves the current print position to the left margin on the next line. You can turn on automatic line feed either using the Esc " command or with the control panel switches. The CR code cancels the following modes: shadow printing, bold printing, double-strike printing, forward printing and backward printing.
Revision C 16/01/96 Cancel graphics mode Esc4 (27)(52) <1Bh><34h> This command turns off graphics mode. LPRINT CHR$(27); CHR$(52); 'Turn graphics mode off Enable printer DC1 (17) <11h> The printer ignores this command. Disable printer DC3 (19) <13h> This command disables the printer, preventing it from accepting or printing any data.
Revision C 16/01/96 Set EPSON Emulation Mode Esc@ (27)(64) <40h> Set emulation mode to EPSON FX-850 mode. User Reset EscCR!#R (27)(13)(33)#(82) <1Bh><0Dh><21h><#><52h> # = 0, the printer is restored to the current user setting. # = 1, the printer is restored to user settings 1. # = 2, the printer is restored to user settings 2.
Revision C 16/01/96 5.2. Page set up Control panel settings You can use the printer’s control panel to set automatic line feed, auto mask (two-line top and bottom margins on every page), paper size, top, bottom, left and right margins, the number of lines per page, the current font and the emulation mode. Refer to the User guide to establish how to make these settings and how they affect the software settings that you make with the following commands.
Revision C 16/01/96 Set bottom margin at current position EscL (27)(76) <1Bh><4Ch> This command sets the horizontal line on which the current print position lies to be the bottom margin. If the current print position is above the top margin the command is ignored. You can set a new bottom margin below the existing bottom margin by moving the print position down with the Absolute Vertical Tab instruction.
Revision C 16/01/96 Set right margin at current position Esc0 (27)(48) <1Bh><30h> This command sets the vertical line on which the current print position lies to be the right margin. The command is ignored if the current print position is to the left of the left margin or if the current print position is within 1/10" of the current left margin.
Revision C 16/01/96 Absolute horizontal tab EscHTn (27)(09)n <1Bh><09h>n This command moves the print position a distance of (n–1) times the current HMI in from the left edge of the printable area. You can use this command to move the print position anywhere within the printable area irrespective of margin settings. n must be in the range 1 to 126.
Revision C 16/01/96 Clear all horizontal and vertical tabs Esc2 (27)(50) <1Bh><32h> This command clears all horizontal and vertical tab stops set with the Esc 1 and Esc – commands. LPRINT CHR$(27); CHR$(50); 'Clear all tabs 5.4. Characters Set proportional spacing EscP (27)(80) <1Bh><50h> This command allows you to turn proportional spacing on. Subsequent text is printed proportionally spaced. If the current font can only be printed monospaced this command has no effect.
Revision C 16/01/96 Set shadow print mode EscW (27)(87) <1Bh><57h> This command selects shadow characters. Subsequent text on the current line only is printed with shadow. Bold printed characters and shadow printed characters are the same. You can use shadow print mode in conjunction with underline and auto strike-out modes.
Revision C 16/01/96 Set auto strike-out print mode EscH (27)(72) <1Bh><48h> This command turns on auto strike-out print mode. Subsequent text is overprinted with hyphens. Shadow, bold and underlined characters can also be printed in strike-out mode. Spaces are printed normally, that is, without a hyphen to strike them out. LPRINT CHR$(27); CHR$(72); 'Strike out following text Cancel auto strike-out print mode EscI (27)(73) <1Bh><49h> This command turns strike-out mode off.
Revision C 16/01/96 INDEX horizontal tab, 6, 15 A I auto strike-out, 19 automatic line feed, 10 Ignored commands, 3 B Backspace, 7 backward printing, 8 Bell, 6 bold print, 17 bottom margin, 14 L left margin, 14 Line feed, 8 P C page length, 13 Paper Input Control, 13 proportional spacing, 17 Carriage return, 10 Control codes, 5 control panel, 4 R D reset printer, 11 resolution, 3 right margin, 15 double-strike mode, 17 S E shadow print mode, 18 Space, 7 strike-out, 18 Syntax, 4 emulation mode,
Revision C 16/01/96 Chapter 5 EPSON FX-850 Chapter 5 " EPSON FX-850 " - 1
Revision C 16/01/96 Command list NUL Null BEL Bell SP Space BS Backspace CR Carriage return LF Line Feed FF Form Feed Esc SP n Set inter-character space Esc a n Select justification mode Esc $ n1 n2 Set absolute print position Esc \ n1 n2 Set relative print position Esc < Select unidirectional printing Esc U Select / cancel unidirectional printing Esc = Set data MSB to 0 Esc > Set data MSB to 1 Esc # Cancel MSB setting Esc x n Select near letter quality or draft Esc s n Select / cancel half speed mode DC1
Revision C 16/01/96 Esc E Select emphasized character mode Esc F Cancel emphasized character mode Esc G Select double-strike mode Esc H Cancel double-strike mode Esc W n Select / Cancel double-width printing SO Select single-line double-width printing (I) Esc SO Select single-line double-width printing (II) DC4 Cancel single-line double-width printing Esc 4 Select italic mode Esc 5 Cancel italic mode Esc S n Select superscript / subscript mode Esc T Cancel superscript / subscript mode Esc w n Select / Cance
Revision C 16/01/96 1. Introduction In this mode you can control this HL Series printer directly by incorporating control codes and escape sequences into your program. 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. 2.
Revision C 16/01/96 3. Terminology 3.1 Syntax The following conventions are used in this description of the Epson FX-850 mode software commands: A single letter, two or three-letter control code mnemonic, or number in upright bold text is a literal character and should be sent to the printer as the character code. A letter or word in italics is a variable and you must substitute an appropriate value when you use the command.
Revision C 16/01/96 4.2 Control codes Control codes are ASCII codes that instruct the printer to perform a particular operation, such as a line feed. You can send a control code to the printer by sending the same type of instruction you would use to print a character using its ASCII code number.
Revision C 16/01/96 5. Commands 5.1 Basic printer operations 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 (0) <00h> NUL (ASCII code 0) is ignored. Bell BEL (7) <07h> BEL (ASCII code 7) is ignored.
Revision C 16/01/96 Line feed LF (10) <0Ah> The LF control code (ASCII code 10) moves the current print position down one line, using the current line space setting. This code does not cause a carriage return to be performed. If the print position is such that this operation would move it below the bottom margin, the current page is ejected and the print position is moved to the top of the next page instead.
Revision C 16/01/96 Select justification mode Escan (27)(97)n <1Bh><61h>n This command allows you to select the justification mode for subsequent text. Set n to 0 to select left justification. Set n to 1 to centre subsequent text. Set n to 2 to select right justification. Set n to 3 to select full justification (text will be both left and right justified). The default justification mode is left justification.
Revision C 16/01/96 Select unidirectional printing Esc< (27)(60) <1Bh><3Ch> This command has no effect. Select / cancel unidirectional printing EscU (27)(85) <1Bh><55h> This command has no effect. Set data MSB to 0 Esc= (27)(61) <1Bh><3Dh> This command enables you to set the most significant bit of incoming data bytes to 0. This command does not affect data comprising a graphics image or the data that defines a downloadable character.
Revision C 16/01/96 Select / cancel half speed mode Escsn (27)(115)n <1Bh><73h>n The printer ignores this command. Enable printer DC1 (17) <11h> The printer ignores this command. Disable printer DC3 (19) <13h> 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.
Revision C 16/01/96 User reset EscCR!#R (27)(13)(33)#(82) <1Bh><0Dh><21h>#<52h> # = 0, the printer restores to the current user setting. # = 1, the printer restores to user settings 1. # = 2, the printer restores to user settings 2. Paper Input Control EscEMn (27)(25)n <1Bh><45h>n n = 0, paper is fed from manual paper feeder. n = 1, paper is fed from the standard paper cassette. n = 2, paper is fed from the optional lower paper cassette. n = 3, the printer ejects the sheet of paper.
Revision C 16/01/96 5.2. Page set up Set page length EscCn (27)(67)n <1Bh><43h>n This command sets the page length in lines. or EscCNULn (27)(67)(00)n <1Bh><43h><00h>n This command sets the page length in inches. The top of form position is set to be the current line. n is the number of lines that make up one page, or the length of the page in inches, according to which form of the command is used.
Revision C 16/01/96 Set right margin EscQn (27)(81)n <1Bh><51h>n This command sets the right margin in columns from the left edge of the page. The width of a column is the current character width. In proportional spacing mode a column width of 1/10" is adopted. This command clears all tab settings. The minimum space allowed between the left and right margins is 1/5".
Revision C 16/01/96 5.3. Line spacing Select 1/6" line spacing Esc2 (27)(50) <1Bh><32h> This command sets the line spacing to 1/6". All subsequent line feed operations will move the print position 1/6" down the page. This line spacing is the default setting when the printer is switched on or reset. LPRINT CHR$(27); CHR$(50); 'Set line spacing to 1/6". Select 1/8" line spacing Esc0 (27)(48) <1Bh><30h> This command sets the line spacing to 1/8".
Revision C 16/01/96 Select n/216" line spacing Esc3n (27)(51)n <1Bh><33h>n This command sets the line spacing to n/216". All subsequent line feed operations will move the print position n/216" down the page. Since the printer’s resolution is 600 dots per inch the line spacing will not be exactly n/216". n must be in the range 1 to 255. LPRINT CHR$(27); CHR$(51); CHR$(25); 'Select line spacing of 25/216".
Revision C 16/01/96 5.4. Using tabs Set horizontal tab stops EscDn1n2n3...NUL (27)(68)n1n2n3...(00) <1Bh><44h>n1n2n3...<00h> This command enables you to set up to 32 horizontal tab stops based on the current character width. The character width setting is determined by the combination of the current pitch (10 or 12 characters per inch) and the current character mode (condensed, normal or double-width).
Revision C 16/01/96 Set vertical tab stops EscBn1n2n3...NUL (27)(66)n1n2n3...(00) <1Bh><42h>n1n2n3...<00h> This command enables you to set up to sixteen vertical tab stops based on the current line space setting. The tab stops must be set in ascending order. If you specify the tab settings in any other order, any settings made with a previous Esc B command are cleared. The value of ni must be in the range 0 to 255.
Revision C 16/01/96 Set vertical channel tab stops Escbnm1m2m3...NUL (27)(98)nm1m2m3...(00) <1Bh><62h>nm1m2m3...<00h> You can set up to eight different sets of vertical tab stops and select any of these sets for use at any time. Each set of tab stops is called a channel - channels are numbered from 0 to 7. Channel 0 normally holds the settings you have selected with the Esc B command, or equally spaced tab settings that you have set with the Esc e 1 command.
Revision C 16/01/96 Select vertical tab channel Esc/n (27)(47)n <1Bh><2Fh>n This command allows you to select a set of vertical tabs (or channel) that you defined using the Esc b command. All subsequent vertical tab commands use the selected tab channel’s settings. 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.
Revision C 16/01/96 5.5. Using standard characters Set pitch to 10 characters per inch EscP (27)(80) <1Bh><50h> This command sets the printing pitch to 10 characters per inch (cpi). LPRINT CHR$(27); CHR$(80); 'Set pitch to 10 cpi Set pitch to 12 characters per inch EscM (27)(77) <1Bh><4Dh> This command sets the printing pitch to 12 characters per inch (cpi).
Revision C 16/01/96 Select condensed character mode II EscSI (27)(15) <1B><0F> This command selects condensed character mode. Subsequent text characters are condensed horizontally when printed. Selecting proportional spacing cancels condensed character mode. This command functions exactly like the SI control code. LPRINT CHR$(27); CHR$(15); 'Set condensed character mode Cancel condensed character mode DC2 (18) <12h> This command cancels condensed character mode.
Revision C 16/01/96 Cancel double-strike mode EscH (27)(72) <1Bh><48h> This command turns double-strike mode off. Subsequent text is printed with a medium stroke width. LPRINT CHR$(27); CHR$(72); 'Turn double-strike printing mode off Select / cancel double-width printing EscWn (27)(87)n <1Bh><57h>n This command turns double-width printing on or off. If n is set to 1 subsequent text is printed using double-width characters. The line spacing setting is doubled.
Revision C 16/01/96 Select single-line double-width printing (II) EscSO (27)(14) <1Bh><03h> This command turns double-width printing mode on for one line only. The subsequent line of text is printed using double-width characters and with the line spacing setting doubled. The following commands cancel double-width printing mode set using the SO escape sequence: LF, FF, VT, Esc W 0, DC4, and ESC @.
Revision C 16/01/96 Select superscript / subscript mode EscSn (27)(83)n <1Bh><53h>n This command allows you to print superscripts or subscripts. Set n to 0 to print subsequent text using superscript characters. Set n to 1 to print subsequent text using subscript characters. When you specify the value for n you may use the character codes for ‘0’ and ‘1’ (48 and 49) instead of 0 and 1. Selecting either superscript or subscript mode cancels double-height printing mode.
Revision C 16/01/96 Select / cancel underline mode Esc–n (27)(45)n <1B><2D>n This command turns character underlining on or off. If n is set to 1 subsequent text is printed underlined. All characters, including space characters, are underlined with a continuous line. Horizontal tabbed spaces are never underlined. If n is set to 0 subsequent text is not underlined. When you specify a value for n you may also use the character codes for ‘0’ and ‘1’ (48 and 49) instead of 0 and 1.
Revision C 16/01/96 Select expansion of printable code area Esc6 (27)(54) <1Bh><36h> This command enables you to print characters whose character codes are in the range 128 to 159. You can define your own characters and assign codes in this range to them. LPRINT CHR$(27); CHR$(54); 'Expand printable area Cancel expansion of printable code area Esc7 (27)(55) <1Bh><37h> This command prevents you from printing characters with codes in the range 128 to 159.
Revision C 16/01/96 Select international character set EscRn (27)(82)n <1Bh><52h>n This command selects one of the nineteen available international 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. The selection you make with this command does not affect any italic or graphics character table selection that you may have made with the Esc t command.
Revision C 16/01/96 5.6. Using customized characters Define characters Esc&NULn1n2(n3) (27)(38)(00)n1n2(n3....) <1Bh><26h><00h>n1n2(n3...) This command enables you to define and download characters for printing. Monospaced characters are designed on a grid eleven dots wide by nine dots high. Characters either occupy the top 8 rows of the grid (ascending characters) or rows 2 to 9 of the grid (descending characters).
Revision C 16/01/96 Bits 1 to 4 of n3 specify the width in columns of the defined character in proportional spacing mode. The width in columns is the number held in bits 1 to 4. Characters can be up to fifteen columns wide, including skipped blank columns. Downloaded characters are selected using the Esc % 1 NUL command and then printed by sending the appropriate character codes.
Revision C 16/01/96 5.7. Graphics Select image mode Esc*mn1n2 <1Bh><2Ah>mn1n2.... (27)(42)mn1n2.... This command enables you to define and print a single line raster bit image on a single text line at a selected horizontal resolution. n1 and n2 define the number of bytes that comprise the image. The image consists of 256*n2+n1 bytes of data, each byte representing a single vertical column of 4/30". m defines the horizontal resolution at which the image will be printed.
Revision C 16/01/96 Reassign image mode Esc?cm (27)(63)cm <1Bh><3Fh>cm This command enables you to redefine the horizontal resolution attached to a particular image mode. Hence, you could assign a density of 90 dots per inch to the image mode normally associated with 60 dots per inch, which is selected with the Esc K command. All subsequent Esc K commands would then generate images with a horizontal density of 90 dots per inch.
Revision C 16/01/96 You can only use this command in portrait orientation.
Revision C 16/01/96 Print double-density image EscLn1n2 (27)(76)n1n2.... <1Bh><4Ch>n1n2.... This command enables you to define and print a single line raster bit image on a single text line. n1 and n2 define the number of bytes that comprise the image. The image consists of 256*n2+n1 bytes of data, each byte representing a single vertical column of 4/30". Each byte represents a vertical column of eight dots, the most significant bit representing the dot at the top.
Revision C 16/01/96 Print double-speed double-density image EscYn1n2 (27)(89)n1n2.... <1Bh><59h>n1n2.... This command enables you to define and print a single line raster bit image on a single text line. n1 and n2 define the number of bytes that comprise the image. The image consists of 256*n2+n1 bytes of data, each byte representing a single vertical column of 4/30". Each byte represents a vertical column of eight dots, the most significant bit representing the dot at the top.
Revision C 16/01/96 Print quadruple-density image EscZn1n2 (27)(90)n1n2.... <1Bh><5Ah>n1n2.... This command enables you to define and print a single line raster bit image on a single text line. n1 and n2 define the number of bytes that comprise the image. The image consists of 256*n2+n1 bytes of data, each byte representing a single vertical column of 4/30". Each byte represents a vertical column of eight dots, the most significant bit representing the dot at the top.
Revision C 16/01/96 INDEX 9 9 bit image, 32 image mode, 31 Initialize, 11 inter-character space, 8 international character set, 28 italic / graphics character table, 28 italic mode, 24 A J absolute print position, 9 justification, 9 B L Backspace, 7 BEL, 7 C Carriage return, 7 characters, 21 condensed character, 21 Control codes, 6 control panel, 5 CR, 7 left margin, 13 Line feed, 8, 16 Line spacing, 15 P D data MSB, 10 Define characters, 29 double-density image, 34 double-height printing, 25 doub
Revision C 16/01/96 Chapter 6 IBM Proprinter XL Chapter 6 " IBM Proprinter XL " - 1
Revision C 16/01/96 Command list NUL Null BEL Bell ESC Escape SP Space BS Backspace LF Line Feed FF Form Feed CR Carriage return Esc5n Automatic line feed DC1 Enable printer EscQ22 Disable printer EscQ3 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 EscNn Set perforation skip EscO Cancel perforation skip Esc0 Select 1/8" line spacing Esc1 Select 7/72" line spacing EscAn Select n/
Revision C 16/01/96 Esc=n1n220n3(n4n5...
Revision C 16/01/96 1. Introduction This HL Series printer offers 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. Check the manual that came with your software package for instructions on how to use your software with an IBM Proprinter XL.
Revision C 16/01/96 2.6 Escape sequences Escape sequences tell the printer which Proprinter function to perform. An escape sequence consists of the ESC character followed by one or more characters which define the operation to be performed. Send an escape sequence to the printer by sending the same type of instruction you would use to print characters using their ASCII codes.
Revision C 16/01/96 Escape ESC (27) <1Bh> The ESC control code (ASCII 27) marks the start of an escape sequence. LPRINT CHR$(27); Space SP (32) <20h> The SP control code (ASCII 32) moves the current print position one space to the right. LPRINT CHR$(32); Backspace BS (08) <08h> The BS control code (ASCII 8) moves the current print position one space to the left. LPRINT CHR$(8); Line feed LF (10) <0Ah> The LF control code (ASCII 10) moves the current print position down one line.
Revision C 16/01/96 Carriage return CR (13) <0Dh> The CR control code (ASCII 13) moves the current print position to the left margin on the current line. If automatic line feed is ON, this code moves the current print position to the left margin on the next line. LPRINT CHR$(13); Automatic line feed Esc5n (27)(53)n <1Bh><35h>n When automatic line feed is ON, a line feed is automatically performed every time a carriage return is sent to the printer.
Revision C 16/01/96 Change emulation mode EscCR (27)(13)mode <1Bh><0Dh>mode This command changes the printer emulation mode or performs a reset. mode can be ‘E’ (Epson), ‘P’ or ‘D’ (Diablo), ‘H’ (Laserjet 4), ‘I’ (IBM Proprinter XL), 'AB' (BR-Script Batch), 'AI' (BR-Script Interactive), 'GL' (HP-GL) or ‘FD’ (factory default). On receiving this command the printer prints any remaining data and performs a page eject (unless the current page is blank).
Revision C 16/01/96 4.2 Page format Set page length EscCn (27)(67)n <1Bh><43h>n This command sets the page length in lines. or EscCNULn (27)(67)(0)n <1Bh><43h><00h>n This command sets the page length in inches. n is the number of lines that make up one page, or the length of the page in inches, according to the form of the command. If the first form of the command is used (n = the number of lines in the page) the current line spacing setting is used to determine the length of the page.
Revision C 16/01/96 Set perforation skip EscNn (27)(78)n <1Bh><4Eh>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. n = the number of lines at the current line space setting between the bottom edge of the page and the bottom margin. n must be in the range 1 to 255.
Revision C 16/01/96 Save n/72" line spacing EscAn (27)(65)n <1Bh><41h>n This command allows you to select a line spacing of n/72". Your selection does not take effect until you activate it with the Esc 2 command. Since the printer's resolution is 600 dots per inch the line spacing may not be exactly n/72". n must be in the range 1 to 85. If n is outside the range 1 to 85 the default line spacing, 1/6" is selected. LPRINT CHR$(27); CHR$(65); CHR$(10); 'Select line spacing of 10/72".
Revision C 16/01/96 Set horizontal tabs EscD...NUL (27)(68)n1n2n3...(00) <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. Esc R restores the default settings, which are at every eighth column, starting at the ninth column. You can move the print position to the tab stops using the HT control code.
Revision C 16/01/96 Restore default tab settings EscR (27)(82) <1Bh><52h> This command restores the default horizontal tab settings which are at every eight columns, starting at the ninth column. There are no default vertical tab settings. LPRINT CHR$(27); CHR$(82); 'Restore default tab stops. 4.3 Using characters Select character set I Esc7 (27)(55) <1Bh><37h> This command selects IBM Character set I for use in subsequent printing operations.
Revision C 16/01/96 Proportional spacing EscPn (27)(80)n <1Bh><50h>n This command allows you to turn proportional spacing on or off. Setting n to 1 turns proportional spacing on. Subsequent text is printed proportionally spaced. Setting n to 0 turns proportional spacing off. Subsequent text is printed monospaced. If you change the character pitch using DC2, SI or Esc :, proportional spacing is automatically turned off.
Revision C 16/01/96 Set enlarged character mode for a single line SO (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 [@.
Revision C 16/01/96 Set superscript or subscript character mode EscSn (27)(83)n <1Bh><53h>n This command allows you to print superscripts or subscripts. Set n to 0 to print subsequent text using superscript characters. Set n to 1 to print subsequent text using subscript characters.
Revision C 16/01/96 Select double-height / double-width mode Esc[@n1n2n3n4n5n6 (27)(91)(64)n1n2n3n4n5n6 <1Bh><5Bh><40h>n1n2n3n4n5n6 This command enables you to select single or double line spacing and single or double character height and width. n1 should be set to 4 and n2,n3 and n4 to 0. To set double line spacing and select double-height characters set n5 to 34. To set double line spacing and select normal height characters set to n5 to 33.
Revision C 16/01/96 Select character font EscIn (27)(73)n <1Bh><49h>n This command enables you to select a font and choose the print quality. If n is set to 0 the printer's standard font and draft quality are selected. 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.
Revision C 16/01/96 If bits 1 and 2 of n4 are 00 and bit 8 is set to 0 the bytes that make up the character definition define rows 2 to 9 of the grid, the most significant bit representing the second dot, and the least significant bit representing the ninth dot down. Simply set a bit to 1 to print a dot in that position on the grid, or to 0 to print white space. If bits 1 and 2 of n4 are 01 the least significant bit of each data byte is replicated in rows 9 to 12 of the grid.
Revision C 16/01/96 Set double-density image mode EscLn1n2 (27)(76)n1n2 <1Bh><4Ch>n1n2 This command enables you to define and print a single line raster bit image on a single text line. n1 and n2 define the number of bytes that comprise the image. The image consists of 256*n1+n2 bytes of data, each byte representing a single vertical column of 4/30". Images are printed left to right.
Revision C 16/01/96 This printer always prints as fast as possible, hence this command is the exact equivalent of the Esc L command.
Revision C 16/01/96 INDEX A automatic line feed, 7 B L left margin, 9 Line feed, 6 line spacing, 10 O Backspace, 6 Bell, 5 overline, 16 C P Cancel, 15 Carriage return, 7 Character set, 4, 13 characters, 18 condensed character, 14 Control codes, 4 D page length, 9 Paper Input Control, 8 perforation skip, 10 pitch, 13 print quality, 18 Proportional spacing, 14 Proprinter XL, 4 R double-density image, 20 double-height / double-width, 17 E Resolution, 4 right margin, 9 S emphasized character, 14 e
Revision C 16/01/96 Chapter 7 Bar Code Control Chapter 7 "Bar Codes Control" - 1
Revision C 16/01/96 Bar Code Control The printer can print bar codes in the HP LaserJet 4, Diablo, EPSON FX-850, and IBM Proprinter XL emulation modes. 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 segment of parameters “n ... n”. For further information about the parameters, see the following “Definition of Parameters.” This command must end with the “ \ ” code (5CH).
Revision C 16/01/96 (2) Bar Code Style, Expanded Character shading, Line Block Drawing & Box Drawing Shading Bar Code Style n = “s0” or “S0” n = “s1” or “S1” n = “s3” or “S3” 3 : 1 (default) 2:1 2.5 : 1 This parameter selects the bar code style as above. When the EAN 8, EAN 13, or UPC-A bar code mode is selected, this bar code style parameter is ignored. Expanded Character shading “S” 0 = White 1 = Black 2 = Vertical stripes 3 = Horizontal stripes 4 = Cross hatch eg.
Revision C 16/01/96 all the current character style enhancements are masked. Note that the default setting is subject to the bar code mode selected by “t” or “T”. (5) Quiet Zone n = “onnn” or “Onnn” (nnn = 0 ~ 32767) Quiet Zone is the space on both side of the bar codes. Its width can be specified using the units which are set by the "u" or "U" parameter. ( For the description of "u" or "U" parameter, see the next part.) The default setting of Quiet Zone width is 1 inch.
Revision C 16/01/96 This parameter specifies the height of bar codes or expanded characters as above. It can take the prefix “h”, “H”, “d”, or “D”. The height is specified in the “u”- or “U”-specified unit. Note that the default setting of the bar code height (12 mm, 18 mm or 22 mm) is subject to the bar code mode selected by “t” or “T”. (10) Expanded Character, Line Block Drawing & Box Drawing Width n = “wnnn” or “Wnnn” Default widths Expanded character Line Block Drawing & Box Drawing ➝ ➝ 1.
Revision C 16/01/96 Characters “0” to “9” can be data and it must be terminated by a check digit. “?” can be used in place of a check digit. When the EAN 8, EAN 13, or UPC A is selected with the parameter “t5” or “T5”: Ten numerical characters “0” to “9” can be accepted as bar code data. The number of characters for bar codes is limited as follows.
Revision C 16/01/96 • When EAN 128 set A, set B or set C is selected with the parameter "t132" or "T132," "t133" or "T133" or "t134" or "T134" respectively: Same relues apply as for "t12" or "T12," "t13" or "T13", or "t14" or "T14." (13) Box Drawing ESC i ... E (or e) “E” or “e” is a terminator. (14) Line Block Drawing ESC i ... V (or v) “V” or “v” is a terminator. (15) Expanded Character Data Start n = “l” or “L” Data that follows “l” or “L” is read in as expanded character data (or labeling data).
Revision C 16/01/96 280 300 310 320 330 400 LPRINT CHR$(27); "it130r1s0x00y200b1234567?+12345\"; ' LABEL PRINT LPRINT CHR$(27); "ih10w10x25y2301Sample\"; LPRINT CHR$(27); "ix90y230s4h10w10f2g2e"; LPRINT CHR$(27); "ix105y230s4h10w10v"; LPRINT CHR$(&HC); < Sample 19 > Chapter 7 "Bar Codes Control" - 8
Revision C 16/01/96 CHAPTER 8 HP-GL/2 Graphics Language Chapter 8 "HP-GL2" 1
Revision C 16/01/96 Table of Contents Initialization and default setting instructions Instruction DF IN Function Default Set Instruction Initialize Set Instruction page 8 9 Plot area and unit setting instructions Instruction IP IR SC IW RO Function Input scaling point Input relative scaling points Scale Input window Rotate coordinate system page 10 11 11 14 15 Pen Control and Plot Instructions Instruction PU PD PA PR AA AR AT RT PE CI BR BZ Function Pen Up Pen Down Plot Absolute Relative Coordinate
Revision C 16/01/96 Plot Function Instructions Instruction AC FT LA LT PW RF SM SP SV TR UL WU Function Anchor Corner Fill Type Line Attribute Line Type Selection Pen Width Raster Fill Definition Symbol Mode Select Pen Screened Vectors Transparency Mode User-defined Line Type Select Unit for Pen Width page 32 33 34 35 37 38 39 39 40 41 42 43 Character Plot Instructions Instruction SD AD SS SA FI FN LB DT LO DI DR DV CP CF SI SR SL SB ES TD Function Define Standard Font Define Alternate Font Select Chara
Revision C 16/01/96 1. Introduction This HL-10h/1260/660 printer can be used in HP-GL/2 graphics mode to produce vector graphics output using the commands of the 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). 2.
Revision C 16/01/96 3. 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. Mnemonic The two-letter mnemonic is the name of the command and should help remind you of its function. Parameters Some commands have parameters following the instruction mnemonic. Multiple parameters must have separators between them. Parameters are shown in italics. Optional parameters are surrounded by square brackets.
Revision C 16/01/96 4. The HP-GL graphics window 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. The size of the graphics window remains unaltered. The scaling points P1 and P2 Many instructions use two reference scaling points, P1 and P2.
Revision C 16/01/96 If you import an image without fulfilling these two criteria, that is, the image is not page size independent and you do not specify its horizontal and vertical plot sizes, the plot will be drawn actual size. Any part of the plot that falls outside the effective window will not appear on the printed page.
Revision C 16/01/96 6. Commands 6.1. Initialize commands DF - Default Set Instruction DF[;] • Returns the graphics mode to default conditions. • The following are the default settings.
Revision C 16/01/96 IN - Initialize Set Instruction IN[;] • Returns the graphics mode to initial conditions; Function Plot mode Relative character direction Line type Line pattern length Window Equivalent Instruction PA; DR 1,0; LT; LT; IW; Symbol mode Anchor corner Line attributes User-defined line type Pen Pen position Character set Character size transformation Scalable or bitmap fonts Character slant Character fill Scaling Label terminator Raster fill Fill type Transparency mode Screened vectors Polyg
Revision C 16/01/96 6.2. Plot area and unit setting instructions Instruction IP IR SC IW RO Function Scaling point Input relative scaling points Scale Input window Rotate coordinate system IP - Input Scaling Point IP [ P1X, P1Y [,P2X, P2Y]] [;] P1X ; X coordinate of P1 P2X ; X coordinate of P2 P1Y ; Y coordinate of P1 P2Y ; Y coordinate of P2 • The coordinates used are absolute values in graphics units. • Sets the location of the scaling points(P1,P2).
Revision C 16/01/96 IR - Input Relative Scaling Points IR [ P1x, P1y [, P2x, P2y]][;] P1x ; x-coordinate of P1 P2x ; x-coordinate of P2 P1y ; y-coordinate of P1 P2y ; y-coordinate of P2 • The coordinate values are percentages relative to the bottom left and top right hand corners of the picture frame. • Coordinate values for P1x, P1y, P2x, and P2y are treated as clamped real numbers.
Revision C 16/01/96 • Type 0 scaling (anisotropic scaling, and the default) allows you to specify different sized x-axis and y-axis units. Hence the area specified by Xmin, Xmax, Ymin, and Ymax will occupy the entire area defined by P1 and P2. P2 (7,6) P1 (0,0) • left and bottom settings have no effect in type 0 scaling. • Type 1 scaling (isotropic scaling) forces x-axis and y-axis units to be the same size.
Revision C 16/01/96 P2 (10,10) P2 (10,10) Extra space (0,10) P1(0,0) SC 0,10,0,10,1,0,0 Extra space P1 SC0,20,0,10,1,100,100 (10,10) P2 P2 Extra space Extra space P1 (20,10) (10,0) SC 0,10,0,10,1,100,100 P1(0,0) SC 0,20,0,10,1,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.
Revision C 16/01/96 220 END Chapter 8 "HP-GL2" 14
Revision C 16/01/96 IW - Window IW [ X1, Y1, X2, Y2 ] [;] X1-Window lower left X coordinate Y1-Window lower left Y coordinate X2-Window upper right X coordinate Y2-Window upper right Y coordinate • This instruction sets the window inside which drawing can be performed (the soft clip limits). • Coordinates are specified in current units. • Using this instruction with no parameters sets the window to be the same as the picture frame. • You can set the corners of the window to lie outside the picture frame.
Revision C 16/01/96 RO - Rotate coordinate system RO [q][;] q : Angle in degrees through which the coordinate system is rotated. • This instruction is used to rotate the graphics coordinate system anti-clockwise. • Using this instruction with no parameter sets the rotation of the coordinate system to 0 degrees (default value). • The pen position does not change. • P1 and P2 rotate with the coordinate system and retain the same coordinate values.
Revision C 16/01/96 6.3. Pen Control and Plot Instructions Instruction PU PD PA PR AA AR AT RT PE CI BR BZ Function Pen Up Pen Down Plot Absolute Relative Coordinate Pen Move Absolute Arc Plot Relative Arc Plot Absolute Three Point Arc Relative Three Point Arc Polyline Encoded Circle Bezier Relative Bezier Absolute PU - Pen Up PU [ X,Y [,...
Revision C 16/01/96 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. • The command moves the cursor to the specified coordinates, drawing straight lines, only when the pen is down.
Revision C 16/01/96 AA [ X, Y, qc [, qd ]] [;] X ; Arc centre X coordinate qc ; Arc angle in degrees Y ; Arc centre Y coordinate qd ; Chord 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.
Revision C 16/01/96 X ; Arc centre X coordinate qc ; Arc angle in degrees Y ; Arc centre Y coordinate qd ; Chord 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. The radius of the arc is the distance between the current position and the point (X,Y).
Revision C 16/01/96 AT - Absolute Arc Three Point AT X1, Y1, X2, Y2 [,qd] [;] X1 ; x-coordinate of intermediate point X2 ; x-coordinate of end point qd ; the chord angle used to draw the arc Y2 ; y-coordinate of intermediate point y2 ; y-coordinate of end point • All coordinates are absolute and in current units. • The command draws an arc from the current position, through the specified intermediate position and finishing at the specified end position.
Revision C 16/01/96 RT - Relative Arc Three Point RT X1, Y1, X2, Y2 [,qd] [;] X1 ; x-coordinate of intermediate point Y2 ; y-coordinate of intermediate point X2 ; x-coordinate of end point y2 ; 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. • The command draws an arc from the current position, through the specified intermediate position and finishing at the specified end position.
Revision C 16/01/96 PE - Polyline Encoded PE [ [flag] [value] | XiYi ... [flag] [value] | XiYi ] ]; flag ; a command or mode that applies to the data that follows value; parameter data for the preceding flag X ; X-coordinate of a cursor movement destination Y ; Y-coordinate of a cursor movement destination • This command allows you to combine a sequence of PA, PR, PU, PD and SP commands into a coded format. This reduces file size and transmission time. • Do not use commas within the PE command.
Revision C 16/01/96 new number into base 64 or base 32 according to your system and encode each base 64 or base 32 digit as the corresponding ASCII character. • To encode a real number proceed as follows. Multiply the number of decimal places in your coordinate's data by 3.33 and round the result up to the next highest integer (for example round 6.66 up to 7). This gives the number of binary bits needed to represent the number's fractional part - the value that you will supply with the '>' flag.
Revision C 16/01/96 BR - Bezier Relative BR [ X1, Y1, X2, Y2, X3, Y3 . . . [X1, Y1, X2, Y2, X3, Y3]] [;] X1, X2, X3 ; X coordinate of the second (X1), third (X2), and forth (X3) control point Y1, Y2, Y3 ; Y coordinate of the second (Y1), third (Y2), and forth (Y3) control point • Coordinates are relative values in current units. • Using the current pen position as the starting point, the bezier curve is geometrically drawn referring to the other three points.
Revision C 16/01/96 6.4. The polygon group Instruction PM EA ER EP EW RA RR WG FP Function Polygon Mode Edge Absolute Rectangle Edge Relative Rectangle Edge Polygon Edge Wedge Fill Absolute Rectangle Fill Relative Rectangle Fill Wedge Fill Polygon PM - Polygon Mode PM [ ms ] [;] • This command is used for entering and leaving polygon mode, the mode that allows you to access the polygon buffer. • When in polygon mode you can use any of the vector group commands to define the vertices of a polygon.
Revision C 16/01/96 EA - Edge Rectangle Absolute EA X, Y[;] X ; X coordinate of opposite corner for the rectangle Y ; Y coordinate of opposite corner for the rectangle • X and Y coordinates are absolute coordinates in current units. • Plots the rectangle formed by the current position and the opposite corner specified by X and Y. • After plotting, the cursor returns to its point of origin, and pen up/down status remains as selected. • Plotting is performed whether the pen is up or down.
Revision C 16/01/96 EP - Edge Polygon EP [;] • This command plots the outline of the polygon currently stored in the polygon buffer. • The command only plots between points defined when the pen was down. • The command plots an outline irrespective of whether the pen is currently up or down. • The command does not affect the data in the polygon buffer. • On completion of the plot the cursor returns to the original poition.
Revision C 16/01/96 • Plotting proceeds counterclockwise when qc is positive, and clockwise when negative. • The value for qd must be an integer from -32,768 to +32,767.
Revision C 16/01/96 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 • Coordinates relative to the current position in current units. • Fill the rectangle formed by the current position and the opposite corner specified by X and Y. • After plotting the cursor returns to its point of origin. • Plotting is performed whether the pen is up or down.
Revision C 16/01/96 WG - Fill Wedge WG r,q1,qc(,qd)[;] r ; Radius in current units q1 ; Start point angle 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. • After plotting, the cursor returns to its point of origin. • Plotting is performed whether the pen is up or down. • You should use this command with the type "isotropic". Anisotropic type may make the wedge stretch.
Revision C 16/01/96 FP - Fill Polygon FP [;] FP [ n ] [;] n ; fill method • This command fills the polygon currently stored in the polygon buffer. • The command does not clear the buffer or alter the data at all. • The command fills between points defined when the pen was up or down. • If a polygon is composed of sub-polygons, the command fills alternate areas. • On completion of the plot the cursor returns to the original position.
Revision C 16/01/96 6.5.
Revision C 16/01/96 FT - Fill Type FT n(, d(, q))[;] n ; Fill type • d ; option 1 q ; option 2 Sets the fill type, interval, and angle when filling an area. This setting is effective for the commands FP, RA, RR, WG and CF.
Revision C 16/01/96 LA [ l, v [ , l , v [ , l , v]]] [;] l ; line attribute v : value • This command specifies the shape of line joins and line ends. • These settings are effective for the line widths thicker than 0.35 mm. • l specifies the line attribute for which you are setting a value. • There are three line attributes - line end type, line join type and miter limit, specified by line attribute values of 1, 2 and 3 respectively. • v specifies the value of the particular attribute.
Revision C 16/01/96 LT - Line Type Selection LT [, n [, p [,m ]]] [;] n ; Line pattern number p ; Line pattern length (percentage or millimeters of distance between P1 and P2) m : mode • This command specifies the line pattern for use when drawing lines with the vector group commands. • n defines the line type to be used. n is either in the range -8 to 8 or is 99. • Values of n from 1 to 8 specify a line type (as defined with the UL command) and use a fixed pattern length.
Revision C 16/01/96 10 ' - Line Type 20 WIDTH "LPT1:", 255 30 LPRINT CHR$(27); "E"; 40 LPRINT CHR$(27); "%0B"; 50 LPRINT "IN;IP1000,1000,9000,7000;SP1;"; 60 LPRINT "PA2000,7100;PDPR400,0;PU;" 'REM DEFAULT LINE = 400 70 LPRINT "LT8;PA2000,7000;PD5000,7000;PU;" 80 LPRINT "LT8,4,0;PA2000,6900;PD5000,6900;PU;" 90 LPRINT "LT8,8,1;PA2000,6800;PD5000L6800;PU;" 100 ' 110 LPRINT "LT4,PA2000,6600;PD5000,6600;PU;" 120 LPRINT "LT4,4,0;PA2000;6500;PD5000;6600;PU;" 130 LPRINT "LT4,10,1;PA2000,6400;PD5000,6400;PU;" 140 '
Revision C 16/01/96 PW - Pen Width PW [w, [,p]] [;] w ; width p ; pen • This command specifies the width of the pen. • Pen width can either be specified as a fixed width in millimeters ( the default ) or relative to the distance between the scaling points P1 and P2. • 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.
Revision C 16/01/96 RF - Raster Fill Definition RF [ i [, w, h, p [,...]]] [;] i : index p: pen number w : width h : height • This command defines a rectangular pattern which may be used to fill the area. • i is the index number of the pattern that is to be defined and must be in the range 1-8. 8 patterns can exist concurrently. • If used with an index parameter and no others, the pattern is defined as a solid black fill.
Revision C 16/01/96 SM - Symbol Mode SM c[;] c ; ASCII character or symbol code • The command specifies the symbol to be drawn. • The specified symbol will be drawn at the end of each vector, irrespective of whether the pen is up or down, when the PA, PR, PD, PU or PE instructions are used. • Characters in the character code ranges 33 - 58, 60 - 126 and characters 161 and 254 can be used. • Character code 59 stands for the ';', which is the HP-GL/2 terminator. You cannot use it as a symbol.
Revision C 16/01/96 SV - Screened Vectors SV [ s [, option_1[, option_2]]] [;] s : screen type option_1 and option_2: dependent on the screen type • This command selects the type of screening that will be applied to vectors, arcs, circles and edges of polygons, rectangles and wedges. • The screen type must have the value 0, 1, 2, 21, 22 or 130.
Revision C 16/01/96 TR - Transparency Mode TR [ n ] [;] n ; transparency type • This command turns transparency mode on and off. Transparency mode defines how source and destination graphics images interact. • n is either 0 (off) or 1(on). • When transparency mode is on, the white parts of a source image (the image that is being superimposed on the destination image) do not affect the destination image - that is, part of the destination image will be visible beneath the source image.
Revision C 16/01/96 UL - User-defined Line Type UL [ i ] [,g [...,]] [;] i ; unit type g : gap length • This command allows you to define line types which you can then subsequently select with the LT command. • i must be in the range 1-8. i identifies the line type that is to be defined. • The index parameter uses absolute values. • g (the gap length) alternately specifies pen up and pen down parts of the defined line type.
Revision C 16/01/96 WU - Select Unit for Pen Width WU [ t ] [;] t ; unit type • This command specifies the pen width unit. It applies to all pens. • t must be either 0 or 1. • If t is 0 the pen width parameter which accompanies subsequent PW commands will be treated as a reading in millimeters. • If t is 1 the pen width parameter which accompanies subsequent PW commands will be treated as percentage of the distance between the scaling points P1 and P2. The default width is 0.
Revision C 16/01/96 6.6.
Revision C 16/01/96 • attribute = 1 : Symbol set Valu e 1 3 5 7 9 12 14 ISO number 15 8859/1 Valu e 2 4 6 8 11 13 15 11 6 18 20 22 61 69 13 2 26 37 39 44 47 50 53 75 78 83 89 114 147 173 179 185 205 217 243 263 266 268 275 277 281 309 332 3 of 9 Barcode Danish/Norwegian v2 French v2 Katakana Tech - 7 APL (bit paired) HP Spanish Industrial 2 of 5 Barcode Tax Line Draw OCR-M International Reference Version PC Cyrillic Portuguese PS Math Portuguese CODABAR Barcode Ventura Math MSI/Plessey Barcode HP E
Revision C 16/01/96 • attribute = 2 : Spacing Value 0 1 Meaning Monospacing Proportional spacing • attribute = 3 : Pitch Specify pitch in characters per inch (cpi). The pitch value you specify can be in the range 0 to 32767.9999. Pitch only applies to monospaced fonts. • attribute = 4 : Height Specify height in points. One point is 1/72". The height value you specify can be in the range 0 to 32767.9999. Proportionally spaced fonts are scaled according to the height you select.
Revision C 16/01/96 AD - Define Alternate Font AD [ attribute, value ] [..] [;] attribute : a font attribute to be defined value : the value of the attribute • This command allows you to define the alternate font and its attribute. • attribute takes a value from 1-7. 1 = symbol set, 2 = spacing, 3 = pitch, 4 = height, 5 = posture, 6 = stroke weight and 7 = typeface. • value selects an option for the specified attribute. For further explanation about attribute values, see the previous SD command.
Revision C 16/01/96 SA - Select Alternate Font SA [;] • This command allows you to select the alternate font, as defined by the AD command. All subsequently printed labels will appear in the alternate font • The SA command is equivalent to including the SO control code (ASCII 14) in a label. • The font remains current until the printer is initialized with an IN command, until the default conditions are restored with the DF command, or until an SS command is used.
Revision C 16/01/96 FN - Select Secondary Font FN font-ID [;] font-ID : 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. • For scalable fonts the FN command must be preceded by an AD command specifying the font's point size or pitch.
Revision C 16/01/96 DT - Define Label Terminator DT [ c [, m ]] [;] c : Character m : mode • This command allows you to specify the character that terminates strings printed with the LB instruction. • The character immediately following DT is taken to be the terminator. Hence, do not put a space between the DT and your chosen character. If you do, space will be interpreted as the terminator in all subsequent LB commands.
Revision C 16/01/96 LO - Label Origin LO [ p ] [;] • This instruction allows you to position labels in different ways relative to the current pen location. • You can centre, left justify or right justify labels relative to the current pen location, and print them on, above or below the current location. • You can combine an offset distance, equal to 25% of the current font's point size, with any of the above origin positions. • p must either be in the range 1 - 9, 11 - 10 and 21.
Revision C 16/01/96 DI - Absolute Direction DI [ run, rise ] [;] run : X direction component rise : Y direction component • This command determines the direction in which subsequent labels will be printed. • rise run gives the tangent of the angle between the base line of a label's characters and the horizontal. • run is equivalent to cos θ and rise is equivalent to sin θ. rise tan θ = sin θ cos θ θ run • Values for run and rise are clamped real numbers.
Revision C 16/01/96 DR - Relative Direction DR [ run, rise ] [;] run : X-component of the printing direction expressed as a percentage of the x-component of the distance between P1 and P2. rise : Y-component of the printing direction expressed as a percentage of the y-component of the distance between P1 and P2. • This command determines the direction in which subsequent labels will be printed. • Values for run and rise are clamped real numbers. • The instruction is ignored if run and rise are both 0.
Revision C 16/01/96 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. Permissible values of path are 0, 1, 2 and 3. If path = 0 labels are printed horizontally and left to right - normal printing.
Revision C 16/01/96 CP - Relative Character Movement CP [ spaces [,lines]] [;] spaces ; the number of text spaces the pen position is moved. lines ; the number of text lines the pen position is moved. • Use this command to re-position the pen. The command moves the pen the specified number of lines and spaces corresponding to the currently selected font's pitch and line spacing. (For proportionally spaced fonts the width of the space character is used to determine the distance moved horizontally).
Revision C 16/01/96 CF - Character Fill Mode CF [ fill [, pen ]] [;] fill : the fill pattern used to fill characters pen : the pen used to edge characters This command determines how characters are edged and filled. 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.
Revision C 16/01/96 SI - Set Absolute Character Size SI [ width, height ] [;] width : the width in centimeters of printed characters height : the height in centimeters of printed characters • This command allows you to specify the size of the characters that you print with the LB instruction in centimeters. • width specifies character width and is a clamped real number. Negative values of width produce right-toleft mirror image characters.
Revision C 16/01/96 SR - Set Relative Character Size SR [ width, height ] [;] width ; the width of printed characters expressed as a percentage of the x-component of the distance between P1 and P2. height ; the height of printed characters expressed as a percentage of the y-component of the distance between P1 and P2. • This command allows you to specify the size of the character that you print with the LB instruction, relative to the scaling points P1 and P2.
Revision C 16/01/96 SL - Character Slant SL [ tan φ ] [;] tan φ - tangent of character slant angle (φ) • This command determines the slant of characters printed with subsequent LB commands. • φ is the angle between characters and the vertical. A positive value of φ ( and tan φ ) produces forward sloping characters, while a negative value results in characters which slant backwards. • Values of tan φ are clamped real numbers. • A value of 0 for tan φ results in upright characters.
Revision C 16/01/96 ES - Extra Space ES [ width [,height]] [;] width : factor by which character spacing is changed. height : factor by which line spacing is changed • This command enables you to adjust the space between label characters and lines. • width specifies the factor by which to increase or decrease the character spacing. Positive numbers specify an increase and negative numbers a decrease. • height specifies the factor by which to increase or decrease the line spacing.
Revision C 16/01/96 CHAPTER 9 HP-GL Graphics Language Chapter 9 "HP-GL" 1
Revision C 16/01/96 Table of Contents Initialization and default setting instructions Instruction DF IN Function Default Set Instruction Initialize Set Instruction page 6 7 Plot area and unit setting instructions Instruction IP SC IW RO PG Function Scaling point Scale Input window Rotate coordinate system Page output page 8 8 9 9 9 Pen Control and Plot Instructions Instruction PU PD PA PR AA AR CI Function Pen Up Pen Down Plot Absolute Relative Coordinate Pen Move Absolute Arc Plot Relative Arc Plot
Revision C 16/01/96 Dual Context Extensions Instruction EscCRRO EscCRRL EscCRRM EscCRRD Function Set HRC Off Set HRC to Light Level Set HRC to Medium Level Set HRC to Dark Level page 35 35 35 34 User Reset Instruction EscCR!#R Function Restore to User Settings page 35 Function Restore to Factory Settings page 35 Factory Reset Instruction EscCRFD Chapter 9 "HP-GL" 3
Revision C 16/01/96 1. Introduction The HP-GL graphics mode emulates 40 out of 56 instructions for the HP 7475A plotter made by HewlettPackard. Default plating measurement in the HP-GL graphics mode is 1/1016"(0.025mm). 1.1. HP-GL Syntax A command consists of a two-letter instruction mnemonic, a parameter field (not needed for some instructions), and a terminator. Parameters following the instruction mnemonic must be separated from each other by at least a single space or comma.
Revision C 16/01/96 1.3.2.
Revision C 16/01/96 2. Commands 2.1. Initialization and Default Setting Instructions DF - Default Set Instruction DF[;] • Returns the graphics mode to default conditions. • The following are the default settings.
Revision C 16/01/96 IN - Initialize Set Instruction IN[;] • Returns the graphics mode to initial conditions; Function Plot mode Relative character direction Line type Line pattern length Window Equivalent Instruction PA; DR 1,0; LT; LT; IW; Relative character size SR; Symbol mode Tick length SM; TL; Standard character set Alternate character set Character set CS 0; CA 0; SS; Character slant Scaling Label terminator Chord angle Fill type Fill distance Fill slant Pen thickness Pen condition Rotation S
Revision C 16/01/96 2.2. Plot area and unit setting instructions Instruction IP SC IW RO PG Function Scaling point Scale Input window Rotate coordinate system Page output IP - Input Scaling Point IP [ P1X, P1Y [,P2X, P2Y]] [;] P1X ; X coordinate of P1 P1Y ; Y coordinate of P1 P2X ; X coordinate of P2 P2Y ; Y coordinate of P2 • The coordinate values used are absolute values in graphics units. • Sets the location of the scaling points(P1,P2).
Revision C 16/01/96 IW - Input Window IW [ X1, Y1, X2, Y2 ] [;] X1-Window lower left X coordinate Y1-Window lower left Y coordinate X2-Window upper right X coordinate Y2-Window upper right Y 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.
Revision C 16/01/96 2.3. Pen Control and Plot Instructions Instruction PU PD PA PR AA AR CI Function Pen Up Pen Down Plot Absolute Relative Coordinate Pen Move Absolute Arc Plot Relative Arc Plot Circle 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. The absolute coordinates are set as default.
Revision C 16/01/96 PD - Pen Down PD [ 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. The absolute coordinates are set as default. • Moves the cursor to the specified coordinates after lowering the pen. (This plots a straight line.
Revision C 16/01/96 PA - Plot Absolute PA [X, Y [,...]] [;] X ; X coordinate of the cursor movement destination Y ; Y coordinate of the cursor movement destination • X and Y are absolute values in user units or graphics units. • Moves the cursor to the specified coordinates. • Plots a straight line only when the pen is down. • When scaling has been performed, the values for X and Y are integer numbers. • When there is no scaling, the cursor is moved by absolute coordinates in graphics units.
Revision C 16/01/96 PR - Relative Coordinate Pen Move PR [X, Y [,...]] [;] X ; X coordinate of the cursor movement destination Y ; Y coordinate of the cursor movement destination • Coordinates are relative to the current position in user units or graphics units. • Plots a straight line only when the pen is down. • When scaling has been performed, the cursor is moved by relative coordinates in user units. • Also, when scaling has been performed, the values for X and Y are real numbers.
Revision C 16/01/96 AA - Draw Absolute Arc AA [ X, Y, qc [, qd ]] [;] X ; Arc centre X coordinate Y ; Arc centre Y coordinate qc ; Arc angle in degrees qd ; Chord angle in degrees • X and Y coordinates are absolute coordinates in user units or graphics units. • Starting from the current position, 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.
Revision C 16/01/96 Chapter 9 "HP-GL" 15
Revision C 16/01/96 AR - Draw Relative Arc AR X, Y, qc(, qd)[;] X ; Arc centre X coordinate Y ; Arc centre Y coordinate qc ; Arc angle in degrees qd ; Chord angle in degrees • X and Y coordinates are relative coordinates in user units or graphics 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.
Revision C 16/01/96 CI - Circle Plot CI r(, qd)[;] r : Radius of circle ( in user units or graphic units ) qd : Chord angle ( in degrees ) • Plots a circle centred on the current position with a radius r and chord angle qd. • After plotting, the cursor returns to its point of origin at the centre of the circle. • Plotting is performed whether the pen is up or down. • When scaling has been performed, the circle is plotted in user units.
Revision C 16/01/96 10 20 30 40 50 60 70 80 '*** CIEX1 *** LPRINT "IN;SP1;IP2650,1325,7650,6325;" LPRINT "SC-100,100,-100,100;" LPRINT "PA-60,50;CI40,45;" LPRINT "PA60,50;CI40,30;" LPRINT "PA-60,-50;CI40,15;" LPRINT "PA60,-50;CI40,5;" END 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;CI60,5;LT5;CI70,5;LT6;CI80,5;" 60 END 10 '*** CIEX3 *** 20 LPRINT
Revision C 16/01/96 2.4. The polygon group Instruction EA ER EW RA RR WG Function Edge Absolute Rectangle Edge Relative Rectangle Edge Wedge Fill Absolute Rectangle Fill Relative Rectangle Fill Wedge EA - Edge Rectangle Absolute EA 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.
Revision C 16/01/96 ER - Edge Rectangle Relative ER X, Y[;] X ; X coordinate of opposite angle for the rectangle Y ; Y coordinate of opposite angle for the rectangle • Coordinates are relative to the current position in user units or graphics units. • Plots the rectangle formed by the current position and the opposite angle specified by X and Y. • After plotting the cursor returns to its point of origin. • Plotting is performed whether the pen is up or down.
Revision C 16/01/96 EW - Edge Wedge EW r,q1,qc(,qd)[;] r ; Radius in user units or graphics units qc ; Arc angle q1; Start point 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 qd. • After plotting, the cursor returns to its point of origin. • Plotting is performed whether the pen is up or down. • When scaling has been performed, the circle is plotted in user units.
Revision C 16/01/96 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. • Fill in the rectangle formed by the current position and the opposite angle specified by X and Y. • After plotting, the cursor returns to its point of origin. • Plotting is performed whether the pen is up or down.
Revision C 16/01/96 RR - Fill Rectangle Relative RR X, Y[;] X ; X coordinate of opposite angle for the rectangle Y ; Y coordinate of opposite angle for the rectangle • Coordinates are relative to the current position in user units or graphics units. • Fill in the rectangle formed by the current position and the opposite angle specified by X and Y. • After plotting the cursor returns to its point of origin. • Plotting is performed whether the pen is up or down.
Revision C 16/01/96 WG - Fill Wedge WG r,q1,qc(,qd)[;] r ; Radius in user units or graphics units qc ; Arc angle q1 ; Start point 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. • After plotting, the cursor returns to its point of origin. • Plotting is performed whether the pen is up or down. • When scaling has been performed, the circle is plotted in user units.
Revision C 16/01/96 2.5. Plot Function Instructions Instruction FT LT PW SM SP TL XT YT PT Function Fill Type Line Type Pen Width Symbol Mode Select Pen Tick Length X Tick Y Tick Pen Thickness 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 ) • Sets the fill type, interval, and angle when filling an area. • The value for n is a clamped integer number.
Revision C 16/01/96 LT - Line Type Selection LT [, n [, p ]] [;] n ; Line pattern number p ; Line pattern length (percentage or millimeters of distance between P1 and P2) • Specifies the line type and pattern length. • When the n parameter field is omitted, a solid line is selected. • When the p parameter field is omitted, the pattern length is 4% of the distance between P1 and P2 (default value ). • The value of n is a clamped integer number. • The value of p is a clamped real number from 0.0000 to 127.
Revision C 16/01/96 SM - Symbol Mode SM c[;] c ; ASCII character or symbol code • The command specifies the symbol to be drawn. • When the PA,PR,PD or PU instruction is used, the specified symbol will be drawn at the end of each vector. • The specified symbol will be drawn at the end of each vector even if the pen is up when the PA or PR instructions are used. • Omitting the parameter field cancels the symbol mode.
Revision C 16/01/96 10 '*** TLEX *** 30 FOR I=1 TO 10 40 LPRINT "PR800,0;XT;" 50 NEXT I 60 LPRINT "TL;PU;PA300,279;PD;" 70 GOSUB 1000 80 LPRINT "TL1,0;PU;PA1100,279;PD;" 20 LPRINT "IN;PA300,279;SP2;PD;TL90;XT;"; 90 GOSUB 1000 100 LPRINT "TL0,5;PU;PA1900,279;" 110 GOSUB 1000 120 LPRINT "PA300,6759;TL80;YT;PU;" 130 END 1000 '* SUBROUTINE DRAW TICKS * 1010 FOR J=1 TO 8 1020 LPRINT "PRO,720;YT;" 1030 NEXT J 1040 RETURN XT - X-axis Tick XT [;] • Plots vertical tick marks as specified by the TL instru
Revision C 16/01/96 2.6. Character Plot Instructions Instruction CS CA SS SA DT LB DI DR CP SI SR SL UC Function Standard Set Definition Alternate Set Definition Select Standard Font Select Alternate Font Define Label Terminator Define Label Absolute Direction Relative Direction Character Plot Set Absolute Character Size Set Relative Character Size Set Character Slant User-defined Character CS - Standard Character Set CS n[;] n ; Character set number(*) • Specifies the standard character set.
Revision C 16/01/96 SS - Select Standard Character Set SS [;] • Selects the standard character set specified by the CS instruction. SA - Select Alternate Character Set SA [;] • Selects the alternate character set specified by the CA instruction. 10 20 30 40 '*** SASSEX *** LPRINT "PA5000,5000;" LPRINT "SP2;CS4;CA9;SS;LBS_E_T_4";CHR$(14);"S_E_T_9";CHR$(3) ENDø DT - Define Label Terminator DT c [;] c : Character • The specified character is used as the character plotter terminator.
Revision C 16/01/96 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.
Revision C 16/01/96 DR [ run, rise ] [;] run : X direction component rise : Y direction component • Percentage of the distance in the X and Y directions between P1 and P2 • Specifies the character plot direction. • Values for the run and rise are clamped real numbers. • The instruction is ignored when values for both run and rise are 0. • When the parameter field is omitted, the default value (horizontal direction) is used.
Revision C 16/01/96 SI - Set Absolute Character Size SI [ width, height ] [;] width : the width in centimeters of printed characters height : the height in centimeters of printed characters • Specifies the size of characters to be plotted. • Values for width and height are clamped real numbers. • When the parameter field is omitted, the default values are used (width: 0.1879 cm, height: 0.2690 cm). 10 20 30 40 '*** SIEX1 *** LPRINT "IN;SP1;PA1000,1000;" LPRINT "SI2,1.
Revision C 16/01/96 SR - Set Relative Character Size SR [ width, height ] [;] width ; the width of printed characters expressed as a percentage of the x-component of the distance between P1 and P2. height ; the height of printed characters expressed as a percentage of the y-component of the distance between P1 and P2. • Specifies the size of characters to be plotted. • Values for width and height are clamped real numbers. • When the parameter field is omitted, the default values are used (width: 0.
Revision C 16/01/96 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 • Draws user-generated character or symbol. • Values for Xi and Yi are clamped real numbers. • If a value between 99.0000 and 127.9999 is entered between(Xi, Yi) and (Xi+1, Yi+1), the pen will be lowered at that point. • If a value between -128.0000 and -99.0000 is entered between (Xi, Yi) and (Xi+1, Yi+1), the pen will be raised at that point.
Revision C 16/01/96 2.7. dual context extensions Set High Resolution Control (Brother Original) EscCRRO • This command sets high resolution control off. EscCRRL • This command sets high resolution control light level. EscCRRM • This command sets high resolution control medium level. EscCRRD • This command sets high resolution control dark level. USER RESET (Brother Original) EscCR!#R • # can be 0, 1 or 2. • #0 indicates the current setting are restored. • #1 indicates the user settings 1 are restored.
Revision C 16/01/96 APPENDIX A COMPARISON LIST FOR HL-660, HL-1260, HL-10h, HL-10V/DV, HL-10PS/DPS, HL-8V, HL-4V, HL-4Ve, and HL-6V APPENDIX A -COMPALISON LIST-1
Revision C 16/01/96 In this chapter, you can find which commands are supported by your printer.
Revision C 16/01/96 COMMAND HL-660 HL-1260 HL-10h EscE EscCR FD EscCR!#R Escz Esc%-12345X Esc&u#D Esc&a#L, Esc&a#M Esc9 Esc&l#E Esc&l#C Esc&k#H Esc&l#D Esc&l#F Esc&l#P Esc&l#L Esc&a#R Esc*p#Y Esc&a#V Esc&a#C Esc&l#D Esc&l#F Esc&f#S Esc= Esc&l#O ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü #:0,1,2,3 ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü #:0,1,2,3 Esc&a#G EscCR!#H EscCR!#H EscCR!#E #:0,1,2,3 HL-10V/ DV HL-10PS /DPS HL-8V HL-4V
Revision C 16/01/96 COMMAND Esc&a#P Esc(3@,Esc)3@ SI,SO Esc*c#R Esc(f#W Esc*c#S Esc(symbol ID*1 Esc(s#C,Esc)s#C*2 Esc(s#P,Esc)s#P Esc(s#H,Esc)s#H Esc&k#S Esc(s#V,Esc)s#V Esc(s#S,Esc)s#S Esc(s#B,Esc)s#B Esc(s#T,Esc)s#T*3 Esc&p#X Esc&d#D,Esc&d@ Esc*c#D Esc*c#F HL-660 HL-1260 HL-10h ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü #:0~6, Esc(#X,Esc)#X Esc)s#W Esc*c#E Esc(s#W ü ü ü ü #:0~6,1026, 1028, 1029 ü ü ü ü #:0~6,1026, 1028, 102
Revision C 16/01/96 COMMAND Esc*v#N Esc*v#O Esc*c#G Esc*c#W Esc*p#R Esc*c#Q Esc*v#T Esc*c#A,Esc*c#H Esc*c#B,Esc*c#V Esc*c#P Esc*t#R Esc*r#F Esc*r#T Esc*r#S Esc*b#Y Esc*b#M Esc*r#A Esc*b#W Esc*b#C Esc*rB Esc*rC Esc%#B Esc*c0T Esc*c#Y HL-660 HL-1260 HL-10h ü ü ü ü ü ü ü #:0~4,130 ü ü ü #:0~5,130 ü ü ü ü ü ü ü ü #:0~4,130 ü ü ü #:0~5,130 ü ü ü ü ü ü ü ü #:0~4,130 ü ü ü #:0~5,130 ü #:75,100,150, 200,300,600 #:75,100,150, 200, 300,600 #:75,100,150, 200,300,600 #:0,1,2,3,5,9, 1024, 1152 #:0,1,2,3,5,9,
Revision C 16/01/96 COMMAND Esc*c#X Esc*c#L Esc*c#K Esc&f0X Esc&f1X Esc&f2X Esc&f3X Esc&f4X Esc&f5X Esc&f6X Esc&f7X Esc&f8X Esc&f9X Esc&f10X Esc&f1030X Esc&f1036X Esc&f1038X Esc*s#T Esc*s#U Esc*s#l Esc*s1M Esc&r#F Esc*s#X HL-660 HL-1260 HL-10h ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL10V/DV ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10PS /DPS ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-8V HL-4V HL-4Ve HL-6V ü ü ü ü ü ü ü ü
Revision C 16/01/96 *3 Typeface Selection (PCL) Command Typeface Esc(s129T Esc(s128T Esc(s130T Esc(s104T Esc(s110T Anelia Brougham Letter Gothic OCR-A OCR-B Esc(s152T Esc(s153T Esc(s154T Esc(s155T Esc(s156T Esc(s157T Esc(s158T Esc(s159T Helsinki Tennessee Helsinki Narrow Atlanta Brussels Copenhagen Portugal Calgary Esc(s4101T Esc(s4143T Esc(s4148T Esc(s4326T Esc(s4168T Esc(s4099T Esc(s4140T Esc(s4116T Esc(s4197T Esc(s4102T Esc(s4297T Esc(s4113T PC Tennessee PC Brussels Utah Albertville Antique Oaklan
Revision C 16/01/96 Command Typeface Esc(s16696T Esc(s16602T Esc(s16901T Esc(s31402T BR Symbol Helsinki Tennessee W Dingbats ESC(s134T ESC(s132T ESC(s133T ESC(s135T Bermuda Script Germany San Diego US Roman HL660 HL1260 HL10h ü ü ü ü ü ü ü ü ü ü ü ü HL-10 V/DV HL-10 PS/DPS HL-8V HL-4V ü ü ü ü APPENDIX A -COMPALISON LIST-8 HL4Ve HL-6V
Revision C 16/01/96 Diablo Command Esc US n Esc S Esc RS n SP BS Esc BS Esc 5 Esc 6 Esc / LF Esc U Esc LF Esc D FF CR Esc " Esc # Esc 3 Esc 4 DC3 Esc @ Esc CR ! # R Esc EM n Esc FF n Esc T HL-660 HL1260 HL-10h ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10V /DV ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10PS /DPS HL-8V HL-4V HL-4Ve ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü A
Revision C 16/01/96 Command Esc L Esc C Esc 9 Esc 0 Esc 1 Esc 8 HT Esc HT n Esc VT Esc VT n Esc 2 Esc P Esc Q Esc O Esc F Esc W Esc & Esc E Esc R Esc X Esc H Esc I Esc Y Esc Z Esc*m n1 n2 Esc k n1 n2 Esc / n1 n2 Esc y n1 n2 Esc z n1 n2 HL-660 HL1260 HL-10h ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL10V/DV ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL10PS/DPS HL-8V HL-4V HL-4Ve ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü
Revision C 16/01/96 Epson Command SP BS CR LF FF 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 Esc 2 Esc 0 Esc 1 Esc A n Esc 3 n Esc J n HL-660 ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL1260 ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10h ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10V /DV ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10 PS /DPS HL-8V HL-4V HL-4
Revision C 16/01/96 Command Esc j n Esc D n1 n2 n3 ... NUL HT Esc B n1 n2 n3... NUL Esc b n m1 m2 m3 ...
Revision C 16/01/96 Command Esc 6 Esc 7 Esc l n Esc R n Esc t n Esc&NUL n1 n2 Esc % n NUL Esc:000 Esc * m n1 n2 Esc ? n m Esc ^ a n1 n2 Esc K n1 n2 Esc L n1 n2 Esc Y n1 n2 Esc Z n1 n2 HL-660 ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL1260 ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10h ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10V /DV ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10 PS/DPS HL-8V HL-4V HL-4Ve HL-6V ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü
Revision C 16/01/96 IBM Command ESC SP BS CR LF FF Esc 5 n DC1 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 Esc 3 n Esc J n Esc D n1 n2 n3 ... NUL Esc B n1 n2 n3 ...
Revision C 16/01/96 Command VT Esc R Esc 7 Esc 6 DC2 Esc : Esc P n SI Esc E Esc F SO DC4 CAN 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 Esc Z n1 n2 HL-660 ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL1260 ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10h ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10V /DV ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10 PS/
Revision C 16/01/96 BAR CODE Command 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 HL-660 HL1260 HL-10h ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10V /DV HL-10 PS/DPS HL-8V APPENDIX A -COMPALISON LIST-16 HL-4V HL-4Ve HL-6V
Revision C 16/01/96 HP-GL/2 COMMAND DF IN IP IR SC IW RO PU PD PA PR AA AR AT RT PE CI BR BZ PM EA ER EP EW RA RR WG FP HL-660 ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL1260 ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10h ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10V /DV HL-10 PS/DPS HL-8V HL-4V HL-4Ve HL-6V ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü
Revision C 16/01/96 Command AC FT LA LT PW RF SM SP SV TR UL WU SD AD SS SA FI FN LB DT LO DI DR DV CP CF SI SR HL-660 ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL1260 ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10h ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10V /DV ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10 PS/DPS ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-8V HL-4V HL-4Ve ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü
Revision C 16/01/96 Command SL SB ES TD CO PG RP NP HL-660 ü ü ü ü ü ü ü ü HL1260 ü ü ü ü ü ü ü ü HL-10h ü ü ü ü ü ü ü ü HL-10V /DV HL-10 PS/DPS HL-8V HL-4V HL-4Ve HL-6V ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü APPENDIX A -COMPALISON LIST-19
Revision C 16/01/96 HP-GL COMMAND DF IN IP SC IW RO PG PU PD PA PR AA AR CI EA ER EW RA RR WG FT LT PW SM SP TL XT YT HL-660 HL1260 ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10h ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL10V/DV HL-10 PS\DPS HL-8V APPENDIX A -COMPALISON LIST-20 HL-4V HL-4Ve HL-6V
Revision C 16/01/96 COMMAND PT CS CA SS SA DT LB DI DR CP SI SR SL UC DC DP EX IM QA QC QD QE QF QH QI QQ QP QS QW HL-660 HL1260 ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL-10h ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü ü HL10V/DV HL-10 PS\DPS HL-8V APPENDIX A -COMPALISON LIST-21 HL-4V HL-4Ve HL-6V
Revision C 16/01/96 PJL PJL commands are supported by HL-660, HL-1260 and HL-10h. Other our printers does not support PJL.
Revision C 16/01/96 Command @PJL INFO CONFIG [] @PJL INFO MEMORY [] @PJL INFO STATUS [] @PJL INFO VARIABLES [] @PJL INFO USTATUS [] @PJL INFO PAGECOUNT [] @PJL INFO PHYSICALMEMORY [] @PJL INFO FEATURES [] @PJL USTATUS variable = value [] @PJL USTATUSOFF [] @PJL RDYMSG DISPLAY = "message" [] @PJL OPMSG DISPLAY = "message" [] @PJL STMSG DISPLAY = "message" [] General PJL Environment Valiables COPIES PAPER
Revision C 16/01/96 RESOLUTION 300, 600 300, 600 APPENDIX A -COMPALISON LIST-24 300,600
Revision C 16/01/96 General PJL Environment Valiables PERSONALITY HL-660 HL-1260 HL-10h AUTO, PCL, IBM, EPSON, POSTSCRIPT*2 AUTO, PCL, POSTSCRIPT, IBM, EPSON, HPGL AUTO, PCL, POSTSCRIPT, Interactive, IBMProprinterXL, EPSONFX850, HPGL, Diablo630 1~99 LOCKED, UNLOCKED LOCKED, UNLOCKED TIMEOUT INTRAY1 INTRAY2 INTRAY3 AUTOCONT LOWTONER INTRAY1SIZE INTRAY2SIZE INTRAY3SIZE ECONOMODE ECONOLEVEL XOFFSET YOFFSET AUTOCONT TIMEOUTEMU PRIORITY AUTOFF TIMEOUTFF TIMEOUT CDCCHIGH DTRCTRL AUTOSLEEP TIMEOUTSLEEP
Revision C 16/01/96 General PJL Environment Valiables DEMOPRINT LANG KEEPPCL DOUBLESTRIKE DUPLEX BINDING FIRSTPRINT DENSITY CPLOCK PASSWORD MPTRAY MEDIATYPE PCL Specific Valiables FONTSOURCE FONTNUMBER PITCH PTSIZE SYMSET HL-660 ON, OFF ENGLISH, FRENCH, GERMAN, DUTCH, NORWEGIAN HL-1260 HL-10h ENGLISH, FRENCH, GERMAN, DUTCH, SPANISH, ITALIAN, FINNISH, NORWEGIAN, PORTUGUESE, DANISH ON, OFF ON, OFF ON, OFF LONGEDGE, SHORTEDGE NORMAL, MIDDLE, HIGH 1~15 ON, OFF 0~65535 CASSETTE, FIRST REGULAR, THICK, TRA
Revision C 16/01/96 PCL Specific Valiables PAPER ORIENTATION LEFTMARGIN RIGHTMARGIN TOPMARGIN BOTMARGIN FORMLINES AUTOLF AUTOCR AUTOWRAP AUTOSKIP PostScript Specific Valiables PRTPSERRS PAPER ORIENTATION CRLFCONV APPLETALKPS HL-660 LETTER, A4, LEGAL, EXECUTIVE, COM10, MONARCH, C5, DL, JISB5, A4LONG PORTRAIT, LANDSCAPE 0 ~126 columns 0 ~136 columns 0, 0.33, 0.5, 1.0, 1.5, 2.0 inch 0, 0.33, 0.5, 1.0, 1.5, 2.
Revision C 16/01/96 EPSON Specific Valiables PAPER ORIENTATION LEFTMARGIN RIGHTMARGIN TOPMARGIN BOTMARGIN FORMLINES FONTNUMBER PITCH PTSIZE SYMSET AUTOLF AUTOMASK SELREADOUT HL-660 LETTER, A4, LEGAL, EXECUTIVE, COM10, MONARCH, C5, DL, JISB5, A4LONG PORTRAIT, LANDSCAPE 0 ~126 columns 0 ~136 columns 0, 0.33, 0.5, 1.0, 1.5, 2.0 inch 0, 0.33, 0.5, 1.0, 1.5, 2.0 inch 5~128 0,1,2, ...n 0.44, 0.45 ~ 99.99 4.00, 4.25 ~ 999.
Revision C 16/01/96 IBM Specific Valiables PAPER ORIENTATION LEFTMARGIN RIGHTMARGIN TOPMARGIN BOTMARGIN FORMLINES FONTNUMBER PITCH PTSIZE SYMSET AUTOLF AUTOCR AUTOMASK HL-660 LETTER, A4, LEGAL, EXECUTIVE, COM10, MONARCH, C5, DL, JISB5, A4LONG PORTRAIT, LANDSCAPE 0 ~126 columns 0 ~136 columns 0, 0.33, 0.5, 1.0, 1.5, 2.0 inch 0, 0.33, 0.5, 1.0, 1.5, 2.0 inch 5~128 0,1,2, ...n 0.44, 0.45 ~ 99.99 4.00, 4.25 ~ 999.