HP deskjet 600 User Manual

Page of 124
HP DeskJet 600, 700, 800, 
900 & HP 2000 Series 
PCL Developer’s Guide
Hewlett-Packard Vancouver Site
To aid in HP PCL printer driver development 
for HP DeskJet 600/700/800/900 & HP 2000 
Series printers
 

Summary of Contents of user manual for HP deskjet 600

  • Page 1

    HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide Hewlett-Packard Vancouver Site To aid in HP...

  • Page 2

    Preface and Printing History 1.0 Preface and Printing History The information contained in this document is subject to change...

  • Page 3

  • Page 4

    About this Developer’s Guide 2.2 Special Notes 4 HP DeskJets were designed in series - the printer’s internal firmware...

  • Page 5

    Table of Contents 3.0 Table of Contents 1.0 Preface and Printing History 2 2.0 About this Developer’s Guide 3...

  • Page 6

    Table of Contents 9.0.1 Follow Specifications 22 9.0.2 Leverage from Previous Programs 22 9.0.3 Priority of Feature Set Commands...

  • Page 7

    Table of Contents 10.9.5 Formfeed 50 10.9.6 Horizontal Tab 50 10.9.7 Move CAP Horizontal (Decipoints) 51 10.9.8 Move CAP...

  • Page 8

    Table of Contents 11.2.4 Font Type (UBYTE) 93 11.2.5 Style MSB (UINT) 93 11.2.6 Baseline Position (UINT) 94 11.2.7...

  • Page 9

    Table of Contents 12.0.3 Descriptor Size (UBYTE) 108 12.0.4 Class (UBYTE) 108 12.0.5 Orientation (UBYTE) 111 12.0.6 Left Offset...

  • Page 10

    How This Developer’s Guide Works 4.0 How This Developer’s Guide Works Below is a sample command description chart from...

  • Page 11

    How This Developer’s Guide Works 4.0.4 Escape Sequence C This is the ASCII text version of the binary string,...

  • Page 12

    How This Developer’s Guide Works 4.0.10 Detailed Command Description I This is where all aspects of the command are...

  • Page 13

    Introduction to HP PCL 5.0 Introduction to HP PCL 5.1 History of HP PCL Printer Language Hewlett-Packard created the...

  • Page 14

    Introduction to HP PCL Once an HP PCL command sets a parameter, that parameter will remain set until that...

  • Page 15

    Introduction to HP PCL zi Parameter Character - Any character from the ASCII table within the range 96-126 deci-...

  • Page 16

    Introduction to HP PCL Esc & l 1 o 2 A Escape Termination Character Character Parameterized Value Character Field...

  • Page 17

    The Page 6.0 The Page 6.1 Logical Page, Physical Page The HP PCL printer language distinguishes between the physical...

  • Page 18

    The Page 6.2 Page Layout Referring to the previous figure, each page passed through the printer has a number...

  • Page 19

    The Page point (0,0) may change. The point (0,0) then, does not necessarily equate to the top of the...

  • Page 20

    The Print Environment 7.0 The Print Environment The group of all the printer's current feature settings is collectively referred...

  • Page 21

    Merged Text and Graphics 8.0 Merged Text and Graphics The process for merging text and graphics with the HP...

  • Page 22

    Programming Hints 9.0 Programming Hints The following are overall guidelines to keep in mind when programming with HP PCL...

  • Page 23

    Programming Hints 9.0.4 Priority of Commands There are no finite rules when it comes to structuring your overall program....

  • Page 24

    Programming Hints 4 Avoid using a Start Raster Graphics and End Raster Graphics command on every line. Use these...

  • Page 25

    HP PCL Commands 10.0 HP PCL Commands 10.1 Control Codes and Special Character Codes The following commands initiate printer...

  • Page 26

    HP PCL Commands 10.3.2 Display Functions Mode ON TABLE 3. Display Functions Mode ON - Esc Y HP2000C DJ610C...

  • Page 27

    HP PCL Commands 10.4 Text Enhancements 10.4.1 Enable Underline TABLE 5. Enable Underline - Esc & d # D...

  • Page 28

    HP PCL Commands With HP DeskJet 500 Series printers, if underlining is enabled and changing the left mar- !...

  • Page 29

    HP PCL Commands 10.4.4 End-of-Line Wrap TABLE 8. End-of-Line Wrap - Esc &s#C HP2000C DJ610C DJ660C DJ670C DJ680C DJ690C...

  • Page 30

    HP PCL Commands 10.5 Job Control 10.5.1 Reset Esc E Performs a reset on the printer (this is NOT...

  • Page 31

    HP PCL Commands 10.6 Printer Control 10.6.1 Gray Balance TABLE 9. Gray Balance - Esc * b # B...

  • Page 32

    HP PCL Commands 10.6.2 Dry Timer TABLE 10. Dry Timer - Esc &b#T HP2000C DJ610C DJ660C DJ670C DJ680C DJ690C...

  • Page 33

    HP PCL Commands 10.6.3 Print Quality TABLE 11. Print Quality - Esc * o # m/M HP2000C DJ610C DJ660C...

  • Page 34

    HP PCL Commands 10.6.4 Media Type TABLE 12. Media Type - Esc &l#M HP2000C DJ610C DJ660C DJ670C DJ680C DJ690C...

  • Page 35

    HP PCL Commands The value field establishes the number of units per inch used in the following commands. These...

  • Page 36

    HP PCL Commands 10.7 Printer Diagnostics 10.7.1 Self-Test Esc z Initiates printer self-test, which instructs the printer to perform...

  • Page 37

    HP PCL Commands 10.8 Page Control The following commands facilitate the definition of a print job page. 10.8.1 Page...

  • Page 38

    HP PCL Commands HP DeskJet maximum page length is 14 inches for the HP DeskJet 600/800/900 & HP 2000...

  • Page 39

    HP PCL Commands Since the logical page is defined to extend from the top and bottom edges of the...

  • Page 40

    HP PCL Commands With HP DeskJet 600/800/900 & HP 2000 Series printers, all envelopes load in landscape (short edge...

  • Page 41

    HP PCL Commands 10.8.4 Orientation TABLE 20. Orientation - Esc & l # O HP2000C DJ610C DJ660C DJ670C DJ680C...

  • Page 42

    HP PCL Commands 10.8.5 Horizontal Motion Index TABLE 21. Horizontal Motion Index (HMI) - Esc &k#H HP2000C DJ610C DJ660C...

  • Page 43

    HP PCL Commands 10.8.6 Vertical Motion Index TABLE 22. Vertical Motion Index (VMI) - Esc &l#C HP2000C DJ610C DJ660C...

  • Page 44

    HP PCL Commands 10.8.7 Line Spacing TABLE 23. Line Spacing - Esc &l#D HP2000C DJ610C DJ660C DJ670C DJ680C DJ690C...

  • Page 45

    HP PCL Commands 10.8.9 Left Margin TABLE 25. Left Margin - Esc &a#L HP2000C DJ610C DJ660C DJ670C DJ680C DJ690C...

  • Page 46

    HP PCL Commands margin to the left of the left margin should be ignored; however, left and right margins...

  • Page 47

    HP PCL Commands 10.8.12 Text Length TABLE 28. Text Length - Esc & l # F HP2000C DJ610C DJ660C...

  • Page 48

    HP PCL Commands If perforation skip is disabled, text is printed to the end of the page and onto...

  • Page 49

    HP PCL Commands 10.9 Horizontal Positioning Commands The following commands provide for cursor movement on the horizontal axis. 10.9.1...

  • Page 50

    HP PCL Commands Moves CAP to the same horizontal position, one row down. If perforation skip mode is enabled,...

  • Page 51

    HP PCL Commands 10.9.7 Move CAP Horizontal (Decipoints) TABLE 30. Move CAP Horizontal (Decipoints) - Esc &a#H HP2000C DJ610C...

  • Page 52

    HP PCL Commands 10.9.8 Move CAP Horizontal (Columns) TABLE 31. Move CAP Horizontal (Columns) - Esc &a#C HP2000C DJ610C...

  • Page 53

    HP PCL Commands This command ignores margins and can move CAP horizontally anywhere within the logical page. Attempts to...

  • Page 54

    HP PCL Commands 10.10 Vertical Positioning Commands The following commands provide cursor positioning on the vertical axis. 10.10.1 Move...

  • Page 55

    HP PCL Commands 10.10.2 Move CAP Vertical (Decipoints) TABLE 34. Move CAP Vertical (Decipoints) - Esc & a #...

  • Page 56

    HP PCL Commands 10.10.3 Move CAP Vertical (HP PCL Units) TABLE 35. Move CAP Vertical (HP PCL Units) -...

  • Page 57

    HP PCL Commands 10.11 Font Selection 10.11.1 Font Selection by Attribute The user requests a font by designating its...

  • Page 58

    HP PCL Commands The following table lists printer-supported symbol sets and symbol set IDs for the HP DeskJet 600/800/900...

  • Page 59

    HP PCL Commands ID Symbol Set Name ID Symbol Set Name 11L ITC Zapf Dingbats Series 100 0R Cyrillic...

  • Page 60

    HP PCL Commands 10.11.3 Font Spacing TABLE 37. Font Spacing (Primary) - Esc (s#P Font Spacing (Secondary) - Esc...

  • Page 61

    HP PCL Commands If the exact pitch is unavailable, the next larger pitch is selected. If a larger pitch...

  • Page 62

    HP PCL Commands 10.11.6 Font Style TABLE 40. Esc ( s # S Font Style (Primary) - Font Style...

  • Page 63

    HP PCL Commands Value (#) = Structure (style word partial sum multiplied by 32) 0 Solid 1 Outline 2...

  • Page 64

    HP PCL Commands 10.11.7 Font Stroke Weight TABLE 41. Esc ( s # B Font Stroke Weight (Primary) -...

  • Page 65

    HP PCL Commands 10.11.8 Font Selection by ID TABLE 42. Esc ( # X Font Selection by ID (Primary)...

  • Page 66

    HP PCL Commands 10.12 Downloading Fonts Currently, the HP DeskJet 600 Series and 850/855 Series printers are the only...

  • Page 67

    HP PCL Commands 10.12.2 Download Font TABLE 44. Download Font - Esc ) s # W [font definition] HP2000C...

  • Page 68

    HP PCL Commands 10.12.3 Character Code TABLE 45. Character Code - Esc * c # E HP2000C DJ610C DJ660C...

  • Page 69

    HP PCL Commands group of bytes sent by one command is called a block. A character definition consists of...

  • Page 70

    HP PCL Commands 10.13 Raster Graphics The following HP PCL commands apply to the printing of raster graphic images...

  • Page 71

    HP PCL Commands 10.13.4 Start Raster TABLE 48. Start Raster - Esc * r # A HP2000C DJ610C DJ660C...

  • Page 72

    HP PCL Commands 4 Resets the left graphics margin to 0. 4 Moves CAP to the row immediately following...

  • Page 73

    HP PCL Commands 10.13.7 Source Raster Width TABLE 51. Source Raster Width - Esc *r#S HP2000C DJ610C DJ660C DJ670C...

  • Page 74

    HP PCL Commands Since width is in the direction that the raster rows are laid down, source raster width...

  • Page 75

    HP PCL Commands 10.14 Raster Data Transfer The Raster Transfer commands (Esc * b # V, Esc * b...

  • Page 76

    HP PCL Commands 10.14.2 Transfer Raster by Row/Block TABLE 54. Transfer Raster by Row or Block - Esc *...

  • Page 77

    HP PCL Commands 10.15 Raster Compression Since raster images take a large amount of memory and processing time, raster...

  • Page 78

    HP PCL Commands Method 1 requires byte pairs: a Transfer Raster (Esc * b # V or Esc *...

  • Page 79

    HP PCL Commands Compression method 1 - Run-length encoding Esc*r1 A Esc*b1 m6W(3)U(0)A(1)T Esc*rC Compression method 2 - TIFF...

  • Page 80

    HP PCL Commands The values of the offset have the following definitions: 0 to 30: The offset is 0...

  • Page 81

    HP PCL Commands The following data is compressed using method 3. Italicized bytes are those needing replace- ment, i.e.,...

  • Page 82

    HP PCL Commands Control Bit: Determines whether the replacement data is encoded, and also the bit boundaries of the...

  • Page 83

    HP PCL Commands Seed Row Source Esc * b # S Specifies the plane of the seed row for...

  • Page 84

    HP PCL Commands 10.16 Color 10.16.1 Simple Color TABLE 56. Simple Color - Esc *r#U (Also known as Set...

  • Page 85

    HP PCL Commands Row Pointer. The HP DeskJet 600/800/900 & HP 2000 Series printer firmware will com- plement the...

  • Page 86

    HP PCL Commands 4 Plane (KCMY) Color Palette (value = -4) Planes per Row Color Printed Data Plane Pattern...

  • Page 87

    HP PCL Commands 10.16.2 Foreground Color TABLE 57. Foreground Color - Esc *v#S HP2000C DJ610C DJ660C DJ670C DJ680C DJ690C...

  • Page 88

    HP PCL Commands TABLE 58. Single Plane (black) Palette Planes Per Row Index Color 1 0 White (no ink)...

  • Page 89

    HP PCL Commands TABLE 61. Four Plane (KCMY) Color Palette Planes per Row Index Color Printed 4 0 White...

  • Page 90

    Fonts 11.0 Fonts A soft font is composed of a Font Definition (font header) and a series of character...

  • Page 91

    Fonts 11.2 Resolution-Specified Bitmap Font Definition (Format 20) The Resolution-Specified Bitmap font definition shown below is the same as...

  • Page 92

    Fonts The following notation is used to define data types in the font definitions: (BOOL) Boolean (0,1) (UBYTE) Unsigned...

  • Page 93

    Fonts a. Access to those codes that are unprintable, yet have a character defined, requires the use of the...

  • Page 94

    Fonts 5 - Outline with shadow 6 - In-line with shadow 7 - Contour with shadow 8-11 -Patterned (complex...

  • Page 95

    Fonts 11.2.10 Spacing (BOOL) Specifies the type of font spacing. Fixed spacing is 0; proportional spacing is l; dual-fixed...

  • Page 96

    Fonts 11.2.14 Height (UINT) Bitmap Font - Specifies the font’s height in quarter-dot units. The value, converted to points...

  • Page 97

    Fonts Value Stroke Weight 5 Black 6 Extra black 7 Ultra black Default = 0 Range = -7 to...

  • Page 98

    Fonts 2 3rd version 3 4th version Vendor (typeface word partial sum multiplied by 2048) 0 Reserved for generic...

  • Page 99

    Fonts 11.2.22 Placement HP DeskJet 600/800/900 & HP 2000 Series printers ignore this field. 11.2.23 Underline Position (SBYTE) Bitmap...

  • Page 100

    Fonts 11.2.27 First Code (UINT) Specifies the character code of the first printable character in the font. The space...

  • Page 101

    Fonts point font for a 300-ppi device would have a height of 166 (41.5 dots, or 9.96 points) and...

  • Page 102

    Fonts 11.2.36 Copyright This optional field contains ASCII data. 11.2.37 Font Scaling Technology This field specifies either an Intellifont...

  • Page 103

    Fonts 11.3 Bitmap Resolution Segment The BR (Bitmap Resolution) segment is used to define the X resolution and Y...

  • Page 104

    Fonts 11.4 Character Enhancement Segment The CE (Character Enhancement) segment is used to indicate if a downloaded font is...

  • Page 105

    Fonts Bit Positions (#) = StrokeWeight 0-6 reserved 7 Semi Light 8 “Book” or “Text” 9 Semi-Bold 10 Demi-Bold...

  • Page 106

    Fonts 11.5 Dual-Pitch-Space Char Segment The DP (Dual-Pitch-Space Character Code) segment is used to specify the space character code...

  • Page 107

    HP LaserJet Bitmap Character Definition 12.0 HP LaserJet Bitmap Character Definition The format for the HP LaserJet bitmap character...

  • Page 108

    HP LaserJet Bitmap Character Definition 12.0.2 Continuation (BOOL) Specifies whether the following data is a character descriptor block (0)...

  • Page 109

    HP LaserJet Bitmap Character Definition of the character (in portrait orientation): the first dot row of data corresponds to...

  • Page 110

    HP LaserJet Bitmap Character Definition Character Height Left Offset Character Width Padding for Byte Alignment* Number Number Number Number...

  • Page 111

    HP LaserJet Bitmap Character Definition 12.0.5 Orientation (UBYTE) Bitmap fonts only. Specifies the orientation of the character. Character orientation...

  • Page 112

    HP LaserJet Bitmap Character Definition 12.0.10 Delta X (SINT) Bitmap fonts only. Specifies the number of quarter-dot units (radix...

  • Page 113

    Banner Printing 13.0 Banner Printing The following information concerns the printing of continuous forms (banners, z-fold media) on the...

  • Page 114

    Banner Printing 13.0.2 Margins Margins in banners are handled the same as margins with cutsheet media. Default top and...

  • Page 115

    Banner Printing 13.0.6 Power-On with Continuous Media The firmware will remember what media type is loaded. If powered down...

  • Page 116

    HP PCL Code Samples 14.0 HP PCL Code Samples The following pages contain PCL code samples that are intended...

  • Page 117

    HP PCL Code Samples Command Line, Action Command Comment Set Text Length Esc & l 72 F 11 in....

  • Page 118

    HP PCL Code Samples 14.2 Commands Sent to Printer The series of escape sequences in the table above sends...

  • Page 119

    HP PCL Code Samples 14.3 3-Plane Color Graphics The following shows a simple 3 plane color graphics PCL code...

  • Page 120

    HP PCL Code Samples 14.4 4-Plane Color Graphics The following shows a simple 4 plane color graphics PCL code...

  • Page 121

    HP PCL Code Samples PCL Codes HEX Data (Run Length Compression) Description <esc>*b18W 0800 0800 0800 08FF 0100 08FF...

  • Page 122

    Printer Commands 15.0 Printer Commands Escape Action - Result Escape Action - Result Sequence Sequence Esc & a #...

  • Page 123

    Printer Commands Esc * c # E Character Code Esc ) s W Download Font Esc * c #...

  • Page 124

    Other Resources for Assistance 16.0 Other Resources for Assistance 16.1 HP Developer Exchange Available on the World Wide Web...

downloadlike
ArtboardArtboardArtboard
Report Bug