May 1992 720P40020
Xerox 4213 Laser Printer Programmer Reference
Page
 European EME regulations
Laser safety
 Operational safety
 Title
Related publications
Page
 Table of contents
 XES command language mode
 Vii
 Viii
 Table of Contents
 Table of Contents
 LJ series 2D emulation
 Xii
 Xiii
 Xiv
 PostScript emulation
 Index
Appendices
 Introduction
 Purpose of this manual
What this manual contains
Interfaces
 Conventions used in this manual
Variances
 Comment or explanation set off from from
 Parallel interface cable
Parallel interface
 Centronics interface
Return to print mode
Select the Centronics parallel interface
Select metered data
 Centronics interface connector
Centronics connector
 Centronics signals and pin assignments
Centronics signals and pin assignments
Pin Direction Signal Description
 Error L
Centronics Signals Pin
 Centronics interface timing
Centronics interface timing
 Centronics Interface Voltage
Dataproducts
Requirements
Select the Dataproducts parallel interface
 Dataproducts interface connector
Dataproducts connector
 Dataproducts signals and pin assignments Pin Signal Source
Dataproducts signals and pin assignments
 Dataproducts interface timing
Dataproducts interface timing
 Serial interface
Dataproducts voltage and current requirements
Select the serial interface
 Set parity
Set baud rate
 RS232 serial connector
Set flow control
Return to printer operation
 Serial signals and pin assignments
Serial interface features supported
 Pin Signal Designation
Asynchronous serial signals and pin assignments
Null modem
Telephone Co
 Null modem wiring
 Automatic mode switching
Configuring the 4213 for the XES command language mode
 Reset command
Mode change command
Reset
PostScript Emulation
 Definition of a printer command
Command syntax as expressed in this chapter
Three types of escape sequences
 +P,commentL
Job control commands
 Simple commands
Commands with user-entered variables
User-Defined Key, or substitute escape character
 Showing commands in printed output
Converting the User-Defined Key to a printable character
ForEnter
 Printing the sequence =UDK= as text
Cancelling a User-Defined Key
 Tips on selecting a UDK
Line end
 How the printer defines a
Orientation
Font orientation
 Font and page orientation
Coordinates, units of measure, and paper feed direction
 Determining the paper feed edge
Specifications for short-edge feed paper
 Capacity
Capacity specifications Type of data
 Setting job boundaries
 Examples
Command Where to place it What it does
 Syntax
Print Job
 +Q,comment L
Print Job Mixed Orientation
 Reset
Purpose
Example
 Formatting the printed output
 +Cn,comment L
Multiple Copies
 Instruction to print multiple copies
Multiple Copies Non-Collated
 Paper Tray
Purpose Syntax Where to place it
 Ezybn
Bypass Slot Paper Size
 ±23
 Offset
 Sided book
Syntax Where to place it More EzydnL
 Syntax Ezyf n L
Sided Inverted pad
 Sided Stop
Syntax Where to place it More EzyeL
Sided Side Select
Syntax Ezyi n
 Comment
Purpose Syntax
Zya
 Fonts on
Where to place it Any place in the job
 How fonts are stored
 How to download fonts from the host computer
 Instruction to load font data
Font Load
 Font Add
Font Delete
Instruction to delete stored font file
 Font Unload
Using fonts in a document
 +nfontnameL
Font ID Assignment
 Example To create an index of five fonts, enter
 Font Select
Setting units of measure
 UnitsÐ1/300
UnitsÐ1/60
Syntax Ezg
Ezf
 About margins
More about page and font orientations
More about page boundaries
 Text placement restrictions on the 4213 printer
Margins
Syntax EmH,T,B,L,RL
 Measuring a portrait
 Measuring a landscape
Setting independent margins
 Margin Bottom
Margin Top
 Margin Left
Margin Right
About tabs
 Tabs Horizontal
More about job boundaries
More about page boundaries
 Tn1,n2,...,n160 L
 1/60 inch units
Tabs Clear Horizontal
 Tabs Vertical
 Portrait Landscape
Maximum values For vertical tabs Letter Legal Units Portrait
 Vertical tabs in 1/60 inch units
 10.Vertical tabs in 1/300 inch units
 Justifying and centreing between margins
Tabs Clear Vertical
About justification
About centreing
 Justification Start/Stop
Syntax Where to place it Example
 Between the left Right margins
Centre
 Line Spacing
About the page formatting features
 Syntax Eip n L
Line Spacing Absolute
 Example Enter
Text Placement Absolute
 Ea X, Y L
 Ea1500,3000L He who laughs Origin
 Text Placement Relative
 Current textErl75eNew text
 Line Draw
13.Relative placement 1500 pixels down
 XES Command Language Mode
 Line Draw Y
14.Line Draw X command
 XES Command Language Mode
 15.Line Draw Y command To produce
 16.Fifteen degrees of shading for Line Draw commands
 About character formatting
Bold Start/Bold Stop
Italics
 Bold font simply
Underline Start/Underline Stop
 Overstrike Start/Overstrike Stop
Purpose Syntax Where to place it Example
Subscript Start/Subscript Stop
Instruction to stop overstriking
 C2H5OH
 Superscript Start/Superscript Stop
Purpose Syntax Where to place it Example More
 17. Constant
What is a constant page?
 Creating constant pages
Merge Page Load
Data capacity for each
 Merge Page Unload
 Merge Start
Merging constant pages
 Merge Stop
Syntax Where to place it More Eze
Graphics on
Syntax Ezd
 18. Raster data
Raster graphics
 What is a graphic window?
Vector graphics
Macro graphics
 Origin and page orientation
Placement on
 Other characteristics
Graphic Window
Scan direction for raster graphics
 EgwMor Mx/My,I,RX,Y,Sx,SyL
 Origin of the graphic window. X is the distance
 Capacity for graphic windows
More about graphic windows
 More about magnification
Magnification and resolution
 22.Changing placement for a magnified window
Magnification and window placement
 Rotating images
Reversing images
 24.Graphic window rotation
Graphic commands and the current text position
 Copying graphic windows
Graphic commands and the current graphic position
 Graphic Window Repeat
 Egr0,3900,1500L
 26.A graphic window copied at another location on
Creating graphic images
 Graphic Line
 Egl5150,1050,300,600,600,975,900,525,1200,1050L
 27.A graphic line drawn inside a graphic window
Graphic Arc
 Additional pairs of starting and ending angle
 29.Four arcs drawn with one command
 Graphic Box
 Instruction for a fill pattern
Graphic Fill
 31.Predefined fill patterns
 32.Fill pattern bounded by a graphic figure
 XES Command Language Mode
 Instruction for a pie chart
Graphic Pie Chart
 Percent of the pie to be taken up by the first
 34.Creating a pie chart
More about Graphic Pie Chart
 Syntax Where to place it More
Data Monitor
Purpose of the data monitor
 36.Close up of data monitor printout
Character codes on the Xerox
 Supported coding schemes
Control codes
Bit coding schemes
 Translation table structure
Special Table
User defined translation tables
 Start-of-record indicator
Record-type indicator
More about the table data record
 Byte count
Load address
Table entries
 Record terminator
Character Reassignment
 Syntax Ezt
Load Translation Table
 Ezlc
Language
 Sample job
 U.S. English code mapping
 Building the file
 37.Completed table download record
Invoking the base table
 38.New character assignments over original table
 Customised mapping table U.S. English code
 More about creating tables
 122
 Primary and secondary fonts
Font compatibility
 Font characteristics
 Portrait orientation page layout y,x
 Font source
Symbol set
Spacing
Pitch
 Font selection by characteristics
Stroke weight
Font selection
Typeface
 Resident fonts
Font selection by ID
 ECMA-94
 Courier Medium Italic PC-850 Legal Bold Upright Roman
 Cartridge fonts
PCL4 command structure
 Escape sequences with parameters
Escape sequences
Escape sequences without parameters
Variable sequence character
 Numeric variable
Parameter character
Final parameter character
 Combining escape sequences
Using parameter and final parameter
Upper Lower Case Sequence
Binary data
 Combined Escape Sequence
PCL4 command reference
 Printer Reset
Job control commands
Number of Copies
Purpose Syntax Example
 Left Offset Registration
Sided/2-sided
 Sided Page Side Selection
Top Offset Registration
 Paper Source
Control commands
Paper source values
Paper Source
 Size
 Length
Paper size values
Paper Size
 Letter Legal 112 Executive
 Left Margin
 Syntax Example
Right Margin
 Clear Horizontal Margins
Top Margin
Text Length
 Perforation Region
 Vertical Motion Index
Horizontal Motion Index
 Line Spacing
Cursor positioning commands
 Horizontal Cursor Position Decipoints
Horizontal Cursor Position Columns
 Horizontal Cursor Position Spots
 Vertical Cursor Position Rows
 Vertical Cursor Position Decipoints
 Vertical Cursor Position Spots
 Half-line Feed
Line Termination
#Gz
 Line ending options
End-of-Line Wrap
Line endings
Host Printer
 Control codes for cursor positioning
Push/Pop Cursor Position
# S
Carriage Return CR
 Backspace BS
Font commands
Horizontal Tab HT
Line Feed LF
 Symbol Set
 ISO 14 JIS Ascii
LJ2D symbol sets with ID numbers Symbol Set
 Spacing
 Es10H
 Style
 Stroke Weight
 Gradations of Stroke weight Stroke Weight
 10.Typefaces and code numbers # Typeface
 Default Font
 Underline
Transparent Data
#Xtransparent data
Fixed underlining
 Disable Underline
Primary and secondary fonts
Font ID
 Font Control
11.Font Control functions
Function
 Font Descriptor
 Syntax #Wfont descriptor + data
Character Code
 #Wcharacter descriptor + data
Character Descriptor and Data
 Raster Graphics Resolution
Graphics commands
 Raster Graphics Presentation Mode
12.Values for graphics resolution Graphics Resolution
Start Graphics
 13.Graphics margin settings Left graphics margin
Transfer Raster Data
Syntax #W# bytes of raster data
 End Graphics
Horizontal Rectangle Size Decipoints
Horizontal Rectangle Size Spots
 Vertical Rectangle Size Decipoints
Vertical Rectangle Size Spots
Area Fill ID
 Area Fill patterns
 Area Fill shading density
 Fill Rectangular Area
Examples of filled rectangles
14.Fill types for rectangular areas Rectangle Fill Type
 LJ Series 2D Emulation
 Macro commands
Macro ID
Macro Control
 15.Macro control functions Function
Example of a macro
 LJ Series 2D Emulation
 Papername ÐpapernameÐ
Userdict operators for page type
 Letter
 Serverdict begin password exitserver
System parameters
Statusdict operators
 Setprintername String setprinternameÐ Printername
System set up operators Pagecount Ðpagecount integer
Setsccinteractive
Sccinteractive
 Defaulttimeout
Timeout operators
 Output positioning operators
 Sided operators
 Tray selection operators
 Defaulttrayswitch Defaulttrayswitch boolean
Setdefaulttrayswitch Boolean setdefaulttrayswitch
Settrayswitch Boolean settrayswitch
Trayswitch Trayswitch boolean
 Executivetray
Legaltray
A4tray
Com10envelopetray
 Handling printer errors
Handling syntax errors
Dlenvelopetray
Echo D LPT1 or COM1, etc
 Letter Paper Throughput Images/minute
Jam recovery on Jam recovery off Simplex Duplex
Legal Paper Throughput images/minute
A4 paper throughput images/minute
 Memory VM Bytes Font cache Bytes
VM and font cache allocation
 Postscript Emulation
 4213
3270
 Index
 Danish/Norwegian
 German
 Job
 Macro
 Index
 Safety
 VMI, see Vertical Motion Index
 INDEX-10