Parametros PJL Lexmark Testing PDF
Parametros PJL Lexmark Testing PDF
Reference
Contents
Introduction................................................................................................... 5
Overview................................................................................................................................................................ 5
PostScript emulation...................................................................................91
Selecting PostScript emulation.......................................................................................................................91
Supported paper size in PostScript............................................................................................................... 91
PostScript emulation supplemental operators........................................................................................... 91
Interpreter parameters.....................................................................................................................................93
Status and error messages............................................................................................................................ 121
Printer interfaces.......................................................................................133
Setting up the communications port...........................................................................................................133
Choosing an interface.....................................................................................................................................133
Parallel interface...............................................................................................................................................134
Network support.............................................................................................................................................. 145
Input buffer........................................................................................................................................................ 145
Index............................................................................................................147
Introduction 5
Introduction
Overview
The Printer Languages and Interfaces Technical Reference is divided into the following chapters:
• Printer Control Language (PCL®) emulation—Provides information on PCL emulation commands and GL/2
commands.
• Printer job language—Provides information on commands that allows the printer to enter PCL emulation,
PostScript® emulation, and other types of commands.
• PostScript emulation—Provides information on PostScript emulation and supplementary operators.
• Switching languages—Provides information on how and when to switch printer languages.
• Flash memory and hard disk—Provides information on how to manage the printer memory, store resources,
and manage files.
• Printer interfaces—Provides information on printer interfaces, including parallel and serial interface, network
support, and communication protocols.
Printer Control Language (PCL) emulation 6
Page formatting
For more information on page formatting, see the Technical Reference for your printer model at
http://support.lexmark.com.
The Print Area menu is available from the control panel or through MarkVision Enterprise. For some printers,
Print Area supports three values: Normal, Whole Page, and Fit to Page. For more information, see the
documentation that came with your printer.
Normal setting Whole Page setting
Legend:
PCL
Logical Physical PCL
Page Page Printable Only Portrait Orientation is shown for all settings.
Area Border Area
The printer holds this formatted image in memory. When the page prints, the image is compressed horizontally
and vertically. The image is then centered on the physical page for letter size paper only. This process creates
a small margin around the image. This artificial margin prevents printing from one edge to the other.
Edge‑to‑edge printing could contaminate the printer and cause printing problems.
The following illustrations show an image held in memory for printing edge to edge and how the image would
actually print based on the Fit to Page setting. Notice that a small border appears at the edges of the printed
page, and the image is slightly compressed.
Physical
Page
Edge
Formatted Image with Fit to Page Printed Image with Fit to Page
Printer Control Language (PCL) emulation 8
Command structure
Control codes
Code Dec Hex Function Result
BS 8 08 Backspace Moves the cursor toward the left margin
one horizontal space equal to the last
printed character
HT 9 09 Horizontal Tab Moves the cursor to the next defined tab
stop
LF 10 0A Line Feed Advances the cursor to the same
horizontal position on the following line as
determined by either the Vertical Motion
Index (VMI) or Set Line Spacing command
FF 12 0C Form Feed Advances the cursor to the same
horizontal position at the top margin of the
next page
CR 13 0D Carriage Return Moves the cursor to the left margin
SP 32 20 Space Moves the cursor to the right one column
SI 15 0F Primary Font Selects the primary font
SO 14 0E Secondary Font Selects the secondary font
Commands
PCL emulation commands are multibyte strings (also known as escape sequences) that begin with the Escape
control code (ESC, ←, decimal 27, or hexadecimal 1B). The ESC control code notifies the printer to interpret the
characters that follow as part of a command and are not control codes or data to be printed.
Command structure
Most PCL emulation commands have the following structure:
ESC & a # C
Spaces have been added to this example for readability. The command parameter variables are indicated by
a number sign (#).
Element Description
ESC Decimal 27 or hex 1B.
& Parameterized character from American National Standard Code for Information
Interchange (ASCII) table (ranging from 33 to 47 decimal).
a Group character from ASCII table (ranging from 96 to 126 decimal) that specifies a
group type of control.
# Decimal character string value within specified numeric ranges. May be preceded by
a + or - sign and contain a decimal point.
Printer Control Language (PCL) emulation 9
Element Description
C Termination character from ASCII table (ranging from 64 to 94 decimal).
Command parameters
A command parameter sets the value for a command. This value stays constant until either a different value
resets the command or a command resets the printer to the default values. For example, after the printer
receives a command that selects a right margin beginning at column 63, the right margin of each printed page
begins at column 63. That margin stays constant until a right margin command with a different value resets it
or until the printer is reset.
To determine the value of a decimal or hex:
1 Locate the value of the parameter you require in the Symbol Set Table. The decimal value is the value shown
in the bottom of the cell or box with that parameter. To find a hex value, go straight up the grid from the
wanted parameter and read the value in the top heading. This is the first character of the hex value.
2 Go straight across the grid to the left of the parameter and read the value in the left column heading. This
is the second character of the hex value.
For example, ESC (←) is coded 1B in Hex and 27 in decimal. (Any one of the three values ←, 1B, or 27 might be
used in your application. Read your documentation to determine which to use.) The example on the following
page sets the pitch of the primary font to 16.66 characters per inch.
Example:
ESC(s16.66H
• Decimal: 27 40 115 49 54 46 54 54 72
• Hex: 1B 28 73 31 36 2E 36 36 48
Use the plus symbol (+) or the minus symbol (-) to select a position relative to the current cursor position. For
example:
ESC&a6C—Move to horizontal cursor position, column six
ESC&a+6C—Move six columns to the right of the current position
ESC&a-6C—Move six columns to the left of the current position
Linking commands
You can combine PCL emulation commands by linking them if the first 3 bytes of the commands are identical.
The combined form sends the first 3 bytes only once in the string.
Follow these guidelines to combine commands:
• Use the first 3 bytes (characters) of the command only once at the start of the command string.
• Lowercase the last letter of each command in the string.
• Capitalize the last letter of the string.
For example, notice that the first 3 bytes of these two commands are the same:
ESC(s10H—Select 10 characters per inch
ESC(s4099T—Select Courier typeface
To combine these two commands, use ESC(s10h4099T which is 3 bytes shorter than the long form
ESC(s10HESC(s4099T.
Printer Control Language (PCL) emulation 10
PCL emulation commands by function (page size, dimensions, source, margins, spacing, output
bins)
Command / Parameters Function / Result
ESC&l#A Set Page Size
Paper Sets the physical size of the paper, which also determines
the logical page dimensions. For information about the
• 1—Executive supported paper and envelope dimensions, see the
• 2—Letter Technical Reference guide for your printer model at
• 3—Legal http://support.lexmark.com.
• 4—Folio If the requested page size is not in the requested source
or if no source is requested, then the printer checks the
• 6, 11—Ledger (11 x 17)
size in the following order of sources: multipurpose
• 13, 25—A5 Paper feeder, tray 1, tray 2, tray 3, tray 4, tray 5, and envelope
• 15—Statement feeder.
• 26—A4 Paper Notes:
• 27—A3 Paper
• When the printer receives the page size command,
• 12, 45—B5 Paper any partially formatted pages are printed, and the
• 46—B4 Paper cursor position and margins are reset.
• 101—Custom Paper/Universal • Duplex printing is not supported on any envelope.
Envelope • When no paper source is requested, you can
configure when the printer checks paper from the
• 80—Monarch 7 3/4 multipurpose feeder. For more information, see the
• 81—Commercial 10 printer User’s Guide.
• 89—Commercial 9
• 90—DL
• 91—C5
• 99, 100—B5 Envelope
• 600—Other Envelope
ESC&l#H Paper Source
Assign any of the following numbers: If the paper source is changed for the back of a duplexed
• 1—Active Source or Eject Page page, then the following occurs:
• 2—Tray 1 (default) • A blank back page prints.
• 3—Manual Envelope Feed • The paper source changes.
• 4—Tray 2 • The information for the back side of the page is printed
on the front side of a page sent from the new paper
• 5—Tray 3 source.
• 6—Optional Envelope Feeder
• 7—Auto Select
• 8—Multipurpose Feeder
• 20—Tray 4
• 21—Tray 5
• 62—Optional Paper Source
ESC&f#G Set Universal Width
Where:
# = number of decipoints. 1 decipoint is 1/720 inch.
Printer Control Language (PCL) emulation 13
1Parameter preceded by + or - sign denotes a relative cursor move from the current cursor position. Parameter
without a sign denotes an absolute cursor move from the top left margin.
Note: For the commands listed in “PCL emulation commands by function (page size, dimensions, source,
margins, spacing, output bins)” on page 12, the printer selects the font that best fits the font selected based
on the parameters set with the commands.
GL/2 commands
GL/2 is not a standalone plotter emulation. It can only be entered from within PCL emulation and cannot be
used with software without a unique print driver written explicitly for the GL/2 graphics language.
The following tables list the GL/2 commands by group. For more information on GL/2 command support, see
the Technical Reference for your printer model at http://support.lexmark.com
Configuration group
Command / Parameter Function
CO "text" Comment
DF; Default Values
IN (n); Initialize
IP (XP1, YP1(, XP2, YP2)); Input P1 and P2
IR (XP1, YP1, XP2, YP2)); Input Relative P1 and P2
IW (X1, Y1, X2, Y2); Input Window
MC (mode(, opcode)); Logical Operation
PP (mode); Pixel Placement
RO (angle); Rotate Coordinate System
SC (Xmin, Xmax, Ymin, Ymax(, type(, left, bottom))); Scale
Vector group
Command / Parameter Function
AA Xcenter, Ycenter, sweep_angle(, chord_angle); Arc Absolute
AR Xcenter, Ycenter, sweep_angle(, chord_angle); Arc Relative
AT Xinter, Yinter, Xend, Yend(, chord_angle); Absolute Arc Three Point
BR X1, Y1, X2, Y2, X3, Y3(,...); Bezier Relative
BZ X1, Y1, X2, Y2, X3, Y3(,...); Bezier Absolute
CI radius(, chord_angle); Circle
PA (X, Y(,...)); Plot Absolute
PD (X, Y(,...)); Pen Down
PE (flag(value) | coordinates (...)); Polyline Encoded
PR (X, Y(,...)); Plot Relative
PU (X, Y(,...)); Pen Up
RT Xincr inter, Yincr inter, Xincr end, Yincr end(, chord_angle); Arc Relative Three Point
WU (type); Pen Width Units
Printer Control Language (PCL) emulation 33
Polygon group
Command / Parameter Function
EA X, Y; Edge Rectangle Absolute
EP; Edge Polygon
ER X, Y; Edge Rectangle Relative
EW radius, start_angle, sweep_angle(, chord_angle); Edge Wedge
FP (0); Fill Polygon, Odd/Even
FP 1; Fill Polygon, Non-Zero Winding
PM (mode); Polygon Mode
RA X, Y; Fill Rectangle Absolute
RR X, Y; Fill Rectangle Relative
WG radius, start_angle, sweep_angle(, chord_angle); Fill Wedge
Character group
Command / Parameter Function
AD (kind, value(,...)); Define Alternate Font
CF (mode(, pen)); Character Fill
CP (spaces, lines); Character Plot
DI (run, rise); Absolute Direction
DR (run, rise); Relative Direction
DT (label_terminator(, mode)); Define Label Terminator
DV (path(, line)); Define Variable Text Path
ES (width(, height)); Extra Space
FI font_ID; Primary Font
FN font_ID; Secondary Font
LB char...char label_terminator; Label
LM (mode,[row number]) Label Mode
LO (position); Label Origin
LO 21; Uses PCL Label Origin
SA; Select Alternate Font
SB (mode); Scalable or Bitmapped Fonts
SD (kind, value(,...)); Define Standard Font
SI (width, height); Absolute Character Size
SL (tangent); Character Slant
SR (width, height); Relative Character Size
SS; Select Standard Font
Printer Control Language (PCL) emulation 34
Parameters:
• 0—Uncoded (default)
• 1—Run‑length encoded
Printer Control Language (PCL) emulation 35
Uncoded data
Uncoded data is not compressed. Only those bytes needed to form the image are sent. Each bit represents a
single dot. In the first byte, bit 7 corresponds to the first dot in the raster row, bit 5 to the third dot, and so forth.
Example:
ESC*p300x300Y |Move the cursor to 1 x 1 in. (1 in. from top margin and 1 in. from left
edge of logical page)
ESC*t100R |Set resolution to 100-dots per inch
ESC*r0F |Rotate image to match current orientation
ESC*b0M |Set compression mode to uncoded
ESC*r1A |Start raster graphics at current position
ESC*b8W 'FF FF FF FF FF FF FF FF'x |Raster data uncompressed
ESC*b8W '80 00 00 00 00 00 00 01'x
ESC*b8W '80 00 00 00 00 00 00 01'x
... |Repeat to provide 64 total scan lines
ESC*b8W '80 00 00 00 00 00 00 01'x
ESC*b8W 'FF FF FF FF FF FF FF FF'x
ESC*rB |End graphics
Example:
Delta row
Delta row is a compression mode that identifies and transmits only those bytes different from the ones in a
preceding row.
The control byte consists of two parts:
• High 3 bits—Number of bytes to replace +1 (1 to 8).
• Low 5 bits—Offset from last unmodified byte (0-30); if the offset is 31, the next bytes are added to the offset
until the next byte is not 255.
Printer Control Language (PCL) emulation 37
Example:
Adaptive compression
Adaptive compression allows the combined use of compression methods 0 through 3 (Uncoded, run-length
encoded, TIFF, and delta row). It also allows the printing of empty rows (all zeros) or duplicate rows.
• The Transfer Raster Data command size includes all rows (scan lines).
• Scan Mode and SizeH,L are three-byte primary control strings: CountH and CountL.
Example:
Zlib
Zlib is a generic compression method. It refers to a standard for compression and the library that implements
the standard.
The zlib compression method uses the deflate algorithm. This same algorithm is used by more widely known
compression utilities such as PKZIP and GZIP.
Compressed data is a series of variably sized blocks. An encoder determines how to break the data into blocks
and finds the best compression method to use for each block.
An encoder works based on the following principles:
• The encoder creates a dictionary containing different characters in a set of data. Short strings of bits
represent more commonly occurring characters, and long strings of bits represent less frequently used
characters.
• A probability tree determines which characters are frequently used.
• Repeated patterns in a string of characters are identified and stored to avoid storing the string multiple
times.
A three-bit zlib header is added to the beginning of a block to describe the type of compression used. The
header also indicates whether the block is a final block. Other information in the header includes checksums,
compression algorithm used, and the level of compression. In compression, all checksums are set to zero, and
in decompression, the checksums are ignored.
The memory required for zlib compression and decompression is independent of the size of the data for
compression or decompression.
The number 999 is used to represent zlib compression because it does not conflict with other compression
types.
All lines of data must be the same length. If they are not, then add zeroes (0) to attain the same length.
Note: If the uncompressed image extends beyond the logical page dimensions or beyond the raster width
specified in the Raster Width command (ESC*r#S), then the image is clipped at print time.
Creating macros
1 Assign an ID number for the macro.
Note: If the number is identical to an existing macro ID in RAM, then the old macro is deleted when you
specify the Macro Control Start Definition.
2 Start the macro definition.
3 Send the macro contents.
4 Stop the macro definition.
Note: Define each macro separately.
Example:
This example creates a macro to print the Wigit Corp. logo, and then calls the logo macro in the body of a letter.
Kernel commands
Universal Exit Language (UEL) command
This command terminates the current printer language and allows dynamic switching into PJL.
Syntax:
<ESC>%‑12345X
Notes:
• If the printer receives this command after a PJL job and before PJL End‑of‑Job (EOJ), then perform a
Printer Language Reset.
• If the printer receives this command outside a PJL job/EOJ pair, then reset to user defaults.
Notes:
• The language is PCL, PCLXL, PostScript, or PPDS.
• Write @PJL in upper case. All others can be mixed or lowercase.
Comment command
This command lets the user add a comment or explanation to the PJL commands.
Printer job language 42
Syntax:
@PJL COMMENT words[<CR>]<LF>
Notes:
• The words parameter can be any combination of printable characters, spaces, and horizontal tabs.
• The COMMENT command has no effect on a PJL job.
JOB command
The host computer can use the JOB command to separate print data into various parts or jobs. The command
signifies the start of a print job.
Syntax:
@PJL JOB [NAME = “job name”] [START = first page][END = last page] [PASSWORD = number] [LCREDSESSIONID
Notes:
• Only use this command with the EOJ command.
• After receiving a JOB command, the printer does not process a UEL command as a PJL job boundary
until it receives the corresponding EOJ. Instead, UELs occurring within a JOB and EOJ pair are
processed as printer language resets (for example, PCL ESCE).
Parameters:
• Use the NAME parameter to assign a character string name to a particular job. The name may be any
combination of printable characters, spaces, or horizontal tabs up to a maximum of 80 characters, spaces,
or tabs. Enclose job name in double quotes as indicated by the command syntax.
• Use the START parameter with the END parameter to skip the printing of a particular portion of the job. The
printer emulator discards pages of a job until the page specified by this parameter is reached. First page
range is from 1 to 2,147,483,647. Omission of the START parameter causes the printer to start printing with
page 1 of the job.
• Use the END parameter with the START parameter to skip the printing of a particular portion of the job. The
printer emulator discards all pages of a job after the last page of the print job. The specification of the last
page is relative to page 1 of the print job and its range is from 1 to 2,147,483,647. Omission of the END
parameter causes the printer to print all pages to the end of the job.
• Use the PASSWORD parameter to control which jobs and users are allowed to modify the printer default or
NVRAM variables.
EOJ command
The EOJ command signifies the end of a print job.
Syntax:
@PJL EOJ [NAME="job name"][<CR>]<LF>
Printer job language 43
DENSITY Print Darkness Note: 3 is the factory default setting for mono printers. 4
• 1 is the factory default setting for color printers.
• 2 • 1—Lightest
• 3 • 2—Lighter
• 4 • 3—Normal
• 5 • 4—Darker
• 5—Darkest
DUPLEX Duplex Note: OFF is the factory default setting.
• ON
• OFF
ECONOMODE Toner Saver Note: OFF is the factory default setting.
• ON
• OFF
FORMATTERNUMBER Unique printer identifier The value of the NVRAM serial number field is returned.
The NVRAM serial number field is set to the printer serial
number. To guarantee that a unique identifier exists in this
field, the printer writes a random alphanumeric string into
this field whenever the critical byte area in NVRAM is
reinitialized.
FORMLINES Lines per page Notes:
• 1 to 255 • 60 or 64 (country‑specific) is the factory default
setting.
• If a SET or DEFAULT command specifies a value
greater than 255, then the value is changed to 255.
HOLD Print and Hold Notes:
• ON • OFF is the factory default setting.
• OFF • The HOLD variable interacts with the HOLDKEY and
• STORE HOLDTYPE variables.
• PROOF
Printer job language 45
INTRAY2SIZE Tray 2 installed and Note: Letter is the U.S. factory default setting. A4 is the
• < paper size > default formatting size international factory default setting.
Printer job language 46
INTRAY4SIZE Tray 4 installed and Note: Letter is the U.S. factory default setting. A4 is the
• < paper size > default formatting size international factory default setting.
INTRAY5SIZE Tray 5 installed and Note: Letter is the U.S. factory default setting. A4 is the
• < paper size > default formatting size international factory default setting.
To determine which variables your printer supports, see the Technical Reference for your printer model at
http://support.lexmark.com.
Variable Function Value list Factory default
LA4WIDTH A4 width in millimeters • 198 198
• 203
LASSIGNFEEDER Tray renumber assign • OFF OFF
envelope feeder • 0 to 199
Variable used with PJL SET or DEFAULT
command.
• OFF
• 0 to 199
• NONE
Variable used with PJL INQUIRE or
DINQUIRE command.
LASSIGNMANUALENVELOP Tray renumber assign • OFF OFF
E manual envelope • 0 to 199
Variable used with PJL SET or DEFAULT
command.
• OFF
• 0 to 199
• NONE
Variable used with PJL INQUIRE or
DINQUIRE command.
Printer job language 53
To determine which variables your printer supports, see the Technical Reference for your printer model at
http://support.lexmark.com.
Variable Function Value list Default values
JAMRECOVERY Jam Recovery • On Off
• Off
PRTPSERRS Print PS errors • On Off
• Off
To determine which variables your printer supports, see the Technical Reference for your printer model at
http://support.lexmark.com.
Variable Function Value list Factory default
LPSFONTPRIORITY Font priority • RESIDENT RESIDENT
• FLASHDISK
Printer job language 55
Auto-continuable conditions
The status messages are returned independent of the state of the Auto Continue menu item. Auto‑continuable
messages are returned in this form:
CODE=status code
DISPLAY=display string
ONLINE=online status
To determine which messages your printer supports, see the Technical Reference for your printer model at
http://support.lexmark.com.
Message Status code Return string Online status
Intervention Required - 30014 PPDS font error [50] FALSE
PPDS Font Error
Intervention Required - 30016 Insufficient FALSE
Insufficient Collation Area Collation Area [37]
Attendance conditions
Attendance conditions require operator intervention. Attendance messages are returned in this form:
CODE=status code
DISPLAY=display string
ONLINE=online status
Printer job language 66
To determine which messages your printer supports, see the Technical Reference for your printer model at
http://support.lexmark.com.
Message Status code Return string Online status
Intervention required - 32015 Disk corrupted FALSE
Disk Corrupted. Reformat?
Intervention Required - 32030 Too many bins FALSE
Too Many Bins Attached attached [58]
Informational messages
Printer state Status code Return string Online status
Ready 10001 Ready TRUE
Ready 10001 RDYMSG TRUE
Power Saver 35078 Power Saver TRUE
Ready with toner low 10006 Toner Low TRUE
Power Saver with toner low 10006 Toner Low TRUE
While in Ready menu group 10002 Not Ready FALSE
Not Ready 10002 Not Ready FALSE
Printer job language 81
Service errors
When the printer can return a status code, it returns error code 50000 for all 9xx service errors.
To determine whether your printer supports returning service messages, see the Technical Reference for your
printer model at http://support.lexmark.com.
OPMSG command
When an OPMSG command is received, the message appears on the control panel and then the printer goes
offline. If any intervention occurs, the printer displays the intervention message instead of the OPMSG message.
Syntax:
Syntax:
@PJL OPMSG DISPLAY = "message"[<CR>]<LF>
STMSG command
When an STMSG command is received, the message appears on the control panel and then the printer goes
offline. If any intervention occurs, the printer displays the intervention message instead of the STMSG message.
Syntax:
@PJL STMSG DISPLAY = "message"[<CR>]<LF>
LBEEP command
This command causes the printer to beep three times.
Syntax:
@PJL LBEEP[<CR>]<LF>
LPORTROTATE command
This command causes the printer to rotate ports at the next job boundary. The information to rotate ports is
specified in the job header. For example, the printer could switch from parallel interface to serial interface
between jobs.
Syntax:
@PJL LPORTROTATE[<CR>]<LF>
LPRINT commands
Use these commands to print one of the internal information pages.
Syntax:
@PJL testpage[<CR>]<LF>
The following LPRINT commands are used for the testpage value.
Testpage value Description
LPRINTDIRECTORY Prints both the flash memory and hard disk directory listings.
If the flash memory or hard disk is not installed, the command
is ignored.
LPRINTTESTPAGE Prints the test page.
LPRINTMENUS Prints the menu settings page.
LPRINTPCLFONTS Prints the PCL font listing.
LPRINTPSFONTS Prints the PostScript font listing.
LESCAPECHAR command
This command modifies the code point of the escape character for the host computer. The PORT parameter
specifies the command information. The escape character is mapped to code point 0x1B for each host interface
port.
Syntax:
@PJL LESCAPECHAR CHAR=byte PORT=port[<CR>]<LF>
Note: The byte value for the CHAR parameter is the code point of the ASCII character used for the escape
character. For example, at the factory, the printer uses 0x1B (character <ESC>) for the escape character. If
CHAR = 65 is specified with this command, the printer uses 0x41 (character A) as the escape character for the
host interface port specified via the PORT parameter.
Notes:
• The PHONENUMBER parameter is a text string up to 60 characters. If an unsupported character is
supplied in the PHONENUMBER parameter, then the entire LFAX PHONENUMBER command is ignored.
• The STATIONID parameter specifies a station name that is set to the receiving fax machine to indicate
the origin of an incoming fax. The station name is a text string which is truncated to 20 characters. A null
value (“ “) indicates that no station ID is specified. If no station name is specified, then the default station
name of the printer is used.
LDOWNLOADTARGET command
This command specifies the target device for downloaded files. The target can be RAM, flash memory, or hard
disk.
Printer job language 84
Syntax:
@PJL SET LDOWNLOADTARGET=variable[<CR>]<LF>
The following are the parameters used with most of the file commands.
Parameter Syntax Description
acccesstype ACCESS = acccesstype When opening a file, specify one of the following
access types:
• RO—Open for read only. The file must exist on the
specified device.
• WO—Create a new file. If the file exists, then its
contents are discarded and a new file is created.
• RW—Open for reading and writing. The file must
already exist.
• AP—Open for reading and writing, and then position
the file pointer to the end of the file. The file must
already exist.
Note: Access types are case-sensitive.
bytecount LENGTH = bytecount The amount of data in bytes to be read or written. The
parameter is optional for both the LREADFILE and
LWRITEFILE commands.
Note: If the LENGTH is greater than the file size on an
LREADFILE command, then it is assumed to be the
entire file beginning at the START location.
Printer job language 85
LOPENFILE command
Use this command to open a file on a storage device.
Printer job language 86
Syntax:
@PJL LOPENFILE DEVICE=filedevice FILENAME="fname" ACCESS= accesstype[<CR>]<LF>
LCLOSEFILE command
Use this command to close a file on a storage device. If the file does not exist on the device or is not open,
then the command is ignored.
Syntax:
@PJL LCLOSEFILE DEVICE=filedevice FILENAME="fname"[<CR>]<LF>
LREADFILE command
Use this command to read data from a file on a storage device.
Syntax:
@PJL LREADFILE DEVICE=filedevice FILENAME="fname" [START=location][LENGTH=bytecount][<CR>]<LF>
Response syntax:
@PJL LREADFILE DEVICE=filedevice FILENAME="fname" START=location LENGTH=bytecount <CR><LF><requested dat
Notes:
• Close the file using the LCLOSEFILE command after completing all operations.
• If the file does not exist on the device or is not already open with LOPENFILE with an accesstype or RO,
RW, or AP, then the command is ignored.
• If the START = location parameter is omitted, then location 0 (beginning of the file) is assumed.
• If a START location is provided but it is greater than the file size, then the response contains no file data.
• If the LENGTH parameter is omitted, then bytecount is assumed to be equal to the entire file beginning at
the START location.
• If the LENGTH is greater than the file size on anLREADFILE command, then it is assumed to be the
entire file beginning at the START location.
LWRITEFILE command
Use this command to write data to a file on a storage device.
Syntax:
@PJL LWRITEFILE DEVICE=filedevice FILENAME="fname" [START=location][LENGTH=bytecount][<CR>]<LF><data>[@P
Notes:
• If all operations are complete, then close the file using the LCLOSEFILE command.
• If the file does not exist on the device or is not already open with a write accesstype, then the command
is ignored.
• If the START = location parameter is omitted on a file with an accesstype of RW, then location 0 is
assumed.
• If the START = location is greater than file size and the accesstype is RW, then it positions the file pointer
at the end of the file.
Printer job language 87
• If the LENGTH parameter is omitted from a LWRITEFILE command, then place an @PJL END DATA at
the end of the data. All data up to @ in @PJL END DATA is written to the file. The command requires
either the LENGTH parameter or the @PJL END DATA to be specified, but not both.
LRUNFILE command
Use this command to load and execute a file on a storage device.
Syntax:
@PJL LRUNFILE DEVICE=filedevice FILENAME="fname"[<CR>]<LF>
LRENAMEFILE command
Use this command to rename a file on a storage device. If the file name specified as OLDFILENAME does not
exist on the device, or if the file name specified as NEWFILENAME exists on the device, then the command is
ignored.
Syntax:
@PJL LRENAMEFILE DEVICE=filedevice OLDFILENAME="fname" NEWFILENAME="fname"[<CR>]<LF>
LDELETEFILE command
Use this command to delete a file on a storage device. If the file does not exist on the device, then the command
is ignored.
Syntax:
@PJL LDELETEFILE DEVICE=filedevice FILENAME="fname"[<CR>]<LF>
LFORMAT command
Use this command to format a device for storage.
Syntax:
@PJL LFORMAT DEVICE=filedevice[<CR>]<LF>
LDEFRAG command
Use this command to recover storage space on a flash memory.
Syntax:
@PJL LDEFRAG DEVICE=filedevice[<CR>]<LF>
The file name used depends on whether you want to put a password on a font or a macro.
The file name for a font is a five-digit ID from the print directory page (add zeros to the left of the ID to fill the
five digits) followed by a three-digit instance number. The first time a font is downloaded after a flash memory
has been formatted, the instance number is 0. File types are described under filename. For more information,
see “Printer‑unique LRESOURCE variables” on page 55.
For example, to write password protect a PCL emulation bitmapped font (file type of p5bitmap) with an ID of
127, which has not been downloaded since flash was formatted:
@PJL DEFAULT LRESOURCE: "flash:00127000.p5bitmap" LWLOCK = "password" [<CR>]<LF>
To password protect a macro, the file name is the ID taken from the print directory page, followed by the file
type. For example, to password protect a PCL emulation macro (file type is p5macro) saved to flash with an ID
of 1023:
@PJL DEFAULT LRESOURCE: "flash:1023.p5macro LRWLOCK = "password" [<CR>]<LF>
Note: If the file name is incorrect, then the printer applies the password to the entire device.
1 Send the LQUERYSEED command to the printer by one of the host computer interfaces.
This command displays a value called the seed on the control panel through MarkVision Enterprise. If the
printer does not have a control panel, then the seed is printed on the Menu Settings Page. The value of the
seed determines the key.
2 Obtain the key from the Lexmark Customer Support Center.
3 Send the @PJL LBYPASSPASSWORD command to the printer by any port.
If the correct key is specified, then a modified version of the directory is produced. The directory indicates
the appropriate password for the flash or disk.
PostScript emulation 91
PostScript emulation
Selecting PostScript emulation
Using SmartSwtich
When SmartSwitch is enabled for both printer languages on an interface, the printer automatically switches to
the printer language that your software program sends. The printer is shipped with SmartSwitch enabled for
both printer languages in all interfaces. The printer examines all print jobs and switches dynamically between
PostScript emulation and PCL emulation.
manualfeed
If a manual feed source has been selected, then /manualfeed boolean def indicates in statusdict.
The Boolean value can be:
• True—Prints from a manual feed source
• False—Prints from an automatic feed source
PostScript emulation 92
This Boolean key can be redefined to affect manual feed for the current job. If the value of the manualfeed
operator or the ManualFeed page device parameter is true when showpage or copypage is executed, then the
page is fed manually. If both have a value of false when showpage or copypage is executed, then the page is
fed from an automatic source. These two values are independent from each other.
Note: If manualfeed is redefined between printing the front and back page of a duplexed page, then the
information for the front and back pages is printed on the same page.
Error: stackoverflow
papertray
– papertray integer
Queries the paper tray that is currently selected. An integer is returned on the stack indicating which paper tray
is in use.
Valid integers are:
• 0—Tray 1
• 1—Tray 2
• 2—Envelope feeder (not supported)
• 3—Manual paper
• 4—Manual envelope
• 5—Tray 3
• 7—Multipurpose feeder
• 8—Tray 4
• 9—Tray 5
Error: stackoverflow
setpapertray
integer setpapertray –
Changes the active paper source for the next page through the end of job through:
• Setting the PageSize entry in the page device to the size loaded in the selected source
• Setting MediaPosition to the selected source
This operator executes a setpagedevice. This operator does not alter the PageSize policy page device
parameter.
Use the following integers to set the paper tray:
• 0—Tray 1
• 1—Tray 2
• 2—Envelope feeder (not supported)
• 3—Manual paper
• 4—Manual envelope
• 5—Tray 3
• 7—Multipurpose feeder
• 8—Tray 4
• 9—Tray 5
PostScript emulation 93
Notes:
• If the Manual Paper or Manual Envelope source is selected, then the Manual Feed page device
parameter is set to true.
• If a paper source that is not installed is selected, then a rangecheck error is returned.
• If a setpapertray operator is issued for the back of the duplexed page, then the printer ejects a blank
back page, changes the paper source, and prints the information for the back side to the front side of the
page from the new paper source.
• The setting returns to the set default setting for the Paper Source menu item at the end of the print job.
Error: rangecheck, stackunderflow, typecheck
Interpreter parameters
User parameters
The following user parameters are used by setuserparams and currentuserparams.
To determine which parameters your printer supports, see the Technical Reference for your printer model at
http://support.lexmark.com.
Key Type Default Definition
AccurateScreens Boolean false Controls whether the accurate screen
algorithm is used during subsequent
executions of the setscreen and
setcolorscreen operators.
CollatedCopies integer Collation - Collated Copies Request the number of collated copies to
(QTY) value print for the job. Set this parameter before
the first page of the job has been
rendered.
Legal value: Any integer between 0 and
999, inclusive.
PostScript emulation 94
System parameters
The setsystemparams operator sets the values of the specified system parameters. If one is set, then this
operator requires a password. The currentsystemparams operator returns a dictionary of the current values
of the system parameters.
Values supplied to setsystemparams that are outside the range or limits for the specified integer parameter
do not cause rangecheck or limitcheck errors. An appropriate value is used. Values supplied to
setsystemparams that do not match the type of specified parameter cause typecheck errors.
Parameters that the printer does not support are ignored. An attempt to change the value of a read‑only
parameter has no effect on the parameter. The currentsystemparams does not return write‑only parameters.
To determine which parameters your printer supports, see the Technical Reference for your printer model at
http://support.lexmark.com.
PostScript emulation 97
Device parameters
The currentdevparams operator returns a dictionary of the current values of the system parameters.
PostScript emulation 101
The setdevparams operator sets the values of the specified device parameters.
• If one is set, then this operator requires a password.
• Values supplied to setdevparams that are outside the range or limits for the specified integer parameter
do not cause rangecheck or limitcheck errors. The appropriate value is used.
• Values supplied to setdevparams that do not match the type of the specified parameter cause typecheck
errors.
• If a parameter name is not known, then an undefined error occurs.
• An attempt to change the value of a read‑only parameter has no effect on the parameter.
• To specify the parameters for a specific communications channel, use the appropriate suffix.
To determine which devices and device parameters your printer supports, see the Technical Reference for your
printer model at http://support.lexmark.com.
– Your printer always selects the PostScript emulation interpreter, and processes a Ctrl+T (x’14’)
command as a status query when receiving data through the LocalTalk interface.
Status messages
Your printer responds to a Ctrl+T (x’14’) status query on an interface by sending a one‑line message back to the
host computer over the same interface. If the status query is received between print jobs and the printer is idle
with no error conditions, then an idle response is returned to the host computer.
The characters %%[ and ]%% enclose the status messages, so the computer software can extract them from
other data generated by the current print job. The status message follows a machine‑readable format which
consists of one or more key plus value pairs separated by semicolons.
Example:
%%[job: Project report; status: busy; source: serial]%%
To determine which status message keys your printer supports, see the Technical Reference for your printer
model at http://support.lexmark.com.
Switching languages
SmartSwitch
Datastream
Set Initial Condition (SIC) <ESC>[K is parsed by the PCL interpreter on a normal command sequence boundary.
It is parsed by PostScript after a job boundary. The SIC command allows dynamic switching of the emulation.
Universal Exit Language (UEL) <ESC>%‑12345X is parsed by all emulators on normal command sequence
boundaries in either binary or non‑binary mode.
SIC and PJL can be used to switch emulators while in binary mode.
Sniffing
Sniffing is enabled when any End‑of‑Job point occurs, and is disabled when a SIC or PJL with a valid printer
language is received. The printer examines the datastream that is being sent and attempts to determine the
type of datastream it is receiving and automatically switches to the proper interpreter.
When various events occur, the printer examines the active printer language on an interface and determines
when an End‑of‑Job point occurs.
The following are the End‑of‑Job points or events:
• SIC command
• UEL command
• Print timeout
• Wait timeout
• PostScript internal link flushing timeout
• Ctrl+D in PostScript or Tagged Binary
• Sniffing boundary if sniffing is active
Switching languages 124
• INIT *
• NPA job boundary
Example of directory
Part name
Part Name as it is stored in the flash memory card header. If the printer formats the flash memory, then the part
name field is shown as FLASH. The part name field for the hard disk is not printed.
Flash memory and hard disk 127
Part number
Part Number as it is stored in the flash memory card header. If the printer formats the flash memory, then the
part number field is shown as (none). The part number field for the hard disk is not printed.
ID
Valid for PCL emulation macros, fonts, and symbol sets only. Use the ID when adding a description to a macro
or a symbol set. If two files with the same file type have duplicate IDs, then the following occurs:
• If multiple macros or symbol sets have been created with duplicate download IDs, then only the last macro
or symbol set is listed. It is the only one that can be selected. On flash memory, the number listed for bytes
unavailable includes the unlisted macros and symbol sets. The bytes unavailable field is not
applicable for the hard disk device.
• PostScript emulation fonts, and files created by PostScript emulation file operators, do not have IDs.
Type
File types that can be stored on flash memory or hard disk have unique extensions.
The flash format used on earlier printer models recognizes the following file types. The name of the file type
printed in the directory appears in parentheses.
• .t1 (PostScript font)
• .sFnt5 (PCL scalable font)
• .bFnt5 (PCL bitmap font)
• .Mac5 (PCL macro)
Except as noted in the following list, the flash format used in your printer recognizes the file types in the
preceding list. In addition, the flash format in your printer also recognizes the following formats:
• .data (user data)—Any file written with PostScript operators
• .type1 (PostScript font)—Replaces the earlier .t1 extension
• .demo (demo—Used for demonstration prints or forms
• .p5scalable (PCL scalable font)
• .p5bitmap (PCL bitmapped font)
• .p5macro (PCL macro)—Replaces the earlier .Mac5 extension
• .p5symset (PCL symbol set)
Usually the PostScript file operators can only read or write files with the extension .data. Use the
setfilenameextend operator to read or write other file types, including .demo. Any other file type appears in
the list as Unknown File Type. The description column then contains the full file name with the file type
(extension).
Flash memory and hard disk 128
Size
The size listed for each resource includes the size of the file header.
Protection (Prot.)
Indicates if the file is password protected.
• R/W—Read/write protection
• W—Write protection
If this field is blank, then this resource in flash memory or hard disk is not password protected. For more
information on file protection, see “File and device protection commands” on page 87 and “Password
protection” on page 128.
Description
The description field for fonts comes from the font header. The description field for macros or symbol sets is
blank unless the description field in the file header is set by the PJL LRESOURCE command. For more
information, see “Printer‑unique LRESOURCE variables” on page 55.
The description for macros or symbol sets can be set only once for files stored in a flash memory. The description
can be set any number of times for macros or symbol sets stored on a hard disk. The limitation for flash files is
due to flash technology. For more information, see “Printer‑unique LRESOURCE variables” on page 55.
Password protection
Use any of the following to protect your flash memory or hard disk or the files stored on it.
• Read/Write—Protects the file or device against reading and writing unless the user specifies the password
(applies only to actual file data).
• Write—Ensures that data cannot be changed on a file or device unless the user specifies the password.
A read/write password takes precedence over a write password.
Each file or device can have a separate password. Write passwords ensure that files cannot be deleted,
renamed, or updated. A device cannot be formatted or specified as a download target. Read/write password
protection provides the same protection as write, but also ensures that data cannot be read from the file or
device.
By using passwords, administrators can ensure data integrity and proper authorization. The PJL commands or
the MarkVision Enterprise utility sets, declares, retracts, and deletes the passwords. For more information, see
“File and device protection commands” on page 87.
Device names
A device can be a flash memory, hard disk, or ROM. For PostScript emulation, some of the operators require
or return device names. These operators are deletefile, filenameforall, devforall, devdismount, devmount,
devformat, devstatus. The device always begins and optionally ends with a % character. The following are the
valid device names:
• %rom%
• %flash%
• %flash1%
• %disk%
• %disk1%
The same file name can exist on more than one device. The device prefix determines the actual file to use. For
example, %rom%myfile and%flash%myfile designate, respectively, a file called myfile both on the ROM and
on the flash memory. The device name distinguishes which file to use. Device names are case-sensitive.
Each device (except for the hard disk) has one synonym. For example, the flash memory can be referred to
as %flash% or %flash1%. The name with the 1 is a unique identifier. This system allows for future expansion of
multiple flash memory or hard disk devices. The disk device name provides for multiple physical units and
multiple logical units. Thus, %disk1_0% indicates the first physical unit and the first (0) logical partition on the
device. Currently, one physical device (for ROM, flash memory, and hard disk) is supported. The hard disk
supports only the first (0) logical partition.
File names
Each file on a device has a unique name to identify the information contained within the file. The name can be
up to 127 characters in length. All character codes from X'01' to X'FF' are valid (X'00' is not valid). File names
are case-sensitive. For example, %flash%myfile and %flash%MYFILE indicate different files on the flash
memory.
Flash memory and hard disk 130
The following example shows how to remove a file for the font myfont from the disk. The PostScript emulation
resource collection file name is myfont.type1. The PostScript emulation command to remove the file is:
statusdict begin
false setfilenameextend
(%disk%myfont.type1) deletefile
true setfilenameextend
end
This occurs because the file name actually written is iconimage.data. When setfilenameextend is enabled (the
default), all PostScript emulation file operators treat file name operands as filename.data; when disabled, they
treat file name operands literally.
If you receive unexpected undefinedfilename or similar errors, try toggling setfilenameextend and sending
your print job again.
To change the order so the devices are searched as hard disk, flash memory, and then ROM, use the following
PostScript emulation command sequence:
(%rom%) devdismount
(%flash%) devdismount
(%disk%) devdismount
(%disk%) devmount
(%flash%) devmount
(%rom%) devmount
If the device is already mounted, then the following operators may change the search order:
• initializedisk
• devformat
• <</InitializeAction>>setdevparams
Sending these operators has the following effect on the devices in the search order:
1 If mounted, (%device%) devdismount.
2 Formats the device.
3 If dismounted in step 1, (%device%) devmount.
If you do not want a device searched, unmount it and leave it unmounted.
Note: Do not leave the ROM device unmounted. All internal fonts are contained on the ROM device.
In the previous examples, use the devmount and devdismount operators outside the server loop. We
recommend that you place the requests in a stop context so that if the devices do not exist, error recovery can
take place.
Changes made to the search order remain in effect.
Flash memory and hard disk 132
Performance
Some performance degradation may occur during initial access to a resource on a hard disk (as opposed to
flash memory or RAM). However, the information is put in cache, and further references to that resource occur
at RAM speed.
Job buffering
Creating a partition
Before enabling job buffering for a port, allocate a portion of the hard disk for job buffering functions. The
minimum size for a job buffering partition is 10 percent of the hard disk storage space. When a new partition is
created, the entire hard disk is formatted. All resources previously downloaded to the hard disk are lost.
Note: After a partition is defined, the hard disk space is reserved for job buffering.
Printer interfaces
Setting up the communications port
1 Open the device manager.
2 Configure the following to match your printer settings:
• Bits per second
• Data bits
• Parity
• Stop bits
• Flow Control
Note: For Flow Control, select Hardware to enable DTR protocol or XON/XOFF to enable XON/XOFF
protocol.
3 Apply the changes.
Choosing an interface
On some printers, you can attach multiple interface cables at the same time. The printer automatically switches
to the interface receiving a job. Then it prints the job and begins searching the interfaces for the next job.
One or more of the following is built into your printer: a standard parallel connector, USB, or network connector.
To use a port, connect a cable from the printer to the computer, then set the appropriate values. For more
information, see the documentation that came with your printer.
Use a parallel interface when you:
• Attach your printer to a personal computer.
• Attach your printer to a host system with a Centronics-compatible parallel port.
• Attach your printer to a Lexmark external print server.
Use a USB interface when you:
• Attach your printer to a personal computer, iMac, Sun Ray, or Sun Blade.
• Connect the printer to a computer that does not have an available parallel port.
• Attach your printer to a Lexmark external print server.
Note: Attach network cables to Ethernet print servers installed in your printer.
Printer interfaces 134
Parallel interface
18 1
36 19
INIT* signal
When the printer is using the parallel interface and it receives an INIT* signal, it initializes as follows:
• It prints the data received before INIT*, and then initializes.
• It returns variable defaults to the values stored in the user default settings.
• It returns fixed default settings to the factory values.
• It retains permanent downloaded fonts and macros, but deletes temporary downloaded fonts and macros.
• The link buffer remains intact.
• Variable default paper size settings become the active paper formatting size.
• If paper is loaded with auto size sensing, then the printer resets the default paper formatting size to the size
of the paper in the tray.
Notes:
• INIT* is not honored when Hex Print is active.
• INIT* causes the parallel interface to go busy. The printer processes INIT* when the parallel interface
becomes active and all preceding characters have been processed.
Computer‑to‑printer communications
Standard parallel connector
The cabling in the following illustration supports Standard and Fastbytes protocols and IEEE 1284 Nibble, Byte,
and ECP protocols.
18 36 14 1
Printer Computer
Side Side
IEEE 1284-B
IEEE 1284-A
36-Pin 25-Pin
D-Shell D-Shell
Connector Connector
(Male) (Male)
1 19 25 13
Printer interfaces 135
The following illustration shows the pin assignments for connecting the 25-pin connector to the 36-pin
connector. The symbol * indicates an active low signal.
Printer Computer
Side Side
36-Pin 25-Pin
Connector Connector
1284-B
The parallel interface consists of an 8-bit parallel data bus with the following characteristics:
• Uses 17 of the 36 positions on the printer connector, as follows:
– The host system controls 12 lines, which it uses to send data and commands to the printer.
– The printer controls five lines. The printer uses two lines to notify the computer of successful data transfer,
and three lines to report printer status.
• Controls synchronization with an externally supplied STROBE* pulse.
• Controls data flow control with BUSY and ACKNLG* signals. Does not carry out data transfer by ignoring
the BUSY or ACKNLG* signal. (The system can carry out data transfer to the printer only when the level of
the BUSY signal is low and after confirming the ACKNLG* signal is high.)
• Uses standard transistor-transistor logic (TTL) levels for all interface control signals and input data. Interface
conditions are based on TTL levels. All printer outputs are totem-pole TTL devices. All printer input/output
(I/O) are devices with an internal pull-up resistor to 5 V. Rise and fall times of each signal must be less than
1,500 nanoseconds (ns) without slope reversal.
Printer interfaces 136
DATA1-8
A B C
STROBE*
G
D
F
BUSY
ACK*
DATA 1-8
STROBE*
ACK*
BUSY
When a parallel connection exists, the printer also supports a Device ID function. The printer returns the
following information when queried for its ID:
• Manufacturer
• Command set
• Printer model
Open a Web browser, and then type ftp://ftp.lexmark.com/pub/driver/technical_brief/LEXPARAL.EXE in the
address field.
When the Advanced Status menu item is set to On, the printer supports IEEE 1284 communication. If the attached
host computer does not support IEEE 1284 communication, then you can turn Advanced Status to Off from the
control panel or through MarkVision Enterprise. The SLCTIN* and AUTO FD XT* are ignored.
Note: Excessive device queries and status checks (Nibble and Byte modes) cause slow printer performance.
To get the IEEE 1284 documentation (order number DS02709), contact 1-800-678-IEEE.
Parallel Mode 1
When the host side of the interface is using an open collector driver to transmit data to the printer, set Parallel
Mode 1 to Off. This setting increases the reliability of data transfer and equalizes all parallel interface signal
impedances. For more information on Parallel Mode 1, see the documentation that came with your printer.
Parallel Mode 2
By default, Parallel Mode 2 is set to On. When set to Off, the printer shows the following behavior:
• The printer changes when data is valid.
• The printer takes data from the host computer at the trailing edge of STROBE.
• The printer automatically turns Advanced Status to Off, eliminating any IEEE 1284 data flow control.
Note: You can turn off Parallel Mode 2 from the control panel, through MarkVision Enterprise, or through a
PJL command.
Serial interface
The serial interface allows data to flow back and forth between the computer and the printer. The serial interface
transfers data at a slower rate than the parallel interface.
If a serial connector is required, then you may install an RS-232C serial interface card or an external serial
adapter. For more information, see the documentation that came with your printer.
The following are differences from the serial interface on some other printers when using the serial interface:
• The printer returns XON/XOFF with two stop bits in all cases.
• The printer does not support DTR inversion.
Printer interfaces 139
1 14 1 14
Printer Computer
Side Side
For null modem cables, such as Lexmark part number 1038693 [15.24 m (50 ft)], connect the converter cable
to the printer. The illustration represents the 25-pin connectors for the RS-232C cable (1038693).
13 25
1 14
The following illustration shows the pin assignments for the 9-pin to 25-pin IBM EIA RS-232C serial cables.
9 to 25 Pin Cable Adapter,
such as IBM 6450242 (10 in.) Lexmark 1038693 (50 ft)
Shield
Shield
Data transmission
The list of acceptable data transfer rates (in bits per second) can be accessed from the control panel or
through MarkVision Enterprise. For more information, see the documentation that came with your printer.
Data bits
The printer sends or receives 7 or 8 data bits in each transmission frame, depending on which one is
selected.
Parity
Settings Description
Odd The port expects to receive data frames with an odd number of logical 1s per byte. The
printer transmits XOFF and XON with odd parity. If the printer detects a parity error,
then the port sends X'5F' to the printer instead of the character sent by the host system.
Even The port expects to receive data frames with an even number of logical 1s per byte.
The port transmits XOFF and XON with even parity. If the port detects a parity error,
then the port sends an inverted question mark to the printer instead of the character
sent by the host system.
None The port expects no parity bit when it receives data and transmits XON and XOFF
without parity bits.
Ignore The port expects a parity bit when the port receives a data frame. The port ignores the
parity bit and uses even parity when it transmits XON and XOFF.
Some printers post a 54 Standard Serial Error or a 54 Serial Option [x] Error (x represents
the number of the serial port) the first time they detect a transmission error (parity, overrun, or framing). The
errors can be reset from the control panel or through MarkVision Enterprise. For more information, see the
documentation that came with your printer.
If repeated serial errors occur, turn off the printer and then turn it back on to restore proper serial operation.
Printer interfaces 142
Protocol (RS-232C)
The following table shows the state or function of each serial interface signal in the three data flow control
protocols when the Honor DSR setting is On.
Printer XON/XOFF protocol (Honor DTR protocol DTR/DSR protocol (Honor DSR on)
DSR on) (Honor DSR on)
DTR Always active Flow control to computer Flow control to computer
DSR Data validity Data validity Flow control (transmit mode) to computer
(receive mode)
CTS Ignored Flow control from computer Ignored
The following table shows the state of each serial interface signal in the three data flow control protocols when
the Honor DSR setting is Off.
Printer signal XON/XOFF protocol (Honor DTR protocol DTR/DSR protocol (Honor DSR off)
DSR off) (Honor DSR off)
DTR (Output) Always active Flow control to computer Flow control to computer
DSR (Input) Ignored Ignored1 Flow control to computer
CTS (Input) Ignored Flow control from computer1 Ignored
1 These values are compatible with Hewlett-Packard Company LaserJet printers.
Printer interfaces 143
2
3
Receive Data Valid
4
RXD
1 The RTS signal is driven active as long as power is supplied to the printer.
2 The DTR signal becomes active when initialization is complete, telling the computer that the printer is ready
to receive data.
3 When Honor DSR is On, the printer considers data received invalid when DSR is low and discards the data.
Only DTR/DSR is used for flow control from the printer to the host computer.
4 DTR drops to tell the computer that the receive buffer is nearly full or that the printer is busy and that data
transmission should stop. About 640 free bytes remain in the buffer at this time. If the computer continues
to send data after the printer has sent a low DTR signal, then data could be lost.
RTS
DTR
2
DSR
3
Receive Data Valid
5 6
4
RXD
1 The RTS signal is driven active as long as power is supplied to the printer.
2 The DTR signal becomes active at the completion of initialization.
3 The printer considers data received invalid when DSR is low and discards the data. (This is conditional
depending on the setting of Honor DSR.)
4 After you power on the printer and DTR is active, the printer sends an XON signal to the computer (DC1
control or X'11'). However, the computer does not need to detect this initial XON before sending data to the
printer, because the printer can be powered on before the computer or terminal.
5 The printer sends an XOFF signal (DC3 control or X'13') to request that data transmission end until the buffer
clears. About 640 free bytes remain in the buffer at this time. If the computer continues to send data after
the printer sent an XOFF signal, then data could be lost.
6 The printer sends an XON signal to the computer when the buffer space is again available. The serial
interface is ready to receive more data.
Serial errors
The printer places an underscore character in the link buffer when it detects an error. Some printers also display
serial errors on the control panel or through MarkVision Enterprise as attendance messages. Examples of these
errors are 54 Standard Serial Error and 54 Serial Option [x] Error (x represents the number
of the serial port). Serial errors that do not generate such an error message are:
• Serial Break
• Framing error received simultaneously as a Break
• Turning on an IBM-compatible personal computer connected to the printer
DOS:
From the DOS prompt, enter the following commands:
mode comy:9600,n,8,1,p
mode lptx :=comy
where x equals 1, 2, or 3, and y equals 1 or 2.
Include these two command statements in the AUTOEXEC.BAT file on the computer so they run each time
your system starts operating.
Printer interfaces 145
When this is set, use the copy command to copy to the communications port again:
copy 'filename' lptx
Network support
The standard network connection or installed network connection enables you to connect your printer to a
local area network (LAN). The following network interfaces are offered:
• 10BaseT—Conforms to the IEEE 802.3i standard
• 100BaseTX—Conforms to the IEEE 802.3u standard
• 10BaseFL—Conforms to the IEEE 802.3j standard
• 100BaseFX—Conforms to the IEEE 802.3u standard
• 1000BaseT—Conforms to the IEEE 802.3ab standard
• Wireless—Conforms to the IEEE 802.11b/g standard and the IEEE 802.11n draft 2.0 standard, if applicable
For information on installing a print server in your printer, see the documentation that came with your printer.
Input buffer
The maximum size of the input buffer for each printer interface depends upon the amount of RAM memory
installed. The input buffers serve the same purpose as a print spooler. The printer can allocate automatically
the input buffers.
Note: The size of the input buffer may be modified or disabled from the control panel menus or through
MarkVision Enterprise.
If NPAP is active on a port, two-thirds of the buffer memory are reserved for NPAP and one-third is set aside for
the input buffer. If NPAP is not active, all the memory is available for the input buffer.
The following table shows the sizes automatically selected for the buffers when the buffer size is set to Auto
in the menus.
Printer interfaces 146
Memory size Parallel buffer size Serial buffer Network buffer LocalTalk USB Fax
size size
2MB 12K 12K 12K 12K 12K N/A
4MB 12K 12K 48K 12K 12K 350K
6MB 24K 12K 48K 24K 12K 350K
8, 10, or 12MB 48K 24K 48K 48K 24K 350K
16, 18, or 20MB 48K (1MB if no optional adapter is 24K 1MB 1MB 24K 1MB
installed)
24, 28, 32, or 34MB 192K (1MB if no optional adapter 150K 1MB 1MB 150K 1MB
is installed)
36, 38, or 40MB 384K (1MB if no optional adapter 300K 1MB 1MB 300K 1MB
is installed)
44MB or larger 2MB 300K 2MB 2MB 300K 1MB
Notes:
• On a serial communication, the printer signals the host computer to stop transmitting bytes when the
serial input buffer is within 640 bytes.
• Using XON/XOFF protocol, the printer signals the host computer to stop transmitting when the serial
input buffer is 384, 256, and 128 bytes from full.
Index 147
Index
C Resource Data Collection PJL commands
commands supported command 125 common variables, both
PJL, common variables for both flash memory and hard disk languages 43
languages 43 performance 132 common variables, PCL
PJL, printer‑unique variables for flash memory and hard disk, job emulation 51
LRESOURCE 55 buffering common variables, PostScript
PJL, printer‑unique variables for creating a partition 132 emulation 54
PostScript emulation 54 flash memory or hard disk printer‑unique variables,
printer‑unique variables for PCL example of directory 126 LRESOURCE 55
emulation 52 password protection 128 printer‑unique variables, PCL
commands, supported emulation 52
PJL, common variables for PCL I printer‑unique variables,
emulation 51 informational messages 80 PostScript emulation 54
PJL, common variables for INIT* signal 134 PJL commands notation 41
PostScript emulation 54 PJL messages
attendance conditions 65
communications port, setting J auto-continuable conditions 55
printer interfaces 133 JOB command 42
creating macros 39 informational messages 80
PostScript
K device parameters 100
D kernel commands 41 paper tray support 91
Device attendance status messages 122
commands 81 supported paper size 91
M
messages system parameters 96
E PJL, attendance conditions 65 user parameters 93
EOJ command 42 PJL, auto-continuable PostScript emulation
conditions 55 using a software program 91
F using control panel or
MarkVision Enterprise 91
File and device protection P using SmartSwitch 91
commands parallel interface 134
relocking a protected file or PostScript, status and error
parameters messages
device commands 89 PostScript, device 100
unlocking a protected file or Tagged Binary active 122
PostScript, system 96 Tagged Binary not active 121
device command 88 PostScript, user 93
unlocking a protected file or PostScript, supplemental
PCL emulation operators
device for a current job commands 8
commands 89 envelope size and tray
control codes 8 support 93
file and device protection GL/2 commands 32
commands 87 printer interfaces
macros 39 choosing an interface 133
recovering lost passwords 89 page formatting 6
flash memory and hard disk computer‑to‑printer
Print Area menu 6 communications 134
device search order 131 raster compression mode 34
disabling job buffering 132 input buffer 145
PCL emulations, selecting network support 145
enabling job buffering 132 using a software program 6
file naming conventions 129 Parallel Mode 1 138
using control panel or Parallel Mode 2 138
recovering from a power MarkVision Enterprise 6
loss 132 using SmartSwitch 6
Index 148
printer‑to‑computer U
communication (Advance unique PJL commands 81
Status) 137
serial interface 138
setting up communications V
port 133 viewing the contents of a flash
standard parallel connector 134 memory or hard disk 126
using the RS‑232C serial
interface 139
Printer Job Language
command notation 41
device attendance
commands 81
file and device protection
commands 87
file commands for flash memory
or hard disk 84
job separation commands 42
kernel commands 41
recovering lost passwords 89
relocking a protected file or
device commands 89
service errors 81
unique commands 81
unlocking a protected file or
device command 88
unlocking a protected file or
device for a current job
commands 89
printer languages and interfaces
technical reference
introduction 5
protecting flash memory or hard
disk 128
R
recovering print jobs 132
rewriting the flash memory
content 128
S
storing resources on a flash
memory or hard disk 125
switching printer languages
datastream 123
default printer language for an
interface port 124
setting SmartSwitch for different
interfaces 123
sniffing 123