r XEROX Xerox 4213 Laser Printer Programmer Reference May 1992 720P40020
Rank Xerox Limited. Parkway Marlow Buckinghamshire S17 1YL England © 1992 by Rank Xerox Limited. All rights reserved. Copyright protection claimed includes all forms and matters of copyrightable material and information now allowed by statutory or judicial law or hereinafter granted, including without limitation, material generated from the software programs which are displayed on the screen, such as icons, screen displays, looks, etc.
European EME regulations The Xerox 4213 laser printer meets the requirements of EN55022 Class B. WARNING: Use of controls, adjustments, or performance of procedures other than those specified herein may result in a hazardous radiation exposure. This product will produce ozone during normal operation. The ozone produced is dependent on copy volume and is heavier than air.
Operational safety Your Xerox equipment and supplies were designed and tested to meet strict safety requirements. These include safety agency examination, approval, and compliance with established 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. Never use a multi-plug adaptor to plug multiple power plugs into the same outlet.
Related publications Title 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 printing April, 1987 PostScript Language Programme Design, 1988, Adobe Systems Incorporated, Glenn C.
Table of contents European EME regulations iii Laser safety iii Operational safety iii Notice iv Related publications iv Introduction xix Purpose of this manual xx What this manual contains xx Variances xxi Conventions used in this manual xxi 1.
TABLE OF CONTENTS Serial interface 1-11 Select the serial interface 1-11 Set baud rate 1-12 Set parity 1-12 Set flow control 1-13 Return to printer operation 1-13 RS232 (serial) connector 1-13 Serial interface features supported 1-14 Serial signals and pin assignments 1-14 Null modem 1-15 2.
TABLE OF CONTENTS How the printer defines a page 2-9 Page orientation 2-9 Font orientation 2-9 Coordinates, units of measure, and paper feed direction 2-10 Determining the paper feed edge 2-11 Page capacity 2-12 Setting job boundaries Examples 2-13 2-14 Print Job 2-15 Print Job (Mixed Orientation) 2-16 Reset 2-17 Formatting the printed output 2-18 Multiple Copies 2-19 Multiple Copies (Non-Collated) 2-20 Paper Tray 2-21 Bypass Slot Paper Size 2-22 Offset 2-24 2-sided (book)
TABLE OF CONTENTS Font Delete 2-33 Font Unload 2-34 Using fonts in a document 2-34 Font ID Assignment 2-35 Font Select 2-37 Setting units of measure 2-37 Units—1/60 2-38 Units—1/300 2-38 About margins viii 2-39 More about page and font orientations 2-39 More about page boundaries 2-39 Text placement restrictions on the 4213 printer 2-40 Margins 2-40 Setting independent margins 2-42 Margin Top 2-43 Margin Bottom 2-43 Margin Left 2-44 Margin Right 2-44 About tabs 2-44 Mor
TABLE OF CONTENTS About the page formatting features 2-55 Line Spacing 2-55 Line Spacing Absolute 2-56 Text Placement Absolute 2-57 Text Placement Relative 2-60 Line Draw X 2-62 Line Draw Y 2-64 About character formatting 2-68 Italics 2-68 Bold Start/Bold Stop 2-68 Underline Start/Underline Stop 2-69 Overstrike Start/Overstrike Stop 2-70 Subscript Start/Subscript Stop 2-70 Superscript Start/Superscript Stop 2-72 What is a constant page? 2-73 Creating constant pages 2-74 Data
TABLE OF CONTENTS What is a graphic window? 2-79 Origin and page orientation 2-80 Placement on the page 2-80 Other characteristics 2-81 Scan direction for raster graphics 2-81 Graphic Window 2-81 More about graphic windows 2-84 Page capacity for graphic windows 2-84 More about magnification 2-85 Magnification and resolution 2-85 Magnification and window placement 2-86 Reversing images 2-87 Rotating images 2-87 Graphic commands and the current text position 2-88 Graphic commands
TABLE OF CONTENTS Data Monitor 2-106 Character codes on the Xerox 4213 2-107 Supported coding schemes 2-108 Control codes 2-108 7-bit coding schemes 2-108 The Special Table 2-109 User defined translation tables 2-109 Translation table structure 2-109 More about the table data record 2-110 1. The start-of record 2-110 2. The record-type indicator 2-110 3. Byte count 2-111 4. Load address 2-111 5. Table entries 2-111 6.
TABLE OF CONTENTS Pitch 3-4 Height 3-4 Style 3-4 Stroke weight 3-5 Typeface 3-5 Font selection 3-5 Font selection by characteristics 3-5 Font selection by ID 3-6 Resident fonts 3-6 Cartridge fonts 3-9 PCL4 command structure 3-9 Control codes 3-9 Escape sequences 3-10 Escape sequences with parameters 3-10 Escape sequences without parameters 3-10 Variable sequence character 3-10 Group character 3-10 Numeric variable 3-11 Parameter character 3-11 Final parameter character
TABLE OF CONTENTS Page control commands 3-17 Paper Source 3-17 Page Size 3-18 Page Length 3-19 Orientation 3-21 Left Margin 3-21 Right Margin 3-22 Clear Horizontal Margins 3-23 Top Margin 3-23 Text Length 3-23 Perforation Region 3-24 Horizontal Motion Index 3-25 Vertical Motion Index 3-25 Line Spacing 3-26 Cursor positioning commands 3-26 Horizontal Cursor Position (Columns) 3-27 Horizontal Cursor Position (Decipoints) 3-27 Horizontal Cursor Position (Spots) 3-28 Vertica
TABLE OF CONTENTS Control codes for cursor positioning Carriage Return (CR) 3-34 Space (SP) 3-34 Backspace (BS) 3-35 Horizontal Tab (HT) 3-35 Line Feed (LF) 3-35 Form Feed (FF) 3-35 Font commands xiv 3-34 3-35 Symbol Set 3-36 Spacing 3-38 Pitch 3-38 Height 3-39 Style 3-40 Stroke Weight 3-41 Typeface 3-42 Default Font 3-44 Transparent Data 3-45 Underline 3-45 Fixed underlining 3-45 Floating underlining 3-45 Disable Underline 3-46 Primary and secondary fonts 3-46 Fo
TABLE OF CONTENTS Graphics commands 3-51 Raster Graphics Resolution 3-51 Raster Graphics Presentation Mode 3-52 Start Graphics 3-52 Transfer Raster Data 3-53 End Graphics 3-54 Horizontal Rectangle Size (Decipoints) 3-54 Horizontal Rectangle Size (Spots) 3-54 Vertical Rectangle Size (Decipoints) 3-55 Vertical Rectangle Size (Spots) 3-55 Area Fill ID 3-55 Fill Rectangular Area 3-58 Examples of filled rectangles 3-58 Macro commands 3-60 Macro ID 3-60 Macro Control 3-60 Example o
TABLE OF CONTENTS Appendices Index xvi A. Character code tables A-1 B. Conversion tables for units of measure B-1 C. Sixel encoding C-1 The purpose of sixel encoding C-1 How sixel encoding works C-1 Sample programme in C for sixel encoding C-4 Run-length packing C-7 Sample programme in BASIC for run-length packing C-9 D. Reference tables D-1 E. XES compatibility E-1 F. Default format parameters F-1 G.
Introduction 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. This is generally known as selecting a printer driver. A printer driver translates the programming language into the specific language that the printer understands.
USING THIS MANUAL Purpose of this manual This reference manual provides information on such tasks for which you might use these printer commands including: • Changing default settings • Loading or changing character tables • Accessing a feature on the printer that is not supported by an application software package • Loading new fonts or accessing fonts not supported by an application software package • Writing or modifying printer drivers in application software packages.
INTRODUCTION Appendix D: Reference tables includes listings of control codes, character code assignments. Appendix E: XES compatibility lists which commands on the Xerox 4235 printer are not supported on the 4213 printer. Appendix F: Default format parameters contains margin and tab default values in the XES emulation. Appendix G: XES summary sheet Also included is an Index.
USING THIS MANUAL Warning: Warnings are associated with the safety of people. Caution: Cautions are associated with equipment safety. Note: A comment or explanation set off from from the text as a separate paragraph. MB This is the representation for megabyte. KB This is the representation for kilobyte. K The character “K“ in conjunction with a numerical value, such as 256K, always represents a thousand.
1. Interfaces This chapter describes the interfaces supported by the 4213 Laser Printer, the Centronics and Dataproducts parallel, and the serial asynchronous. Parallel interface The 4213 Laser Printer supports two parallel interfaces: Centronics and Dataproducts. Each is described on the following pages. The parallel interface cable 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.
INTERFACES Centronics interface Select the Centronics parallel interface Centronics Interface. parallel interface is selected through the User 1. Press the Online H button. 2. Press the Menu A button. 3. Press the Last Page C button until HOST INTERFACE appears 4. Press theTest B button. 5. Press the Last Page C button until PARALLEL CENT appears. 6. Press the Select D button to select Centronics parallel. Select metered data With PARALLEL CENTR appearing on the User Interface: 1.
INTERFACES Centronics connector The Centronics interface uses an Amphenol 36-pin connector, #57-40360 or equivalent. This connector mates with an 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. A standard female Centronics cable connection is supplied. The signals associated with each pin are described in Table 1-2. on the following page.
INTERFACES Centronics signals and pin assignments Table 1-2 describes Centronics 100 signals and pin assignments. Table 1-2. Pin Direction Signal Description 1 To printer STROBE L STROBE pulse low to read data. A strobe low signal raises BUSY line to high.
INTERFACES Table 1-2. Pin Direction Centronics (continued) Signal 17 signals and pin assignments Description Chassis ground 18 From printer +5V (standard Centronics) 1929 0 volts TWP returns All at Logic ground. 30 0 volts INIT ground 31 To printer INIT L The 4213 ignores this signal. 32 From printer ERROR L This signal is low when the printer is in an error state.
INTERFACES Centronics interface timing Figure 1-2 diagrams signal timing for the Centronics interface. Figure 1-2.
INTERFACES Table 1-3 describes Centronics interface voltage and current requirements Table 1-3. Centronics interface requirements voltage and Voltage levels 0 (zero) and +5 VDC (nominal), TTl (SN 74LS00 series Logic levels Positive logic is assumed. A logic one (high) signal is defined as a voltage in the range of +2.4V to +5V, not to exceed a peak of +5.5V. current A logic zero (low) signal is defined as a voltage in the range of 0.0V to 0.4V, not to exceed a peak negative voltage of -0.5V.
INTERFACES 4. Press the Test B button. 5. Press the Last Page C button until PARALLEL DPROD appears. 6. Press the Select D button to select Dataproducts parallel. Dataproducts connector The use of a pigtail conversion cable provides compatibility with the Dataproducts 2260 line printer controllers. The Dataproducts interface uses a 50-pin Winchester connector # MRA S D5J, which mates with a Winchester MRAC 50 P JKTCH connector, using 100 1020P pins.
INTERFACES Dataproducts signals and pin assignments Table 1-4 describes the signals and pin assignments for the Dataproducts 2260 interface. Table 1-4.
INTERFACES Table 1-4. Dataproducts (continued) Pin Signal Source y ON LINE Printer AA return x Interface Connect Verify Printer v Interface Connect Verify Printer W, H Spare &P, M signals and pin assignments Printer Dataproducts interface timing Figure 1-4 describes the Dataproducts interface timing when measured at the printer connector. Figure 1-4.
INTERFACES Table 1-5. Dataproducts voltage and current requirements Voltage levels 0 (zero) and +5 VDC (nominal), TTl (SN 74LS00 series Logic levels Positive logic is assumed. A logic one (or high) signal is defined as a voltage in the range of +2.4V to +5V, not to exceed a peak of +5.5V. A logic zero (or low) signal is defined as a voltage in the range of 0.0V to 0.4V, not to exceed a peak negative voltage of -0.5V. However for received signals a voltage of up to +0.8V is recognised as a logic zero.
INTERFACES 4. Press the Test B button. 5. Press the Last Page button C until SERIAL appears. 4. Press the Select D button to select SERIAL. Set baud rate Once SERIAL is selected, baud rate, parity and flow control can be set. With SERIAL appearing on the User Interface: 1. Press the Test B button. 2. Press the Last Page C button until BAUD RATE appears. 3. Press the Test B button. 4. Press the Last Page C button to scroll through the baud rate options: 1,200, 2,400, 4,800, 9,600, 19,200.
INTERFACES Set flow control With parity options appearing on the User Interface, follow these steps: 1. Press the Menu A button. 2. Press the Last Page C button until FLOW CONTROL appears. 3. Press the Test B button. 4. Press the Last Page C button to scroll through the two flow control choices: XON/OFF, DTR. 4. Press the Select D button to enter your choice. 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.
INTERFACES Serial interface features supported 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 Character format: bit serial Character asynchronous Start bit (space) 7 or 8 data bits (1=mark, 0=space) Optional parity bit Stop bit (mark) Data bits represent a character.
INTERFACES Table 1-6. Asynchronous serial signals and pin assignments Pin Signal Telephone Co.
INTERFACES Figure 1-6.
2. XES command language mode This chapter is for anyone using the Xerox Escape Sequence (XES) emulation on the Xerox 4213 laser printer. Configuring the 4213 for the XES command language mode Please refer to the Xerox 4213 Laser Printer User Guide for instructions on how to configure the 4213 printer to operate in XES mode. Automatic mode switching It is possible to have software loaded in the 4213 which enables you to switch from one emulation to another without reconfiguring the printer.
XES COMMAND LANGUAGE MODE The mode change command The mode change command resets your 4213, enabling it to accept printing commands in the desired emulation mode. Note: Unpredictable results such as loss of data may occur if the mode change command is not entered with valid parameters. Send the following commands to your printer, preferably in the form of a test file: PostScript Emulation =MCK=EMULATE/POSTSCRIPT/END L This information tells your printer to begin printing in the PostScript emulation mode.
XES COMMAND LANGUAGE MODE Definition of a printer command The commands covered in this chapter are classified as escape sequences. The escape sequence is a type of printer command that gets its name from its initial character, the escape character. (This is not the same as the escape key on your keyboard.) Escape is a nonprintable control code with the hexadecimal ASCII value 1B.
XES COMMAND LANGUAGE MODE Job control commands All jobs should begin and end with one or more job control commands. A job control command serves one of two functions. It either sets job boundaries (telling the printer where your job starts and ends and what type of data it contains) or it formats the printed output in some way. When the printer receives a command to start a job, it finishes the current job, ejects any remaining pages from that job, and starts over.
XES COMMAND LANGUAGE MODE 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. Example The command for centreing a line of text: Eq q The instruction for centreing (lowercase q). Commands with user-entered variables Commands with user-entered variables set parameters such as the line spacing or margin width.
XES COMMAND LANGUAGE MODE Thereafter, until the end of the job (or until you specify otherwise), the printer recognises the selected character as your escape character. Example To select the asterisk (*) as your escape character, enter: =UDK=* Thereafter, For: Enter: E+B,L *+B,L Ed *d Showing commands in printed output For most jobs, if the User-Defined Key and other printer commands show up on the printed output, then the UserDefined Key has not been assigned properly.
XES COMMAND LANGUAGE MODE Example 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 (%). Printing the sequence =UDK= as text To print =UDK= within the text of your document, enter the characters in such a way that the printer does not perceive them as a command.
XES COMMAND LANGUAGE MODE Tips on selecting a UDK When selecting a UDK, remember: • =UDK= must be entered exactly as shown, in uppercase. • You can select any printable character except: — — — — Uppercase U, D, or K The comma (,) The equal sign (=) The multinational umlaut accent character (..) combined with either U, D, or K. • Do not use the space character or any other non-printing character such as the backspace, delete, or control keys.
XES COMMAND LANGUAGE MODE How the printer defines a page Page orientation 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 orientation is determined by the orientation of the first font to appear on the page. Font orientation As shown below, there are two types of font orientations: • • Portrait Landscape. Portrait orientation is initiated when you select a portrait font.
XES COMMAND LANGUAGE MODE Figure 2-1. Font and page orientation Coordinates, units of measure, and paper feed direction 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. The 4213 has a resolution of 300 dot-per-inch.
XES COMMAND LANGUAGE MODE Figure 2-2. Specifications for short-edge feed paper Determining the paper feed edge 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. Figure 2-3 shows the trailing edge and the feed edge. Figure 2-3.
XES COMMAND LANGUAGE MODE Page capacity The page on the 4213 is 100% addressable when paper is fed from trays 1, 2, or the high-capacity feeder. There is a 6 mm wide lead edge deletion when feeding from the bypass tray. (The bypass tray accommodates special papers such as card stock, envelopes, and transparencies.) Page imaging capabilities are determined by available memory. Table 2-1. Page capacity specifications 2-12 Type of data Capacity Characters (bytes) per page Limited by size of font.
XES COMMAND LANGUAGE MODE Setting job boundaries There are two commands for starting a document: • Print Job (E+P L), which is used to start a document that will have one font orientation (either portrait or landscape) per page. • Print Job (Mixed Orientation) (E+Q L), which is used to start a document that will have both landscape and portrait font orientations on the same page. The command for ending a document is the Reset command.
XES COMMAND LANGUAGE MODE Command Where to place it What it does E+P L At beginning of job Separates your job from last job printed. E+Q L At beginning of job Separates your job from last job printed. (Mixed orientation.) E+P L At end of job Separates your job from next job printed without resetting job parameters. E+X L At end of job Separates your job from next job printed and resets job parameters to the printer default settings.
XES COMMAND LANGUAGE MODE For a series of three documents, all of which are to have the same settings, you might enter • E+PL (Fonts assigned) (Margin settings) (All other contents of job 1) E+PL (All other contents of job 2) E+PL (All other contents of job 3) E+XL Then send them to the printer. Print Job Purpose Sets the starting boundary of a document that will have either a portrait or a landscape orientation.
XES COMMAND LANGUAGE MODE More Font selections are entered after Print Job (more information about this in the next chapter, “Using fonts”). In the example below, notice the “P” in each font name, which indicates that all fonts are of portrait orientation.
XES COMMAND LANGUAGE MODE Where to place it Example 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”, enter: E+Q,This page has two font orientationsL More Font selections are entered after Print Job (more about this in the next chapter, “Using fonts”). In the example below, notice the “P” for portrait and the “L” for landscape in the font names, indicating that both orientations are used.
XES COMMAND LANGUAGE MODE More Once the printer receives the Reset command, all parameters set by the other commands are cancelled, including font indexes and the UDK. Using a Print Job rather than a Reset command to end one document and start the next instructs the printer to continue using all parameters entered during previous jobs.
XES COMMAND LANGUAGE MODE Multiple Copies Purpose Determines the number of uncollated copies when more than one copy is desired. Syntax Where to place it Example E+Cn,commentL +C Instruction to print multiple copies. n Indicates the number of copies to be printed, up to 999 copies. , Optional request for a Summary Sheet comment Optional comment on a Summary Sheet. L Line end. Anywhere on the first page of the document.
XES COMMAND LANGUAGE MODE Multiple Copies (Non-Collated) Purpose Determines the number of uncollated copies printed when more than one is desired. Syntax Where to place it Example E+En,commentL +E Instruction to print multiple copies. n Indicates the number of copies to be printed, up to 999 copies. , Optional request for a Summary Sheet, if enabled through the printer control panel. comment Optional comment on Summary Sheet. L Line end. Anywhere on the first page of the document.
XES COMMAND LANGUAGE MODE Paper Tray Purpose Selects a paper source other than the default. Syntax Where to place it Example Ecn c Instruction for tray selection. n 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. To print from Tray 1, enter: Ec1 More Entering Paper Tray overrides any selections made through the Emulation Menu for Paper Source and Auto Tray.
XES COMMAND LANGUAGE MODE The command remains in effect until either a Reset command or another Paper Tray command is received. Thus, it is possible to change paper trays within a document as many times as you wish. If more than one Paper Tray command is entered on a page, the printer recognises only the last one. Notes: If Tray sequence mode is enabled, the same size paper trays, the same paper size, and the same paper type should be installed in the selected trays.
XES COMMAND LANGUAGE MODE 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. Adjustable sizes set for the bypass at the printer control panel are overriden by this command. Table 2-3 shows the paper size and default margins of the n parameter. Table 2-3.
XES COMMAND LANGUAGE MODE More This command takes effect whenever the bypass slot is chosen, either through the Emulation Menu, or the paper source selection command (Ec9). The command remains in effect until either a Reset command or another paper tray or bypass slot paper size command is received. The default value is restored after a reset. If more than one bypass slot paper size command is entered on a page, the printer recognises only the last one.
XES COMMAND LANGUAGE MODE 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. 2-sided (book) Purpose Enables 2-sided printing “head-to-head“ (see 2-sided Inverted for “head-to-toe“). It also includes the option of shifting the margin of the second page.
XES COMMAND LANGUAGE MODE 2-sided Inverted (pad) Purpose Enables 2-sided printing “head-to-toe“ (see 2-sided (book) for “head-to-head“). It also includes the option of shifting the margins of the second page. Head-to-toe 2-sided printing means that the top of the front page is printed in the same position as the bottom of the back page. Syntax EzyfnL zyf Instruction to start 2-sided printing. n The number of pixels by which the margin of the second page is shifted.
XES COMMAND LANGUAGE MODE 2-sided Stop Purpose Stops 2-sided printing and returns to 1-sided printing. Syntax Where to place it More EzyeL zye Instruction to stop 2-sided printing. L Line end. Any place on the last page to be printed in 2-sided format. Switching to and from 2-sided printing within a document can slow the printer’s performance. If one page is to be printed 1sided within a large 2-sided job, it may be more efficient to send a blank page for the second side of the 1-sided page.
XES COMMAND LANGUAGE MODE Where to place it Example Any place within the contents of the preceding page. Entering: Ezyi0 within the current side of a page causes printing to continue on the next page (or next side of the page). No blank page is inserted. Entering: Ezyi1 within the current side of a page causes printing to continue on the next front side of a page.
XES COMMAND LANGUAGE MODE Where to place it Example Any place in the job. The following shows part of a coded document as it appears on screen, with comments inserted into the coding: E+XL Ezya Clear settings with the Reset commandL E+Q,L Ezya Start a new documentL E+1Helvetica8Bi2-PL E+2Helvetica14Bi2-PL E1Ezya Select fonts before setting marginsL Fonts on the 4213 A font is a collection of letters, numbers and special characters all having the same typeface, weight, size, and posture.
XES COMMAND LANGUAGE MODE Besides letters, numbers, and special characters, fonts can also include logos, signatures, or other images that are scanned, then digitised into font characters. These font characters are then assembled on a page to make a graphic image. Unlike other types of graphics, they do not require a graphic window. Graphic windows are discussed later in this manual. How fonts are stored Fonts for the 4213 are available in three forms: Resident 2. On cartridge 3.
XES COMMAND LANGUAGE MODE How to download fonts from the host computer 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 used) and initiates the command Font Load (or Font Add) to the printer. • File 2 copies the UDK and Font Load or Font Add command to the printer, and copies the fonts to the printer.
XES COMMAND LANGUAGE MODE The batch file has been created to load fonts to the printer. 3. Now create File 3, which resets the printer. At the C:> prompt enter: copy con:stop.doc (Press Return.) =UDK=@@+X,Font Load Complete (Press Return.) z (Press Return.) 4. All the necessary files have been created. At the C:> enter: download (Press Return.) Downloading is complete. Font Load Purpose Loads fonts from storage media at the host computer to the printer.
XES COMMAND LANGUAGE MODE Font Add Purpose Adds fonts to previously downloaded fonts. The additional fonts come to the printer from storage media at the host computer. Syntax E+A,commentL +A Instruction to load font data. , Optional request for a Summary Sheet to report errors upon execution of the next job command. comment Optional comment to be printed on the Summary Sheet. L Line end. Note: Any constant page downloaded to the printer will be deleted when fonts are added or loaded.
XES COMMAND LANGUAGE MODE Example To delete two fonts, “Classic8iso-L “and “Classic6iso-L,“ and to request a Summary Sheet with the command “These two fonts are now deleted” enter: E+B,These two fonts are now deletedL Classic8iso-L,Classic6iso-LL File names must be entered exactly as they are named, including upper and lower case letters, and punctuation. Font Unload Purpose Deletes all downloaded font files from the printer. Syntax Example E+U,commentL +U Instruction to delete stored font files.
XES COMMAND LANGUAGE MODE The most common place to enter Font ID Assignment is immediately after Print Job and any job formatting commands (such as Paper Tray). However, you can set up an index anywhere in the document. The advantage of this is that, while you can index up to 10 fonts (using 10 different font ID numbers) with a single Font ID Assignment, more than 10 may be used by repeatedly creating new indexes throughout the document.
XES COMMAND LANGUAGE MODE Example To create an index of five fonts, enter: E+0Classic8iso-LL E+1Classic8Biso-LL E+2Classic6iso-LL E+3Classic12iso-LL E+4Classic10iso-LL Once the files have been assigned identification numbers, they are selected by number with the Font Change command. For example, to select Classic8Biso-L within a document, enter E1 More The font name must be entered exactly as it is listed on the font directory, including the correct uppercase and lowercase letters.
XES COMMAND LANGUAGE MODE Font Select Purpose Selects a font from those listed in the index created with Font ID Assignment. Syntax En n Where to place it The ID number for the font, from 0 to 9. Anywhere in the document at which you want to use this font.
XES COMMAND LANGUAGE MODE When the printer is powered on, units of measure are set at 1/60th inches automatically. The Reset command, which clears all settings, also returns the units to 1/60 inches. Thus, at the start of a job, if you want to use 1/60 inch for your unit of measure, you need not use the Units command.
XES COMMAND LANGUAGE MODE About margins 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,“ for additional information on page and font orientations. You can set: • All four margins for a page with the Margins command • One margin individually with the Margin Top, Margin Bottom, Margin Left, or Margin Right commands.
XES COMMAND LANGUAGE MODE If you enter a change of setting within the printable contents of a page and the new setting for the bottom margin is below the current text position, the bottom margin goes into effect for the next page. Setting illogical margins, (such as a top margin below a bottom one), or setting margins out of page boundaries causes the printer to revert to the default margins.
XES COMMAND LANGUAGE MODE L 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. R 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. L Where to place it Example Line end. After the Units command, before any printable data of the page for which it is to take effect.
XES COMMAND LANGUAGE MODE Figure 2-6. Measuring a landscape page Setting independent margins The Margin Top, Margin Bottom, Margin Left, and Margin Right commands allow you to set or change one or more margins on a page without affecting other margins selected using the default margins or the regular margin commands.
XES COMMAND LANGUAGE MODE Margin Top Purpose Sets the top margin without affecting the other margins. Syntax EznTL zn Instruction to set top margin. T 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. L Where to place it Line end. After the Units command, before any printable data on the page for which it is to take effect.
XES COMMAND LANGUAGE MODE Margin Left Purpose Sets the left margin without affecting other margin settings. Syntax EzkLL zk Instruction to set left margin. L The distance (in units of 1/60 or 1/300 inch) from the left edge of the page to where the left side of the first character in each line is to be printed. L Where to place it Line end. After the Units command, before any printable data on the page for which it is to take effect.
XES COMMAND LANGUAGE MODE More about job boundaries The tabs you enter with commands remain in effect until the printer receives either a Tab Clear or a Reset command. A Tabs Clear Horizontal command clears all horizontal tabs, including defaults, until the end of the job or until a new Tabs Horizontal is entered. A Tabs Clear Vertical command clears all vertical tabs, including defaults, until the end of the job or until a new Tabs Vertical.
XES COMMAND LANGUAGE MODE Syntax Etn1,n2,...,n160L t Instruction to set horizontal tabs. n1,n2,..,n160 Tab settings across the page starting from the left edge. Up to 160 tabs can be set in one command. Commas separate values. See table 2-4 for default horizontal tab values for portrait and landscape pages. L Where to place it Line end. At the start of the job or anywhere a horizontal tab is desired. Example Figures 2-7 and 2-8 show a line of tabs across an 216 by 279 mm portrait page.
XES COMMAND LANGUAGE MODE Figure 2-7. 1/60 inch units. Et90,150,160,210,255,270,330,345,390,420L Figure 2-8. 1/300 inch units. Et450,750,800,1050,1275,1350,1650,1725,1950,2100L Tabs Clear Horizontal Purpose Clears all horizontal tab settings in a job, including the default settings. S yntax Ed d Where to place it More Instruction to clear all horizontal tab settings. Anywhere before the place in the job at which the current tab settings are to be cleared.
XES COMMAND LANGUAGE MODE Tabs Vertical Purpose Defines tabs down the page, measuring from the top edge of the page. Once vertical tabs are set, whenever you press the vertical tab key on the host computer, the printer skips from the current text position to the next vertical tab position. Syntax Evn1,n2,.....,n125 L v Instruction to set vertical tabs n1,n2,..,n125 Tab settings starting from the top edge. Up to 125 tabs can be set in one command. Commas separate values.
XES COMMAND LANGUAGE MODE Table 2-5. Initial vertical tab positions and tab intervals U.S. portrait U.S. landscape International portrait International landscape 1st tab 1.1 inch 28 mm 330 dots 1.1 inch 28 mm 330 dots 1.0 inch 25.4 mm 300 dots 0.95 inches 23.1 mm 287 dots Intervals 1.0 inch 17.8 mm 210 dots 0.7 inches 17.8 mm 210 dots 1.0 inches 25.4 mm 300 dots 0.7 inches 17.8 mm 210 dots Position Table 2-6.
XES COMMAND LANGUAGE MODE Figure 2-9. Vertical tabs in 1/60 inch units.
XES COMMAND LANGUAGE MODE Figure 2-10. Vertical tabs in 1/300 inch units.
XES COMMAND LANGUAGE MODE Tabs Clear Vertical Purpose Clears all vertical tab settings in a job. Syntax Ee e Where to place it More Instruction to clear all vertical tab settings. Anywhere before the place in the job at which the current tab settings are to be cleared. If vertical tabs are cleared and no new ones are set, the printer considers any vertical tab character encountered in the document as a page end.
XES COMMAND LANGUAGE MODE Justification Start/Stop Purpose Justifies text between right and left margins. Syntax Ej Instruction to start justification. j Syntax Ek k Where to place it Example Instruction to stop justification. Anywhere justification is desired, with the start command placed immediately before the first character in the line to be affected, the stop command placed immediately after the last character in the line to be affected.
XES COMMAND LANGUAGE MODE Centre Purpose Centres a line of text between the left and right margins. Syntax Eq Instruction to centre a line of text. q Where to place it Example Anywhere within the line to be centred. To produce: To centre text between the left and right margins, use this command. Enter: EqTo centre textL Eqbetween the left andL Eqright margins,L Equse this command.
XES COMMAND LANGUAGE MODE About the page formatting features 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 based) or the Line Spacing Absolute command (for spacing set pixel by pixel) • Place text (or any digitised font characters such as logos or signatures) at virtually any point on the grid of the page with either the Text Placement Absolute command (for placing text relativ
XES COMMAND LANGUAGE MODE Where to place it Example Immediately before the beginning of the line for which the new spacing is intended (preferably, at the end of the previous line). To produce: Text printed in this font with normal, single spacing looks like this. Entering a Line Spacing command with a parameter of 2 will cause text to double space like this. Enter a Line Spacing command with a parameter of 0 to return text to normal,single spacing.
XES COMMAND LANGUAGE MODE Where to place it Example 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.Eip75L At this point,the baselines of the text areL placed 75 pixels (one quarter inch) apartL like this.
XES COMMAND LANGUAGE MODE Syntax Where to place it Example EaX,YL a Instruction for absolute placement. X The distance in pixels from the origin of the page, along the x-axis, to the starting point of the text line. Y The distance in pixels from the origin of the page, along the y-axis, to the starting point of the text line. , A comma separates these variables. L Line end. Immediately before the text to be placed.
XES COMMAND LANGUAGE MODE Figure 2-11. Absolute placement of a portrait font on a short edge feed portrait page.
XES COMMAND LANGUAGE MODE Figure 2-12. Absolute placement of a landscape font on a short edge feed landscape page. Ea1800,600L The game is not over until it’s over. Origin X1800 Y 600 The game is not over until it’s over. Text Placement Relative Purpose 2-60 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.
XES COMMAND LANGUAGE MODE Syntax ErDnc r The instruction for relative placement D A character indicating the direction from the current text position in which the text is to be placed: u Up d Down l Left r Right n The distance in pixels (or 1/300th inch) from the current text position to the new text position. c Any non-numeric character can be used to complete this command. Note: This is one of a few commands using a printable character rather than a line end for completion.
XES COMMAND LANGUAGE MODE Figure 2-13. Relative placement 1500 pixels down To produce: Enter: He who laughsErd1500elast. Line Draw X Purpose Draws a line along the x-axis of the page. On short edge feed paper, this line runs horizontally across a portrait page, vertically down a landscape page Syntax 2-62 ExX,Y,L,T,SL x The instruction for a line to be drawn along the xaxis.
XES COMMAND LANGUAGE MODE Where to place it Example More Y 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. L The length of the line; the distance in pixels from the starting point to the end point. T The thickness of the line, in pixels. S The degree of ink shading on a scale of 0 to 15. If no shading is desired, the S value can be omitted. See figure 2-16 for the 15 degrees of shading.
XES COMMAND LANGUAGE MODE Figure 2-14. Line Draw X command To produce: Enter: Ex1200,1800,600,80L Line Draw Y Purpose Draws a line along the y-axis of the page. On short edge feed paper, this line runs vertically up a portrait page, horizontally across a landscape page.. Syntax 2-64 EyX,Y,L,T,SL y The instruction for a line to be drawn along the yaxis. X 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.
XES COMMAND LANGUAGE MODE Where to place it Example More Y 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. L The length of the line; the distance in pixels from the starting point to the end point. T The thickness of the line, in pixels. S The degree of ink shading on a scale of 0 to 15. If no shading is desired, the S value can be omitted. See figure 2-16 for the 15 degrees of shading.
XES COMMAND LANGUAGE MODE Figure 2-15.
XES COMMAND LANGUAGE MODE Figure 2-16.
XES COMMAND LANGUAGE MODE About character formatting The character formatting commands provide some character control without a change of fonts. You can do the following: • Bold (although a bold font may be preferable) • Underline • Overstrike with any printable character • Create subscripts or superscripts. Note: These commands increase page complexity and can slow the performance of the printer. Italics There is no command for italicising characters.
XES COMMAND LANGUAGE MODE Where to place it Example 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. To produce: It is possible to bold text without using a bold font; simply insert the appropriate commands. Enter: It is possible to bold text Ebwithout using a bold font; Epsimply insert the appropriate commands.
XES COMMAND LANGUAGE MODE Overstrike Start/Overstrike Stop Purpose Overstrikes text with any selected printable character. Syntax Ezox Syntax Where to place it Example Ezp zo Instruction to start overstriking. x Whatever character you choose to act as the overstrike character. zp Instruction to stop overstriking.
XES COMMAND LANGUAGE MODE Syntax Where to place it Example Es l Instruction to start subscripting. s 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. To produce: C2H5OH Enter: CEl2EsHEl5EsOH More The subscript commands cannot be used to: • Subscript a subscript • Index down a page • End a superscript.
XES COMMAND LANGUAGE MODE Superscript Start/Superscript Stop Purpose Superscripts characters. Syntax Eh Syntax Where to place it Example Es h Instruction to start superscripting. s Instruction to stop superscripting. Anywhere superscripting is desired, with the Superscript Start command immediately before the first character to be affected, and the Stop command immediately after the last character to be affected. To produce: To thine own self be true.a Enter: To thine own self be true.
XES COMMAND LANGUAGE MODE What is a constant page? A constant page is a document created especially for merging with other documents. A document to be merged with a constant page is referred to as a variable page (figure 2-17). You can only merge one constant page with a variable page. The constant page and variable page do not need to be of the same orientation.
XES COMMAND LANGUAGE MODE Creating constant pages Note that you start creating the document with Merge Page Load, not with Print Job, which is used to start most other documents. A constant page is ended with either: • a form feed () • a Print Job command (E+P) • a Print Job (Mixed Orientation) command (E+Q), or a Reset command (E+X). • Note: The Reset command (E+X) cancels the font, margin, and tab assignments, which have to be reassigned in the constant page to be merged.
XES COMMAND LANGUAGE MODE Where to place it Example More Notes: At the beginning of the constant page data. E+M,This begins a constant pageL End the constant page with a Reset command (E+X). Using Font Load or Font Add commands within the Merge Page Load command deletes the newly defined constant page. The Graphic Window Repeat command is not supported when this command is in effect. Merge Page Unload Purpose Erases the constant page from the printer’s memory.
XES COMMAND LANGUAGE MODE For example, entering commands in the following order will cancel the request for three copies: E+PL (Print Job) E+C3L (Multiple Copies) E+VL (Merge Page Unload) (Printable contents of job) E+XL (Reset) To prevent this, switch the order of Merge Page Unload and Multiple Copies: E+PL E+VL E+C3L (Printable contents of job) E+XL A constant page is also erased when fonts are downloaded, when a selected font is deleted, when a new constant page is loaded, or when the printer is p
XES COMMAND LANGUAGE MODE Syntax Eze ze Where to place it More Instruction for constant page merging. Anywhere on the variable page after Print Job. The printer continues merging the page with subsequent pages until it receives a Merge Stop or a Reset command. If no merge page is in memory when the command is received, the printer ignores the command. Merge Stop Purpose Stops the merging of the constant page with the variable page. Syntax Ezd zd Where to place it Instruction to stop merging.
XES COMMAND LANGUAGE MODE These three types of graphics must be created within the boundaries of a graphic window. (Graphic images that have been digitised into font characters, such as logos or signatures, do not require a graphic window.) Note: There may be a minor difference in appearance of complex graphics on the 4045 laser printer and the 4213 laser printer. Raster graphics Raster graphics are images made up of binary bit maps (0s and 1s) loaded from the host into the graphic window.
XES COMMAND LANGUAGE MODE Complex raster graphic Setting the page buffer to “FULL” (full page imaging) in the XES emulation submenu means that the 4213’s memory dedicated to this imaging is no longer available for user downloaded fonts or graphics or any other temporary use. This means that a full page graphic that prints completely in “PARTIAL” imaging may not print if the page buffer is set to “1 FULL” or “2 FULL.” Example: A 2.
XES COMMAND LANGUAGE MODE If a graphic window has been stored in the printer’s memory, it remains until you power off the printer, switch emulations, or perform a reset. Note: If the printer receives graphic data that is incomplete, e.g. the data has fewer bytes than the window size, the next Form Feed command may be ignored, causing unpredictable results. Origin and page orientation The graphic window’s origin is always the corner of the window closest to the upper left hand corner of the page.
XES COMMAND LANGUAGE MODE Other characteristics 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. You can select magnification for a window when you want a graphic to cover a larger area on the page but do not want to use the memory required for a large window. Magnifying a window, however, reduces its resolution.
XES COMMAND LANGUAGE MODE Syntax EgwM(or Mx/My),I,R;X,Y,Sx,SyL gw M or Mx/My The instruction for graphic separate the variables. window. Commas The degree of magnification. Mx represents magnification in the horizontal or x-direction; My represents magnification in the vertical or ydirection. If only one value for M is entered, magnification is the same for both directions. then 0 or 1 No magnification 2 Window size on the printed page appears twice its actual size.
XES COMMAND LANGUAGE MODE Where to place it More X,Y The origin of the graphic window. X is the distance 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 graphic window origin. Sx,Sy The size of the graphic window, in the horizontal and vertical directions, respectively. Sx is the number of pixels making up the size in the horizontal direction, measured from the graphic window origin.
XES COMMAND LANGUAGE MODE Figure 2-20. 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. More about graphic windows Page capacity for graphic windows The size of a graphic window depends on the amount of memory installed in the printer. The largest graphic window can be up to one half the available memory. Only one window at a time can be stored.
XES COMMAND LANGUAGE MODE More about magnification 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 ydirections. An image magnified anamorphically is larger in one direction— either x or y. Magnification and resolution Magnifying an image decreases its resolution by an equal amount.
XES COMMAND LANGUAGE MODE Magnification and window placement When a graphic window is magnified, it is expanded downward and to the right from the graphic window origin. To keep the magnified window from expanding off the page, place the window origin so that it is near the upper left hand corner of the page.
XES COMMAND LANGUAGE MODE Reversing images 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. Rotating images Figure 2-24 illustrates how the printer rotates a graphic window and its contents if so instructed within the Graphic Window command. Notice how rotation affects graphic window positioning and how images look when rotated 90 degrees, 180 degrees and 270 degrees.
XES COMMAND LANGUAGE MODE Figure 2-24. Graphic window rotation Graphic commands and the current text position If you do not specify coordinates for a graphic window origin within the graphic window command, the printer will use the current text position, that is, wherever the next character of text would be, as a default point for the graphic window origin. (Otherwise, text positioning and graphic window positioning are independent from one another.
XES COMMAND LANGUAGE MODE 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 graphics. Graphic commands and the current graphic position The current graphic position may be defined as the set of x- and y-coordinates for the last graphic image created on the page.
XES COMMAND LANGUAGE MODE Note: On the 4213 laser printer, the number of copied windows is limited by memory unless you are operating in full bit map mode. Graphic Window Repeat Purpose Copies a graphic window and places it on the page. Syntax EgrM(or Mx/My),I;X1,Y1,Xn,YnL gr Instruction to copy a graphic window. M or Mx/My The degree of magnification for the duplicate window. Mx is horizontal magnification; My, vertical magnification.
XES COMMAND LANGUAGE MODE Where to place it Example Xn,Yn Origins of other duplicate windows if more than one is to be made on the page. Xn is the distance along the x-axis of the page to the duplicate window origin. Yn is the distance along the y-axis of the page to the duplicate window origin. L Line end. Wherever you want a duplicate of a window.
XES COMMAND LANGUAGE MODE Figure 2-26. A graphic window copied at another location on the page Creating graphic images The commands for creating graphic images are: • • • • • Graphic Line Graphic Arc Graphic Box Graphic Fill 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.
XES COMMAND LANGUAGE MODE 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. When a number for X is missing in a command, the printer uses the x-coordinate from the current graphic position. When a number for Y is missing, the printer uses the y-coordinate from the current graphic position.
XES COMMAND LANGUAGE MODE More You can have as many sets of coordinates for a line as desired. If the value for X1 is omitted, the printer uses the x-coordinate from the current graphic position. If this line is the first graphic image drawn in the window, the x-coordinate of the window origin is substituted for the x-value. If the value for Y1 is omitted, the printer substitutes the ycoordinate from the current graphic position.
XES COMMAND LANGUAGE MODE Figure 2-27. A graphic line drawn inside a graphic window Graphic Arc Purpose Draws arcs and circles within the graphic window (figure 2-28). Syntax EgaT;X,Y,r,S1,E1,Sn,EnL ga The instruction for a graphic arc. T Line thickness of the figure. This number can not exceed one half the radius. ; The semicolon is required. If omitted, the command is ignored. Commas separate the other variables. X,Y The coordinates for the centre of the arc.
XES COMMAND LANGUAGE MODE More 2-96 r The radius of the arc. S1 The starting point of the arc, expressed in degrees on a circle. The printer draws in a counterclockwise direction. E1 The ending point of the arc, expressed in degrees. Sn,En Additional pairs of starting and ending angle degrees, as many as desired. If either point is missing from the pair, the other is ignored and an error message appears on the Summary Sheet. The starting degree cannot be the same as the ending degree.
XES COMMAND LANGUAGE MODE Example 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 • Drawn as follows: — — — — Arc 1 from 45 degrees to 135 degrees Arc 2 from 155 degrees to 205 degrees Arc 3 from 225 degrees to 315 degrees Arc 4 from 335 degrees to 25 degrees.
XES COMMAND LANGUAGE MODE Graphic Box Purpose Draws a rectangle by defining two sets of right angles. Two coordinates define the diagonal corners. The printer then fills in the vertical and horizontal lines for the top, bottom, and sides. Syntax EgbT;X1,Y1,X2,Y2L gb Instruction to create a graphic box. T Line thickness of the figure. The maximum value is 16 pixels. No error message is generated if a greater value is entered. The width is distributed equally on the inside and outside of the box.
XES COMMAND LANGUAGE MODE • The diagonal opposite coordinates set at 525,675 within the graphic window Enter: Egb7;75,225, 525,625L Figure 2-30. A graphic box within a window Graphic Fill Purpose 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. Syntax EgfP;X,Y,Xn,YnL gf The instruction for a fill pattern. P Indicates the pattern selection.
XES COMMAND LANGUAGE MODE X,Y Indicates the starting point or seed point of the fill patterns. X is the horizontal distance in pixels from the window’s origin to the seed point. Y is the vertical distance in pixels from the window origin to the seed point. Xn,Yn Indicates the next seed point for this fill pattern. If you are using a predefined pattern, you may specify as many seed points in one command as desired. With a user-defined pattern, only one seed point can be specified per command.
XES COMMAND LANGUAGE MODE • 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. Egw1,2;,,300,300L Egb5;3,3,297,297L Egl;3,3,100,250,150,200,200,200,250,150,297,297L Egf7;170,250L Figure 2-32.
XES COMMAND LANGUAGE MODE Nongraphic line commands (Line Draw X and Line Draw Y) cannot contain fill patterns even when defined within the boundaries of a graphic window. Notice in figure 2-33 that the pattern is contained only at the boundaries of the closed graphic images. Example Figure 2-33 is created in the following manner: • A graphic window is defined with the Graphic Window command. • Line Draw X and Line Draw Y commands create the inner rectangle. This is a nongraphic image.
XES COMMAND LANGUAGE MODE Figure 2-33. A fill pattern between the boundaries of two graphic images, a circle and a rectangle Graphic Pie Chart Purpose Creates a complete pie chart, including fill patterns. You can also offset single “slices“ from the rest of the pie chart. Syntax EgpT;X,Y,r,%1/F1/O1,%n/Fn/OnL gp The instruction for a pie chart. T Line thickness of the figure. Line thickness should not be greater than 1/2 the radius, otherwise unexpected results may occur.
XES COMMAND LANGUAGE MODE More %1 The percent of the pie to be taken up by the first pie slice. The total of all percentages must add up to 100. / A slash separates this percentage from the fill pattern number and offset value. Both the fill pattern and offset value are optional. F1 The number of the fill pattern selection (refer to Graphic Fill). O1 The offset value, if the slice is to be offset from the centre; the distance from the centre point of the pie to the narrowest point in the pie slice.
XES COMMAND LANGUAGE MODE — 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. Enter: Egp5;450,450,285,20/10,30/13/10,10/2/50,15/12/ 10,25/17/10L Figure 2-34. Creating a pie chart More about Graphic Pie Chart When creating a pie slice, the printer subtracts the line thickness of the figure from its radius, then uses the remainder as the location of the seed point.
XES COMMAND LANGUAGE MODE The purpose of the data monitor 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. The data monitor may be used to: Check for correct printer command syntax Check the integrity of the data files Check the integrity of font and graphics data.
XES COMMAND LANGUAGE MODE Figure 2-36. Close up of data monitor printout Note the following about the data monitor printout: • The characters printed on the right half of the printout are either ISO or EBCDIC characters. The data monitor always uses the translation table for EBCDIC data, regardless of the language selected. If ASCII encoding is selected, ISO characters are printed. • The Page number refers to the pages of the printout, not of the transmitted job.
XES COMMAND LANGUAGE MODE This section discusses the data encoding systems, or coding schemes, supported on the 4213 printer, how to load a table of characters using the Character Reassignment command, and how to switch from one table to another using the Language command. The actual language code mappings are found in Appendix A. Other tables needed for character assignments are in appendix D, “Reference tables.
XES COMMAND LANGUAGE MODE The Special Table 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). Note: The Special Table does not recognise control codes (i.e., hexadecimal values less than EBCDIC 40H) or the space character (EBCDIC 40H). These codes must be reassigned to a valid value in the table before they can be used.
XES COMMAND LANGUAGE MODE • The table load terminator, which is the XL part of the command. It signals to the printer that all data records have been sent. More about the table data record The data record tells the printer how a new table is to translate incoming data. The format of the table data is very specific and must be followed carefully. The data may be grouped either in one long record or in a series of records. Each record consists of six elements: 1. 2. 3. 4. 5. 6.
XES COMMAND LANGUAGE MODE 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. 4. Load address This is the first hex location to be altered, multiplied by two, and is always four characters long. For example, if the first location to be altered is 40H, the value to be entered as the load address is “0080”.
XES COMMAND LANGUAGE MODE The second two characters of each entry are the hex location of a floating accent character to be printed along with the character specified by the first two bytes. Only the value from column C should be included. The printer automatically selects an accent from column 8 or C, depending on the height of the character with which it is associated. If no floating accent is needed, two 0s should be included here.
XES COMMAND LANGUAGE MODE Where to place it Example At the start of the job. To move the % symbol from its current hex location of 25H to a new location at 7EH, enter: E+T,L ES40500FC2500FFXL The data record in this example is summarised below. More S A data record always begins with the letter “S”. 4 4 is used here. The use of other numbers excludes certain fonts. 05 Use 05 as the byte count to move one character at a time.
XES COMMAND LANGUAGE MODE Language Purpose Switches the printer from the current character table to another character table. Syntax Ezlc zl Instruction to change character table. c The table selected: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H Where to place it Example U.S. English U.K.
XES COMMAND LANGUAGE MODE Sample job 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 necessary to print the following: Pound sterling Yen sign International currency symbol Suppose also that the printing of the following characters can be sacrificed.
XES COMMAND LANGUAGE MODE A custom translation table might be built as follows. Table 2-7. 2-116 U.S.
XES COMMAND LANGUAGE MODE Building the file 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. Since the load address must always be four characters in length, the value to be included as the load address is “00B8”.
XES COMMAND LANGUAGE MODE The last determination to be made is the record type. Since ISO characters are to be used in this table, either “3” or “4” is appropriate. The entire file then becomes: E+TL S40D00B8A3005D00A5005F00A800FFL The components of this table record are shown in figure 2-37. Figure 2-37. Completed table download record Invoking the base table Before sending the table data file to the printer, ensure to invoke the mapping table that is to serve as the base table.
XES COMMAND LANGUAGE MODE Figure 2-38.
XES COMMAND LANGUAGE MODE Table 2-8. 2-120 Customised mapping table (U.S.
XES COMMAND LANGUAGE MODE More about creating tables 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. • The table data may consist of one or more records. • The record-type indicator must be selected carefully to avoid changing the wrong tables in the system. • The load address is always doubled.
XES COMMAND LANGUAGE MODE 2-122 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE
3. LJ series 2D emulation The LJ2D emulation can accept fonts from a variety of sources. Some fonts are built into the 4213 printer. Others may be accessed from a cartridge or downloaded from a file. This chapter describes fonts and the font handling capabilities of the LJ2D emulation and covers the following topics: • • • • • Font compatibility Primary and secondary fonts Font characteristics Font selection Resident fonts.
LJ SERIES 2D EMULATION Most font commands have two versions, one for the primary font and another for the secondary font. Once selected, it is possible to switch between them using the single-byte control codes Shift In (SI) (hexadecimal 0F, decimal 15) and Shift Out (SO) (hexadecimal 0E, decimal 14). The primary font is the default font. Font characteristics A font is a set of printable characters that have common features: • • • • • • • • • Orientation Symbol set Font source Spacing.
LJ SERIES 2D EMULATION Figure 3-1. Portrait orientation page layout (y,x) Figure 3-2.
LJ SERIES 2D EMULATION Symbol set The symbol set defines the characters available in a font and the numeric values with which they are associated. Symbol sets are designed for different languages and applications where special characters are required. Each font matches a specific symbol set. Therefore, for a font to be available in more than one symbol set, there must be a separate version of the font in the printer for each symbol set.
LJ SERIES 2D EMULATION Stroke weight 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, medium being the normal stroke weight. Most applications use two stroke weights: medium and bold. Typeface A typeface can be defined as the specific design of a set of font characters. Characters of a given typeface share a similar style.
LJ SERIES 2D EMULATION If more than one font matches the request after the printer compares all characteristics, it chooses the font based on its source: Downloaded fonts are chosen first, with lower font ID numbers superseding the higher ones. If no downloaded font matches, the printer examines the cartridge fonts and, finally, the internal fonts. Font selection by ID When downloading fonts from a host computer, you must assign an ID number with the Font ID command (E *c#D).
LJ SERIES 2D EMULATION Table 3-1.
LJ SERIES 2D EMULATION Table 3-1.
LJ SERIES 2D EMULATION Cartridge fonts Please refer to the Xerox 4213 Laser Printer User Guide for the cartridges that can be used by the LJ 2D emulation. Cartridges are listed by part number. Font cartridges must be installed while the 4213 is powered off. Font cartridges installed while the printer is on are not recognised, and may lock up the printer.
LJ SERIES 2D EMULATION Escape sequences Escape sequences are multi-character commands preceded by the escape character. Escape sequences may or may not have parameters. Escape sequences with parameters Escape sequences with parameters either access a specific feature of the printer, such as a font, or transmit variable data such as margin settings.
LJ SERIES 2D EMULATION Numeric variable The numeric variable is a decimal number represented as an ASCII string. Some commands allow the string to be preceded by a plus (+) or minus (-) sign, and others allow the number to include a fractional part after a decimal point represented by the full stop (.) character. If the numeric variable is not provided, it is assumed to be zero. Parameter character The parameter character indicates the parameter to which the previous numeric variable applies.
LJ SERIES 2D EMULATION Table 3-2. Upper case Using parameter and final parameter characters Lower case Sequence X A final parameter in a combination of escape sequences. X A single escape sequence. A non-final parameter linking a series of escape sequences.
LJ SERIES 2D EMULATION • All alphabetic characters in the combined sequence must be lowercase except for the last final parameter character which is uppercase. The characters which would be final parameter characters in uncombined escape characters are converted to lowercase and referred to as parameter characters.
LJ SERIES 2D EMULATION Job control commands The job control commands affect an entire print job. Printer Reset Purpose Syntax The Printer Reset command restores the printer to its default settings. This command deletes any temporary fonts and macros from memory and prints any data remaining in the printer buffer. It is recommended to use the Printer Reset command at the beginning of each job.
LJ SERIES 2D EMULATION 1-sided/2-sided Purpose The 4213 can print on one side (1-sided) or both sides (2-sided) of a page. Syntax E &l#S Hex Dec 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. 2-sided printing is not supported in the LJ Series 2D emulation when the manual bypass feature is used.
LJ SERIES 2D EMULATION Top Offset Registration Purpose This command designates the position of the logical page across the length (long side) of the physical page. Syntax E &l#Z Hex Dec 1B 26 6C # 5A 27 38 108 # 90 is a positive or negative number expressed in where # decipoints (1/720th inch) and valid up to four decimal places.
LJ SERIES 2D EMULATION Example To start printing the first chapter of a document on the front side of a page, enter the following command: E &a1G Hex Dec 1B 26 61 31 47 27 38 97 49 71 Page control commands The page control commands define the shape and size of the page. Paper Source Purpose The Paper Source command specifies one of four locations for paper or prints the current page. Syntax E &l#H where # is one of the values in table 3-3. Table 3-3.
LJ SERIES 2D EMULATION Example To feed from the lower tray (2) enter: E &l4H Hex Dec 1B 26 6C 34 48 27 38 108 52 72 Page Size Purpose The Page Size command determines the physical size of paper, which sets the limits of the logical page. The top, left, and right margins are set to the defaults for the size of paper chosen, as is the text length. Automatic macro overlays are turned off, and any unprinted data is printed.
LJ SERIES 2D EMULATION Table 3-4. Paper size values # Paper Size 1 Executive (184 x 267mm) (7.25 x 10.5 inches) 2 Letter (216 x 279 mm) (8.5 x 11 inches) 3 Legal (216 x 356 mm) (8.
LJ SERIES 2D EMULATION Note: The physical size of paper required to accommodate a given number of lines on a page will vary depending on the line spacing. Table 3-5. Portrait paper length values Page size At 6 lines per inch At 8 lines per inch Letter 66 88 Legal 84 112 A4 70 90 Executive 63 84 Table 3-6.
LJ SERIES 2D EMULATION Orientation Purpose 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 E &l#O Hex Dec 1B 26 6C # 27 38 108 # where # = 0 is portrait # = 1 is landscape. The default orientation is portrait (0). Left Margin Purpose The Left Margin command sets the distance between the left edge of the text and the left edge of the printable area regardless of paper orientation.
LJ SERIES 2D EMULATION Example To set the left margin at column 8, enter: E &a8L Hex Dec 1B 26 61 38 4C 27 38 97 56 76 Right Margin Purpose The Right Margin command sets the distance between the right edge of the text and the left edge of the printable area regardless of paper orientation. The printable area begins 50 pixels (1/6th inch) from the left edge of the paper in portrait mode and 60 pixels (1/5th inch) from the left edge of the paper in landscape mode.
LJ SERIES 2D EMULATION Clear Horizontal Margins Purpose 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 E9 Hex Dec 1B 67 39 27 103 57 Top Margin Purpose The Top Margin command sets the distance between the top of the printable area and the top of the text regardless of paper orientation. The top margin is defined as a number of lines.
LJ SERIES 2D EMULATION The text length is set to the user default whenever the page orientation, length, size, or top margin is changed. The user default is calculated as the quotient (integer) of the following equation: (Printable Area Length-TopMargin- )48 ÷ VMI where Printable Area Length and Top Margin are measured in inches. Syntax E &l#F where # is the number of lines of text required.
LJ SERIES 2D EMULATION Example To enable Perforation Region, enter: E &l1L Hex Dec 1B 26 6C 31 4C 27 38 108 49 76 Horizontal Motion Index Purpose The Horizontal Motion Index (HMI) command determines the distance between columns. When proportional spaced fonts are selected, the HMI command affects only the space character. When fixed-space fonts are selected, the HMI command affects all the printable characters.
LJ SERIES 2D EMULATION Syntax E &l#C where # is the distance between rows in 48ths of an inch. # must be between 0 and 336. The # is valid to four places to the right of the decimal point. Use the following formula to calculate the VMI: VMI = 48 ÷ lines per inch Example To print four lines per inch, set the VMI to 12: E &l12C Hex Dec 1B 26 6C 31 32 43 27 38 108 49 50 67 Line Spacing Purpose Syntax The Line Spacing command affects the VMI in lines per inch.
LJ SERIES 2D EMULATION Horizontal Cursor Position (Columns) Purpose 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. Syntax E &a#C where # is the number of columns to move or the column to move to. The # is valid up to four places to the right of the decimal point. Absolute move: to column #.
LJ SERIES 2D EMULATION Syntax E&a#H where # is the number of decipoints to move or the absolute position to move to. The # is valid to two decimal places to the right of the decimal point. Absolute move: If the # value has no sign, the cursor is moved # decipoints to the right of the left edge of the printable area. Relative move, positive: If the # value is preceded by a plus (+) sign, the cursor is moved # decipoints to the right of the current cursor position.
LJ SERIES 2D EMULATION Syntax E *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. Relative move, positive: If the # value is preceded by a plus (+) sign, the cursor is moved # spots to the right of the current cursor position.
LJ SERIES 2D EMULATION Absolute move: If the # value has no sign, the cursor is moved down # rows from the top margin. Relative move, positive: If the # value is preceded by a plus (+) sign, the cursor is moved # rows down from the current cursor position. Relative move, negative: If the # value is preceded by a minus (-) sign, the cursor is moved # rows up from the current cursor position. If an absolute # value (i.e.
LJ SERIES 2D EMULATION 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. Relative move, negative: If the # value is preceded by a minus (-) sign, the cursor is moved # decipoints above the current cursor position.
LJ SERIES 2D EMULATION Half-line Feed Purpose Syntax The Half-line Feed command moves the cursor half a row down the page without changing columns. The distance moved is half the current Vertical Motion Index (VMI) setting, which may have been defined by a VMI or Line Spacing command.
LJ SERIES 2D EMULATION Table 3-7. Line ending options Line endings # Host Printer 0 CR LF FF CR LF FF 1 CR LF FF CR+LF LF FF 2 CR LF FF CR CR+LF CR+FF 3 CR LF FF CR+LF CR+LF CR+FF The default setting is zero (no translation). End-of-Line Wrap Purpose 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.
LJ SERIES 2D EMULATION Syntax E &s#C Hex Dec 1B 26 73 # 43 27 38 115 # 67 where # = 0 enables End-of-Line Wrap # = 1 disables End-of-Line Wrap. Push/Pop Cursor Position Purpose Syntax The Push/Pop Cursor Position command enables the current cursor position to be stored and recalled at a later time. Up to twenty cursor positions may be stored in a last-in first-out (LIFO) stack, where the item most recently pushed onto the stack is the first to come off the stack.
LJ SERIES 2D EMULATION Backspace (BS) BS (hexadecimal 08, decimal 8) moves the cursor left by the width of the last printed character or space. With fixed-pitch fonts, the backspace distance is the current Horizontal Motion Index (HMI). With proportionally-spaced fonts, a single backspace centres the new character over the character to the left.
LJ SERIES 2D EMULATION Stroke weight Typeface Soft font with the lowest ID number Left cartridge Right cartridge Internal font orientation. • • • • • • Font selection can only be guaranteed if the total set of font commands shown on the following pages is used. Failure to specify any of the font characteristics may result in selection of a font that differs from the HP font. Symbol Set Purpose Syntax The Symbol Set command sends the printer a numeric code corresponding to a symbol set.
LJ SERIES 2D EMULATION Table 3-8.
LJ SERIES 2D EMULATION Spacing Purpose Syntax The Spacing command instructs the printer to accept proportionally-spaced or fixed-pitch fonts. If proportional spacing is selected but no proportionally-spaced font is available, the printer will designate a fixed-pitch font instead. Separate commands exist for selecting the spacing mode of the primary and secondary fonts. E (s#P The Spacing command for the secondary font is: E )s#P where # = 0 sets fixed pitch # = 1 sets proportional spacing.
LJ SERIES 2D EMULATION Syntax E (s#H where # is a real number valid up to two decimal places. The Pitch command for the secondary font is: E )s#H Example To set the primary font as 12-pitch and the secondary font as 10pitch, enter: E (s12H Hex Dec 1B 28 73 31 32 48 27 40 115 49 50 72 The Pitch command for the secondary font is as follows: Syntax E)s10H Hex Dec 1B 29 31 30 48 27 41 49 48 72 Height Purpose The Height command selects the character height of the font in points (72nds of an inch).
LJ SERIES 2D EMULATION Example To select a primary font of 8 points and a secondary font of 14.6 points, enter: and E )s8V Hex Dec 1B 29 73 38 56 27 41 115 56 86 E (s14.6V Hex Dec 1B 28 73 31 34 2E 36 56 27 40 115 49 52 46 54 86 Style Purpose Syntax The Style command selects upright or italic characters. Two Style commands exist for the primary and secondary fonts. If the style requested is not available, the Style command is ignored.
LJ SERIES 2D EMULATION Stroke Weight Purpose 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. If the requested stroke weight is zero or greater and the weight is not available, the printer accesses the next heavier font.
LJ SERIES 2D EMULATION Table 3-9. Gradations of Stroke weight # Stroke Weight -7 Ultra Thin -5 Thin -3 Light 0 Medium +3 Bold +5 Black +7 Ultra Black Typeface Purpose Syntax The Typeface command selects the typeface used by the primary and secondary fonts. E (s#T The Typeface command for the secondary font is: E )s#T where # is a code number from table 3-10.
LJ SERIES 2D EMULATION Table 3-10.
LJ SERIES 2D EMULATION Table 3-10. Typefaces and code numbers (continued) # Typeface 111 Century School Book 113 Gillsans 200 Signatures 201 Logos 202 Forms 203 Macros Note: Names of typefaces are registered trademarks. Use of typefaces may be subject to licensing agreements. Default Font Purpose Syntax The Default Font command restores all font characteristics (except orientation) to those of the user default font. Separate commands exist for the primary and secondary font.
LJ SERIES 2D EMULATION Transparent Data Purpose 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. Syntax E &p#X[transparent data] where # is the number of bytes of transparent data. (The brackets are not to be typed in.) Example To print the form feed (hexadecimal 0C.
LJ SERIES 2D EMULATION Syntax E &d#D Hex Dec 1B 26 64 # 44 27 38 100 # 68 where # = 0 is fixed underline # = 3 is floating underline. Disable Underline Purpose Syntax Disable Underline cancels the Underline command. E &d@ Hex Dec 1B 26 64 40 27 38 100 64 Primary and secondary fonts The control codes Shift In (SI) with the hexadecimal value 0F, decimal 15, and Shift Out (SO) with the hexidecimal value 0E, decimal 14, allow the user to alternate between primary and secondary fonts, respectively.
LJ SERIES 2D EMULATION Example To specify a font ID number of 2 enter: E *c2D Hex Dec 1B 2A 63 32 44 27 42 99 50 68 Font Control Purpose The Font Control is the main command for managing downloaded fonts. It deletes downloaded fonts and determines whether a Soft Font is automatically removed at a printer reset. Syntax E *c#F where # is one of the values in table 3-11. Example To make a Soft Font with an ID of 1 temporary enter: E *c4F Hex Dec 1B 2A 63 34 46 27 42 99 52 70 Table 3-11.
LJ SERIES 2D EMULATION Notes • Temporary downloaded fonts are removed each time the printer is reset. Permanent downloaded fonts are retained through resets but are lost when the printer is turned off. • If the primary or secondary font is deleted, the font most closely resembling the deleted font is chosen from the remaining fonts to be the new primary or secondary font.
LJ SERIES 2D EMULATION Syntax E )s#W[font descriptor + data] Hex Dec 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.) The font descriptor is normally 64 bytes long. The font descriptor contains values for the following font characteristics: • • • • • • • • • • • • font type baseline distance cell width cell height orientation fixed/proportional spacing symbol set pitch height style stroke weight typeface.
LJ SERIES 2D EMULATION Example To specify a character code for the letter “J,” enter: E *c74E Hex Dec 1B 2A 63 4A 45 27 42 99 74 69 Character Descriptor and Data Purpose The Character Descriptor and Data command is used for downloading a character to the printer. The downloaded character has the ASCII character code previously assigned through the Character Code command.
LJ SERIES 2D EMULATION Graphics commands Graphics commands are used to download raster data to form bit map images. Expressed in dots corresponding to bits, images can be created in rectangular shapes with a variety of fill and shading patterns. When the printer receives graphic data that is incomplete, e.g. the data has fewer bytes than the window size, the next Form Feed commands may be ignored, causing unpredictable results.
LJ SERIES 2D EMULATION Table 3-12. Values for graphics resolution # Graphics Resolution 75 75 spots per inch 100 100 spots per inch 150 150 spots per inch 300 300 spots per inch Raster Graphics Presentation Mode Purpose Syntax This command designates how the raster image will appear on the logical page. E *r#F where # = # = 0 - Raster graphics are printed in the orientation of the logical page.
LJ SERIES 2D EMULATION Syntax E *r#A Hex Dec 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 0 Left edge of printable area 1 Current cursor position Transfer Raster Data Purpose The Transfer Raster Data command precedes a single row of raster graphics data. The resolution of the data has been selected through the Graphics Resolution command, and the left graphics margin defined by the Start Graphics command.
LJ SERIES 2D EMULATION Hex Dec 1B 2A 62 # 57 27 42 98 # 87 where # is the number of bytes in this row. not to be entered.) (The brackets are End Graphics Purpose The End Graphics command tells the printer that the transfer of raster graphics is complete. Syntax E *rB Hex Dec 1B 2A 72 42 27 42 114 66 Horizontal Rectangle Size (Decipoints) Purpose Syntax The Horizontal Rectangle Size (Decipoints) command defines the width, in decipoints (720ths of an inch), of the next rectangle to be drawn.
LJ SERIES 2D EMULATION Vertical Rectangle Size (Decipoints) Purpose The Vertical Rectangle Size (Decipoints) command defines in decipoints (720ths of an inch) the height of the next rectangle to be drawn Syntax E *c#V Hex Dec 1B 2A 63 # 56 27 42 99 # 86 where # is a number up to four decimal places representing the height of the rectangle in decipoints.
LJ SERIES 2D EMULATION Figure 3-5.
LJ SERIES 2D EMULATION Figure 3-6. Area Fill shading density Note: 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.
LJ SERIES 2D EMULATION Fill Rectangular Area Purpose The Fill Rectangular Area command prints the rectangle defined by the Vertical and Horizontal Rectangle Size commands and specifies whether it is to be filled with shading, one of the fill patterns, or solid black. For solid black fill, the Area Fill ID command is not required. For shading or a fill pattern, the Area Fill ID command must be used ahead of the Fill Rectangular Area command.
LJ SERIES 2D EMULATION 2. E *c600A (Sets rectangle width at 2 inches.) 3. E *c900B (Sets rectangle height at 3 inches.) 4. E *c0P (Prints the rectangle as a black area.) Example 2 To print a 2- by 3- inch rectangle with 50% shading, enter the following commands: 1. E *p300x300Y (Moves cursor one inch down and one inch across) 2. E *c600A (Sets rectangle width at 2 inches.) 3. E *c900B (Sets rectangle height at 3 inches.) 4. E *c50G (Uses an Area Fill ID of 50.) 5. E *c2P (Prints the shaded rectangle.
LJ SERIES 2D EMULATION Macro commands Macros are single commands that execute a series of commands in sequence. The two Macro commands are: • • Macro ID Macro Control. Macro ID Purpose The Macro ID command provides an ID number for the following macro commands. The ID number may be in the range 0 through 32767. Syntax E &f#Y Hex Dec 1B 26 66 # 59 27 38 102 # 89 where # is the value of the macro ID number used. Macro Control Purpose The Macro Control command can define, delete, and execute macros.
LJ SERIES 2D EMULATION • An automatic-overlay macro is the final operation in printing a page. Before the macro is executed, an overlay print environment replaces the current modified print environment. After execution of the macro, the former print environment is restored. • Macros can be nested only two levels deep. • The only control operations that may be used within a macro are 3 (Call) and 2 (Execute). Table 3-15.
LJ SERIES 2D EMULATION 1. E &f1Y (Assign 1 to Macro ID.) 2. E &f0X (Start macro definition of ID 1.) 3. E &a10c4R (Sets starting column for X and row for Y position.) 4. E&lOE8UE(s1p10h14v0s+7b23T (Selects a primary font with the following characteristics: • • • • • • • • 5. Portrait orientation HP Roman-8 symbol set Proportional spacing 10 characters per inch 14 points in height Upright (style) Ultra black (stroke weight) Century Schoolbook (typeface). Styler Systems 701 South Aviation Blvd.
4. PostScript emulation This chapter highlights certain programming features specific to the 4213’s emulation of the Postscript Page Description Language (PDL) and describes how this PDL differs from other implementations of the PostScript language. Because this chapter serves as a supplement, we have omitted the standard information already described in the PostScript® Language Reference Manual and related publications.
POSTSCRIPT EMULATION Table 4-1. Paper and envelope sizes 4-2 Paper/envelope name Paper/envelope size Imageable area LETTER 216 x 279 mm (8.5" x 11") 206 x 273 mm (8.1" x 10.75") A4 210 x 297 mm (8.27" x 11.69") 199 x 290.5 mm EXECUTIVE 184 x 267 mm (7.25" x 10.5") 176 x 260 mm (6.93" x 10.25") B5 182 x 257 mm (7.15" x 10.1") 171 x 251 mm (6.75" x 9.9") COM10ENVELOPE 105 x 241 mm (4.125" x 9.5") 95 x 235 mm (3.73" x 9.25") DLENVELOPE 110 x 220 mm (4.33" x 8.66") 101.5 x 213.
POSTSCRIPT EMULATION System parameters 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 end of the current job or the printer is powered off. These parameters are stored in a special dictionary called statusdict. These parameters can be changed through a PostScript programme using operators that access statusdict.
POSTSCRIPT EMULATION After the server has acknowledged the exit request, you are permitted to run a programme using statusdict operators that change persistent parameters. Operators that set persistent parameters are marked with an asterisk. To change these parameters, you must first exit the normal server mode. You can inquire about the current state of persistent parameters without using the exitserver mode, and accessing statusdict only.
POSTSCRIPT EMULATION setdojamrecovery —boolean setdojamrecovery Sets the state of jam recovery on (true) or off (false). dojamrecovery — dojamrecovery boolean Tells if jam recovery is on (true) or off (false). product —product string This operator returns the string Xerox 4213. revision —revision integer Returns the revision number of the device specific portion of the PostScript interpreter.
POSTSCRIPT EMULATION waittimeout — waittimeout integer Indicates how many seconds the printer will wait to receive more characters before it cancels the job. Output positioning operators maxoutputposition — maxoutputposition integer This operator returns the value 1. outputposition — outputposition integer This operator returns the value 0 or 1, depending on the state of the output jogger. setoutputposition — integer setoutputposition This operator accepts an integer in the range 0 to 1.
POSTSCRIPT EMULATION 2-sided operators setdefault2-sidedmode* — boolean setdefault2-sidedmode Sets the value of default2-sidedmode. When true, the default printing mode is 2-sided. When false, it is 1-sided. default2-sidedmode — default2-sidedmode boolean This operator returns a boolean indicating the current default mode. True indicates 2-sided mode; false, 1-sided mode. set2-sidedmode — boolean set2-sidedmode Turns 2-sided printing on or off for the current job. 2-sided on and false turns it off.
POSTSCRIPT EMULATION firstside — firstside boolean Returns a boolean indicating whether the image being created will be printed on the first side of a logical page. For the first page of a job, this value is always true.
POSTSCRIPT EMULATION setdefaulttrayswitch* — boolean setdefaulttrayswitch Sets automatic tray switching on or off. If this feature is turned on, and the specified trays runs out of paper, the printer will search other trays for the same size paper and continue printing. If no paper of the same size is found, then the User Interface indicates out of paper. The sequence used to search the other paper trays is selectable through the User Interface, and is described in appendix A4 of the 4213 User Guide.
POSTSCRIPT EMULATION legaltray — legaltray This causes the 4213 to look for a tray with legal size paper. If such a tray is found, the page type is set to legal and papertray is set to that tray. If a tray with legal size paper is not found, a rangecheck error occurs and the page type and papertray values are not changed. executivetray — executivetray This causes the 4213 to look for a tray with executive size paper.
POSTSCRIPT EMULATION dlenvelopetray — 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. If a proper tray is not found, a rangecheck error occurs and page type and papertray values are not changed. Handling syntax errors Errors detected by the 4213 interpreter are reported to the host only when the serial interface is used.
POSTSCRIPT EMULATION Table 4-2. Memory in MB Jam recovery on Simplex Duplex Jam recovery off Simplex Duplex 4.5 13.0 4.1 13.0 9.4 6.5 13.0 7.4 13.0 10.9 8.5 13.0 10.4 13.0 10.9 10.5 13.0 10.4 13.0 10.9 Table 4-3. Legal paper throughput (images/minute) Memory in MB Jam recovery on Simplex Duplex Jam recovery off Simplex Duplex 4.5 7.0 3.8 10.5 4.9 6.5 10.5 3.8 10.5 8.5 8.5 10.5 7.8 10.5 9.7 10.5 10.5 9.7 10.5 9.7 Table 4-4.
POSTSCRIPT EMULATION Table 4-5. VM and font cache allocation Memory in MB VM (Bytes) Font cache (Bytes) 4.5 530K 260K 6.5 530K 700K 8.5 640K 700K 10.
POSTSCRIPT EMULATION 4-14 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE
Index 1 1-sided/2-sided, 3-15 2 2-sided (book), 2-25 Inverted (pad), 2-26 operators, 4-7 to 4-8 Page Side Selection, 3-16 Stop, 2-17 Side Select, 2-27 to 2-28 2-sided/1-sided, 3-15 3270 3270 EBCDIC code mappings Belgium, A-10 Danish/Norwegian, A-18 Dutch, A-15 Finnish/Swedish, A-19 French, A-14 French Canadian, A-11 German, A-20 Italian, A-17 Spanish, A-16 U.K. English, A-13 U.S.
INDEX C cable length, 1-1 t centreing, 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 Carriage Return (CR), 3-34, D-1 cartridge fonts, 3-9 Centre, 2-54 centreing and justifying between margins, 2-52 Centronics connector, 1-3 interface, 1-1 connector, 1-3 f voltage and current requirements, 1-7 t signals and pi
f=FIGURE; t=TABLE coordinates, 2-10 copying graphic windows, 2-89 to 2-90 creating constant pages, 2-74 graphic images, 2-92 pie chart, 2-105 f tables, 2-121 current requirements, 1-7 t, 1-11 t text position, 2-88 to 2-89 cursor positioning commands, 3-26 to 3-35 customised mapping table (U.S.
INDEX Font Add, 2-33 font and page orientation, 2-9 assignment numbers, 3-6 cache allocation, 4-13 t cartridges, 3-9 character as a digitised bitmap, 2-29 f characteristics, 3-1 to 3-5 commands, 3-35 to 3-50 compatibility, 3-1 orientation, 2-9 selection by characteristics, 3-5 to 3-6 by ID, 3-6, 3-48 source, 3-4 storage, 2-30 symbol sets with ID (LJ2D), 3-37 t Font Control functions, 3-47 t Font Delete, 2-33 to 2-34 Font Descriptor, 3-48 to 3-49 Font ID, 3-46 to 3-47 Font ID Assignment, 2-35 to 2-36 Font L
f=FIGURE; t=TABLE Hewlett Packard LJ2D commands (continued) Half-line Feed, 3-32 Height, 3-39 Horizontal Cursor Position (Columns), 3-27 Horizontal Cursor Position (Decipoints), 3-27 to 3-28 Horizontal Cursor Position (Spots), 3-28 to 3-29 Horizontal Motion Index, 3-25 Horizontal Rectangle Size (Decipoints), 3-54 Horizontal Rectangle Size (Spots), 3-54 Left Offset Registration, 3-15 Line Spacing, 3-26 Line Termination, 3-32 to 3-33 Macro Control, 3-60 to 3-61 Macro ID, 3-60 Number of Copies, 3-14 Orientati
INDEX L landscape font on short edge feed landscape page, absolute placement, 2-60 f default format parameters, F-1 t orientation page layout, 3-3 f paper length values, 3-20 t Language, 2-114 language G, special table code mappings, A-21 t Left Margin, 3-21 Left Offset Registration, 3-15 legal paper throughput, 4-12 t letter paper throughput, 4-12 t Line Draw commands, fifteen degrees of shading, 2-67 f Line Draw X, 2-62 to 2-64 command, 2-64 f Line Draw Y, 2-64 to 2-66 command, 2-66 f line end, 2-8 line
f=FIGURE; t=TABLE Orientation command, 3-21 origin and page orientation, 2-80 output positioning, 4-6 Output Tray, E-1 t Overstrike Start/Overstrike Stop, 2-70 P packing, run-length, C-9 to C-11 page capacity, 2-12 control commands, 3-17 to 3-26 definition, 2-9 to 2-10 formatting features, 2-55 to 2-56 graphic windows, 2-81 to 2-84 orientation, 2-9 type, userdict operators, 4-1 pagecount integer, 4-4 Page Length, 3-19 to 3-20 Page Size, 3-18 values, 3-19 t paper feed, 2-10 to 2-11 sizes and imageable areas
INDEX S safety approval, iv to v operational, iv precautions, iii radio frequency energy, iii to iv sample programme in C for sixel encoding, C-4 to C-7 in BASIC for run-length packing, C-9 to C-11 sample translation table job, 2-115 to 2-120 scan direction for raster graphics, 2-81 to 2-84 schemes, supported coding 7-bit, 2-108 secondary fonts, 3-1, 3-46 select Centronics parallel interface, 1-2 to 1-3 DataProducts parallel interface, 1-7 to 1-8 metered data, 1-2 serial interface, 1-11 selecting UDK, tips
f=FIGURE; t=TABLE T table data record, 2-210 to 2-212 table of contents, vii to xviii Table, Special Translation, 2-109 tab position and intervals, 2-47, F-1 to F-4 tabs, 2-44 to 2-52 Tabs Clear Horizontal, 2-47 Tabs Clear Vertical, 2-48 to 2-49 Tabs Horizontal, 2-45 to 2-47, F-1 t to F-4 t Tabs Horizontal “B”, E-1 t Tabs Vertical, 2-48 to 2-51, F-1 t to F-4 t Text Length, 3-23 to 3-24 Text Placement Absolute, 2-57 to 2-60 Text Placement Relative, 2-60 to 2-62 text placement restrictions, 2-40 timeout oper
INDEX X XES commands Bold Start/Bold Stop, 2-68 to 2-69 Bypass Slot Paper Size, 2-22 to 2-24 Centre, 2-54 Comment, 2-28 to 2-29 Data Monitor, 2-106 to 2-107 2-sided (book), 2-25 2-sided Inverted (pad), 2-26 2-sided Side Select, 2-27 to 2-28 2-sided Stop, 2-27 Font Add, 2-33 Font Delete, 2-33 to 2-34 Font ID Assignment, 2-35 to 2-36 Font Load, 2-32 Font Select, 2-37 Font Unload, 2-34 Graphic Arc, 2-95 to 2-97 Graphic Box, 2-98 to 2-99 Graphic Fill, 2-99 to 2-103 Graphic Line, 2-93 to 2-95 Graphic Pie Chart,