Xerox 4213 Programmer's Reference Manual
Xerox 4213 Programmer's Reference Manual

Xerox 4213 Programmer's Reference Manual

Xerox laser printer specification sheet
Hide thumbs Also See for 4213:
Table of Contents

Advertisement

Quick Links

Xerox 4213 Laser Printer
Programmer Reference
May 1992
720P40020
r r r r XEROX

Advertisement

Table of Contents
loading

Summary of Contents for Xerox 4213

  • Page 1 Xerox 4213 Laser Printer Programmer Reference May 1992 720P40020...
  • Page 2 Printed in the EEC Xerox®, Rank Xerox® and all Xerox products mentioned in this publication are trademarks of Xerox Corporation and Rank Xerox Limited. Other company trademarks are also acknowledged.
  • Page 3 Providing the proper environmental parameters as specified in Xerox installation procedures will ensure that concentration levels meet safe limits. The 4213 has an ozone filter built into the print cartridge. The following note is to meet the local requirements of Finland and Sweden.
  • Page 4 Operational safety Notice Your Xerox equipment and supplies were designed and tested to meet strict safety requirements. examination, approval, environmental standards. WARNING: Improper connection of the equipment grounding conductor can result in electrical shock. Attention to the following notes ensures the continued safe operation of your equipment.
  • Page 5: Related Publications

    Xerox 4213 Laser Printer User Guide Xerox 4213 Laser Printer Programmer Reference Xerox Coax/Twinax Option (XCTO) Programmer Reference Xerox 4213 Laser Printer Quick Reference Guide Helpful Facts About Paper Xerox 4213 XES Quick Reference Card PostScript Language Reference Manual, 1985, Adobe Systems Incorporated, Addison-Wesley Publishing Company, Inc., Sixth...
  • Page 7: Table Of Contents

    Purpose of this manual What this manual contains Variances Conventions used in this manual 1. Interfaces Parallel interface XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Operational safety Parallel interface cable Centronics interface Select the Centronics parallel interface Select metered data Return to print mode...
  • Page 8 TABLE OF CONTENTS Serial interface Null modem 2. XES command language mode Configuring the 4213 for the XES command language mode The User-Defined Key, or substitute escape character Line end Select the serial interface Set baud rate Set parity Set flow control...
  • Page 9 Fonts on the 4213 How fonts are stored How to download fonts from the host computer Font Load Font Add XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Page orientation Font orientation Coordinates, units of measure, and paper feed direction Determining the paper feed edge...
  • Page 10 Justification Start/Stop Centre viii About margins More about page and font orientations More about page boundaries Text placement restrictions on the 4213 printer More about job boundaries More about page boundaries About justification About centreing XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 11 Creating constant pages Merge Page Load Merge Page Unload Merging constant pages Merge Start Merge Stop Graphics on the 4213 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Italics Data capacity for each Raster graphics Vector graphics Macro graphics TABLE OF CONTENTS...
  • Page 12 Reversing images Rotating images Graphic commands and the current text position Graphic commands and the current graphic position More about Graphic Pie Chart The purpose of the data monitor XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE 2-79 2-80 2-80 2-81 2-81...
  • Page 13 Data Monitor Character codes on the Xerox 4213 Supported coding schemes Translation table structure Character reassignment Load Translation Table Language Sample job More about creating tables 3. LJ series 2D emulation Font compatibility Primary and secondary fonts Font characteristics XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 14 Parameter character Final parameter character Binary data Combining escape sequences Printer reset Number of copies 1-sided/2-sided Left Offset Registration Top Offset Registration 2-sided Page Selection XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE 3-10 3-10 3-10 3-10 3-10 3-11 3-11 3-11 3-12...
  • Page 15 Page control commands Cursor positioning commands XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Paper Source Page Size Page Length Orientation Left Margin Right Margin Clear Horizontal Margins Top Margin Text Length Perforation Region Horizontal Motion Index Vertical Motion Index Line Spacing...
  • Page 16 Fixed underlining Floating underlining Disable Underline Primary and secondary fonts Font ID Font Control Font Selection by ID Font Descriptor Character Code Character Descriptor and Data XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE 3-34 3-34 3-34 3-35 3-35 3-35 3-35 3-35 3-36...
  • Page 17 Graphics commands Macro commands 4. PostScript emulation Userdict operators for page type System parameters XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Raster Graphics Resolution Raster Graphics Presentation Mode Start Graphics Transfer Raster Data End Graphics Horizontal Rectangle Size (Decipoints) Horizontal Rectangle Size (Spots)
  • Page 18 How sixel encoding works Sample programme in C for sixel encoding Run-length packing Sample programme in BASIC for run-length packing Reference tables XES compatibility Default format parameters XES summary sheet Summary Sheet Error messages XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE INDEX-1...
  • Page 19 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE This manual is for anyone who wants to access and control the printer with commands instead of, or in conjunction with, application software. When you load and configure your software application package you are asked to identify the type of printer that you will be using.
  • Page 20: Purpose Of This Manual

    4213 printer. For directions on installing, enabling, and configuring a printer emulation, refer to the Xerox 4213 Laser Printer User Guide. Chapter 1: Interfaces Chapter 2: XES Command Language Mode...
  • Page 21: Index

    The following differences exist between the 4213 and 4046 laser printers: Pages may break differently on the two printers. To match rotation on the 4213, the 4045 must have an XGRAPH cartridge installed. Set the page buffer to “FULL” to correctly print complex pages.
  • Page 22 256K, always represents a thousand. In the index, the use of the lowercase “i” denotes an illustration, the lowercase “f” means a figure and the lowercase “t ”refers to a table. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 23: Interfaces

    Printer Centronics and Dataproducts. Each is described on the following pages. You must supply the interface cable to connect the 4213 to your host. The cable must meet the following specification in order to comply with FCC and VDE regulations.
  • Page 24: Centronics Interface

    4. Press the Select D button when your choice appears on the User Interface. Return to print mode Press the Online H button to return the 4213 to Print Mode. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE selected through User...
  • Page 25: Centronics Connector

    Amphenol #57-30360 or equivalent connector and is illustrated in figure 1-1. Centronics compatible Epson type interfaces for personal computers can also be used on the 4213. female Centronics cable connection is supplied. associated with each pin are described in Table 1-2. on the following page.
  • Page 26: Centronics Signals And Pin Assignments

    PE H From printer SLCT H Printer to stunt 0 volts XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Description STROBE pulse low to read data. A strobe low signal raises BUSY line to high. ACKNLG pulse low indicates data was received and printer is ready to receive more data.
  • Page 27 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Table 1-2. Centronics (continued) Direction Signal From printer 0 volts 0 volts To printer INIT L From printer ERROR L Not used Not used These signals are the 1st and 8th bits of parallel data and are active high for a logical 1.
  • Page 28: Centronics Interface Timing

    INTERFACES Centronics interface timing Figure 1-2 diagrams signal timing for the Centronics interface. Figure 1-2. Centronics interface timing XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 29: Dataproducts 2260

    Acknowledge, Busy, Select, etc. Data rates The 4213 supports burst data rates of up to 50 Kbytes per second for at least 512 bytes. Select the Dataproducts parallel interface The Dataproducts parallel interface is selected through the User Interface.
  • Page 30: Dataproducts Connector

    They do not appear on the real connector. maximum cable Dataproducts interface is 10 feet (3.05 metres). Figure 1-3 shows the Dataproducts connector. 4213 does support Dataproducts 2260. Figure 1-3. Dataproducts interface connector XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE length when using Negative Logic mode...
  • Page 31: Dataproducts Signals And Pin Assignments

    Dataproducts signals and pin assignments XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Table 1-4 describes the signals and pin assignments for the Dataproducts 2260 interface. Table 1-4. Dataproducts signals and pin assignments Signal Source Data 1 Host (LSB) return Data 2...
  • Page 32: Dataproducts Interface Timing

    Interface Printer Connect Verify Interface Printer Connect Verify W, H Spare Printer &P, M Figure 1-4 describes the Dataproducts interface timing when measured at the printer connector. Figure 1-4. Dataproducts interface timing XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE signals assignments...
  • Page 33: Serial Interface

    50 Kbytes per second for at least 560 bytes, or until a line-end or form-feed is detected. The serial interface, as well as the serial interface features supported by the 4213, are selected through the User Interface. The serial interface connector is compatible with RS232-C DTE standards.
  • Page 34: Set Baud Rate

    8 BIT ODD, 8 BIT EVEN, 8 BIT NONE. 8 BIT NONE is the factory default. 5. Press the Select D button to select parity. Note: For LJ2D emulation, 8 data bit mode is required. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE 9,600 is the...
  • Page 35: Set Flow Control

    Note: When connected to a modem, XON/OFF is required. Return to printer operation Press the Online H button to return the 4213 to Print Mode. The 4213 supports asynchronous modems and host employing the RS232C interface. The modems supported are Bell 103 and 212 compatible asynchronous modes communicating at rates of 1,200, 2,400, 4,800, 9,600, or 19,200 bps, half or full 2-sided.
  • Page 36: Serial Interface Features Supported

    INTERFACES Serial interface features supported Serial signals and pin assignments 1-14 The 4213 supports the following serial interface features: Bit rate within a character may be up to 19.2K baud • Baud rates of 1,200, 2,400, 4,800, 9,600, 19,200 •...
  • Page 37: Null Modem

    A null modem is a device which eliminates both a modem and a telephone line. Figure 1-6 illustrates typical null modem wiring. When the 4213 is used with an asynchronous serial interface connected to a DTE host (such as a PC-compatible), a modem, modem eliminator, or a null modem is required.
  • Page 38 INTERFACES Figure 1-6. Null modem wiring 1-16 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 39: Xes Command Language Mode

    Xerox 4213 laser printer. Please refer to the Xerox 4213 Laser Printer User Guide for instructions on how to configure the 4213 printer to operate in XES mode. It is possible to have software loaded in the 4213 which enables switch from emulation reconfiguring the printer.
  • Page 40: The Mode Change Command

    A line ending following the END keyword completes the command. The reset command The reset command resets the 4213 laser printer, restoring it to the default settings that were in effect at the last power off cycle. Send the following command to your printer, preferably in the...
  • Page 41: Definition Of A Printer Command

    Escape is a non- printable control code with the hexadecimal ASCII value 1B. In XES mode, the 4213 recognises the escape character as a signal to indicate that the letters and numbers making up the rest of the sequence are not text to be printed, but instructions to be executed.
  • Page 42: Job Control Commands

    An optional text message of up to 130 alphanumeric characters that will appear on the Summary Sheet. The line end required to complete the command. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 43: Simple Commands

    Example Example The User-Defined Key, or substitute escape character XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Simple commands Simple commands are made up of the escape character and one or two other lower case characters. They do not require any line end command for completion.
  • Page 44: Showing Commands In Printed Output

    User-Defined Key. As far as the printer is concerned, any time it receives the sequence =UDK=, the character immediately following the second equal sign is the new User-Defined Key. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 45: Printing The Sequence =Udk= As Text

    Printing the sequence =UDK= as text Example Cancelling a User-Defined Key Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The percent symbol (%) is your current User-Defined Key and you want to print the sentence: “The test is 85% accurate.” Enter: =UDK=*The test is 85% accurate.=UDK=% At the end of the sentence, the User-Defined Key is changed back to the percent symbol (%).
  • Page 46: Tips On Selecting A Udk

    Line end configuration may differ from one host system to another. It may be either a carriage return (0DH) or a line feed (0AH). Ensure that the line end for the 4213 matches that of your host. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 47: Page Orientation

    How the printer defines a page Page orientation Font orientation XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE There are two types of page orientations: Portrait • Landscape. • A portrait page is taller than it is wide; a landscape page is wider than it is tall.
  • Page 48: Coordinates, Units Of Measure, And Paper Feed Direction

    Figure 2-1. Font and page orientation The page on the 4213 is like a grid, with an origin, an x-axis, and a y-axis. Data can be placed virtually anywhere on the grid of the page. The basic unit of printable data is the pixel or dot, which is also the basic unit of measure used in all commands that set measurements.
  • Page 49: Determining The Paper Feed Edge

    Determining the paper feed edge XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Figure 2-2. Specifications for short-edge feed paper The paper feed edge is the edge that is fed first into the printer. The paper trailing edge is the edge fed last into the printer.
  • Page 50: Page Capacity

    XES COMMAND LANGUAGE MODE Page capacity 2-12 The page on the 4213 is 100% addressable when paper is fed from trays 1, 2, or the high-capacity feeder. wide lead edge deletion when feeding from the bypass tray. (The bypass tray accommodates special papers such as card stock, envelopes, and transparencies.)
  • Page 51 Setting job boundaries XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE There are two commands for starting a document: Print Job (E L), which is used to start a document that will • have one font orientation (either portrait or landscape) per page.
  • Page 52: Examples

    For a typical document, you might enter: • (Fonts assigned) (Margin settings) (All other job contents) Then send it to the printer. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE What it does Separates your job from last job printed. Separates your job from last job printed. (Mixed orientation.)
  • Page 53: Print Job

    Print Job Purpose Where to place it Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE For a series of three documents, all of which are to have the • same settings, you might enter (Fonts assigned) (Margin settings) (All other contents of job 1)
  • Page 54 Optional request for a Summary Sheet to report errors upon execution of the next job command. comment Optional comment on a Summary Sheet Line end. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE (Font name is Helvetica14i2-P) (Font name is Helvetica10i2-P) (Font name is Helvetica8i2B-P)
  • Page 55 Purpose Where to place it Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE At the start of the document data. To begin a job having mixed font orientations, with a Summary Sheet having the comment “This page has two font orientations”,...
  • Page 56 Also covered in this section is: — Comment, which allows you to make notes in your job without their appearing in the printed output or otherwise affecting the job. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE this section determine These commands...
  • Page 57: Multiple Copies

    Multiple Copies Purpose Where to place it Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Determines the number of uncollated copies when more than one copy is desired. Syntax +Cn,commentL Instruction to print multiple copies. Indicates the number of copies to be printed, up to 999 copies.
  • Page 58: Multiple Copies (Non-Collated)

    If n = 0, the command is ignored and defaults to printing one copy. The maximum number of copies that can be requested at the printer control panel is 99. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE the number of copies to be printed, up...
  • Page 59: Paper Tray

    Paper Tray Purpose Where to place it Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Selects a paper source other than the default. Syntax Instruction for tray selection. Indicates tray selection in table 2-2: Before any printable data on the page. If Paper Tray is entered within the printable contents of the page, it will take effect on the next page.
  • Page 60 The maximum paper width and length that can be used on the 4213 are 257 mm x 364 mm. The minimum length is 190 mm. Specifying an n value smaller than the minimum length, such as n=6 (A6, 105 x 148 mm), or n=C [Postcard, (89 mm x 140 mm) (3.5”...
  • Page 61 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The 4213 printer defaults only to letter size and A4 margins with this command. Undesirable results may occur when the default margins do not match the actual paper size. Use margin commands to ensure correct formatting.
  • Page 62 Pages can be offset: — At job boundaries with E+P — Upon explicit command (Eo). Refer to the Xerox 4213 Laser Printer User Guide for information on setting the default. The printer’s offset feature works like a toggle; that is, each time...
  • Page 63 2-sided (book) Purpose Where to place it XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE To offset a mixed orientation job, use an E +P followed by an E+Q at the beginning of the job. Note: This command is ignored if the Output Offset feature is disabled at the printer control panel.
  • Page 64 Both 2-sided and 2-sided Inverted are cancelled by 2-sided Stop. 2-sided printing can be enabled either through the printer control panel or with the printer commands. commands override defaults set through the printer control panel. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE (see 2-sided (book) for “ The printer...
  • Page 65: Sided Stop

    2-sided Stop Purpose Where to place it 2-sided Side Select Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Stops 2-sided printing and returns to 1-sided printing. Syntax zyeL Instruction to stop 2-sided printing. Line end. Any place on the last page to be printed in 2-sided format.
  • Page 66 Summary Sheet. Syntax zyacomment textL Instruction to enter comments. comment text The comment itself. Use any alphanumeric or special characters, as desired. Line end. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE No blank page is If the They...
  • Page 67 A font is a collection of letters, numbers and special characters all having the same typeface, weight, size, and posture. Fonts utilised on the 4213 in XES mode are digital fonts — that is, each character or symbol in the font is a digitised bit map.
  • Page 68 XCP14iso-L (International landscape default) XCP12.5iso-L (U.S. landscape default) In XES mode, the 4213 is preset to print in XCP14iso-L. The other fonts can be selected through the Emulation Menu on the printer control panel or with application software (refer to the Xerox 4213 Laser Printer User Guide).
  • Page 69 How to download fonts from the host computer XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The example below demonstrates how to download fonts from a host computer running on MS-DOS in parallel. You create and transmit three files: File 1 defines the UDK (if the escape character cannot be •...
  • Page 70: Font Load

    Line end. Notes: When Font Load is used, all the other downloaded fonts on the printer are deleted. Any constant page downloaded to the printer will be deleted when fonts are loaded or added. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 71: Font Add

    Font Add Purpose Font Delete Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Adds fonts to previously downloaded fonts. The additional fonts come to the printer from storage media at the host computer. Syntax +A,commentL Instruction to load font data. Optional request for a Summary Sheet to report errors upon execution of the next job command.
  • Page 72: Font Unload

    Font ID Assignment command. This command sets up your font selections in an index and assigns an identification number to each. You then select from this font index at any place in the document with the Font Change command. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 73: Font Id Assignment

    508 is the maximum number of fonts the user can download. Note: The 4213 may require up to 10% more internal storage for existing XES fonts from previous XES printers. Sets up a numbered index of up to 10 fonts stored on the printer.
  • Page 74 ID number and prints an error message on the Summary Sheet. Since the font ID number is ignored, the text continues to print in the current font. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 75: Font Select

    Purpose Where to place it Example Setting units of measure XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Selects a font from those listed in the index created with Font ID Assignment. Syntax The ID number for the font, from 0 to 9.
  • Page 76 Before the margins or tabs command to which it applies. Sets one pixel (1/300 inch or .08 millimetres) as the unit of measure for margins and tabs. Syntax Before the margins or tabs command to which it applies. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 77: About Margins

    About margins XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The most common place in the job to enter the margin settings is after the Font ID Assignment or Font Change commands. This is because the font determines the orientation of the page. Refer to “How the printer defines a page,“...
  • Page 78: Text Placement Restrictions On The 4213 Printer

    Text placement restrictions on the 4213 printer The following restrictions apply to page boundaries on the 4213 printer: Any text printing beyond the bottom edge of the paper is •...
  • Page 79 Where to place it Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Left margin. The distance from the left edge of the page to the left side of the first character where each line is to be printed. Right margin. The distance from the left edge of the page to where the right side of the last character in each line is to be printed.
  • Page 80 If no other margins have been set, the printer uses the defaults for the other settings. The same rules that apply to the Margins command also apply to the commands for independent margins. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 81: Margin Top

    Where to place it Margin Bottom Purpose Where to place it XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Sets the top margin without affecting the other margins. Syntax Instruction to set top margin. The distance (in units of 1/60 or 1/300 inch) from the top edge of the page to the baseline of the characters in the first line of text to be printed.
  • Page 82: Margin Left

    After the Units command,before any printable data for which it is to take effect. The tabs commands include: Tabs Horizontal • Tabs Clear Horizontal • Tabs Vertical • Tabs Clear Vertical. • XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE on the page...
  • Page 83: More About Job Boundaries

    If no tabs have been set for a job using a portrait font, the 4213 automatically uses the default portrait tabs. have been set for a job using a landscape font, the 4213 automatically uses the default landscape tabs. You may set a line of tabs in any numerical order on the page;...
  • Page 84 28 mm 330 dots 330 dots Intervals 0.44 inch 0.44 inches 11.2 mm 11.2 mm 132dots 132 dots XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE International International portrait landscape 1.04 inch 1.04 inch 26.4 mm 26.4 mm 313 dots 313 dots 0.48 inches...
  • Page 85: Tabs Clear Horizontal

    Tabs Clear Horizontal Purpose Where to place it XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Figure 2-7. 1/60 inch units. t90,150,160,210,255,270,330,345,390,420 Figure 2-8. 1/300 inch units. t450,750,800,1050,1275,1350,1650,1725,1950,2100 Clears all horizontal tab settings in a job, including the default settings. yntax Instruction to clear all horizontal tab settings.
  • Page 86: Tabs Vertical

    Up to 125 vertical tabs may be set per job. If you attempt to tab past the bottom margin, the printer will skip to the top margin of the following page. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE See table 2-6 for maximum tab...
  • Page 87 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Table 2-5. Initial vertical tab positions and tab intervals U.S. U.S. Position portrait landscape 1st tab 1.1 inch 1.1 inch 28 mm 28 mm 330 dots 330 dots Intervals 1.0 inch 0.7 inches 17.8 mm 17.8 mm...
  • Page 88 XES COMMAND LANGUAGE MODE 2-50 Figure 2-9. Vertical tabs in 1/60 inch units. V90,120,150,160,210,255,270,330,345,390,420,450 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 89 XES COMMAND LANGUAGE MODE Figure 2-10. Vertical tabs in 1/300 inch units. V 450, 600, 750, 800, 1050, 1275, 1350, 1650, 1725,1959, 2100, 2250 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE 2-51...
  • Page 90: About Justification

    Do not try to centre a line by moving it to the centre of the host screen then following with the Centre command. The spaces from the left margin will be included as if they were characters and your text will not be centred. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 91: Justification Start/Stop

    Justification Start/Stop Purpose Where to place it Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Justifies text between right and left margins. Syntax Instruction to start justification. Syntax Instruction to stop justification. Anywhere justification is desired, with the start command placed...
  • Page 92 When the printer receives a Centre command for a line that extends beyond both left and right margins, it extends the excess equally beyond both margins; an error message appears on your Summary Sheet. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 93: About The Page Formatting Features

    About the page formatting features Line Spacing Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE This section covers commands that enable you to: Select line spacing other than regular, single line spacing with • either the Line Spacing command (for spacing that is font...
  • Page 94: Line Spacing Absolute

    Adjusts the amount of spacing between lines of text. Unlike Line Spacing, which is font based, Line Spacing Absolute adjusts spacing pixel by pixel. Syntax ipnL Instruction for interline spacing. The new line spacing expressed in pixels (1/300th inch or .08 mm). Line end. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 95: Text Placement Absolute

    Where to place it Example Text Placement Absolute Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Immediately before the beginning of the line for which the new spacing is intended (preferably, at the end of the previous line). Enter: These lines of text have normal, single lineL spacing until you enter a Line Spacing AbsoluteL command with a parameter of 75.E...
  • Page 96 When you are placing text with landscape fonts, the command defines the top left corner of the character cell of the first character. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 97 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Figure 2-11. Absolute placement of a portrait font on a short edge feed portrait page. a1500,3000 He who laughs He who laughs X 3000 Origin X 1500 XES COMMAND LANGUAGE MODE 2-59...
  • Page 98: Text Placement Relative

    Places text in any specified location on the page, starting from the current text position. It can also be used to place logos, signatures, or any other data that has been digitised into font characters. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 99 Where to place it Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Syntax rDnc The instruction for relative placement A character indicating the direction from the current text position in which the text is to be placed: Down Left Right The distance in pixels (or 1/300th inch) from the current text position to the new text position.
  • Page 100 The instruction for a line to be drawn along the x- axis. The x-coordinate of the starting point of the line; the distance in pixels from the page origin, along the x-axis, to the starting point. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 101 Where to place it Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The y-coordinate of the starting point of the line; the distance in pixels from the page origin, along the y-axis to the starting point. The length of the line; the distance in pixels from the starting point to the end point.
  • Page 102 The instruction for a line to be drawn along the y- axis. The x-coordinate of the starting point of the line; the distance in pixels from the page origin, along the x-axis, to the starting point. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 103 Where to place it Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The y-coordinate of the starting point of the line; the distance in pixels from the page origin, along the y-axis, to the starting point. The length of the line; the distance in pixels from the starting point to the end point.
  • Page 104 XES COMMAND LANGUAGE MODE 2-66 Figure 2-15. Line Draw Y command To produce: Enter: y900,1800,1200,20 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 105 XES COMMAND LANGUAGE MODE Figure 2-16. Fifteen degrees of shading for the Line Draw commands XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE 2-67...
  • Page 106: About Character Formatting

    There is no command for italicising characters. You must select an italic font with the Font ID Assignment and Font Change commands, see “Fonts on the 4213 printer“). Creates boldface text without the use of a bold font. Syntax Syntax Instruction to start bold.
  • Page 107: Underline Start/Underline Stop

    Purpose Where to place it Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Anywhere bolding is desired, enter the Bold Start command immediately before the first character to be bolded and the Bold Stop command immediately after the last character to be bolded.
  • Page 108: Overstrike Start/Overstrike Stop

    Enter: You can use the overstrike commands to strike out zo-certain portions of zp text with any character you choose. Note: Spaces are not overstruck in justified text. Subscripts characters. Syntax XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 109 Where to place it Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Syntax Instruction to start subscripting. Instruction to stop subscripting. Anywhere subscripting is desired, with the start command immediately before the first character to be subscripted, the stop command immediately after the last character to be subscripted.
  • Page 110: Superscript Start/Superscript Stop

    3, and the superscript is entered using font number 4. To produce: To thine own self be true. Enter: 3To thine own self be true. To underline a superscript at its own level, give the Underline Start command after the Superscript Start command. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 111: What Is A Constant Page?

    The constant page and variable page do not need to be of the same orientation. A constant page in the 4213 may include: Text • Nongraphic lines (Line Draw commands) •...
  • Page 112: Creating Constant Pages

    Instruction to start a constant page. Optional request for a Summary Sheet to report errors upon execution of the next job command. comment Optional comment on Summary Sheet. Line end. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE +Q), or +X). +X) cancels the font, margin, and...
  • Page 113: Merge Page Unload

    Where to place it Example Merge Page Unload Purpose Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE At the beginning of the constant page data. +M,This begins a constant page More End the constant page with a Reset command ( Notes: Using Font Load or Font Add commands within the Merge Page Load command deletes the newly defined constant page.
  • Page 114: Merging Constant Pages

    The commands for merging are: Merge Start • Merge Stop • Merge Page Start and Merge Page Stop are entered on the variable page. Starts merging the constant page with the variable page. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 115: Merge Stop

    Where to place it Merge Stop Purpose Where to place it Graphics on the 4213 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Syntax Instruction for constant page merging. Anywhere on the variable page after Print Job. More The printer continues merging the page with subsequent pages until it receives a Merge Stop or a Reset command.
  • Page 116: Raster Graphics

    Note: There may be a minor difference in appearance of complex graphics on the 4045 laser printer and the 4213 laser printer. Raster graphics are images made up of binary bit maps (0s and 1s) loaded from the host into the graphic window. When the...
  • Page 117: Vector Graphics

    • Graphic Arc • Graphic Fill. • Macro graphics are images made with high level commands, which perform several functions at once. The 4213 has two macro graphics: Pie Chart • Graphic Box. • A graphic window is an area, defined on the page, that the printer recognises as graphic data.
  • Page 118: Origin And Page Orientation

    XES Summary Sheet. You can place windows and copied windows on top of each other on the page. However, this type of page complexity may slow the processing speed of the printer. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 119: Other Characteristics

    Other characteristics Scan direction for raster graphics Graphic Window Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE With the Graphic Window command, you determine: Whether or not the window will be magnified to appear • larger on the printed output than its actual size; and, if so, by how much.
  • Page 120 The factor for rotation in the current orientation. No rotation The semicolon is required. If it is omitted, the command is ignored. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE graphic window. magnification. value entered,...
  • Page 121 Where to place it Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The origin of the graphic window. X is the distance X , Y along the page’s x-axis from the page’s origin to the graphic window’s origin. Y is the distance along the page’s y-axis from the page origin to the...
  • Page 122: More About Graphic Windows

    A graphic window on a page Note: A 4046 laser printer requires an XGRAPH cartridge to match the rotated image on the 4213 laser printer. The size of a graphic window depends on the amount of memory installed in the printer.
  • Page 123: More About Magnification

    More about magnification XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Graphic images can be magnified in two ways: Proportionally • Anamorphically. • An image magnified proportionally looks the same as its original, except that it is larger and has lower resolution. The image has been magnified by the same amount in both the x- and y- directions.
  • Page 124: Magnification And Window Placement

    950 pixels up places the bottom edge of the window along the bottom edge of the paper. Adding a margin of 50 pixels results in a new origin of 300,1200. (See figure 2-22.) Figure 2-22. Changing placement for a magnified window XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 125: Reversing Images

    Reversing images Rotating images XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Figure 2-23 illustrates how the printer reverses a graphic image when instructed within the Graphic Window command. Figure 2-23. Normal printing and reversed printing. Figure 2-24 illustrates how the printer rotates a graphic window and its contents if so instructed within the Graphic Window command.
  • Page 126: Graphic Commands And The Current Text Position

    Figure 2-25 gives an example of the graphic window relative to the current text position. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 127: Graphic Commands And The Current Graphic Position

    Graphic commands and the current graphic position Copying graphic windows XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Figure 2-25. Current text position Text before graphic window. Text after. Note: You may want to use the Text Placement Absolute and Text Placement Relative commands (see “About page formatting features“) for placing text on a page with a large number of...
  • Page 128: Graphic Window Repeat

    Graphic Window Repeat Purpose 2-90 Note: On the 4213 laser printer, the number of copied windows is limited by memory unless you are operating in full bit map mode. Copies a graphic window and places it on the page. Syntax grM(or Mx/My),I;X1,Y1,Xn,Yn...
  • Page 129 Where to place it Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Origins of other duplicate windows if more than Xn,Yn one is to be made on the page. X along the x-axis of the page to the duplicate window origin. Y of the page to the duplicate window origin.
  • Page 130: Creating Graphic Images

    Graphic Pie Chart. • All must be created within a graphic window, which means a Graphic Window command must precede them in the job. All measurements for the commands are in pixels, unless otherwise indicated. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 131: Graphic Line

    Graphic Line Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE For the X and Y variables in the commands, any number from minus 16,000 to 16,000 may be specified. Negative and positive numbers outside window boundaries are acceptable, but only the segment of the image within the window will print.
  • Page 132 To create the line in figure 2-27 which is five pixels thick and draws four lines between five pair of coordinates, enter: gl5;150,1050,300,600,600,975,900,525,1200,1050 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE y-coordinate...
  • Page 133: Graphic Arc

    Graphic Arc Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Figure 2-27. A graphic line drawn inside a graphic window Draws arcs and circles within the graphic window (figure 2-28). Syntax gaT;X,Y,r,S1,E1,Sn,En The instruction for a graphic arc. Line thickness of the figure. This number can not exceed one half the radius.
  • Page 134 If the degree of either the starting angle S is missing, the printer ignores the command. If neither a starting nor an ending degree is indicated, the printer draws a complete circle. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE circle. printer draws...
  • Page 135 Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE To create the four arcs in figure 2-29 with the following specifications: Drawn with a line 13 pixels thick • Having the same centre point, at coordinates 375, 375 in the • graphic window With a radius of 225 pixels •...
  • Page 136: Graphic Box

    16 pixels. greater value is entered. The width is distributed equally on the inside and outside of the box. The 4213 adjusts the width if it cannot be distributed equally. The semicolon is required. If it is omitted, the command is ignored.
  • Page 137: Graphic Fill

    Graphic Fill Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The diagonal opposite coordinates set at 525,675 within the • graphic window Enter: gb7;75,225, 525,625 Figure 2-30. A graphic box within a window Fills a closed graphic figure with a pattern. The pattern can be one of the predefined patterns in figure 2-31, or can be created by the user.
  • Page 138 It is 300 by 300 pixels. A rectangle with Graphic Box. At 297 pixels square, it nearly • fills the window. A line with Graphic Line. It consists of five segments between • six pair of coordinates. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 139 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The last command, Graphic Fill, selects pattern 7 and defines • one seed point in the closed figure made by the line and two sides of the rectangle. Shown in the figure is the seed point location, at coordinates 170,250.
  • Page 140 The Graphic Fill command selects pattern 17 and defines one • seed point between the inside of the graphic box and the outside of the graphic circle. gw,2;500,3000,700,700 x553,2947,594,3 x553,2350,594,3 y553,2350,597,3 y1147,2350,597,3 ga5;350,350,100,0,360 gl5;350,3,350,250 gl15;350,450,350,697 gb5;3,3,697,697 gf17;150,150 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 141: Graphic Pie Chart

    Graphic Pie Chart Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Figure 2-33. A fill pattern between the boundaries of two graphic images, a circle and a rectangle Creates a complete pie chart, including fill patterns. You can also offset single “slices“ from the rest of the pie chart.
  • Page 142 — Slice 2 is 30% and is filled with pattern 13; it is offset by 10 pixels. — Slice 3 is 10% and is filled with pattern 2; it is offset by 50 pixels. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 143: More About Graphic Pie Chart

    More about Graphic Pie Chart XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE — Slice 4 is 15 % and is filled with pattern 12; it is offset by 10 pixels. — Slice 5 is 25% and is filled with pattern 17; it is offset by 10 pixels.
  • Page 144: The Purpose Of The Data Monitor

    2-106 The data monitor is a data analysing tool used by the system manager or Xerox representative. It prints the hexadecimal values of incoming character codes and is invoked either by the Data Monitor command or through the Diagnostics menu.
  • Page 145 (Those in figures 2-35 and 2-36 are ISO). See the Xerox 4213 User Guide, Diagnostics chapter for more information on using the data monitor. For the printer to print the characters in a font, each character is assigned a hexadecimal code.
  • Page 146: Control Codes

    ISO set. Table D-1 lists control codes (with hex value less than 20 in ASCII or ISO; less than 40 in EBCDIC) that are meaningful to the 4213 printer, their most common uses in those environments, and the ways in which the printer responds to them.
  • Page 147: The Special Table

    The Special Table User defined translation tables Translation table structure XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The Special Table is a translation table that has been designed especially for users operating in an IBM 3274 coaxial connection environment. It can be selected using the Language command (selecting language G).
  • Page 148: More About The Table Data Record

    H has been specified. (Language H is specified automatically upon download.) 3 and 4 alter only the ISO table. The ISO table serves as a • base for both ASCII and EBCDIC multinational mappings. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE keyboard. Where completion Table...
  • Page 149: Byte Count

    XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE 3. Byte count This is one half the number of bytes (characters) in the remainder of the record, including the load address and the two “F”s at the end. Each character in the record represents a four bit hexadecimal value and is always two bytes long.
  • Page 150: Record Terminator

    Optional comment on a job Summary Sheet. Line end. data record A sample record is provided in the example below. The data record is discussed in detail in the preceding section, “More about the table data record.” Line end. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 151: Load Translation Table

    Where to place it Example Load Translation Table Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE At the start of the job. To move the % symbol from its current hex location of 25H to a new location at 7EH, enter: S40500FC2500FFX The data record in this example is summarised below.
  • Page 152 At any place in a job at which a new table is desired. To switch from the current character table to the table for the Danish language, enter: More The Reset command returns the printer to the default language. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 153 Sample job XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Suppose that a site does most of its business with firms in the United States, so that the U.S. English code mapping, illustrated in table 2-7, is suitable for most applications, but that it is also...
  • Page 154 XES COMMAND LANGUAGE MODE 2-116 A custom translation table might be built as follows. Table 2-7. U.S. English code mapping XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 155: Building The File

    Building the file XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE First determine the load address of the entry to be included in the table. The lowest value to be changed is 5CH. Therefore, as shown in the double hex values listed in table D-8, the load address for this table is B8.
  • Page 156: Invoking The Base Table

    (See figure 2-38.) In this example, the new data in the example discussed above is laid over the U.S. English table. The new table is illustrated in table 2-8. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 157 XES COMMAND LANGUAGE MODE Figure 2-38. New character assignments over original table XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE 2-119...
  • Page 158 XES COMMAND LANGUAGE MODE Table 2-8. Customised mapping table (U.S. English code) 2-120 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 159 More about creating tables XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The following are important points to remember about creating tables: New tables are created by overlaying other tables; always • invoke the base table before transmitting new table data to the printer.
  • Page 160 XES COMMAND LANGUAGE MODE 2-122 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 161: Font Compatibility

    LaserJet, HP LaserJet +, and HP LaserJet II printers. may be supplied by Rank Xerox or third-party vendors. The 4213 LJ2D emulation is also capable of using fonts stored in Xerox 4213 font cartridges. These cartridges may hold up to one megabyte of fonts but are not physically compatible with LaserJet font cartridges.
  • Page 162: Orientation

    Selecting the orientation of a font also affects the coordinate system used to describe a particular point on the page, as shown in figures 3-1 and 3-2. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The top, left, and...
  • Page 163 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCEE Figure 3-1. Portrait orientation page layout (y,x) Figure 3-2. Landscape orientation page layout (x,y) LJ SERIES 2D EMULATION...
  • Page 164: Symbol Set

    The height of a font is measured in points (1/72nd of an inch) from the lowest descender to the top of the highest character (excluding accents). Style refers to whether characters are upright or italic. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 165: Stroke Weight

    Stroke weight Typeface Font selection Font selection by characteristics XEROX 4213 LASER PRINTER PROGRAMMER REFERENCEE The stroke weight determines the degree of darkness of the font. This can vary from ultra thin to ultra black, with seven grades of shading,...
  • Page 166: Font Selection By Id

    Table 3-1 shows the 7 built-in fonts which resemble the resident fonts in a LJ2D printer. The internal fonts are Courier, Courier Bold, and Line Printer in portrait mode. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE If no downloaded font *c#D). A font can...
  • Page 167 Courier Courier Courier Courier Courier Courier Courier Courier Courier Courier Courier Courier Courier Courier XEROX 4213 LASER PRINTER PROGRAMMER REFERENCEE Table 3-1. Resident LJII fonts Weight Style Point Medium (0) Upright Medium (0) Upright Medium (0) Upright Medium (0) Upright...
  • Page 168 Upright Medium (0) Upright Medium (0) Upright Medium (0) Upright Medium (0) Upright Medium (0) Upright Medium (0) Upright XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Pitch Symbols PC-850 Legal Roman 8 ECMA-9 PC-8 PC-8 (D/N) PC-850 Legal Roman 8 ECMA-9...
  • Page 169: Cartridge Fonts

    PCL4 command structure Control codes XEROX 4213 LASER PRINTER PROGRAMMER REFERENCEE Please refer to the Xerox 4213 Laser Printer User Guide for the cartridges that can be used by the LJ 2D emulation. are listed by part number. Font cartridges must be installed while the 4213 is powered off.
  • Page 170: Escape Sequences

    21—2F (decimal 33—47). Group character The group character determines the type of operation to be performed by the printer. The group character falls in the range of hexadecimal 60—7E (decimal 96—126). XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 171: Numeric Variable

    The final parameter character, which also references the previous numeric variable, is used to end an escape sequence. The final parameter character is always uppercase. Table 3-2 summarises the use of parameter and final parameter characters. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE 3-11...
  • Page 172: Binary Data

    The following rules apply: The escape character, the variable sequence character, and • the group character are omitted from all but the first escape sequence when sequences are combined. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The length of the binary...
  • Page 173: Pcl4 Command Reference

    Combined Escape Sequence This section describes the commands (escape sequences) that control the 4213 Laser Printer when it emulates the Hewlett- Packard LaserJet IID printers. The commands, which make up the “Printer Control Language 4 (PCL4),” are divided into the...
  • Page 174: Printer Reset

    Syntax 1B 45 27 69 The Number of Copies command causes the 4213 to print a specified number of copies for each page of data received until either the number of copies is changed or a Printer Reset command is issued.
  • Page 175: Sided/2-Sided

    1-sided/2-sided Purpose Left Offset Registration Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The 4213 can print on one side (1-sided) or both sides (2-sided) of a page. Syntax &l#S 1B 26 6C # 53 27 38 108 # 83 where # = 0 is 1-sided # = 1 is 2-sided, long-edge binding # = 2 is 2-sided, short-edge binding.
  • Page 176: Top Offset Registration

    #. Syntax &a#G where # = 0 selects the next side # = 1 selects the front side # = 2 selects the back side. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 177: Page Control Commands

    Example Page control commands Paper Source Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE To start printing the first chapter of a document on the front side of a page, enter the following command: &a1G 1B 26 61 31 47 27 38 97 49 71 The page control commands define the shape and size of the page.
  • Page 178: Page Size

    # is one of the paper or envelope sizes in table 3-4. Note: Envelopes must be fed manually through the feeder. To print on legal-size paper enter: &l3A 1B 26 6C 33 41 27 38 108 51 65 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 179: Page Length

    Page Length Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Table 3-4. Paper size values Paper Size Executive (184 x 267mm) (7.25 x 10.5 inches) Letter (216 x 279 mm) (8.5 x 11 inches) Legal (216 x 356 mm) (8.5 x 14 inches)
  • Page 180 * First use 84, as in the example, then change orientations with the command E &l10. To set the page length for legal paper at six lines per inch enter: &l84P 1B 26 6C 38 34 50 27 38 108 56 52 80 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 181: Left Margin

    Left Margin Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The Orientation command defines the position of the logical page and the direction in which the 4213 will print in relation to the physical page. Syntax &l#O 1B 26 6C #...
  • Page 182: Right Margin

    To set the right margin at column 72, enter: &a72M 1B 26 61 37 32 4D 27 38 97 55 50 77 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 183: Clear Horizontal Margins

    Purpose Example Text Length Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The Clear Horizontal Margins command causes the left and right margins to be reset to their default values at the left and right edges of the printable area. Syntax...
  • Page 184: Perforation Region

    Perforation Region enabled. The size of the perforation region depends on the dimensions specified by the Page Size and Page Length commands. Syntax &l#L where # = 0 disables Perforation Region # = 1 enables Perforation Region. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE When the Perforation...
  • Page 185: Horizontal Motion Index

    Example Horizontal Motion Index Purpose Example Vertical Motion Index Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE To enable Perforation Region, enter: &l1L 1B 26 6C 31 4C 27 38 108 49 76 The Horizontal Motion Index (HMI) command determines the distance between columns.
  • Page 186: Line Spacing

    These commands define print position in 300ths of an inch (spots), 720ths of an inch (decipoints), and columns or rows. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE must is valid to four places to the right...
  • Page 187: Horizontal Cursor Position (Decipoints)

    Example Horizontal Cursor Position (Decipoints) Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The Horizontal Cursor Position (Columns) defines the absolute or relative position of the horizontal cursor in units of columns on the current line. The width of a column is defined by the current Horizontal Motion Index (HMI) setting.
  • Page 188: Horizontal Cursor Position (Spots)

    (1/300th of an inch). Position 0 is flush with the left boundary of the printable area. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE If the # value is preceded by a minus...
  • Page 189: Vertical Cursor Position (Rows)

    Example Vertical Cursor Position (Rows) Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Syntax *p#X where # is an integer representing the number of spots to move or the absolute position to move to. Absolute move: If the # value has no sign, the cursor is moved # spots to the right of the left edge of the printable area.
  • Page 190: Vertical Cursor Position (Decipoints)

    # represents the number of decipoints to move or the absolute position to move to. The # is valid up to two places to the right of the decimal point. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE If the # value is preceded by a minus The Vertical...
  • Page 191: Vertical Cursor Position (Spots)

    Vertical Cursor Position (Spots) Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Absolute move: If the # value has no sign, the cursor is moved # decipoints down from the top margin. Relative move, positive: If the # value is preceded by a plus (+) sign, the cursor is moved # decipoints down from the current cursor position.
  • Page 192: Half-Line Feed

    (CR), line feed (LF), and form feed (FF). Syntax &k#Gz 1B 26 6B # 47 27 38 107 # 71 where # selects one of the line-ending options shown in table 3-7. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 193: End-Of-Line Wrap

    End-of-Line Wrap Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Table 3-7. Line ending options Line endings Host Printer CR+LF CR+LF CR+FF CR+LF CR+LF CR+FF The default setting is zero (no translation). The End-of-Line Wrap command causes the printer to generate a carriage return and line feed, when the cursor reaches the right margin, and print on the next line.
  • Page 194: Push/Pop Cursor Position

    Space (SP) SP (hexadecimal 20, decimal 32) moves the cursor one column to the right of the current position. If space is defined as a printable character, the character is printed. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 195: Backspace (Bs)

    FF (hexadecimal 0C, decimal 12) moves the cursor to the same column on the top line of the next page. When you select a font, the 4213 printer searches its memory for one that most closely matches your choice. the “best fit” according to eleven font characteristics, in order of...
  • Page 196: Symbol Set

    United Kingdom for the secondary symbol set, enter the following commands: 1B 28 30 46 27 40 48 70 1B 29 31 45 27 41 49 69 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Failure to If a non-existent symbol set is...
  • Page 197 Math-8 ISO 100: ECMA-94 (Latin 1) OCR A OCR B Math-8A Math-8B Pi Font A XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Table 3-8. LJ2D symbol sets with ID numbers Symbol Set OCR-B Extended ECMA-94 ISO 11: Swedish: Names HP Spanish...
  • Page 198: Spacing

    (cpi). If the pitch requested is unavailable, the printer searches for the next size up; failing that, the next size down. There are separate Pitch commands for the primary and secondary fonts. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE instructs printer fixed-pitch fonts.
  • Page 199: Height

    Example Height Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Syntax (s#H where # is a real number valid up to two decimal places. The Pitch command for the secondary font is: )s#H To set the primary font as 12-pitch and the secondary font as 10-...
  • Page 200: Style

    To select italics for the primary font and upright for the secondary, enter: (s1S Hex 1B 28 73 31 53 Dec 27 40 115 49 83 )s0S 1B 29 73 30 53 27 41 115 48 83 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 201: Stroke Weight

    Stroke Weight Purpose Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The Stroke Weight command selects the degree of bolding. There is a separate command for the primary and secondary fonts. Medium weight fonts have a stroke weight of zero, light weight fonts have a negative stroke weight, and heavy weight fonts have a positive stroke weight.
  • Page 202: Typeface

    To use Swiss721 as a primary font and Courier for the secondary font, enter: (s4T 1B 28 73 34 54 27 40 115 52 84 )s3T 1B 29 73 33 54 27 41 115 51 84 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 203 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Table 3-10. Typefaces and code numbers Typeface LinePr Courier Swiss721 Dutch801 (Times Roman) LetterGothic PElite Presentations Optima Garamond Cooper Black Coronet Bold Broadway Bauer Bodoni Black Condensed Century Schoolbook University Roman Times New Roman...
  • Page 204: Default Font

    The Default Font command for the secondary font is as follows: 1B 29 33 40 27 41 51 64 Note: If the user default font is proportionally spaced, its pitch is not affected by the Default Font command. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 205: Transparent Data

    Underline Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The Transparent Data command allows the 4213 printer to literally print any data sent, including unprintable control codes (e.g., escape or form feed). This is particularly useful when accessing graphic characters in the IBM PC symbol set which fall in the lower ASCII range.
  • Page 206: Disable Underline

    ID through subsequent font management commands, such as Font Selection, Font Control, or Font Descriptor. Syntax *c#D Syntax where # is an ID number ranging from 0 to 32767. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 207: Font Control

    Example Font Control Purpose Example XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE To specify a font ID number of 2 enter: *c2D 1B 2A 63 32 44 27 42 99 50 68 Font Control downloaded fonts. It deletes downloaded fonts and determines whether a Soft Font is automatically removed at a printer reset.
  • Page 208: Font Descriptor

    The Font Descriptor command creates a header, or descriptor, for a font being downloaded to the printer. The Font Descriptor command normally follows a Font ID command. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Permanent downloaded fonts are retained There...
  • Page 209: Character Code

    Character Code Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Syntax )s#W[font descriptor + data] 1B 29 73 # 57 27 41 115 # 87 where # is the number of bytes in the font descriptor that follows. (The brackets are not to be entered.) descriptor is normally 64 bytes long.
  • Page 210: Character Descriptor And Data

    Delta X • Character data. • Note: The 4213 and LaserJet resident fonts do not have identical character spacing (height and width). characters are slight but become more noticeable on a full page of text. This issue of character spacing does not apply to HP Soft Fonts or to 4213 cartridge fonts.
  • Page 211: Graphics Commands

    Start Graphics command Note: When the page buffer is set to ”FULL” (full page imaging) in the LJ2D emulation submenu, the memory the 4213 dedicates to this imaging is no longer available for user downloaded fonts or graphics or any other temporary use.
  • Page 212: Raster Graphics Presentation Mode

    X value of the cursor position. After receiving the Start Graphics command, the printer sets the graphics resolution and left graphics margin until it receives an End Graphics command. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 213: Transfer Raster Data

    Transfer Raster Data Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Syntax *r#A ex 1B 2A 72 # 41 27 42 114 # 65 where # one of the two values in table 3-13. Table 3-13. Graphics margin settings Left graphics margin...
  • Page 214: End Graphics

    (300ths of an inch), the width of the next rectangle to be drawn. Syntax *c#A 1B 2A 63 # 41 27 42 99 # 65 where # is an integer representing the width of the rectangle in spots. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE (The brackets are...
  • Page 215: Vertical Rectangle Size (Spots)

    Purpose Vertical Rectangle Size (Spots) Purpose Area Fill ID Purpose XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The Vertical Rectangle Size (Decipoints) command defines in decipoints (720ths of an inch) the height of the next rectangle to be drawn Syntax *c#V...
  • Page 216 LJ SERIES 2D EMULATION Figure 3-5. Area Fill patterns 1-6 3-56 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 217 A Fill Rectangular Area command must follow an Area Fill ID command. The Fill Rectangular Area command specifies whether the rectangle is to be filled with shading or one of the fill patterns. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE 3-57...
  • Page 218: Fill Rectangular Area

    Solid Black Fill Shading Pattern To print a 2- by 3-inch rectangle, enter the following commands: *p300x300Y (Moves cursor one inch down and one inch across) XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE For solid black fill, the Area Fill ID...
  • Page 219 Example 2 Example 3 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE *c600A (Sets rectangle width at 2 inches.) *c900B (Sets rectangle height at 3 inches.) *c0P (Prints the rectangle as a black area.) To print a 2- by 3- inch rectangle with 50% shading, enter the...
  • Page 220: Macro Commands

    # is a value shown in table 3-15. Notes A temporary macro is automatically deleted during a printer • reset. The temporary macro is the default. A permanent macro is not deleted during a printer reset. • XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 221: Example Of A Macro

    Example of a macro XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE An automatic-overlay macro is the final operation in printing a • page. Before the macro is executed, an overlay print environment replaces environment. After execution of the macro, the former print environment is restored.
  • Page 222 El Segundo, CA 90245 (Literal text.) &a10c12R (Position a black line.) *c1v20H (Set height and width of line.) *c0P (Print rectangle.) &a10c10R (Set print position for first line of text.) To execute the macro enter: E &f1x2X XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 223: Postscript Emulation

    Reference Manual and related publications. reference material programmers who design host software to be used on the 4213 or who write their own programmes in the PostScript page description language. The following operators are defined in userdict; they accept no arguments and yield no results.
  • Page 224 257 x 363 mm (10.1" x 14.3") 10 x 14 254 x 356 mm (10" x 14") XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Imageable area 206 x 273 mm (8.1" x 10.75") 199 x 290.5 mm 176 x 260 mm (6.93"...
  • Page 225: System Parameters

    System parameters Statusdict operators XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE The PDL in the 4213 uses a variety of programming parameters which fall into two categories: Non-volatile, or persistent, parameters stored in Non-Volatile • memory (NVRAM). Volatile parameters which remain in memory only until the •...
  • Page 226: System Set Up Operators

    The printer ignores the setsccbatch operator because the user select communications Interface. The sccbatch operator always returns the active communications options on the printer. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Operators that persistent To change these accessing statusdict only.
  • Page 227: Timeout Operators

    Sets the state of jam recovery on (true) or off (false). — dojamrecovery boolean Tells if jam recovery is on (true) or off (false). —product string This operator returns the string Xerox 4213. —revision integer Returns the revision number of the device specific portion of the PostScript interpreter.
  • Page 228: Output Positioning Operators

    — defaultoutputposition This operator returns the default state that outputpositioning will return at the start of a new job. — setdefaultoutputpositioning This operator sets the default state of defaultoutputpositioning as chosen from the User Interface. XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 229: Sided Operators

    2-sidedmode setdefaulttumble* defaulttumble settumble XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE — boolean setdefault2-sidedmode Sets the value of default2-sidedmode. printing mode is 2-sided. When false, it is 1-sided. — default2-sidedmode boolean This operator returns a boolean indicating the current default mode.
  • Page 230: Tray Selection Operators

    — integer setdefaultpapertray Four selections are available with the multiple tray 4213: UPPER TRAY LOWER TRAY HCF (High capacity feeder)
  • Page 231 — lettertray This causes the 4213 to look for a tray with letter size paper. If such a tray is found, the page type is set to letter and papertray is set to that tray. If a tray with letter size paper is not found, a rangecheck error occurs and the page type and papertray values are not changed.
  • Page 232 A4tray — A4tray This causes the 4213 to look for a tray with A4 tray size paper. If such a tray is found, the page type is set to A4 and papertray is set to that tray.
  • Page 233: Handling Syntax Errors

    XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE — dlenvelopetray This causes the 4213 to look for an envelope tray. If such a tray is found, and dl was selected from the User Interface, the page type is set to dlenvelope and papertray is set to that tray.
  • Page 234 A4 paper throughput (images/minute) Memory Jam recovery on in MB Simplex Duplex 13.0 13.0 10.4 10.5 13.0 10.4 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Jam recovery off Simplex Duplex 13.0 13.0 10.9 13.0 10.9 13.0 10.9 Jam recovery off Simplex Duplex 10.5...
  • Page 235 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE Table 4-5. VM and font cache allocation Memory VM (Bytes) in MB 530K 530K 640K 10.5 1000K POSTSCRIPT EMULATION Font cache (Bytes) 260K 700K 700K 1000K 4-13...
  • Page 236 POSTSCRIPT EMULATION 4-14 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...
  • Page 237 2-59 f Absolute, Text Placement, 2-57 to 2-58, E-1 t allocation, VM and font cache, 4-13 t Amphenol 36-pin connector, 1-3 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE approvals EME, iii to iv safety, iv Arc, Graphic, 2-95 to 2-97...
  • Page 238 2-52 character formatting, 2-68 commands ignored by the 4213, XES, E-1 t macro, 3-60 to 3-62 to avoid on the 4213, XES, E-2 t Canadian EME regulations, iii cancelling User-Defined Key, 2-7 Cannon connector, 1-13 capacity for graphic windows, 2-84...
  • Page 239 D-13 t to D-17 t downloading fonts, 2-31 Dutch 3270 EBCDIC code mappings, A-15 t ASCII code mappings, A-4 t XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE--BETA VERSION EBCDIC code assignments, D-5 t mappings, A-10 t to A-20 t EBCDIC-to-ASCII translation, D-7 t...
  • Page 240 Graphic Line, 2-93 to 2-95 graphics commands (LJ2D), 3-51 to 3-59 graphics margin settings, 3-53 t Graphics, End, 3-54 graphics on the 4213, 2-77 to 2-79 graphic window copied at another location on the page, 2-92 graphic windows for portrait and landscape printing, 2-80 f...
  • Page 241 Vertical Rectangle Size (Decipoints), 3-55 Vertical Rectangle Size (Spots), 3-55 hexadecimal-decimal-binary equivalences, D-8 t to D-13 t XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE--BETA VERSION HMI, see Horizontal Motion Index Horizontal Cursor Position (Columns), 3-27 Horizontal Cursor Position (Decipoints), 3-27 to 3-28...
  • Page 242 4-4 to 4-5 timeout, 4-5 to 4-6 tray selection, 4-8 to 4-10 orientation font, 2-9 to 2-10, 3-2 to 3-3 origin, 2-80 page, 2-9, 2-80 page layout, landscape, 3-3 f portrait, 3-3 f XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE f=FIGURE; t=TABLE...
  • Page 243 PostScript emulation, 2-2, 4-1 to 4-13 predefined fill patterns, 2-100 f Presentation Mode, Raster Graphics, 3-52 primary fonts, 3-1, 3-46 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE--BETA VERSION printable area, 3-3 f printed output, formatting, 2-18 to 2-28 printer command, definition, 2-3...
  • Page 244 3270 EBCDIC code mappings, A-19 t ASCII code mappings, A-8 t Symbol Set, 3-4, 3-36 LJ2D, with ID numbers, 3-37 t system parameters, 4-3 set up operators, 4-4 to 4-5 syntax command, 2-3 error handling, 4-11 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE f=FIGURE; t=TABLE...
  • Page 245 2-37 Unload, Merge Page, 2-75 to 2-76 U.S. English code mapping, 2-116 t, A-1 t XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE--BETA VERSION U.S. English code mapping (continued) 3270 EBCDIC code mappings, A-12 t ASCII code mappings, U.K., A-2 t...
  • Page 246 Underline Start/Underline Stop, 2-69 Units–1/60, 2-38 Units–1/300, 2-38 XES commands ignored by the 4213 laser printer, E-1 t XES commands to avoid on the 4213 laser printer, E-2 t XES compatibility, E-1 to E-2 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE f=FIGURE; t=TABLE...

Table of Contents