background image

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.”

Supported coding schemes

Tables D-2, D-3, and D-4 in appendix D list the coding schemes
supported by the 4213 printer: ASCII, ISO, and EBCDIC. The ISO
coding scheme has been derived by the International
Organisation for Standardisation and is intended for use in
international markets. Note that the ASCII code set is essentially
a subset of the ISO set.

Control codes

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

7-bit coding schemes

Non-EBCDIC hosts may transmit 7-bit codes to the 4213 printer;
however, 7-bit coding schemes are normally unable to invoke
font characters whose assigned code has a value greater than
7FH (the primary code set). Most fonts have some characters
within the range 80H to FFH (the secondary code set).
Multinational character mapping uses characters in the range 80H
to FFH to construct a language specific, 7-bit mapping table that
includes all standard national language characters.

2-108

XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE

Summary of Contents for 4213

Page 1: ...rrrr XEROX Xerox 4213 Laser Printer Programmer Reference May 1992 720P40020...

Page 2: ...ion Data Products and all Data Products products mentioned in this publication are trademarks of Hewlett Packard Company IBM and all IBM products mentioned in this publication are trademarks of Intern...

Page 3: ...lation procedures will ensure that concentration levels meet safe limits The 4213 has an ozone filter built into the print cartridge Laser safety The following note is to meet the local requirements o...

Page 4: ...Never attempt any maintenance function that is not specifically described in this guide Never operate the equipment if you notice unusual noises or odors Disconnect the power cord from the power sourc...

Page 5: ...d PostScript Language Reference Manual 1985 Adobe Systems Incorporated Addison Wesley Publishing Company Inc Sixth printing April 1987 PostScript Language Programme Design 1988 Adobe Systems Incorpora...

Page 6: ......

Page 7: ...e 1 1 Parallel interface cable 1 1 Centronics interface 1 2 Select the Centronics parallel interface 1 2 Select metered data 1 2 Return to print mode 1 2 Centronics connector 1 3 Centronics signals an...

Page 8: ...de switching 2 1 The mode change command 2 2 The reset command 2 2 Definition of a printer command 2 3 Command syntax as expressed in this chapter 2 3 Three types of escape sequences 2 3 Job control c...

Page 9: ...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 bo...

Page 10: ...tions 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 More about job boundaries 2 45 More a...

Page 11: ...ine 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 7...

Page 12: ...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 and the current graphic posi...

Page 13: ...2 The record type indicator 2 110 3 Byte count 2 111 4 Load address 2 111 5 Table entries 2 111 6 Record terminator 2 112 Character reassignment 2 112 Load Translation Table 2 113 Language 2 114 Samp...

Page 14: ...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 3 11 Binary data...

Page 15: ...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...

Page 16: ...g 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...

Page 17: ...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 of a macro 3 61 4 PostScript emulation 4 1 Userd...

Page 18: ...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...

Page 19: ...ommands sent to the printer are for that specific type of printer It is important to know how your software application package is configured so that you know what control language you should use to p...

Page 20: ...printer emulation for the 4213 printer For directions on installing enabling and configuring a printer emulation refer to the Xerox 4213 Laser Printer User Guide What this manual contains Chapter 1 In...

Page 21: ...4213 and 4046 laser printers Pages may break differently on the two printers To match rotation on the 4213 the 4045 must have an XGRAPH cartridge installed Set the page buffer to FULL to correctly pri...

Page 22: ...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 tho...

Page 23: ...213 to your host The cable must meet the following specification in order to comply with FCC and VDE regulations Table 1 1 interface cable specifications Type Twisted pairs overall foil or braid shiel...

Page 24: ...ss the Select D button to select Centronics parallel Select metered data With PARALLEL CENTR appearing on the User Interface 1 Press the Test B button METERED DATA appears on the User Interface 2 Pres...

Page 25: ...ed 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 e...

Page 26: ...1 9 To printer DATA BIT 81 10 From printer ACKNLG L ACKNLG pulse low indicates data was received and printer is ready to receive more data 11 From printer BUSY H BUSY high indicates the printer cannot...

Page 27: ...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 33 Open standard Centronics 34 No...

Page 28: ...INTERFACES Centronics interface timing Figure 1 2 diagrams signal timing for the Centronics interface Figure 1 2 Centronics interface timing 1 6 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...

Page 29: ...of up to 0 8V is recognised as a logic zero Current requirements The printer interface sources up to 15 ma at 2 4V for a high output signal and sinks up to 14 ma for a low output 74LS374 ICs are used...

Page 30: ...a 50 pin Winchester connector MRA S D5J which mates with a Winchester MRAC 50 P JKTCH connector using 100 1020P pins The pin names are provided in this figure only for the sake of information They do...

Page 31: ...s and pin assignments Pin Signal Source B Data 1 Host LSB D return F Data 2 Host J return L Data 3 Host N return R Data 4 Host T return V Data 5 Host X return Z Data 6 Host b return n Data 7 Host k re...

Page 32: ...turn x Interface Connect Verify Printer v Interface Connect Verify Printer W H P M Spare Printer Dataproducts interface timing Figure 1 4 describes the Dataproducts interface timing when measured at t...

Page 33: ...ut signal and sinks up to 14 ma for a low output 74LS374 ICs are used for data receivers with a 220 ohm pull up resistors and a 330 ohm pull down resistor 74LS244 ICs are used as drivers and for Ready...

Page 34: ...ns 1 200 2 400 4 800 9 600 19 200 9 600 is the factory default 5 Press the Select D button once your chosen baud rate appears Set parity With the baud rate appearing on the User Interface follow these...

Page 35: ...peration Press the Online H button to return the 4213 to Print Mode RS232 serial connector The 4213 supports asynchronous modems and host employing the RS232C interface The modems supported are Bell 1...

Page 36: ...t space 7 or 8 data bits 1 mark 0 space Optional parity bit Stop bit mark Data bits represent a character Least significant data bit leads Number of bits and polarity of parity are selectable via the...

Page 37: ...common return AB 102 8 Carrier Detect CF 109 11 Printer Ready None None 20 Data Terminal Ready CD 108 Null modem A null modem is a device which eliminates both a modem and a telephone line Figure 1 6...

Page 38: ...INTERFACES Figure 1 6 Null modem wiring 1 16 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...

Page 39: ...which enables you to switch from one emulation to another without reconfiguring the printer This requires the use of the mode change command and the reset command Be careful to copy the commands exac...

Page 40: ...END L This information tells your printer to begin printing in the HP PCL emulation mode XES Emulation MCK EMULATE XDCS END L This information tells your printer to begin printing in the XES emulation...

Page 41: ...this chapter The parts of the printer commands or escape sequences will be shown as follows E The escape character is represented by this character D The literal instruction part of the command Punct...

Page 42: ...us symbol that follows the escape character An instruction an upper case letter A line end A job control command sometimes includes An optional comma inserted when you want a Summary Sheet An optional...

Page 43: ...mple The command for setting margins EmH T B L RL m The instruction for margins H T B L R Variables In this case the values of the margin settings Height Top Bottom Left Right in pixels or fractions o...

Page 44: ...nment to a character other than the one used throughout the rest of the document Example You have created a document using the asterisk as the User Defined Key but want to change it to an at sign befo...

Page 45: ...your Font ID Assignment has the ID number 1 and your current User Defined Key is the asterisk To print the first phrase in the paragraph above enter To print UDK 1 within the text of your document Wit...

Page 46: ...sign character Using an alphanumeric character is not recommended If you need to print the UDK once you have begun a job you must convert it back to a printable character by selecting a new UDK Line e...

Page 47: ...ntation As shown below there are two types of font orientations Portrait Landscape Portrait orientation is initiated when you select a portrait font Landscape orientation is initiated when you select...

Page 48: ...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 Refer to appendix...

Page 49: ...nd trailing edge PRINTER a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 50: ...capabilities are determined by available memory Table 2 1 Page capacity specifications Type of data Capacity Characters bytes per page Limited by size of font Graphic windows per page Determined by m...

Page 51: ...the printer that a new job has begun If no Reset command E XL is used the printer processes your document as part of the job that preceded it with the same parameters throughout Request an XES Summary...

Page 52: ...tation 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 print...

Page 53: ...portrait or a landscape orientation Syntax E P commentL P Instruction to start a document with one orientation per page Optional request for a Summary Sheet to report errors upon execution of the nex...

Page 54: ...ncluding a font of landscape orientation here would cause the printer to start a new page whenever it encountered a change from landscape to portrait font or vice versa within the document At the end...

Page 55: ...a12i2 PL Font name is Helvetica12i2 P E 2Helvetica10i2 PL Font name is Helvetica10i2 P E 3Helvetica8Bi2 PL Font name is Helvetica8Bi2 P E 3Titan14B LL Font name is Titan14B L Margins and all other job...

Page 56: ...he job s printed output how many copies will be printed which paper tray you will print from whether the document is 1 sided or 2 sided and so on These commands are Print Multiple Copies Print Multipl...

Page 57: ...d Where to place it Anywhere on the first page of the document Example To print 50 copies of a document request a Summary Sheet and print the comment Distribute this to all committees enter E C50 Dist...

Page 58: ...nywhere on the first page of the document Example To print 50 copies of a document request a Summary Sheet and print the comment Distribute this to all committees enter E E50 Distribute this to all co...

Page 59: ...ple 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 With Paper Tray when the selected paper tray is empt...

Page 60: ...er size being manually fed n Indicates paper size selection Where to place it At the start of the page before any text prints and after the Paper Tray selection command Ec9 If this command is entered...

Page 61: ...2 3 Bypass tray paper size selections Physical paper size n Margin default Letter 216 x 279 mm n 0 Letter Legal 216 x 279 mm n 1 Letter Ledger 279 x 432 mm n 2 Letter A3 297 x 420 mm n 3 A4 A4 210 x 2...

Page 62: ...More The default condition for offsetting is set through the printer control panel Pages can be offset At job boundaries with E P Upon explicit command Eo Refer to the Xerox 4213 Laser Printer User Gu...

Page 63: ...of the second page is shifted If no value is entered for n the second page is printed without shifting The left margin is shifted regardless of the page orientation L Line end Where to place it Before...

Page 64: ...top margin is shifted regardless of the page orientation L Line end Where to place it Before any printable data on the first page for which 2 sided printing is to start If 2 sided Inverted is entered...

Page 65: ...control panel Thus a 2 sided Stop command can be used to override a default set for 2 sided printing 2 sided Side Select Purpose On a 2 sided page selects the side of the page on which the next image...

Page 66: ...ck side no blank page is entered Entering Ezyi2 within the current side of a page causes printing to continue on the next back side of a page Therefore if the current side is the back side a form feed...

Page 67: ...tting 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 Fonts utilised on the 4213 in XES mode are digita...

Page 68: ...ape default In XES mode the 4213 is preset to print in XCP14iso L The other fonts can be selected through the Emulation Menu on the printer control panel or with application software refer to the Xero...

Page 69: ...he Reset command 1 Assume that you are running MS DOS and have loaded the font diskette into drive A of your host computer You are now ready to create File 1 You are using the Commercial At symbol as...

Page 70: ...complete Font Load Purpose Loads fonts from storage media at the host computer to the printer Syntax E F commentL F Instruction to load font data Optional request for a Summary Sheet to report errors...

Page 71: ...downloaded to the printer will be deleted when fonts are added or loaded Font Delete Purpose Deletes selected font files from the printer Syntax E B commentL fontnameL B Instruction to delete stored f...

Page 72: ...errors upon execution of the next job command comment Optional comment on the Summary Sheet L Line end Example To delete all fonts and to request a Summary Sheet with the comment All fonts are now del...

Page 73: ...e time provided the downloaded fonts do not exceed the available memory of the printer Because there are four resident fonts 508 is the maximum number of fonts the user can download Note The 4213 may...

Page 74: ...re using the font index created above in a report in one part of the report you can use font 3 as it is assigned above by entering E 3Classiciso12 LL In another part of the report you can replace this...

Page 75: ...n the Summary Sheet To select the default landscape font without having assigned a font ID use E0 To select the default portrait Titan font without having assigned a font ID use E1 You may want to sel...

Page 76: ...300 inch you may want to select Units 1 300 for margins and tabs as well Appendix B Conversion tables for units of measure lists 1 60 and 1 300 inch equivalents for inches millimetres 10 pitch charac...

Page 77: ...able contents of the page the new setting goes into effect at the start of the next page On a page of mixed font orientation when a change of setting for page height and or top margin follows a change...

Page 78: ...apply to page boundaries on the 4213 printer Any text printing beyond the bottom edge of the paper is printed on the next page Any character printing beyond the right edge of the paper is not printed...

Page 79: ...f the page for which it is to take effect If the command is placed within printable data it takes effect on the next page Example To set margins for an 216 by 279 mm portrait page page height 279 mm t...

Page 80: ...margins or the regular margin commands If margins have been defined with the Margins command and then an independent Margins command is entered the printer continues to use the measurements in the Ma...

Page 81: ...t If the command is placed within printable data it takes effect on the next page Margin Bottom Purpose Sets the bottom margin without affecting the other margins Syntax EzqBL zq Instruction to set bo...

Page 82: ...or which it is to take effect Margin Right Purpose Sets the right margin without affecting the other margins Syntax EzmRL zm Instruction to set right margin R The distance in units of 1 60 or 1 300 in...

Page 83: ...ault portrait tabs If no tabs have been set for a job using a landscape font the 4213 automatically uses the default landscape tabs More about page boundaries You may set a line of tabs in any numeric...

Page 84: ...its of five pixels 1 60 inches Figure 2 8 shows the same settings in units of one pixel 1 300 inches More Up to 160 horizontal tabs may be set per job If you try to set more the printer will consider...

Page 85: ...s all horizontal tab settings in a job including the default settings Syntax Ed d Instruction to clear all horizontal tab settings Where to place it Anywhere before the place in the job at which the c...

Page 86: ...paper both landscape and portrait appears in table 2 5 The printer maintains up to 125 vertical tabs in memory per job See table 2 6 for maximum tab values for portrait and landscape pages in letter a...

Page 87: ...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 Table 2 6...

Page 88: ...XES COMMAND LANGUAGE MODE Figure 2 9 Vertical tabs in 1 60 inch units EV90 120 150 160 210 255 270 330 345 390 420 450L 2 50 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...

Page 89: ...XES COMMAND LANGUAGE MODE Figure 2 10 Vertical tabs in 1 300 inch units E V 450 600 750 800 1050 1275 1350 1650 1725 1959 2100 2250L XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE 2 51...

Page 90: ...rgins use the Justification command This command is cleared with the Justification Stop Command About centreing To centre text between margins use the Centre command A Centre command overrides a Justi...

Page 91: ...tween all the words on the line However the L printer does not make line ending or hyphenationL decisions You must enter the appropriate lineL Ek ends for each line L More The minimum distance between...

Page 92: ...line as long as it is inserted before the line end If a Centre command is entered in a line that has been placed with the Text Placement Absolute command the line will still be placed vertically betwe...

Page 93: ...text relative to the current text position Draw horizontal and vertical lines along the page axes with Line Draw X and Line Draw Y commands in 15 degrees of shading Most of these commands use the grid...

Page 94: ...Line Spacing command withL a parameter of 2 will cause text to doubleL space like this Ei0 L Enter a Line Spacing command with a parameterL of 0 to return text to normal single spacing L More Overstr...

Page 95: ...aults L To produce These lines of text have normal single line spacing until you enter a Line Spacing Absolute command with a parameter of 75 At this point the baselines of the text are placed 75 pixe...

Page 96: ...age along the x axis and 1650 pixels 140 mm from the origin of the page along the y axis enter Ea1200 1650L Text L Figures 2 11 and 2 12 show how the command works on short edge feed paper in landscap...

Page 97: ...LANGUAGE MODE Figure 2 11 Absolute placement of a portrait font on a short edge feed portrait page Ea1500 3000L He who laughs He who laughs Origin X 1500 X 3000 XEROX 4213 LASER PRINTER PROGRAMMER REF...

Page 98: ...l it s over The game is not over until it s over Origin Y 600 X1800 Text Placement Relative Purpose Places text in any specified location on the page starting from the current text position It can als...

Page 99: ...o not use a line end Where to place it Immediately after the current text that is the text being used as a point of reference and immediately before the text to be affected More For both landscape and...

Page 100: ...ge On short edge feed paper this line runs horizontally across a portrait page vertically down a landscape page Syntax ExX Y L T SL x The instruction for a line to be drawn along the x axis X The x co...

Page 101: ...any point in the job where the line is desired Example See the sample that follows More The Line Draw commands create nongraphic lines that is lines that do not need graphic windows Nongraphic lines c...

Page 102: ...t edge feed paper this line runs vertically up a portrait page horizontally across a landscape page Syntax EyX Y L T SL y The instruction for a line to be drawn along the y axis X The x coordinate of...

Page 103: ...e to place it At any point in the job where the line is desired Example See the sample that follows More The Line Draw commands create nongraphic lines that is lines that do not need graphic windows N...

Page 104: ...XES COMMAND LANGUAGE MODE Figure 2 15 Line Draw Y command To produce Enter Ey900 1800 1200 20L 2 66 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...

Page 105: ...XES COMMAND LANGUAGE MODE Figure 2 16 Fifteen degrees of shading for the Line Draw commands XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE 2 67...

Page 106: ...or superscripts Note These commands increase page complexity and can slow the performance of the printer Italics There is no command for italicising characters You must select an italic font with the...

Page 107: ...n to stop underlining Where to place it Anywhere underlining is desired Example To produce It is possible to underline text by using the following commands Underline Start and Underline Stop Enter It...

Page 108: ...tely before the first character to be overstruck and the Overstrike Stop command immediately after the last character to be overstruck Example To produce The hyphen is used as the overstrike character...

Page 109: ...End a superscript The distance of a subscript character from a regular character depends on the current font size Thus if you want to use a smaller or larger font for the subscript give the Font Chang...

Page 110: ...be used to Superscript a superscript Index up a page End a subscript The distance from a superscript character to a regular character depends on the current font size If you want to use a smaller or...

Page 111: ...need to be of the same orientation A constant page in the 4213 may include Text Nongraphic lines Line Draw commands Logos signatures or any other data digitised into font characters Graphic windows A...

Page 112: ...e constant page to be merged Data capacity for each How the printer defines a page lists page capacity for all types of data including constant pages Data capacity is the same for both that is it is l...

Page 113: ...rom the printer s memory Syntax E V commentL V Instruction to erase a constant page Optional request for a Summary Sheet to report errors upon execution of the next job command comment Optional commen...

Page 114: ...s 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 powered off Merging constant pages For...

Page 115: ...he 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 Instruction to stop merging Where to place it With...

Page 116: ...ndow When the printer receives the bitmap into the window it prints a pixel on the page for each binary 1 and leaves the pixel blank for each binary 0 see figure 2 18 For the printer to receive the bi...

Page 117: ...store 2 full page graphics or over 80 25KB fonts The same full page graphic prints completely in partial imaging but not in 2 full page imaging Vector graphics Vector graphics are images made of point...

Page 118: ...per size See figure 2 19 Since window boundaries cannot be seen on your host computer screen you may want to sketch an outline of the window on paper then enter the commands based on the measurements...

Page 119: ...e page The second coordinates Sx and Sy set the size of the window The unit of measure is the pixel Scan direction for raster graphics The x axis and y axis of a graphic window are not related to thos...

Page 120: ...n the printed page appears four times its actual size For example 2 4 indicates that the window size is to appear doubled in the horizontal direction and quadrupled in the vertical direction I The typ...

Page 121: ...ithin the document where graphics are desired More Fields before the semicolon in the command are optional fields after it are required Thus you could leave the M I and R fields blank the printer will...

Page 122: ...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 Large amounts of graphics and fonts together on the same page ca...

Page 123: ...amorphically is larger in one direction either x or y Magnification and resolution Magnifying an image decreases its resolution by an equal amount In other words an image that has been doubled will ha...

Page 124: ...ion and to the left for the x dimension For example in the landscape page in figure 2 22 your origin is 1300 1200 for a window that is 450 pixels in the x direction and 1100 pixels in the y direction...

Page 125: ...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...

Page 126: ...phic window positioning are independent from one another If you place a graphic window at the current text position on a page and add a paragraph to text above the graphic window the window moves down...

Page 127: ...elsewhere on the page Graphic windows are copied with the Graphic Window Repeat command A copied graphic window has exactly the same characteristics as the original If it is a stored window its conte...

Page 128: ...ize quadrupled I The type of graphics data contained in the window Also whether the contents will be reversed Graphics data in a duplicate window can be changed from regular to reversed or vice versa...

Page 129: ...n figure 2 26 the window that was defined in the example for the Graphic Window command refer to figure 2 20 is copied to another location on the same page This is the command that defined the origina...

Page 130: ...r 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...

Page 131: ...d in the command the printer uses three pixels as a default If a line thickness of zero is entered no image prints however the current graphic position changes to the last set of x and y coordinates e...

Page 132: ...the y coordinate of the window origin is used as the y value If the value for X2 is omitted the printer repeats the first x coordinate X1 For all succeeding coordinates the x coordinate of the preced...

Page 133: ...hickness 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...

Page 134: ...f 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 Degrees must be positive whol...

Page 135: ...ates 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 f...

Page 136: ...make up diagonally opposite corners X1 is the horizontal distance from the left edge of the graphic window Y1 is the vertical distance from the top edge of the graphic window X2 Y2 The coordinates of...

Page 137: ...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 0 User defined pattern...

Page 138: ...tern 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 L Line end Figure 2 31 Predefined fill patterns Example...

Page 139: ...unded by a graphic figure More If 0 for a user defined pattern is entered for P the fill pattern data is entered after the line end of the Graphic Fill command User defined data must be sixel encoded...

Page 140: ...his is a nongraphic image A circle is drawn with the Graphic Arc command A line is drawn through the circle with Graphic Line command Note that it is defined so that it breaks as it passes through the...

Page 141: ...uction 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 The semicolon is required If it is omitted the com...

Page 142: ...unterclockwise direction Remember that the slices are defined in percentages not angles Percentages must total 100 If the sum of the pie slice is less than 100 the pie is not closed If the sum of the...

Page 143: ...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...

Page 144: ...integrity of font and graphics data Note A data monitor will not print on size A5 paper Data Monitor Purpose Prints the hexadecimal codes representing all characters received by the printer Allows the...

Page 145: ...in figures 2 35 and 2 36 are ISO See the Xerox 4213 User Guide Diagnostics chapter for more information on using the data monitor Character codes on the Xerox 4213 For the printer to print the charac...

Page 146: ...ional markets Note that the ASCII code set is essentially a subset of the ISO set Control codes Table D 1 lists control codes with hex value less than 20 in ASCII or ISO less than 40 in EBCDIC that ar...

Page 147: ...H FF EBCDIC 5FH yields ASCII 15H NL may be used in place of CR and LF or line end EBCDIC 6AH yields ASCII 1BH ESC EBCDIC 79H yields ASCII 20H space User defined translation tables A user defined code...

Page 148: ...ecimal values are expressed as two alphanumeric characters followed by H For example if a field contains a hexadecimal value with a length of two bytes the field will consist of the two characters use...

Page 149: ...be applied to hex location 5CH entry 3 will be applied to hex location 5DH and so on Table D 8 lists hexadecimal values multiplied by two 5 Table entries The table data consists of a series of four ch...

Page 150: ...the ampersand 26H The four byte entry for location 26 would be 3CCCH Now if you invoke the downloaded table and send 26H the printer will print 6 Record terminator The last two characters of every rec...

Page 151: ...C2500 The data following the byte count consists of the the hex values of the character or characters being assigned FF Always put FF at the end of each record To move more characters make additional...

Page 152: ...ian 8 Finnish 9 German A Swedish B Belgian C French Canadian D Portuguese E Latin American F The Default Language G The Special Table 3274 Custom Cartridge H User defined or downloaded table Where to...

Page 153: ...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...

Page 154: ...XES COMMAND LANGUAGE MODE A custom translation table might be built as follows Table 2 7 U S English code mapping 2 116 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...

Page 155: ...ich is found in the ISO table at location A5 It is not to be associated with an accent so the third entry is A500 The fourth entry at 5F is not to be changed 5F00 The fifth entry at 60 is to be change...

Page 156: ...ata file to the printer ensure to invoke the mapping table that is to serve as the base table When the printer receives the Character Reassignment command it creates a new table by laying the new data...

Page 157: ...XES COMMAND LANGUAGE MODE Figure 2 38 New character assignments over original table XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE 2 119...

Page 158: ...XES COMMAND LANGUAGE MODE Table 2 8 Customised mapping table U S English code 2 120 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...

Page 159: ...ric characters and to characters used in printer command language It is recommended that these locations not be changed Any control code location less than 20H in ISO or ASCII or less than 40H in EBCD...

Page 160: ...XES COMMAND LANGUAGE MODE 2 122 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...

Page 161: ...e fonts may be supplied by Rank Xerox or third party vendors The 4213 LJ2D emulation is also capable of using fonts stored in Xerox 4213 font cartridges These cartridges may hold up to one megabyte of...

Page 162: ...o the short edge of the paper portrait orientation or the long edge landscape orientation Note The Printer Status Sheet identifies the fonts by their orientation Choosing a portrait font automatically...

Page 163: ...LJ SERIES 2D EMULATION Figure 3 1 Portrait orientation page layout y x Figure 3 2 Landscape orientation page layout x y XEROX 4213 LASER PRINTER PROGRAMMER REFERENCEE 3 3...

Page 164: ...cartridge slot The right cartridge slot Downloaded as a Hewlett Packard Soft Font Spacing Spacing indicates whether a font is proportionally spaced or of fixed pitch Characters in a proportionally spa...

Page 165: ...forms one for the primary font and one for the secondary font Font select commands are listed later under PCL4 command reference Font selection by characteristics The user selects fonts according to t...

Page 166: ...he command Font Selection by ID E X The Font Selection by ID command is not suitable for use in multi user environments where other users may delete downloaded fonts In this case users are encouraged...

Page 167: ...12 10 ECMA 94 Courier Medium 0 Upright 12 10 PC 8 Courier Medium 0 Upright 12 10 PC 8 D N Courier Medium 0 Upright 12 10 PC 850 Courier Medium 0 Upright 12 10 Legal Courier Medium 0 Italic 10 12 Roman...

Page 168: ...old 3 Upright 10 12 Legal Courier Bold 3 Upright 12 10 Roman 8 Courier Bold 3 Upright 12 10 ECMA 9 Courier Bold 3 Upright 12 10 PC 8 Courier Bold 3 Upright 12 10 PC 8 D N Courier Bold 3 Upright 12 10...

Page 169: ...ences Control codes Control codes are single byte commands which perform simple functions such as backspace carriage return line feed and form feed In most cases control codes are taken from the unpri...

Page 170: ...r Binary data Escape sequences without parameters The escape sequences without parameters perform an action such as resetting the printer These commands are typically two characters long escape follow...

Page 171: ...ter indicates the parameter to which the previous numeric variable applies The parameter character is only used when several escape sequences are combined The parameter character may be within the ran...

Page 172: ...a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a...

Page 173: ...executed first and the rightmost command ending with the final parameter character and optionally binary data is executed last Figure 3 4 Combined Escape Sequence E PCL4 command reference This section...

Page 174: ...tax E E Hex 1B 45 Dec 27 69 Number of Copies Purpose The Number of Copies command causes the 4213 to print a specified number of copies for each page of data received until either the number of copies...

Page 175: ...egative number expressed in decipoints 1 720th inch and valid up to four decimal places A positive value moves the logical page to the right along the width of the physical page except on the back sid...

Page 176: ...ck side of sheets printed in horizontal binding 2 sided mode where it moves down Notes Page orientation has no effect on this command The value represents an absolute move in relation to the default p...

Page 177: ...e 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 Tab...

Page 178: ...en as is the text length Automatic macro overlays are turned off and any unprinted data is printed If the paper size requested is not available in the paper tray s a message requesting the correct pap...

Page 179: ...er required The top left and right margins are set to the defaults for the size of paper required Automatic macro overlays are turned off and any unprinted data is printed If paper in the size request...

Page 180: ...Letter 66 88 Legal 84 112 A4 70 90 Executive 63 84 Table 3 6 Landscape paper length values Page size At 6 lines per inch At 8 lines per inch Letter 51 68 Legal A4 49 58 Executive 43 58 First use 84 as...

Page 181: ...e width of a column is determined by the Horizontal Motion Index HMI command which sets the horizontal spacing of characters in fixed pitch fonts The HMI is used as a unit of measurement for selecting...

Page 182: ...lumn is determined by the Horizontal Motion Index HMI command which sets the horizontal spacing of characters in fixed pitch fonts The HMI is used as a unit of measurement for selecting the margin but...

Page 183: ...ined by the Vertical Motion Index VMI command which sets the vertical spacing of lines The VMI is used as a unit of measurement for setting the margin but once set the margin does not change with late...

Page 184: ...e action of the printer when text is positioned below the bottom line of text defined by the Text Length command When the Perforation Region is enabled text which would fall below the bottom line spec...

Page 185: ...0th of an inch The is valid up to four places to the right of the decimal point The HMI is reset to the current default when font orientation symbol set height pitch or spacing are set and when the cu...

Page 186: ...ects the VMI in lines per inch The command specifies the number of lines per inch to be printed Syntax E l D where is one of the following valid settings for lines per inch 1 2 3 4 6 8 12 16 24 48 Exa...

Page 187: ...t cursor position Relative move negative If the value is preceded by a minus sign the cursor is moved columns to the left of the current cursor position If the value specifies a column beyond the left...

Page 188: ...cursor position If the value specifies a position beyond the left or right edges of the printable area the cursor is moved to the appropriate edge of the printable area Example To move the current cu...

Page 189: ...able area the cursor is moved to the appropriate edge of the printable area Example To move the current cursor position from 300 spots 1 inch from position 0 to 1500 spots 5 inches from position 0 ent...

Page 190: ...table area the cursor is moved off the page The Vertical Cursor Position commands ignore the perforation region Example To move the cursor from line 25 to line 2 enter E a2R Hex 1B 26 61 32 52 Dec 27...

Page 191: ...position of the vertical cursor in units of spots 1 300th of an inch The height of a row is defined by the current Vertical Motion Index VMI setting Syntax E p Y Hex 1B 2A 70 59 Dec 27 42 112 89 wher...

Page 192: ...ave been defined by a VMI or Line Spacing command Syntax E Hex 1B 3D Dec 27 61 Line Termination Purpose The Line Termination command controls the way the printer responds to the conventional line endi...

Page 193: ...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 n...

Page 194: ...B 26 66 53 Dec 27 38 102 8 where 0 Push store cursor position 1 Pop recall cursor position The value of zero pushes the cursor position onto the stack and a value of one pops it off the stack and rest...

Page 195: ...rsor to the next tab position on the row Tab positions are defined at the left margin and every eight columns thereafter Line Feed LF LF hexadecimal 0A decimal 10 moves the cursor down one row within...

Page 196: ...ter a numeric code corresponding to a symbol set If a non existent symbol set is selected the printer continues to use the last symbol set accessed There are separate Symbol Set commands for the prima...

Page 197: ...O 16 Portuguese 1F ISO 69 French 5S ISO 84 Portuguese 0G HP German 6S ISO 85 Spanish IBM 1G ISO 21 German 0T Line Draw 8G Greek 8 0U ISO 6 ASCII 0I ISO 15 Italian 1U Legal 0K ISO 14 JIS ASCII 2U ISO 2...

Page 198: ...is E s P where 0 sets fixed pitch 1 sets proportional spacing Example To select the primary for as proportional and the secondary font as fixed pitch enter the following commands E s1P Hex 1B 38 73 3...

Page 199: ...30 48 Dec 27 41 49 48 72 Height Purpose The Height command selects the character height of the font in points 72nds of an inch There are separate commands to select height for the primary and seconda...

Page 200: ...alic characters Two Style commands exist for the primary and secondary fonts If the style requested is not available the Style command is ignored Syntax E s S The Style command for the secondary font...

Page 201: ...oke weight is zero or greater and the weight is not available the printer accesses the next heavier font If the requested weight has a negative value and is not available the next lighter font is used...

Page 202: ...the typeface used by the primary and secondary fonts Syntax E s T The Typeface command for the secondary font is E s T where is a code number from table 3 10 Example To use Swiss721 as a primary font...

Page 203: ...man 6 LetterGothic 8 PElite 11 Presentations 17 Optima 18 Garamond 19 Cooper Black 20 Coronet Bold 21 Broadway 22 Bauer Bodoni Black Condensed 23 Century Schoolbook 24 University Roman 100 Times New R...

Page 204: ...Purpose 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 Syntax E 3 Hex 1B 28...

Page 205: ...d in Example To print the form feed hexadecimal 0C decimal 12 as a female symbol enter E p1X 12 Hex 1B 26 70 0C Dec 27 38 112 12 Underline Purpose The Underline command enables or disables underlining...

Page 206: ...h 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 Font ID Purpose The Font ID...

Page 207: ...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 1B 2A 63 34 46 Dec 27 42 99 52 70 Table 3 11 Font Control functions Function 0 Delete all soft...

Page 208: ...font by its ID number There are separate commands for selecting primary and secondary fonts The following command selects a primary font Syntax E X Hex 1B 28 58 Dec 27 40 88 To select a secondary fon...

Page 209: ...cs font type baseline distance cell width cell height orientation fixed proportional spacing symbol set pitch height style stroke weight typeface For information on how to format a font descriptor blo...

Page 210: ...following the command The brackets are not to be entered The character descriptor and data contains byte values for the following characteristics Orientation Left offset Top offset Character width Ch...

Page 211: ...FULL full page imaging in the LJ2D emulation submenu the memory the 4213 dedicates to this imaging is no longer available for user downloaded fonts or graphics or any other temporary use This means th...

Page 212: ...are printed along the width of the physical page regardless of the orientation of the logical page Start Graphics Purpose The Start Graphics command initialises the printer for subsequent Transfer Ras...

Page 213: ...on Because the coordinate system is different for portrait and landscape pages the positional change required to establish the start point of the next row of data is different for each orientation On...

Page 214: ...oints command defines the width in decipoints 720ths of an inch of the next rectangle to be drawn Syntax E c H Hex 1B 2A 63 48 Dec 27 42 99 72 where is a number up to four decimal places representing...

Page 215: ...next rectangle to be drawn Syntax E c B Hex 1B 2A 63 42 Dec 27 42 99 66 where is an integer representing the height of the rectangle in spots Area Fill ID Purpose The Area Fill ID command sets the le...

Page 216: ...LJ SERIES 2D EMULATION Figure 3 5 Area Fill patterns 1 6 3 56 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...

Page 217: ...ensity 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 patter...

Page 218: ...and The rectangle is printed with its top left corner at the current cursor position which is unaffected by the command The command ignores text boundaries but any part of the rectangle falling outsid...

Page 219: ...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 Example 3 To print a 2 by 3 inch r...

Page 220: ...through 32767 Syntax E f Y Hex 1B 26 66 59 Dec 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 Syntax...

Page 221: ...ions Function 0 Start macro definition last ID specified 1 Stop macro definition 2 Execute macro last ID specified 3 Call macro last ID specified 4 Enable auto overlay macro last ID specified 5 Stop a...

Page 222: ...symbol set Proportional spacing 10 characters per inch 14 points in height Upright style Ultra black stroke weight Century Schoolbook typeface 5 Styler Systems 701 South Aviation Blvd M S ES AE 336 E...

Page 223: ...ers who design host software to be used on the 4213 or who write their own programmes in the PostScript page description language Userdict operators for page type The following operators are defined i...

Page 224: ...3 x 8 66 101 5 x 213 2 mm MONARCENVELOPE 98 x 191 mm 3 875 x 7 5 88 x 184 mm 3 45 x 7 25 7 x 9 178 x 229 mm 7 x 9 168 x 222 mm 6 61 x 8 73 HALFLETTER 140 x 216 mm 5 5 x 8 5 130 x 208 mm 5 1 x 8 2 TWOT...

Page 225: ...ct by issuing statusdict begin at the start of a programme and use the operators by calling them by name In order to change persistent parameters however you must first exit from the normal save and r...

Page 226: ...name string setprintername printername string printername substring String represents the printer s name and is printed on the configuration sheet The name can be up to 32 characters long and should c...

Page 227: ...default values in seconds used at the start of each job to initialise the job manual feed and wait timeouts A value of zero sets the timeout to infinity defaulttimeout defaulttimeouts job manualfeed w...

Page 228: ...less outputpositioning is true If outputpositioning is false there is no change in the output position outputpositioning outputpositioning boolean This operator returns a boolean value which indicates...

Page 229: ...mode and false is 1 sided setdefaulttumble boolean setdefaulttumble Sets the default value for tumble If this operator is true the second side of a 2 sided page is upside down compared to the first s...

Page 230: ...ageable area in a number of ways refer to setpapertray and papername defaultpapertray defaultpapertray integer This operator returns an integer representing the default tray number set in setdefaultpa...

Page 231: ...f is false When the current job ends automatic tray selection is determined by the value of defaulttrayswitch trayswitch trayswitch boolean This operator returns a boolean indicating whether automatic...

Page 232: ...such a tray is found the page type is set to A4 and papertray is set to that tray If a tray with A4 size paper is not found a rangecheck error occurs and the page type and papertray values are not ch...

Page 233: ...en by the printer is a default error message reported in the following form Error error OffendingCommand command If the error occurred in the batch mode the error message is followed by the line Flush...

Page 234: ...per 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...

Page 235: ...SCRIPT 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 5 1000K 1000K XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...

Page 236: ...POSTSCRIPT EMULATION 4 14 XEROX 4213 LASER PRINTER PROGRAMMER REFERENCE...

Page 237: ...Amphenol 36 pin connector 1 3 approvals EME iii to iv safety iv Arc Graphic 2 95 to 2 97 Arcs 2 96 f to 2 97 f Area Fill ID 3 55 fill patterns 3 56 f shading density 3 57 f ASCII code assignments D 3...

Page 238: ...aracters B 12 t Character Reassignment 2 112 to 2 113 characteristics fonts 3 1 to 3 9 font selection 3 5 to 3 9 graphic window 2 79 to 2 81 Character Spacing Absolute E 2 t Cinch DB 25P connector 1 1...

Page 239: ...2 31 Dutch 3270 EBCDIC code mappings A 15 t ASCII code mappings A 4 t E EBCDIC code assignments D 5 t mappings A 10 t to A 20 t EBCDIC to ASCII translation D 7 t EME regulations iii to v emulation HP...

Page 240: ...ations of Stroke Weight 3 42 t Graphics XES Arc 2 92 2 95 to 2 97 Box 2 92 2 98 within a window 2 99 f Fill 2 92 2 99 to 2 103 Line 2 92 to 2 95 Pie Chart 2 92 2 103 to 2 105 Window 2 81 to 2 107 on a...

Page 241: ...cal Motion Index 3 25 to 3 26 Vertical Rectangle Size Decipoints 3 55 Vertical Rectangle Size Spots 3 55 hexadecimal decimal binary equivalences D 8 t to D 13 t HMI see Horizontal Motion Index Horizon...

Page 242: ...rgin default 2 23 t Margin Left 2 44 3 21 Margin Right 2 44 3 22 Margin Top 2 43 3 23 margins 2 40 to 2 42 F 1 t to F 4 t Margins Clear Horizontal 3 23 justifying and centreing 2 52 Margins Double E 2...

Page 243: ...table area 3 3 f printed output formatting 2 18 to 2 28 printer command definition 2 3 errors handling 4 11 to 4 13 operation return 1 13 Printer Reset 3 14 printing the sequence UDK as text 2 7 Print...

Page 244: ...gnals and pin assignments 1 4 t to 1 5 t 1 9 t 1 15 t signal timing and voltage levels Centronics 1 5 f 1 7 t simple commands 2 5 Single Escape Sequence 3 10 f sixel encoding C 1 to C 7 process C 2 f...

Page 245: ...37 Unload Merge Page 2 75 to 2 76 U S English code mapping 2 116 t A 1 t U S English code mapping continued 3270 EBCDIC code mappings A 12 t ASCII code mappings U K A 2 t User Defined Key 2 5 to 2 8...

Page 246: ...Bottom 2 43 Margin Left 2 44 Margin Right 2 44 Margins 2 40 to 2 42 Margin Top 2 43 Merge Page Load 2 74 to 2 75 Merge Page Unload 2 75 to 2 76 Merge Start 2 76 to 2 77 Merge Stop 2 77 Multiple Copies...

Reviews: