Tech Ref E
Tech Ref E
Tech Ref E
Technical Reference
General Infomation
Notice
We shall have no liability or responsibility to customers or any other person or entity with respect to any liability, loss or
damage caused or alleged to be caused directly or indirectly by equipment sold or furnished by us, including, but not limited
to, any interruption of service, loss of business or anticipatory profits, or consequential damages resulting from the use or
operation of the equipment or software.
NO LIABILITY WILL BE ASSUMED FOR ANY DAMAGE CAUSED BY IMPROPER INSTALLATION.
Notice on Software
SOFTWARE USED WITH THIS PRINTING SYSTEM MUST SUPPORT ITS NATIVE MODE (PRESCRIBE) OR ONE OF
ITS EMULATION MODES.
This manual, the computer programs in the printing system referred to in this manual, and any other copyrightable subject
matter sold or provided with or in connection with the sale of the printing system, are protected by copyright. All rights are
reserved. Copying or other reproduction of all or part of this manual, the computer programs, or any other copyrightable
subject matter without the prior written consent of KYOCERA Document Solutions Inc.is prohibited. Any copies made of all
or part of this manual, the computer programs, or any other copyrightable subject must contain the same copyright notice
as the material from which the copying is done.
The information in this manual is subject to change without notification. Additional pages may be inserted in future editions.
The user is asked to excuse any omissions or errors in the present edition.
No responsibility is assumed if accidents occur while the user is following the instructions in this manual. No responsibility
is assumed for defects in the printing systems firmware.
Regarding Tradenames
PRESCRIBE is a registered trademark of Kyocera Corporation. KPDL is a trademark of Kyocera Corporation.
Diablo 630 is a product of Xerox Corporation. IBM Proprinter X-24E is a product of International Business Machines Corporation. Epson LQ-850 is a product of Seiko Epson Corporation. HP LaserJet, Hewlett-Packard, PCL, and HP-GL/2 are registered trademarks of Hewlett-Packard Company. Other product names and company names that appear in this manual
are trademarks or registered trademarks of their respective owners.
Typeface Trademark Acknowledgement
All resident fonts in the printing system are licensed from Bitstream Inc. and Agfa corporation. For font license information
for each model, refer to the Users Manual.
Helvetica, Palatino and Times are registered trademarks of Linotype-Hell AG. Century Schoolbook, Stymie, and CooperBlack are trademarks of Kingsley-ATF Type Corporation. ITC Avant Garde Gothic, ITC ZapfChancery, ITC ZapfDingbats,
ITC Souvenir, ITC Benguiat, and ITC Bookman are registered trademarks of International Typeface Corporation. Revue is
a trademark of Esselte Pendaflex Corporation in the U.S., Letraset Canada Ltd. in Canada, and Esselte Letraset Ltd. elsewhere.
Agfa Japan License Agreement Guidelines for the Resident Fonts
1.
Software shall mean the digitally encoded, machine readable, scalable outline data as encoded in a special format as
well as the UFST Software.
2.
You agree to accept a non-exclusive license to use the Software to reproduce and display weights, styles and versions
of letters, numerals, characters and symbols (Typefaces) solely for your own customary business or personal purposes at the address stated on the registration card you return to Agfa Japan. Under the terms of this License Agreement, you have the right to use the Fonts on up to three printing systems. If you need to have access to the fonts on
more than three printing systems, you need to acquire a multi-user license agreement which can be obtained from
Agfa Japan. Agfa Japan retains all rights, title and interest to the Software and Typefaces and no rights are granted to
you other than a License to use the Software on the terms expressly set forth in this Agreement.
3.
To protect proprietary rights of Agfa Japan, you agree to maintain the Software and other proprietary information concerning the Typefaces in strict confidence and to establish reasonable procedures regulating access to and use of the
Software and Typefaces.
4.
You agree not to duplicate or copy the Software or Typefaces, except that you may make one backup copy. You agree
that any such copy shall contain the same proprietary notices as those appearing on the original.
5.
This License shall continue until the last use of the Software and Typefaces, unless sooner terminated. This License
may be terminated by Agfa Japan if you fail to comply with the terms of this License and such failure is not remedied
within thirty (30) days after notice from Agfa Japan. When this License expires or is terminated, you shall either return
to Agfa Japan or destroy all copies of the Software and Typefaces and documentation as requested.
6.
You agree that you will not modify, alter, disassemble, decrypt, reverse engineer or decompile the Software.
7.
Agfa Japan warrants that for ninety (90) days after delivery, the Software will perform in accordance with Agfa Japanpublished specifications, and the diskette will be free from defects in material and workmanship. Agfa Japan does not
warrant that the Software is free from all bugs, errors and omissions.
THE PARTIES AGREE THAT ALL OTHER WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING WARRANTIES
OF FITNESS FOR A PARTICULAR PURPOSE AND MERCHANTABILITY, ARE EXCLUDED.
8.
Your exclusive remedy and the sole liability of Agfa Japan in connection with the Software and Typefaces is repair or
replacement of defective parts, upon their return to Agfa Japan.
IN NO EVENT WILL AGFA JAPAN BE LIABLE FOR LOST PROFITS, LOST DATA, OR ANY OTHER INCIDENTAL
OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES CAUSED BY ABUSE OR MISAPPLICATION OF THE
SOFTWARE AND TYPEFACES.
9.
10. You shall not sublicense, sell, lease, or otherwise transfer the Software and/or Typefaces without the prior written consent of Agfa Japan.
11. Use, duplication or disclosure by the Government is subject to restrictions as set forth in the Rights in Technical Data
and Computer Software clause at FAR 252-227-7013, subdivision (b)(3)(ii) or subparagraph (c)(1)(ii), as appropriate.
Further use, duplication or disclosure is subject to restrictions applicable to restricted rights software as set forth in
FAR 52.227-19 (c)(2).
12. YOU ACKNOWLEDGE THAT YOU HAVE READ THIS AGREEMENT, UNDERSTAND IT, AND AGREE TO BE
BOUND BY ITS TERMS AND CONDITIONS. NEITHER PARTY SHALL BE BOUND BY ANY STATEMENT OR REPRESENTATION NOT CONTAINED IN THIS AGREEMENT. NO CHANGE IN THIS AGREEMENT IS EFFECTIVE
UNLESS WRITTEN AND SIGNED BY PROPERLY AUTHORIZED REPRESENTATIVES OF EACH PARTY. BY
OPENING THIS DISKETTE PACKAGE, YOU AGREE TO ACCEPT THE TERMS AND CONDITIONS OF THIS
AGREEMENT.
ii
Introduction
This manual contains information needed to use the firmware features provided by the
Kyocera printing system. Among these features is PRESCRIBE, a highly accessible,
human-readable command language that makes it easy for programmers to take full
advantage of the printing systems capability.
The PRESCRIBE command language allows to:
You can access the features of PRESCRIBE from any of the seven emulation modes.
These modes include:
iii
Notice
Most PRESCRIBE commands operate in the same way on all of these models. However,
on particular models, some commands are irrelevant. Model-dependent differences are
noted at the pertinent locations in this manual.
Conventions
iv
italic is used for emphasis and also refers to a related chapter or section in this manual or another related document.
fixed-pitch means text or commands that you must type exactly as it appears.
Table of Contents
General Infomation ................................................................................................................................... i
Introduction.............................................................................................................................................iii
Introduction to PRESCRIBE
Format of PRESCRIBE Commands ....................................................................................................1-4
Basic Concepts......................................................................................................................................1-4
Edge Limits ..................................................................................................................................1-4
Margins ........................................................................................................................................1-4
Page Orientation and Direction ....................................................................................................1-5
Coordinate Systems .....................................................................................................................1-7
Text Positioning ...........................................................................................................................1-7
Character Spacing ........................................................................................................................1-8
Paths .............................................................................................................................................1-9
Logical Page and Physical Page ..................................................................................................1-9
Command Parameters .........................................................................................................................1-10
Numeric Parameters ...................................................................................................................1-10
Character Strings ........................................................................................................................1-11
Upper and Lowercase Letters .....................................................................................................1-12
Special Parameters .....................................................................................................................1-13
Graphics Tutorial
Drawing Lines ..............................................................................................................................2-2
Drawing Boxes and Circles ..........................................................................................................2-6
Drawing Filled Shapes..................................................................................................................2-9
Path Mode Graphics............................................................................................................................2-16
Path ............................................................................................................................................2-16
Drawing Lines.............................................................................................................................2-18
Miter Limit .................................................................................................................................2-21
Drawing Arcs and Curves ..........................................................................................................2-24
Drawing Complex Curves ..........................................................................................................2-26
Closed Paths ...............................................................................................................................2-29
Filled Areas ................................................................................................................................2-30
Clipping Rectangle .....................................................................................................................2-32
Printing with Character Paths ....................................................................................................2-33
Raster Graphics ..................................................................................................................................2-34
Raster Data Compression Formats .............................................................................................2-34
Commands for Printing Raster Data ..........................................................................................2-35
Printing Raster Data....................................................................................................................2-37
Changing the Printing Systems Imaging Model .......................................................................2-37
Saving and Restoring the Graphics State ...................................................................................2-39
Macros
Examples of Macros .............................................................................................................................3-3
Fonts
List of Fonts ..................................................................................................................................4-2
KPDL Fonts ..................................................................................................................................4-4
Substituting a Bitmap Font ..........................................................................................................4-6
v
Barcodes
PDF417 Symbol Description...................................................................................................... 5-10
Printing a Two-dimensional Barcode ......................................................................................... 5-12
Limitations of Two-dimensional Barcode.................................................................................. 5-13
Macro PDF417 ........................................................................................................................... 5-14
Creating a Macro PDF 417 Representation................................................................................ 5-14
Permanent Parameters
Interface-dependent Parameters ................................................................................................... 6-2
Interface-independent Parameters ................................................................................................ 6-5
Emulation
Automatic emulation sensing ....................................................................................................... 7-3
General Information on Emulation .............................................................................................. 7-3
Line Printer Emulation (Mode 0) ........................................................................................................ 7-3
IBM Proprinter X24E Emulation (Mode 1) ........................................................................................ 7-4
IBM Proprinter X24E Control Codes........................................................................................... 7-6
Diablo 630 Emulation (Mode 2) ........................................................................................................ 7-12
Diablo 630 Control Codes ......................................................................................................... 7-14
Epson LQ-850 Emulation (Mode 5) .................................................................................................. 7-21
HP LaserJet Emulation (Mode 6) ...................................................................................................... 7-33
LaserJet Fonts ............................................................................................................................. 7-35
LaserJet Symbol Sets.................................................................................................................. 7-37
Resource Protection.................................................................................................................... 7-40
Switching the Print Resolution ................................................................................................... 7-42
HP LaserJet Reset State.............................................................................................................. 7-43
LaserJet PJL................................................................................................................................ 7-43
PJL Syntax Comparison ............................................................................................................. 7-67
HP 7550A Emulation [KC-GL] (Mode 8) ......................................................................................... 7-97
Basic ........................................................................................................................................... 7-97
KC-GL Environment Options .................................................................................................... 7-98
Plotter Status Information ........................................................................................................ 7-103
Device-Control Instructions .................................................................................................... 7-107
Fonts and Symbol Sets in KC-GL ............................................................................................ 7-108
Summary of KC-GL Instructions ............................................................................................ 7-112
KPDL Operators ............................................................................................................................... 7-116
Communication with the Printing System................................................................................ 7-116
KPDL Summary ....................................................................................................................... 7-117
KPDL Error Messages.............................................................................................................. 7-140
KPDL Printable Area................................................................................................................ 7-141
Index
vi
Chapter 1
Introduction to PRESCRIBE
PRESCRIBE is the native language of the Kyocera printing systems including copiers
(collectively referred to as printing systems hereafter). Consisting of easily remembered
commands, such as SLM for Set Left Margin, and BOX to draw a box, it gives you
the capability to control line and character spacing, adjust margins, change fonts, position text, draw graphics, and print multiple copies of each page. PRESCRIBE also gives
freedom to control device settings including selection of paper source, output stack, and
finishing operations such as sorting, stapling, etc.
Most application software controls printing systems by means of codes and escape
sequences that are built into the program and are not directly visible to the user. In contrast, PRESCRIBE commands are made of ordinary characters that you can type in yourself and see on the computer screen. This makes it easy for you to customize printing and
add features that may not be supported by your application.
This chapter presents an introduction to PRESCRIBE starting with an explanation of the
commands by which you start and exit PRESCRIBE. It is followed by an introduction to
some basic concepts of PRESCRIBE, then a discussion of the command format and
command parameters.
The printing systems emulation mode can be permanently set by the FRPO (Firmware
RePrOgram) P1 command. See Chapter 7 for details. The printing system is factory-set
to emulate the Hewlett-Packard LaserJet.
The example below shows how these transitions can be used in a file. The lines beginning with !R! are PRESCRIBE commands. Note how each block of commands begins
with !R! and ends with EXIT;. These sections are not printed; instead, they set margins,
select three different fonts, and draw a box around one line of text. The remainder of the
file consists of ordinary text, and is printed out as shown in the figure on the next page.
1-2
The previous example contains five sequences of PRESCRIBE commands. The basic
configuration of a PRESCRIBE command sequence is:
!R! command; command; ...; command; EXIT;
There is a limit to the number of commands you can include between the initial !R! and
the final EXIT;. The initial !R! must be followed by a space, and each command must
end with a semicolon.
Note
The use of PRESCRIBE commands in document files is conditional on the behavior of your
word processing software. Some word processing programs add control codes that interfere with PRESCRIBE. If you cannot control software in this way, try using a non-word processing mode (ASCII text function, for example) of the software.
1-3
Basic Concepts
This section discusses a few basic concepts concerning how the printing system prints on
the page. These concepts are:
Edge limits
Margins
Coordinate systems
Text positioning/Character spacing
Paths
Logical page and physical page
Page orientation and direction
Edge Limits
The printing system cannot place print on the outside edges of the paper. The edge limits
to which printing is possible are located 5 mm inside the edges of the paper; or 6 mm
(5mm in landscape orientation) from the left edge and 4 mm from the top of the paper in
HP LaserJet emulation. Refer to the figure Edge Limits and Margins on page 5.
The edge limits adjust automatically to the size of the paper cassette (although not to the
size of manually fed paper). The edge limits can also be set to various standard sizes by
the SPSZ (set paper size) command, or by the equivalent HP LaserJet commands. In HP
LaserJet emulation, the edge limits slightly vary according to the page orientation (as
also shown in Edge Limits and Margins on page 5).
Margins
The top and left margins are set in centimeters or inches in relation to the top and left
edge limits of the page. The bottom and right margins can also be set as a distance from
the top and left edge limits, or they can be set in terms of page width, page length, or
lines per page.
1-4
Basic Concepts
Portrait Orientation
Landscape orientation
When the printing system passes the bottom margin while printing text, it prints the page
and feeds to the next page. Spacing is carried over, so if the bottom margin does not
occur at an exact number of lines, excess space is printed at the top of the next page.
If you are using word-processing software that sets the margins automatically, you
should not set them with PRESCRIBE commands.
1-5
Page Orientation
Changing the page orientation automatically adjusts the margins so that they remain the
same distance from the four edges of the paper. If the printing system cannot make these
margin settings (for example, if the left margin would be to the right of the right margin),
it sets the margins to the edge limits.
Fonts are automatically rotated to match the current orientation.
Figure 1. 5. Page Orientations
Portrait Orientation
Top
margin
Right
margin
Left
margin
Bottom
margin
Right
margin
Left
margin
Bottom
margin
Print Direction
The print direction can be modified in 90 increments. These page orientations are
referred to as portrait, landscape, reverse portrait, and reverse landscape. Changing the
print direction rotates the page coordinate system in the same manner as changing the
page orientation. However, in this case, portrait refers to the print direction in which the
axes of the coordinate system are oriented in the same direction as for the currently
selected page orientation.
Changing the print direction also changes the margins to maintain the same printable
area as prior to the change. The current position (the physical location in which the next
character will be printed) and its coordinate values remain the same as in the previous
print direction.
Changing the print direction also changes the orientation of any subsequent raster graphics and PRESCRIBE vector graphics. However, it does not affect the orientation of any
subsequent HP-GL/2 graphics. (HP-GL/2 graphics can only be rotated with the HP-GL/2
RO command or the LaserJet orientation command.)
1-6
Basic Concepts
Current Point
Left
margin
Top
margin
Current Point
Bottom margin
Bottom margin
Top
margin
Right margin
Left margin
Right margin
Top margin
Left margin
Bottom margin
Left
margin
Bottom margin
Top margin
Current point
Right margin
Right margin
Coordinate Systems
With PRESCRIBE, positions on a page are described in terms of X and Y coordinates.
The origin of the coordinate system (the position at which X and Y both equal 0) is
located at the intersection of the top margin and the left margin. Values of X greater than
0 indicate positions to the right of the origin, and values of Y indicate positions below the
origin. See the figure on page 10. When the top and left margins are changed, the physical position of the origin changes accordingly.
Text Positioning
The printing system always keeps track of its current position on the page. The current
position can be thought of as a cursor that moves as data is printed. At any instant, the
1-7
cursor indicates where the next character will be printed or the next graphics will be
drawn. (The printing system does not have separate cursors for text and graphics.)
Text and graphics can be positioned at arbitrary locations on the page by moving the cursor with positioning commands (MAP, for example).
Figure 1. 7. Text Positioning
TITLE
!R! BOX 1, 1; MRP 2, 1;
EXIT; LABEL
Landscape Orientation
Carriage Return
MRP 2, 1;
BOX 1, 1;
Character Spacing
Each character is printed within an individual cell as shown below. The character sits on
a line called the baseline. Characters such as y descend below the base line.
In some character fonts, all the character cells are the same size, so the number of character positions per inch is fixed. In other fonts, the size of character cells is proportional to
the size of characters. These proportional fonts produce text that is easier to read. However, in order to align the right margin, you must use software that supports the printing
systems proportional spacing.
1-8
Basic Concepts
Font height
Baseline
Paths
A path is a set of straight and curved line segments. Paths can be open, as in the case of
lines, or closed, as in the case of rectangles, circles, or any fully enclosed area of any
shape. The segments may be connected with one another, or they may be disconnected.
Further, a path may contain multiple closed subpaths, representing several areas, and
they may intersect themselves in arbitrary ways.
Paths can be used to draw lines and curves or specify boundaries of filled areas, including the outline of a character.
Paths are explained more fully in section Path Mode Graphics on page 16.
1-9
(0,0)
= Logical page
Path Mode
y
With the standard mode logical page, any position specification that lies outside of the
logical limits is automatically adjusted to bring it within the limits. For example, the
page on the upper left in the preceding figure shows what happens if you attempt to draw
a diagonal line from below the bottom edge limit to a point to the right of the right edge
limit when the standard mode logical page is used. The fine line represents the line as
specified by the user; the thick line shows what is actually drawn by the printing system.
With the path mode logical page, coordinates are not adjusted even if they fall outside of
the edge limits. In this case, as shown in the lower right page in the preceding figure, the
line is defined by the specified starting and ending points, but parts falling outside of the
edge limits are clipped.
Command Parameters
Numeric Parameters
Many of the PRESCRIBE commands use number values to specify parameters. For
example, numbers are used to specify distances in inches, centimeters, points, or dots.
Negative numbers are also allowed.
1-10
Command Parameters
For computer code values beyond four decimal places, the fifth and subsequent decimal
places are ignored.
Examples:
Number output by computer
1234.1234
-1234.1234
0.123456
Some commands have angle parameters. Angles are specified in degrees. (The printing
system does not recognize radians). The printing system rounds off all angles to the nearest integral degree. Only angles in the range from -360 degrees to 360 degrees are recognized. Angles less than -360 degrees are ignored, and angles greater than 360 degrees are
treated as the remainder of the angle divided by 360.
Examples:
Angle output by computer
90
-90
90.4
90.5
-400
The printing system does not accept the exponential notation used in some computer languages. For example, do not specify 1E-3 instead of 0.001.
Character Strings
PRESCRIBE text-printing commands have parameters that consist of character strings.
A character string is any string of characters enclosed by quotation marks or apostrophes,
such as shown in the example below.
TEXT You are about to enter PRESCRIBE.;
PRESCRIBE allows character strings to be enclosed in either single quotation marks
(apostrophes) or double quotation marks. The following example has exactly the same
meaning as the one above.
TEXT "You are about to enter PRESCRIBE.";
The beginning of a character string is recognized when the first single or double quotation mark appears. If the beginning quotation mark is a single quotation mark, the string
does not end until the next single quotation mark. If the beginning quotation mark is a
double quotation mark, the string does not end until the next double quotation mark.
Whatever comes in the middle of a character string, including commas, semicolons, and
even PRESCRIBE command names, is recognized as part of the character string, and not
as part of the PRESCRIBE command language. For example, the expression EXIT; in
the following string is just text; it does not cause the printing system to exit from the
PRESCRIBE mode.
TEXT NO EXIT; NO RETURN.;
When the string itself contains one type of quotation mark, the quotation mark must be
enclosed in quotes of the other type. Here are two examples:
1-11
1-12
Command Parameters
Each of these commands prints the capital letter A inside a circle. In the printout shown
above, the unit is centimeters. The reason that the letter A is off center in the circle is
that the cursor is not located at the center of the circle, but at left corner of the letter A.
The command
!R! TEXT a; CIR 1; EXIT;
prints a lowercase a because the letter occurs inside a character string.
The sole exception to upper and lowercase usage in PRESCRIBE commands occurs with
the initializing !R! command. This command must always use an uppercase R. The printing system will not enter the PRESCRIBE mode in response to !r!.
In this manual, PRESCRIBE commands are printed in upper-case for readability.
Outside of PRESCRIBE mode, the printing system always distinguishes between uppercase and lowercase letters and prints exactly what is sent.
Special Parameters
Some PRESCRIBE commands use unquoted strings of characters as parameters. Examples for these are the FSET (change current font set by characteristic) command and the
CSET (change symbol set by symbol-set ID) command. (See Chapter 4 for a detailed
explanation of how these commands are used to select fonts.)
The FSET and CSET commands use parameters that closely resemble the command
parameters used for font control in Hewlett-Packards printer control language. For
example, the PRESCRIBE command
FSET 0p12h12v0s0b6T;
selects the font whose characteristics most closely matches the following font parameters:
1-13
Similarly, the PRESCRIBE command CSET 11U; designates use of the PC-8 Danish/Norwegian symbol set. The corresponding Hewlett-Packard PCL command is
ESC(11U.
1-14
Chapter 2
Graphics Tutorial
PRESCRIBE provides a wide variety of graphics operators, allowing you to easily construct and print almost any imaginable shape or pattern.
This chapter introduces the various graphics concepts of PRESCRIBE, and illustrates
how to use many of its graphic functions. It defines standard graphics mode, path mode
graphics, and raster graphics. It explains how to use predefined fill patterns, how to
define your own fill patterns, and introduces ways in which you can change the print
model, the rules that determine the manner in which patterns and images are rendered on
the paper.
Standard Graphics
The standard graphics mode provides a number of operators for constructing a variety of
filled shapes and lines. Using standard mode graphics, you can:
This is referred to as the standard graphics mode because it is a standard feature of all
versions of PRESCRIBE.
Drawing Lines
PRESCRIBE provides a number of Draw to commands for drawing lines in both standard and path modes. These include:
DAP (draw to absolute
position)
Draws a line to an absolute position in a Cartesian coordinate system whose origin (0,0) is at the intersection of
the left and top margins.
DZP (draw to zero-relative
Draws a line to an absolute position in a Cartesian coorposition)
dinate system whose origin (0,0) is at the intersection of
the left and top edge limits of the paper.
DRP (draw to relative position) Draws a line to a position specified as a horizontal and vertical displacement from the current cursor position.
DRPA (draw to relative
Draws a line to a position that is specified as a distance and
position specified by angle)
angle from the current cursor position. Examples of these
commands are given in the sections that follow.
2-2
Edge limits
Margins
DAP 2, 0.5;
MAP 0.5, 1;
The initial !R! command switches the printing system to the PRESCRIBE mode.
Remember that this command must always precede each sequence of PRESCRIBE commands.
The RES (RESet) clears the current page from printing system memory and re-establishes the printing systems permanent defaults. Although you would not include this
command in every sequence of PRESCRIBE commands, we include it in this example to
ensure consistent results. As a standard practice, include the RES at the beginning and
end of each job.
The STM and SLM set both the top and left margins to 0.5 inches (1.27 centimeters).
The SPD (Set Pen Diameter) command determines the thickness of lines. In the standard
graphics mode, this setting determines the thickness of all lines drawn after the command
is issued. In this example, the line width is set to 0.01 inches.
The starting point of the line is established with the MAP (Move to Absolute Position)
command. This command moves the cursor to a point that is a specified distance from
the top and left margins. In this example, the point specified is 0.5 inches from the left
margin and 1 inch from the top margin.
If the margins are changed, the position specified by MAP also changes correspondingly.
On the next line of the program, the DAP (Draw to Absolute Position) command draws a
line from the starting position to the point 2 inches from the left margin and 0.5 inches
from the top margin.
Finally, PAGE; prints out the page, allowing us to look at the result of our work.
Zero-relative Lines
The line draw example below uses some new commands to draw another line.
!R! RES;
SPD 0.01;
MZP 0.5, 1;
DZP 2, 0.5;
PAGE;
EXIT;
2-3
Edge limits
DZP 2, 0.5;
MZP 0.5, 1;
The first two lines switch the printing system to the PRESCRIBE mode, reset printing
system parameters, and set the line width to 0.01 inch. On the third line, the MZP (Move
to Zero-relative Position) differs from the MAP (Move to Absolute Position) command
in one respect: the position specified is in relation to the top and left edge page limits of
the page, rather than in relation to the top and left page margins. MZP moves the cursor
to the point that is 0.5 inches from the left edge limit and 1 inch from the top edge limit.
Similarly, on the next line, DZP (Draw to Zero-relative Position) draws a line from the
starting position to the point 2 inches from the left edge limit and 0.5 inches from the top
edge limit.
Relative Lines
Another way to specify positions is in relation to the current cursor position. The following command sequence provides an example.
!R! RES;
SPD 0.01;
MRP 2, 1;
DRP -1.5, -1;
MRP 2, 1;
DRP -1.5, -1;
MRP 2, 1;
DRP -1.5, -1;
PAGE;
EXIT;
2-4
In this command sequence, the PRESCRIBE mode begins with the !R!, resets the printing system defaults to permanent settings with RES;, and establishes a pen width of 0.01
inches with the SPD 0.01;.
The MRP (Move to Relative Position) and DRP (Draw to Relative Position) specify
positions in relation to the cursors current position.
When the command sequence starts, the cursor is located at the intersection of the left
and top margins. The command MRP 2, 1; on line 3 moves the cursor 2 inches to the
right of its current position, and down 1 inch from its current position. Then the command DRP -1.5, -1; draws a line from that point to a point 1.5 inches to the left of the
cursor position and 1 inch above it. The cursor winds up 0.5 inches to the right of the
point where it started.
Lines 5 to 8 repeat the move-and-draw sequence two more times. This produces three
parallel lines, as shown in the figure on the previous page.
2-5
The first two lines of this command sequence initiates the PRESCRIBE mode, resets
printing system defaults to permanent settings, and sets the line width to 0.01 inches.
Then the MZP command on line 3 moves the cursor to a point 5 inches to the right of the
left edge limit and 4 inches below the top edge limit.
Next, DRPA 2, 149; on line 4 draws a line two inches long at an angle of 149 degrees.
The angle is measured clockwise from the vertical axis. The subsequent DRPA commands draw additional 2-inch lines at angles that increase in increments of 72 degrees.
As indicated by the CMNT (CoMmeNT) commands, angles that exceed 360 degrees are
equivalent to the remainder of division of the angle by 360.
Drawing Boxes
The BOX (draw box) command draws a box of a specified width and height. As with the
line drawing commands, the thickness of the line used to draw the box is determined by
the SPD (set pen diameter) command.
The following command sequence draws a box.
!R! RES;
UNIT C;
SPD 0.1;
MZP 3, 3;
BOX 3, 4;
PAGE;
EXIT;
2-6
Line 1 places the printing system in the PRESCRIBE mode and resets printing system
parameters. The UNIT C; command on the second line sets the unit of measurement to
centimeters, and the SPD (Set Pen Diameter) command on line 3 sets the line width to
0.1 centimeters. (If you omit these two commands, the printing system will print using
the default unit, inches; and the default line width, 3 dots.)
Next, the MZP command on line four moves the cursor to the point that is 3 centimeters
to the right of the left edge limit and 3 centimeters below the top edge limit. This is the
starting point from which the box is drawn.
On line 5, BOX 3, 4; draws a box with a width of 3 centimeters and a height of 4 centimeters.
The position of the box with respect to the cursor depends on the positive or negative
value specified for width and height. The box is drawn to the right of the cursor if width
is positive, and to the left of the cursor if width is negative. Similarly, the box is drawn
below the cursor if height is positive, and above the cursor if height is negative. This
relation is illustrated in the figure that follows.
By default, the position of the cursor is not affected by this command. However, you can
also specify an option parameter to make the cursor move to an adjacent or diagonally
opposite corner of the box, down by one text line, or to the left margin on the next text
line. The following figure shows some examples.
2-7
Cursor position
-Y
-X
X
BOX 4, 2, V; Moves the cursor to
the vertically adjacent corner
Left margin
2-8
Drawing Circles
The CIR (draw circle) command draws a circle of a specified radius using the line thickness set by the SPD (set pen diameter) command. The circle drawn is centered on the
current cursor position; the position of the cursor remains unaffected. See the following
example:
!R! RES;
UNIT C;
SPD 0.1;
MZP 8, 8;
CIR 1;
CIR 2;
CIR 3;
PAGE;
EXIT;
Figure 2. 7. Circles
Lines 1, 2 and 3 start PRESCRIBE mode, reset the printing system to its default parameters, establish the unit of measurement as centimeters, and set the line width to 0.1 centimeters.
Next, the MZP command moves the cursor to the point that is 8 centimeters to the right
of the left edge limit and 8 centimeters below the top edge limit.
Lines 5, 6, and 7 draw three circles with radii of 1, 2, and 3 centimeters.
2-9
A filled block consists simply of a rectangle of any desired dimensions. A filled arc is an
area enclosed by an arc segment and the line segments extending from the ends of the arc
to the center of the circle of which the arc is a part.
This section shows how to select a fill pattern and print a filled block or arc.
Lines 1 and 2 put the printing system in the PRESCRIBE mode, reset printing system
parameters and set the unit of measurement to points. (One point is equal to 1/72 inches.)
Next, the MZP command moves the cursor to the position 72 points to the right of the
left edge limit and 72 points below the top edge limit.
The PAT (select fill PATtern) command on line 4 of the program selects the fill pattern.
In this program, pattern number 6 is selected.
You can select from among any of the printing systems 60 predefined fill patterns or
choose to define a pattern using the XPAT (generate eXpanded PATtern) command. In
either case, the selection is made with the PAT command. For 1200-dpi and 600-dpi
models, the user can define the printing resolution (300, 600, 1200 dpi) of the pattern by
giving a second parameter to the PAT command.
You can also select a shade of gray for filling the arc or block by using the GPAT (set
Gray PATtern) command.
It is possible to apply a color to a pattern specified using PAT, FPAT, GPAT or XPAT.
Note, however, that this may not always result in the exact same pattern as printed in
monochrome.
The way a color looks may differ when used for different patterns even though the same
color has been specified.
2-10
The BLK (draw filled-in BLocK) command on line 5 actually draws the filled in block.
This command closely resembles the BOX command explained in the preceding section.
However, whereas the BOX command draws a line around a rectangular area, the BLK
command fills a rectangular area with the currently selected pattern.
As with the BOX command, the position of the rectangular area with respect to the cursor depends on the sign of the values specified for width and height. The box is drawn to
the right of the cursor if width is positive, and to the left of the cursor if width is negative; and the box is drawn below the cursor if height is positive, and above the cursor if
height is negative.
As with the BOX command, you can specify an option parameter to make the cursor
move to a specified location after the box is drawn. (The cursor remains unmoved if the
option parameter is omitted.) Values for this option are H, V, E, L, N, and B, the same as
for BOX.
The ARC command on line 8 of the command sequence draws an arc with an inner
radius of 1 centimeter, an outer radius of 2 centimeters, a starting angle of 0 (straight up),
and an ending angle of 90 degrees.
The ARC command does not draw a line around the boundary of the filled-in area.
2-11
128
64
32
16
1
= 16
= 40
= 68
= 130
= 65
= 34
= 20
= 8
For this pattern, the numbers across the top indicate the value of each column. The numbers down the right side are the sums of the values of columns that contain black dots in
that row.
Once this pattern has been defined by the FPAT command, it is used as the fill pattern
until printing system parameters are reset with RES, another pattern is selected with PAT,
a different pattern is defined with FPAT, or a shade of gray is defined and selected by
GPAT.
Now lets look at an example using the XPAT command.
The XPAT command uses the format
XPAT pattern-number; bit map;
Note that the pattern-number parameter must be a value from 100 to 105 and followed
by a semicolon, not a comma.
The following example demonstrates the XPAT command in a PRESCRIBE command
sequence.
2-12
!R! RES;
XPAT 100;
@X0@ | 0Af0CC0FA8L@<X@6p@3p@3X@6L@<FA8CC0Af0@ | 0@X0;
MZP 1, 1;
PAT 100;
BLK 1, 1;
PAGE;
EXIT;
Lines 2 and 3 define the pattern shown in the figure on the next page, defining it as pattern 100. The PAT command on line 5 selects the pattern for use in fills. Line 6 prints the
filled block.
Figure 2. 11. Dot Pattern and a Filled Block
16 bits
32
16
6 bits (x)
+
64
32
16
6 bits (y)
+
64
4 bits (z)
+
48
The pattern is 16 dots high and 16 dots wide, and is encoded as a series of 16-bit words.
Each 16-bit word is encoded by three characters, representing the most significant six
bits, the next six bits, and the least significant four bits, respectively, as shown on the
next page.
You obtain the characters that define the pattern by dividing each row-work into sections
of six, six, and four bits, calculating the numerical value of each section (referred to as x,
y, and z, respectively), treating it as a binary number in which the white dots are zeroes
and the black dots are ones. Then add 64 (decimal) to the values of the 6-bit sections and
48 to the values of the 4-bit sections. The result is the ASCII code of the character that
represents that section.
2-13
Column value
0+64=64 (@) 24+64=88 (X) 0+48=48 (0)
0+64=64 (@) 60+64=124 (|) 0+48=48 (0)
1+64=65 (A) 38+64=102 (f) 0+48=48 (0)
3+64=67 (C) 3+64=67 (C) 0+48=48 (0)
6+64=70 (F) 1+64=65 (A) 8+48=56 (8)
12+64=76 (L) 0+64=64 (@) 12+48=60 (<)
24+64=88 (X) 0+64=64 (@) 6+48=54 (6)
48+64=112 (p) 0+64=64 (@) 3+48=51 (3)
48+64=112 (p) 0+64=64 (@) 3+48=51 (3)
24+64=88 (X) 0+64=64 (@) 6+48=54 (6)
12+64=76 (L) 0+64=64 (@) 12+48=60 (<)
6+64=70 (F) 1+64=65 (A) 8+48=56 (8)
3+64=67 (C) 3+64=67 (C) 0+48=48 (0)
1+64=65 (A) 38+64=102 (f) 0+48=48 (0)
0+64=64 (@) 60+64=124 (|) 0+48=48 (0)
0+64=64 (@) 24+64=88 (X) 0+48=48 (0)
If the character resulting for section x of any row is @ (indicating that all bits in that section are white), then that character may be omitted. If sections x and y are both @, then
both characters may be omitted. However, if the result for section y is @ and that for section x is a character other than @, then no characters may be omitted. In terms of the program example above, what this means is that the bit map string,
@X0@ | 0Af0CC0FA8L@<X@6p@3p@3X@6L@<FA8CC0Af0@ | 0@X0;
may be shortened by four characters to:
X0 | 0Af0CC0FA8L@<X@6p@3p@3X@6L@<FA8CC0Af0 | 0X0;
Patterns defined by the XPAT command remain effective until they are redefined by
another XPAT command, or until the printing system is turned off.
2-14
2-15
This program first draws four filled arcs, each using a different fill pattern, then prints
the pie chart over the arcs. Each arc has an inner radius of zero, an outer radius of 2 (the
same as the pie chart), and a starting angle and ending angle that correspond to the relative size of the pie slices. Since the total size of the pie slices in the example is 100
(10+20+30+40), the angular extent of each arc is equal to 360 x size of slice /100. For
example, the angular extent of the first arc is 360 x 10 /100 = 36 degrees. The starting
angle of each arc equals the starting angle of the pie chart (0 degrees), plus the angular
extent of all the preceding arcs. The ending angle equals the starting angle plus the angular extent of the arc.
Path
In PRESCRIBE, a path is a set of straight or curved line segments, either connected or
disconnected, that describes the shape and position of one or more objects or regions.
Paths can be used to draw lines and curves and to specify boundaries of filled areas.
A path is stroked by drawing a line of arbitrary width along it. The line may be solid
black, all white, or any intermediate shade of gray. It may also be a dashed line of any
pattern of segment lengths.
A path is filled by painting the entire area that it encloses with a gray scale pattern, ranging from black to white, or with one of the printing systems predefined patterns. In order
to be filled, a path must be closed; that is, it must return to its starting point.
A path is constructed by means of one or more path construction operators. The path
construction operators modify the current path, usually by appending to it. However, a
path in itself does not produce any image on the page. Once a path has been constructed,
it can be used to control the application of one of the painting operators of PRESCRIBE,
defining the boundary of the area in which images can be printed.
2-16
There are no restrictions on the shape of a path. A single path may include multiple
closed subpaths, representing several areas, and a path may intersect itself in an arbitrary
manner.
The order of the segments that define a path is significant. A pair of line segments is said
to connect only if they are defined consecutively, with the second segment starting where
the first one ends. Non-consecutive segments that meet or intersect fortuitously are not
connected.
A subpath is a sequence of connected segments. A path is made up of one or more subpaths. Subpaths may be either open or closed.
Path construction begins with a NEWP (NEW Path) command. Path construction ends
with the CLSP (CLoSe Path) command or with any paint operator that paints the region
enclosed by the path or draws a line along it (such as STRoKe or FILL).
2-17
Drawing Lines
The following example shows how to draw a line in the path mode.
!R! RES;
NEWP;
PMZP 1, 1;
PDZP 2, 3;
STRK;
PAGE;
EXIT;
Figure 2. 14. Drawing Lines in Path Mode
(1, 1)
(2, 3)
Line 1 of the program switches the printing system to the PRESCRIBE mode and resets
printing system parameters, including the unit (to inches), line width (to 3 dots), and various other aspects of the graphics state.
Path construction begins with the NEWP command on line 2. This command empties the
current path (if any), making it possible to start a new one. In doing so, it makes the position of the cursor undefined.
The PMZP (Path, Move to Zero-relative Position) command on line 3 moves the cursor
to a position one inch from the top and left edge limits of the paper. The coordinates
specified may be positive or negative.
On line 4, the PDZP (Path, Draw to Zero-relative Position) draws a line from the current
cursor position to the position 2 inches from the left edge limit and 3 inches from the top
edge limit. The cursor remains at this position after the line is drawn.
On line 5, the STRK command strokes the path onto the page.
After stroking the current path, the STRK command clears the path in the same manner
as NEWP (start NEW Path).
Finally, PAGE prints out the page, allowing us to look at the result of our work and cancelling all changes made during the course of the program, then EXIT ends the PRESCRIBE mode.
2-18
Two Lines
The preceding example illustrated construction of a path between points specified in
terms of absolute coordinates. The following program draws two lines, using both absolute coordinate specification and a new method: relative coordinate specification.
!R! RES;
NEWP;
PMZP 1, 1;
PDZP 2, 3;
PMRP .5, -1;
PDRP -1, -1;
SPD 0.04;
STRK;
PAGE;
EXIT;
Figure 2. 15. Drawing Two Lines
(1, 1)
(-1, -1)
(0.5, -1)
(2, 3)
The first four lines of this program are identical to the preceding example. Line 1
switches the printing system to the PRESCRIBE mode and resets printing system parameters, line 2 empties the current path, and lines 3 and 4 draw a line between two points
that are specified in terms of absolute coordinates.
On line 5, the PMRP (Path, Move to Relative Position) command moves the cursor to the
point half an inch to the right and one inch above the current cursor position; that is, the
point at which the first line ends. Then the PDRP (Path, Draw to Relative Position) command on line 6 draws a line to the point 1 inch to the left of the new position and 1 inch
below it.
The line thickness is changed to 0.04 inches by the SPD command on line 7.
Finally, the STRK command on line 8 strokes the path onto the page, PAGE prints out
the page, and EXIT ends the PRESCRIBE mode.
2-19
Line Ends
The line end type determines how PRESCRIBE renders the ends of lines when they are
stroked onto the page. PRESCRIBE provides three kinds of line ends. These include:
Figure 2. 16. Line Ends
Square caps
Butt caps
Round caps
The default line end type is butt caps. You can switch from the current line end type to
any of the other types with the SCAP command. This command uses the following format:
SCAP line-cap mode;
Values for line-cap mode include:
1 (for square caps)
2 (for butt caps)
3 (for round caps)
Use of this command is illustrated in the following example.
!R! RES;
UNIT C; CMNT Sets unit to cm;
NEWP; CMNT Starts new path;
SPD .5; CMNT Sets line width to .5 cm;
SCAP 1; CMNT Sets square caps;
PMZP 2, 2;
PDZP 4, 4;
SCAP 3; CMNT Sets round caps;
STRK;
PAGE;
EXIT;
Figure 2. 17. Printout of SCAP Example
Note that the line is rendered with round caps, rather than with square ones. Although
square caps is set before constructing the path, the line type is changed to round prior to
2-20
stroking the path. PRESCRIBE refers to the line cap type when the current path is
stroked onto the page, rather than while the path is being constructed. Therefore, the program above renders the line with round caps rather than square ones.
Line Joins
When a path consists of multiple connected line segments, the manner in which they are
stroked onto the page depends on the current line join type.
PRESCRIBE provides four types of line joins. These are called beveled, mitered, round,
and notched. These are illustrated below.
Figure 2. 18. Joins
Beveled join
Mitered join
Round join
Notched join
The default line join type is beveled. With beveled joins, connected line segments end
with butt caps, and the notch at the larger angle between the segments is filled with a triangle.
With mitered joins, the edges of connected line segments are extended until they meet.
This type of join is limited by the miter limit (explained below).
With round joins, connected line segments are joined with circular caps.
Notched joins leave a notch at the larger angle between the connected line segments.
You can switch from the current line join type to any of the other types with the SLJN
(Set Line JoiN) command. This command uses the following format:
SLJN line-join mode;
Values for line-join mode include:
1 (for beveled joins)
2 (for mitered joins)
3 (for round joins)
4 (for notched joins)
Miter Limit
When using mitered line joins, the use of such joins is limited by the miter limit. The
miter limit is the maximum ratio of the distance l between the inner and outer corners of
a mitered join and the width w of the lines joined.
2-21
W = line width
L = miter length
appox. angle
60
39
29
23
19
16
14
13
Dash Type
By default, the STRK command strokes paths with solid lines. However, you can also
use a predefined pattern of alternating black and white to stroke paths. This makes it possible to stroke paths as dashed lines. You can also define your own dashed line patterns.
The DPAT (select Dash PATtern) command selects one of PRESCRIBEs ten predefined
dash patterns, or one of 10 dash patterns that you can define yourself. This command
uses the format:
DPAT pattern-number;
2-22
In this program, the DPAT command selects the dash pattern with which the line is
stroked.
Predefined dash patterns are selected by specifying values from 1 to 10 for pattern-number. (A value of 1 specifies solid lines.) User-defined patterns can be selected by specifying values from 11 to 20. The next section explains how to use the SDP (Store Dash
Pattern) command to define your own dash patterns. Specifying an undefined user pattern number results in solid black lines.
2-23
The SDP command on line 3 defines a dashed pattern consisting of two lengths of black,
two lengths of white, five lengths of black, and two lengths of white. On line 11, the
DPAT command selects this pattern for stroking. The path defined by the PMZP (Path,
Move to Zero-relative Position) and PDZP (Path, Draw to Zero-relative Position) commands is stroked using this pattern, with a result as shown in the figure above.
The SDP command uses the general format:
SDP pattern-number, dash1, space1, dash2, space2, ..., dash10, space10;
The value specified for pattern-number must be in the range from 11 to 20. Dash and
space lengths are specified in pairs. Up to ten dash-space pairs can be specified. The dash
length always comes first in each pair. If a pattern is to begin with a space, then specify 0
for dash1. However, if a pattern ends with a dash, the following space parameter can be
omitted.
Dash patterns defined with this command remain valid until redefined with another SDP
command, or until the printing system is turned off.
2-24
After the arc is drawn, the cursor is located at the end of the arc.
If you wish to eliminate the straight line segment in the above example, leaving only the
arc, the cursor position must be moved in advance to the position at which drawing of the
arc begins. This is shown in the following example, in which the cursor is moved to the
coordinates as specified by the PMRA (Path, Move to Relative position specified by
Angle) command prior to drawing the arc.
!R! RES UNIT C; NEWP; SPD .1;
PMRA 5, 5, 3, 45;
PARC 5, 5, 3, 45, 135;
STRK;
PAGE;
EXIT;
In this current example, the PMRA command moves the cursor from coordinates 5, 5, as
measured from the left and top edge limits of the page, through the distance of 3 centimeters at the angle of 45 degrees from the positive x axis. At this point, the PARC command starts to draw the arc which ends at the angle of 135 degrees.
Figure 2. 23. Printout of the PMRA Example
Circles can be constructed by drawing arcs with angular extents of 360 degrees. To draw
a circle, you will also need a PMRA command to eliminate the line extending from the
center of the circle to the beginning of the circle. See the following example:
!R! RES; UNIT C; NEWP; SPD .1;
PMRA 3, 3, 1.5, 0;
PARC 3, 3, 1.5, 0, 360;
STRK;
PAGE;
EXIT;
2-25
x3, y3
Current position
x1, y1
x3, y3
Current position
x2, y2
x2, y2
x1, y1
Current position
x3, y3
A Bzier curve segment is one that is geometrically defined by a starting point (the cursors current position), two control points (x1, y1 and x2, y2), and an ending point (x3,
y3). Coordinates of each of these points are specified as an offset from the cursors previous position.
2-26
The curve leaves the current position in the direction of x1, y1, and is tangent to the line
between the current position and x1, y1. It bends towards x2, y2, then to x3, y3, and at the
end point, is tangent to the line between x2, y2 and x3, y3. The curve is always entirely
enclosed by the complex quadrilateral defined by the starting point, x1, y1, x2, y2, and
x3, y3.
See the following examples:
!R! RES; UNIT C; NEWP; SPD .1;
PMZP 3, 3;
PCRP 4, 2, 5, 1.5, 6, 1.8;
STRK;
PAGE;
EXIT;
Figure 2. 26. Printout of the PCRP Example
2-27
2-28
Both of these programs draw an identical curve. The only difference between the two is
in the flatness, which is specified on line 2.
Closed Paths
When the end point of a path connects to its starting point, the path is said to be closed. A
closed path can be stroked, in the same manner as an open path, or it can be filled with
gray-scale shading or a standard mode fill pattern.
Simply ending a path at the paths starting point does not make it a closed path; such a
path remains open until it is closed. Closure can be done either explicitly, by means of
the CLSP (CLoSe current Path) command, or implicitly by means of the FILL command.
The following example illustrates construction and closure of a path.
!R! RES; UNIT C; NEWP; SPD .5;
PMZP 4, 2;
PARC 3, 3, 1, 90, 270;
PARC 5, 3, 1, 270, 90;
CLSP;
STRK;
PAGE;
EXIT;
In this example, the PMZP command on line 2 places the current cursor at coordinates 4,
2, where the subsequent PARC command automatically starts to draw a line extending to
the beginning of the arc. The PARC command then draws an arc from 90 degrees
(straight up) to 270 degrees (straight down) around the center at coordinates 3, 3. After
the arc is drawn, the cursor is located at the end of the arc. Then the PARC command on
line 4 draws an arc from 270 degrees to 90 degrees around the center at coordinates 5, 3.
Because the cursor position is defined at the end of the first arc when construction of the
second arc starts, the second PARC command draws a line between the end of the first
arc and the beginning of the second one. Finally, the CLSP command on line 5 explicitly
closes the path, thereby constructing a line between the end of the second arc and the
beginning of the first one.
Now the path has been closed. The STRK command goes on to stroke the path, producing the shape shown below.
2-29
Filled Areas
!R! RES; UNIT C;
NEWP;
GPAT .5;
PMZP 4, 2;
PARC 3, 3, 1, 90, 270;
PARC 5, 3, 1, 270, 90;
FILL 1;
PAGE;
EXIT;
This program is similar to the previous one. In this case, we choose to fill the path
instead of stroking it. We select a shade of gray for filling the path (.5, a value directly
between black and white) with the GPAT (set Gray PATtern) command on line 3.
First, we construct the path by drawing arcs around the center points. However, we will
not close it explicitly.
Then we execute the FILL command. This implicitly closes the path, drawing a line
between the ending point of the second arc and the starting point of the first one, then
fills the closed path with the selected gray scale pattern.
Note that we could have filled the path with a standard mode fill pattern instead of a
gray-scale pattern. The only change necessary would be to replace the GPAT command
on line 3 with a PAT or FPAT command specifying the pattern to be used.
The format of the FILL command is
FILL rule;
The rule parameter specifies the convention according to which the path is filled.
2-30
With simple convex paths such as that shown below, the entire enclosed area is filled.
Figure 2. 32. Simple Filled Paths
However, when a path consists of multiple closed subpaths or intersects itself as shown
in the next two figures, the rule determines areas that are deemed to be inside the path.
!R! RES;
PMZP
PMRA
PARC
PMRA
PARC
PMRA
PARC
FILL
UNIT C;
5, 5;
5, 5, 2, 0;
5, 5, 2, 0, 360;
5.2, 5.2, 1.5, 0;
5.2, 5.2, 1.5, 0, 360;
5.5, 5.5, 1, 0;
5.5, 5.5, 1, 0, 360;
1;
2-31
With 1 specified for the rule parameter of FILL, the method for determining whether a
point is inside the path involves drawing a ray from that point in any direction and counting the number of times the ray crosses segments of the path. The point is said to be
inside the path if the result is an odd number; if the result is an even number, the point is
said to be outside the path.
The non-zero winding rule also draws a ray from a point in any direction to determine
whether or not that point is inside the path and examines the points where a segment of
the path crosses the ray. However, it then starts counting from zero and adds one each
time a segment in the path crosses the ray from left to right; and subtracts one each time
a segment in the path crosses the ray from right to left. If the result of counting all the
crossings is zero, the point is said to be outside; otherwise the point is said to be inside
the path.
After filling the current path, the FILL command clears the path in the same manner as
NEWP.
Clipping Rectangle
Up to this point, we have discussed graphics objects to be drawn or stroked or filled as
paths. However, another PRESCRIBE command can be used to define a clipping template for clipping texts, paths, and raster graphics. For this purpose, the CLPR (CLiP
Rectangular region) command is provided to define the rectangular region for clipping
paths.
When the printing system is turned on or reset with PRESCRIBEs RES command, the
clipping rectangle is identical to the printable limits of the page. Subsequently, executing
the CLPR command reduces the clipping rectangle to the intersection of the objects on
the page and the rectangle defined by CLPR.
The following is an example of CLPR.
!R! RES; UNIT C;
NEWP;
SPD 1;
PMRA 6, 9, 3, 0;
PARC 6, 9, 3, 0, 360;
CLPR 3, 6, 9, 12;
STRK;
EXIT;
In this example, lines 1 through 5 draw a circle with an extra line thickness at the coordinates defined by the PMRA command.
The CLPR command on line 6 constructs a rectangle with its left-upper corner positioned at coordinates 3, 6 and its right-bottom corner positioned at coordinates 9, 12
(both measured from the top and left edge limits of the page).
As with the rectangular area clipping, those parts of the circle that lie outside of the clipping rectangle are erased when the path is stroked, producing the result as shown in the
figure on the next page.
The rectangle defined by CLPR does not clip the graphics objects which are drawn by
the standard mode graphics commands.
2-32
Line 2 of this program sets the unit to printing systems points (1 point= 1/72 inch), then
the NEWP command on line 3 empties the current path (if any), making ready for construction of a new path. The PAT command on line 4 selects predefined pattern number
26 as the current fill pattern.
2-33
Next, the SFNT (Select current FoNT by typeface) on line 5 selects Helvetica Bold, a
scalable (outline) font as the current font and scales the font to a height of 54 points. Use
of SFNT and other font selection commands are explained more fully in PRESCRIBE
Commands Command Reference.
The PMZP command on line 6 moves the cursor to the point that is 72 points (1 inch)
from the left edge limit and 2 inches from the top edge limit.
The CPTH command on line 7 constructs a path using the outline of the characters in the
string xyz. The cursor is moved to the end of the string.
Finally, the FILL command fills the path with the selected pattern, and PAGE prints out
the page.
Raster Graphics
While the graphics commands of the standard and path modes draw shapes such as lines,
circles, and boxes, raster graphics commands specify individual dots to draw images.
The dot resolution is selectable from 75 to 300 dots per inch for all models; and 600-dpi
models have two more choices of 200 dpi and 600 dpi. Lower resolutions give a rougher
appearance, but require less raster data for an image of a given size.
Raster graphics are limited in size only by the dimensions of the paper, and in complexity only by the dot resolution.
2-34
Raster Graphics
The principle function of the SRO command is to specify the presentation mode; i.e., the
orientation of the raster image. If the presentation mode is 0 (the default mode), raster
lines print along the width of the physical page, regardless of the current page orientation. If the presentation mode is 1, raster lines print in the orientation of the logical page.
This is illustrated in the figure that follows.
2-35
X
Current point
Width
Current point
Height
Width
Height
Landscape
Portrait
Presentation mode = 1
X
Current point
Current point
Y
Width
Width
Height
Height
Portrait
Landscape
A secondary function of the SRO command specifies the width and height of the raster
area. When a width and height are explicitly specified, any part of the raster image that
extends outside of the area is clipped.
The STR command specifies the resolution at which raster data is printed. The default
resolution is 75 dots per inch, or the equivalent of 16 physical dots for each raster-line
dot. The following figure shows how a single raster-line dot correlates to physical dots at
each of the available raster data resolutions.
Figure 2. 37. Dot Resolutions
75 dpi resolution
(Default)
The RVRD and RVCD commands print raster data in the presentation mode specified by
the SRO command and at the resolution specified by the STR command. Either command can be used. The RVRD command can only print uncompressed raster data. The
RVCD command can print uncompressed raster data, run-length encoded raster data, or
2-36
Raster Graphics
tagged image file format raster data. Both commands are used with the ENDR (END
Raster) command.
2-37
PRESCRIBE establishes the printing systems imaging model with the SIMG (Set
IMaGe model) command. This command uses the following format.
SIMG operation-mode;
operation-mode is a number from 1 to 6 that determines the image model as follows.
Operation mode Source image Pattern
1
Transparent
2
Opaque
2-38
Raster Graphics
3
4
5
6
Transparent
Transparent
Opaque
Opaque
Transparent
Opaque
Transparent
Opaque
With operation modes 1 and 2, the SIMG command addresses the transparency of the
source image only. For operation mode 1, the white pixels of the source image do not
overlay on the destination. For example, you cannot pattern a character. With operation
mode 2, the SIMG command applies the white pixels of the source image onto the destination directly.
The following program example illustrates use of the SIMG command. Try changing the
value specified for SIMG on line 3 and see the effect on the result (the figure on the previous page).
!R! RES; UNIT C;
NEWP;
SIMG 3; CMNT Try changing this value;
PMZP 5, 15;
PMRP 2, 2;
PDRP 0, -2, 2, 0, 0, 2, -2, 0;
PDRP -2, 0, 0, 2, 2, 0, 0, -2;
FILL 1;
SFNT TimesNewRoman, 90;
PMRP -1.2, 1;
GPAT .6;
TEXT A;
FILL 1;
PAGE;
EXIT;
While working with graphics, there often are occasions when it is useful to save the
graphics state, then later to restore it. One such situation occurs when a path must be
used for both stroking and filling.
2-39
For example, construction of a filled and outlined shape such as that shown below
requires that we draw the path and then fill it. However, filling the path also clears it,
making it unavailable for stroking.
Figure 2. 39. A Path both Stroked and Filled
By saving the graphics state prior to filling the path, it becomes possible to restore the
path after it has been filled, thereby allowing it to be stroked without reconstructing it.
The commands used for saving and restoring the graphics state are the SCG (Save Current Graphics state) command and the RPG (Return to Previous Graphics state) command.
The following program demonstrates the commands for constructing a path that is both
filled and stroked.
!R! RES; UNIT C; NEWP;
PMZP 4, 2;
PARC 3, 3, 1, 90, 270;
PARC 5, 3, 1, 270, 90;
CLSP;
SCG;
STRK;
RPG;
GPAT .5;
FILL 1;
PAGE;
EXIT;
The result appears in the figure above.
2-40
Chapter 3
Macros
After you have gone to the trouble of creating (and debugging) a PRESCRIBE command
sequence, it is inefficient to use it only once, but it is a nuisance to type the same
sequence repeatedly. The solution is to make the sequence into a macro. Then you can
execute the entire sequence with a single CALL command. The procedure for defining a
macro command sequence is simple.
Step 1:Assign a name to the sequence. Place the name at the top of the sequence (ending
with a semicolon).
Step 2:Add the PRESCRIBE command MCRO in front of the name.
Step 3:Add the PRESCRIBE command ENDM at the end of the sequence.
Chapter 3 Macros
MCRO Command
The MCRO command assigns a name to the sequence of PRESCRIBE commands that
follows, until the ENDM (END Macro) command appears. Thereafter, the entire
sequence of commands can be executed by specifying the assigned name in a single
CALL or AMCR (Automatic MaCRo) command. The MCRO command has the following format.
MCRO name[ dummy sign[, comment];
The name of a macro can be any length but only the first four characters are recognized
by the PRESCRIBE command language. Any distinction between upper and lowercase
letters is also ignored. For example, the following macro names are all the same:
ABCD
abcd
ABCDE
Abcdxyz
The name must start with a letter, but the other characters can include digits and special
symbols such as hyphens. For example, F-1 and GRY2 are valid macro names.
The dummy sign (the default is the percent sign) indicates dummy parameters in the body
of the macro. Dummy parameters enable you to place different variables when the macros are called. By using dummy parameters the same macro will execute differently
according to the values given on the CALL command. Dummy parameters are written by
writing the dummy sign followed by a number: %1 for the first dummy parameter, %2
for the second dummy parameter, and so on up to a maximum of 19 dummy parameters.
The same dummy parameter can be used any number of times. Values are assigned to
dummy parameters when the macro is called by the CALL command.
You do not have to specify the dummy sign in the MCRO command unless you want to
use a dummy sign different from the percent sign or want to specify a comment. The
printing system ignores the comment. A useful comment would be a list of the meanings
of dummy parameters. In particular, a macro can contain the CALL command, permitting one macro to call another. Macro calls can be nested in this way up to a maximum
depth of 20.
If the body of the macro contains TEXT, RTXT, or CTXT commands and these have
dummy parameters, the enclosing quotation marks should be included in the macro call,
not in the macro definition. This enables strings containing commas, semicolons, consecutive spaces, apostrophes, and quotation marks to be printed.
If a macro with the same name has already been defined, the new definition is ignored.
To redefine a macro, you must first delete the old definition with the DELM (DELete
Macro) or DAM (Delete All Macros) command, or by switching the printing system
power off.
There is no particular limit on the length of a macro. The maximum number of macros
that can be defined is limited only by the amount of the available memory in the printing
system. Each command in a macro is limited to 255 characters in length.
3-2
Examples of Macros
20
4 characters
19
255 bytes
Examples of Macros
Example 1
The following macro example draws a circle. It first names the macro that issues the
PRESCRIBE commands for drawing a circle in the middle of a page.
!R! MCRO CIR1;
MZP 4, 5.5; CIR 1;
ENDM;
EXIT;
When completed, this macro will draw a circle after it has been sent to the printing system.
!R! CALL CIR1; EXIT;
If you want circles of different sizes, you can make the radius into a so-called dummy
parameter. Dummy parameters in macro definitions are denoted using percent symbols
(%) as below:
!R! MCRO CIRCLE;
MZP 4, 5,5; CIR %1;
ENDM;
EXIT;
After this definition: CALL CIRCLE, 1; draws a one-inch circle, CALL CIRCLE,
2; draws a two-inch circle, and so on. Note the commas are required to separate the
macro name from the radius parameter in these CALL statements.
3-3
Chapter 3 Macros
Example 2
The next file presents a more ambitious project. It makes the graph-drawing commands
in the preceding section into a pair of macros to draw multiple graphs. This file may help
you to better understand the macro creating process. The DAM command in the first line
is a safety precaution that clears any previous macros out of memory.
!R! RES; UNITC; DAM;
MCRO LOCATE;
SLM %1;
STM %2;
ENDM;
MCRO GRAPH;
UNIT C;
SPD 0.05; SCS 0.23;
MAP 0, -7.3; TEXT %1;
MAP 0, 0; BOX 6, -7;
MAP -0.1, 0.5;
TEXT Sun Mon Tue Wed Thu Fri Sat;
MAP 0, -%2;
DAP 1, -%3;
DAP 2, -%4;
DAP 3, -%5;
DAP 4, -%6;
DAP 5, -%7;
DAP 6, -%8;
ENDM;
CALL LOCATE, 2, 9;
CALL GRAPH, Temperature, 2.5, 3.5, 1.9, 3.0, 3.8, 2.8, 3.3;
CALL LOCATE, 10, 9;
CALL GRAPH, Humidity, 3.5, 1.0, 1.3, 2.6, 1.8, 6.4, 5.9;
CALL LOCATE, 2, 20;
CALL GRAPH, Paid Attendance, 5.2, 1.1, 0.9, 1.5, 1.3, 3.3, 4.4;
CALL LOCATE, 10, 20;
CALL GRAPH, Pages Completed, 0, 1.2, 4.4, 4.6, 3.2, 6.6, 0;
PAGE;
EXIT;
3-4
Examples of Macros
3-5
3-6
Chapter 4
Fonts
This chapter covers font-related topics, including the printing systems resident and
option fonts, character sets, and usage of font-selection and symbol creation commands.
A font is a set of characters of a particular design. The design is referred to as a typeface.
Several characteristics identify a font. These include the font type (bit map or scalable),
symbol set, spacing, pitch, height, style, stroke weight, and typeface family. In selecting
a font, the printing system searches the available fonts to match these characteristics
based on the highest priority. For details in this regard, see Selecting Fonts Using the
FSET Command on page 4-9 in this chapter.
Chapter 4 Fonts
Resident Fonts
The printing system provides one bitmap font and 136 scalable (outline) fonts as the resident fonts. Also, fonts may be downloaded to the printing systems memory from a
computer or a memory card. These fonts are referred to as downloadable or soft fonts.
The printing system accepts as many downloadable fonts as user memory allows.
When the HP LaserJet is the printing systems default emulation, the power-up (default)
font is Courier. A different default font can be selected by using the FRPO (Firmware
RePrOgram) command of parameters V3 (or using the printing systems operator panel
key). For details, refer to FRPO Parameters on page 6-2.
List of Fonts
Resident scalable fonts provide an outline of characters which can be sized according to
sizing information for the font. These fonts can be scaled from 0.25 to 999.75 points in
quarter point increments.
This section shows tables of the printing systems resident fonts. It is possible to print a
full list of resident fonts by the FLST command (or using the printing systems operator
panel key). To print a list of fonts, command:
!R! FLST; EXIT;
The following list shows all the resident fonts in the printing system. For example, Univers-Bd means a Universe style scalable font with bold weight.
Font Name
Courier
CGTimes
CGTimes-Bd
CGTimes-It
CGTimes-BdIt
CGOmega
CGOmega-Bd
CGOmega-It
CGOmega-BdIt
Coronet
Clarendon-Cd
Univers-Md
Univers-Bd
Univers-MdIt
Univers-BdIt
Univers-MdCd
Univers-BdCd
Univers-MdCdIt
Univers-BdCdIt
AntiqueOlive
AntiqueOlive-Bd
AntiqueOlive-It
GaramondAntiqua
4-2
Font Name
Garamond-Hlb
Garamond-Krsv
Garamond-HlbKrsv
Marigold
Albertus-Md
Albertus-ExBd
Arial
Arial-Bd
Arial-It
Arial-BdIt
TimesNewRoman
TimesNewRoman-Bd
TimesNewRoman-It
TimesNewRoman-BdIt
Helvetica
Helvetica-Bd
Helvetica-Ob
Helvetica-BdOb
Helvetica-Nr
Helvetica-NrBd
Helvetica-NrOb
Helvetica-NrBdOb
Palatino
Palatino-Bd
Palatino-It
Palatino-BdIt
ITCAvantGardeGothic-Bk
ITCAvantGardeGothic-Dm
ITCAvantGardeGothicBkOb
ITCAvantGardeGothicDmOb
ITCBookman-Lt
ITCBookman-Dm
ITCBookman-LtIt
ITCBookman-DmIt
NewCenturySchoolbookRom
NewCenturySchoolbook-Bd
NewCenturySchoolbook-It
NewCenturySchoolbookBdIt
Times-Rom
Times-Bd
Times-It
Times-BdIt
ITCZapfChancery-MdIt
Symbol
4-3
Chapter 4 Fonts
Font Name
SymbolPS
Wingdings
ITCZapfDingbats
Courier-Bd
Courier-It
Courier-BdIt
LetterGothic
LetterGothic-Bd
LetterGothic-It
CourierPS
CourierPS-Bd
CourierPS-Ob
CourierPS-BdOb
LinePrinterBM8.5-Roman
(Bitmap)
KPDL Fonts
In KPDL (Kyocera Print-system Description Language) emulation, the printing system
provides PostScript-compatible 47 scalable fonts. These fonts are also accessible by
using the PRESCRIBE command.
Font Name
Albertus-ExtraBold
Albertus-Medium
AntiqueOlive
AntiqueOlive-Bold
AntiqueOlive-Italic
Arial
Arial-Bold
Arial-BoldItalic
Arial-Italic
AvantGarde-Book
AvantGarde-BookOblique
AvantGarde-Demi
AvantGarde-DemiOblique
Bookman-Demi
Bookman-DemiItalic
Bookman-Light
Bookman-LightItalic
CGOmega
CGOmega-Bold
CGOmega-BoldItalic
CGOmega-Italic
CGTimes
CGTimes-Bold
CGTimes-BoldItalic
CGTimes-Italic
4-4
Font Name
Clarendon-Condensed-Bold
Coronet
Courier
Courier-Bold
Courier-BoldOblique
Courier-Oblique
CourierPCL
CourierPCL-Bd
CourierPCL-BoldItalic
CourierPCL-Italic
Garamond-Antiqua
Garamond-Halbfett
Garamond-Kursiv
Garamond-KursivHalbfett
Helvetica
Helvetica-Bold
Helvetica-BoldOblique
Helvetica-Narrow
Helvetica-Narrow-Bold
Helvetica-Narrow-BoldOblique
Helvetica-Narrow-Oblique
Helvetica-Oblique
LetterGothic
LetterGothic-Bold
LetterGothic-Italic
Marigold
NewCenturySchlbk-Bold
NewCenturySchlbk-BoldItalic
NewCenturySchlbk-Italic
NewCenturySchlbk-Roman
Palatino-Bold
Palatino-BoldItalic
Palatino-Italic
Palatino-Roman
Symbol
Symbol MT
Times-Bold
Times-BoldItalic
Times-Italic
Times-Roman
TimesNewRoman
TimesNewRoman-Bold
TimesNewRoman-BoldItalic
TimesNewRoman-Italic
Univers-Bold
Univers-BoldItalic
Univers-Condensed-Bold
Univers-Condensed-BoldItalic
4-5
Chapter 4 Fonts
Font Name
Univers-Condensed-Medium
Univers-Condensed-MediumItalic
Univers-Medium
Univers-MediumItalic
Wingdings-Regular
ZapfChancery-MediumItalic
ZapfDingbats
Font Name
Font Number
Port. Land.
CourierBM12-Roman
1
17
CourierBM12-Italic
37
18
CourierBM12-Bold
38
67
CourierBM12-BoldItalic
39
68
Dutch801BM10-Roman
2
19
Dutch801BM10-Italic
3
20
Dutch801BM10-Bold
4
21
Dutch801BM10-BoldItalic
40
69
Dutch801BM8-Roman
5
22
Dutch801BM8-Italic
41
Dutch801BM8-Bold
42
70
Dutch801BM8-BoldItalic
43
PrestigeEliteBM10-Roman
6
23
PrestigeEliteBM10-Italic
44
24
PrestigeEliteBM10-Bold
45
71
PrestigeEliteBM10-BoldItalic 46
72
PrestigeEliteBM7.2-Roman
7
25
PrestigeEliteBM7.2-Italic
47
PrestigeEliteBM7.2-Bold
48
73
PrestigeEliteBM7.2-BoldItalic 49
LetterGothicBM12-Roman
8
26
4-6
10
10
10
10
Prop.
Prop.
Prop.
Prop.
Prop.
Prop.
Prop.
Prop.
12
12
12
12
16.67
16.67
16.67
16.67
12
Font Selection
Font Name
Font Number
Port. Land.
LetterGothicBM12-Italic
50
27
LetterGothicBM12-Bold
9
28
LetterGothicBM12-BoldItalic 51
79
LinePrinterBM8.5-Roman
88
Swiss721BM14.4-Bold
10
29
Swiss721BM14.4-BoldItalic 52
Swiss721BM12-Bold
11
30
Swiss721BM12-BoldItalic
53
Swiss721BM10-Bold
12
31
Swiss721BM10-BoldItalic
54
Swiss721BM8-Roman
13
32
Swiss721BM8-Italic
55
Swiss721BM8-Bold
56
74
Swiss721BM8-BoldItalic
57
Swiss721BM6-Roman
14
33
Swiss721BM6-Italic
58
Swiss721BM6-Bold
59
75
Swiss721BM6-BoldItalic
60
LinePrinterBM9-Roman
15
34
LinePrinterBM9-Italic
61
35
LinePrinterBM9-Bold
62
76
LinePrinterBM9-BoldItalic
63
77
LinePrinterBM7-Roman
16
36
LinePrinterBM7-Italic
64
LinePrinterBM7-Bold
65
78
LinePrinterBM7-BoldItalic
66
12
12
12
16.67
Prop.
Prop.
Prop.
Prop.
Prop.
Prop.
Prop.
Prop.
Prop.
Prop.
Prop.
Prop.
Prop.
Prop.
16.67
16.67
16.67
16.67
21.43
21.43
21.43
21.43
Font Selection
There are several ways to select the fonts: one way is to use the appropriate keys on the
printing systems control panel; a second way is to place a PRESCRIBE command in the
file to be printed, as in the examples in Chapter 1; a third way is to select a printing system driver within a software application. This third way is preferable because the fonts
are integrated directly into the software. In the absence of this support, the user should
read the following information on choosing and placing PRESCRIBE commands.
Chapter 4 Fonts
The FTMD and SFA commands are only valid with bitmap fonts (which are simulated
by resident scalable fonts).
The following is a guideline to the use of these commands. Also, these commands are
fully detailed in PRESCRIBE Command Reference.
Compression = 0.3
Compression = 1
Compression = 3
Finally, the value .3 concluding the font selection sequence specifies a forward tilt of
13.5 degrees. The angle for normal characters is 0. Negative values result in backwardtilting characters. The angle parameter accepts any value from 1 (45) to 1 (45).
Examples appear below.
Angle = 1
4-8
Angle = 0
Angle = 1
Font Selection
The parameters for symbol set, compression, and obliquing must be either all specified
or all omitted.
Priority of selection
Symbol set
Spacing
Pitch
Point size (height)
Style
Stroke weight
Typeface family
Location
Orientation
Highest
2 nd
3 rd
4 th
5 th
6 th
7 th
8 th
Lowest
In selecting a font, the printing system searches the available fonts to match a characteristic based on the highest priority. If this matching produces only one font, that font is
selected. If many fonts match this highest priority, then matching begins with the next
highest characteristic. The printing system continues going down the list until only one
font is left, then that font is selected.
A font may reside in any of three locations: printing system ROM (for resident fonts, and
option fonts, if installed), memory card (for card option fonts), and printing system RAM
(for downloaded fonts). A font in printing system ROM has lower priority than an identical font on a memory card, and a memory card font has a lower priority than an identical
font in printing system RAM. Also, assuming all other characteristics are the same, a
scalable font has lower priority than a bitmap font (simulated).
The last characteristic checked is the font orientation. If two fonts are found that differ
only in orientation, the one selected is that which matches the page orientation. If only
one font remains and its orientation does not match the orientation of the page, the printing system rotates the font to match the page orientation.
The example below shows an FSET command sequence that selects the 12-point,
upright, normal-weight, CGTimes font. (The FSET command sequences for selecting the
resident fonts appear on the font lists.)
FSET 1p12v0s0b4101T;
The FSET command sequence may be followed by a CSET (Change current symbol
SET) command which selects the desired HP symbol set. In the example below, the Windows symbol set is selected.
CSET 9U;
HP symbol set values can be referenced on the CSET command page in PRESCRIBE
Commands Command Reference.
4-9
Chapter 4 Fonts
EXIT;
4-10
Font Selection
EXIT;
Then use !R! ALTF1; EXIT; within the document to select font 6 and !R! ALTF2; EXIT;
to select font 8. The advantages of ALTF and SETF are that:
In emulation modes 1, 2, and 5, the SETF command can team up in a very effective way
with embedded word-processing commands. See Chapter 7 for details.
The SCF (Save Current Font) and RPF (Return to Previous Font) commands enable font
numbers to be managed in stack fashion. These commands are particularly useful at the
beginning and end of macros, and when you are using embedded commands of wordprocessing software. To ensure that the saved font is retrieved with the correct code set,
add the SCCS (Save Current Code Set) and RPCS (Return to Previous Code Set) commands to the SCF and RPF command, respectively.
For instance, to select a font using embedded commands, you can save the current font,
call a new font, enter the text and return to the previous font, as in the following
sequence.
!R! SCF; FONT 7; EXIT; (Text of footnote...)
!R! RPF; EXIT;
This sequence leaves the current font, prints the footnote in font 7 (PrestigeEliteBM7.2Roman), then returns to the previous font.
4-11
Chapter 4 Fonts
4-12
Symbol Set
The pattern is 13 dots high and 13 dots wide. The pattern is encoded as a series of 16-bit
words. If necessary, blank cells may be added on the right to make the width a multiple
of 16. For this reason, the three extra columns appear on the right (see the figure above).
Each 16-bit word is encoded with three characters, representing the most significant six
bits, the next six bits, and the least significant four bits, respectively, as shown in Defining Fill Patterns in Chapter 2.
To obtain the character codes, divide the word into sections of six, six, and four bits and
calculate the numerical value of each section (referred to as x, y, and z, respectively),
treating it as a binary number in which the white dots are zeros and the black dots are
ones. Then add an offset of 64 to the values of the six-bit sections and 48 to the values of
the four-bit sections. The result is the ASCII code of the character representing that section (x, y, and z, respectively). Refer to the example of dot map and numerical derivation
in Defining Fill Patterns in Chapter 2. The procedure for the numerical derivation is
identical to creating fill patterns for XPAT.
Six-bit sections consisting of all black dots, as in the middle row of this symbol, are a
special case. They encode by using the ASCII code 127, which is the unprintable delete
code. Character 47 (/) may therefore be used instead.
The resolution may be specified for 300 or 600 (dpi) only in printing system models that
support the 600-dpi resolution printing. LDFC generated 300 dpi characters may print
when the default resolution is 300 or 600 dpi. It is not possible for 600 dpi LDFC generated characters to print at 300 dpi.
The bit map data proceeds from left to right across the character pattern, then from top to
bottom. The data can be formatted by inserting line-feeds, but not spaces. If we assign
this character an x-offset of 0 and a y-offset and cell width of 500 micro dots each, and
make it ASCII code 42 (*) of font 1000, it creates the following LDFC command:
!R! LDFC 1000, 42, 13, 13, 500, 0, 500, 250, 0;
@0@0Ap0Ap0Cx00|At0//J80|At0Cx0Ap0Ap0@0@0;
UNIT C;
BOX 4.35, 0.75, L;
FONT 1000;
TEXT * * * * * * * * ;
EXIT;
Symbol Set
The page printing system can produce sets of alphabet, numeric, and symbol characters.
These sets, with each character assigned to a particular code, are known as symbol sets.
4-13
Chapter 4 Fonts
The following figure shows all the characters included in the most common symbol set,
HP Roman-8.
Figure 4. 2. Roman-8 Symbol Set
In addition to a large selection of bitmap and scalable fonts, the printing system supports
many symbol sets (also referred to as character sets). The variety of Kyocera supported
symbol sets can be attributed to the numerous printer emulations. Most of those symbol
sets are the same regarding the letters of the alphabet, digits, and basic punctuation
marks, but they differ considerably in their special symbols which lie in the upper half of
the character code table, consisting of character codes 128 through 254 (hex 80 through
FE).
Charts for the available symbol sets in each emulation appear in Chapter 7.
Only the resident fonts can be assigned with a new symbol set. All downloaded fonts
contain specific symbol sets.
International Characters
The INTL (print INTernationaL characters) command provides quick access to printing
characters from a different character set, characters not found in the default symbol set
(US ASCII). By simply using the INTL command with appropriate parameters for language and country code, the Kyocera user can access a wide variety of specific characters.
The following sequence selects the ISO-4 U.K. symbol set for the Swiss721BM8-Roman
font in the HP LaserJet emulation:
!R! UNIT P; CMNT Emulation must be HPLJ;
FONT 13;
INTL 3, 1; CMNT ISO-4 U.K.;
EXIT;
The U.K. symbol set is identical to the US ASCII character set except that it has the
pound currency symbol (\P) in place of the number sign (#).
It should be noted that the symbol set selected by INTL is specific to the currently emulated printer (HP LaserJet in the above example). If the current emulation is changed to
Diablo 630 for the example above (by a SEM command, for example), the INTL command selects the Diablo U.K. symbol set instead of HP ISO-4 U.K. symbol set.
Symbol Set
The CSET command selects a symbol set by specifying its identification code which
closely resembles the command parameters of the HP printer control language. In the
example below, the Windows symbol set is selected.
CSET 9U;
The CSET command may be preceded by an FSET font selection command. Remember
that the symbol set has the highest priority in font selection. The following example still
selects the ISO-4 U.K. symbol set for the Swiss742SWC-Roman font in the HP LaserJet
emulation:
!R! UNIT P;
FSET 1p12v0s0b4148T; CMNT 4148 means Universe;
CSET 1E; CMNT ISO-4 U.K.;
EXIT;
The SFNT command, primarily used to select and size a scalable font as stated previously, also provides the parameter that specifies a symbol set for the font. It has the following format:
SFNT typeface[, height[, font-number[, symbol-set, compression, angle]]];
In the above format, the symbol-set parameter specifies the symbol set for the font designated by typeface. The symbol-set value must be given together with the compression
and angle parameters. In the example below, the symbol-set value 37 assigns the ISO-4
U.K. symbol set to the Universe medium font.
!R! UNIT P;
SFNT Universe-Md, 12, 2000, 37, 1, 0;
CMNT 37=ISO-4 U.K.;
EXIT;
The symbol set values are tabled in LaserJet Symbol Sets in Chapter 7.
4-15
4-16
Chapter 5
Barcodes
This chapter is a tutorial for encoding data into linear barcode and two-dimensional barcodes (PDF barcodes) by using PRESCRIBE commands. The former part of this chapter
deals with how to implement the linear barcodes, the latter part explains the PDF417.
They are step-by-step guide with a direct and practical approach.
Chapter 5 Barcodes
Linear Barcodes
The printing system is capable of printing a wide variety of barcodes, with human-readable text if desired. The user need only specify the type of barcode and the data to be
encoded. The printing system performs the rest of the work, including bar and space generation, symbol translation, insertion of start and stop codes, checksum calculation, interleaving, padding, zero suppression, and parity reversal.
Note
The scanability of barcodes is affected by the quality of the paper and the type of scanner
used. Parameters of the BARC command enable the width of the bars and spaces to be
adjusted to compensate for these factors. A certain amount of testing and experimentation
may be needed to find the right parameter values for a particular set of conditions.
PRESCRIBE uses the BARC (draw BARCode) command to execute barcodes. This
printing system feature is described fully in this chapter.
The BARC command uses the following format.
BARC type, flag, string[, short, tall[, bar1, bar2, bar3, bar4, space1, space2, space3,
space4]];
The BARC command prints specified data in barcode form. The cursor is located at the
top left corner of the barcode for types 0 to 38, 40 and 41, and at the bottom left corner of
the barcode for type 39, and does not move.
The type, flag, and string parameters are always required. The other parameters are
optional. The type parameter is a number from 0 to 42 designating one of the barcode
types listed in Numbers outside the range from 0 to 42 are regarded as type 15 (MSI barcode with no check digit).
The flag parameter specifies whether (Y or y) or not (N or n) to print a human-readable
text under the barcode. The text is printed in the printing systems current font. Any
desired font can be obtained by placing a font selection command before the BARC
command. The flag parameter for barcodes 39 and 40 (USPS) must be N.
The string parameter gives the barcode data enclosed in apostrophes or quotation marks.
The allowable length of the string and the characters that can be included depend on the
barcode type. lists the allowed lengths and character sets.
also lists a default character that is used to fill out strings shorter than the minimum
length and which may be substituted for any illegal characters in the string.
If the string is too long, it is truncated to the maximum allowed length.
Examples:
!R! UNIT I; BARC 11, N, 123456; EXIT;
5-2
The short and tall parameters specify the short and tall bar heights in the unit designated
by the UNIT command (default: inches). The short and tall parameters must be both
specified or both omitted. If they are omitted, the default values as shown in Table 5.3.
must be specified.
Only barcode types 0 to 12, 35 to 38, and 39 have two bar heights. For types 13 to 34, 40,
and 41, the bar height is determined by the short parameter and the tall parameter is
ignored. Even when all bars are the same height, however, the command syntax requires
that when a short parameter is specified, the tall parameter must be specified too.
Examples:
!R! UNIT I; BARC 15, N, 1234567890, .2, .2; EXIT;
When two bar heights with human-readable text are used, in some cases the tall bars may
overlap the text.
The bar1 to bar4 and space1 to space4 parameters adjust the width of the bars and
spaces. Fine adjustment of these parameters may be needed to obtain scannable barcodes
for a particular scanner and type of paper. The dots unit (UNIT D;) is convenient. Barcode 40 (USPS FIM) ignores all these parameters and therefore has a constant height and
space.
Some barcode types have only two classes of widths (bar1, bar2, space1, space2). Others have three or four classes. Regardless of the barcode type, when any width parameter
is specified all eight width parameters must be specified together. In the case of two
classes of widths, dummy values must be specified for bar3, bar4, space3, and space4.
The bar and space width parameters should be specified in ascending order. The maximum specifiable value is 200 dots.
1 bar1 bar2 bar3 bar4 200 (dots)
1 space1 space2 space3 space4 200 (dots)
5-3
Chapter 5 Barcodes
If the bar and space width parameters are omitted, the printing system uses suitable
default values. Table 5.3. indicates the number of width classes and the default values for
each barcode type.
Barcode 19 (Code 39) has two width classes, which are set to 5 and 10 dots respectively
in the example below. Bar1 and space1 are both 5 dots, and bar2 and space2 are 10 dots.
Bar3, space3, bar4, and space4 are all given dummy values of 10.
Examples:
!R! UNIT D;
BARC 19, Y, 0123ABC, 60, 60, 5, 10, 10, 10, 5, 10, 10, 10;
EXIT;
Barcode 36 (EAN 8 with a five-digit supplement) has four width classes, which are set to
10, 20, 30, and 40 dots in the example below. Two bar heights are also used.
!R! UNIT D;
BARC 36, N, 012345678912, 180, 220, 10, 20, 30, 40, 10,
20, 30, 40;
EXIT;
Barcode 39 (USPS POSTNET) prints a POSTNET barcode on a mail piece. The United
States Postal Service (USPS) utilizes POSTNET (POSTal Numeric Encoding Technique)
to process bulk mail and business reply envelopes quickly and efficiently.
Though this barcode accepts any values within the range specified on the previous page,
we recommend that all parameters except type, flag, and string not be specified as the
scanability of the barcode is most effective with the default values. Also the flag parameter for this barcode must be N (do not print human-readable text). See the figure on 8. for
POSTNET barcode location.
5-4
Barcode 41 (USPS FIM) prints a Facing Identification Mark pattern which may be
printed on the envelope adjacent to the stamp. The combination of a FIM and the POSTNET (barcode 39) barcode enables faster processing by the USPS.
When generating a FIM pattern, all parameters except type, flag, and string are ignored.
The flag parameter must be N. Characters permitted for the string parameter are A, B,
C, and D only, and each represents one of four different FIM patterns. For example,
Courtesy Replay Mail and stamped reply mail require the FIM-A pattern, while Business
Reply Mail and unstamped (prepaid) return mail require the FIM-C pattern. Also see the
figure on 8 for FIM location.
Barcode 43 (Customer) has four bar heights. Only the shortest and tallest bar heights are
specifiable, the heights for the intermediate two bars being adjusted automatically. Any
values entered for bar and space widths are ignored and defaulted to 1.68 points respectively. The rules for the order of specifiable bar and space widths, bar1bar2bar3bar4
and space1space2space3space4, must be adhered to, however.
Table 5.1. Barcode Types (Sheet 1 of 2)
No.
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Type
UPC A
UPC A with two-digit supplement
UPC A with five-digit supplement
UPC D-1
UPC D-2
UPC D-3
UPC D-4
UPC D-5
UPC E
UPC E with two-digit supplement
UPC E with five-digit supplement
EAN-8
EAN-13
DUN-14 (Distribution Unit Number, EAN)
DUN-16 (Distribution Unit Number, EAN)
MSI with no check digit
MSI with single mod-10 check digit
MSI mod-10 followed by mod-10 check digit
MSI mod-11 followed by mod-10 check digit
Code 39 with no check digit (USD-3)
Code 39 with mod-43 check digit (USD-3)
Interleaved two of five (USD-1) with no check digit (See No. 41.)
Identicon two of five with no checksum
Code 128 (USD-6) manual code change
Code 128 (USD-6) automatic code change
Code 11 with only c checksum (USD-8)
Code 11 with both c and k checksums (USD-8)
Code 93 with both c and k checksums (USD-7)
CODABAR with no check digits (USD-4)
Matrix two of five with no checksum
Datalogic two of five with no checksum
Industrial two of five with no checksum
5-5
Chapter 5 Barcodes
Type
Ames with no checksum
Delta distance a (IBM) with no checksum
Delta distance a (IBM) with checksum
EAN 8 with two-digit supplement
EAN 8 with five-digit supplement
EAN 13 with two-digit supplement
EAN 13 with five-digit supplement
POSTNET (USPS)
FIM (USPS)
Interleaved two of five (USD-1) with checksum
UCC/EAN 128
Customer
Wide gap CODABAR
5-6
Default
0
Space
0
Space
Space
Space
Length
125
125
125
125
125
125
9
12
14
17
139
1
41
42
43
44
125
80
1-20
3-32
Character set
0123456789
Default
0
-0123456789
0123456789KLMO
0
0
0123456789
0123456789
One of the following FIM pattern types:
A Country Reply Mail with POSTNET.
B Business Reply, Penalty and Franked Mail without POSTNET.
C Business Reply, Penalty and Franked Mail with POSTNET.
D OCR Readable Mail without POSTNET.
0123456789
All printable characters (ASCII codes 32 to 126)
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
$+-./0123456789:abcdetn* and space
5-7
Chapter 5 Barcodes
1-1/4
5/
8
Stamp
7/
16
3/
16
1/
8
1/
4
4
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Default (dots)
1
2
3
6
12 18
6
12 18
6
12 18
6
12 18
6
12 18
6
12 18
6
12 18
6
12 18
6
12 18
6
12 18
6
12 18
6
12 18
6
12 18
6
12 (18)
6
12 (18)
6
12 (18)
6
12 (18)
6
12 (18)
6
12 (18)
6
12 (18)
6
12 (18)
6
12 (18)
4
24
24
24
24
24
24
24
24
24
24
24
24
24
(24)
(24)
(24)
(24)
(24)
(24)
(24)
(24)
(24)
5/ min.
8
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Default (dots)
1
2
3
6
12 (18)
6
12 18
6
12 18
6
14 21
6
14 21
6
12 18
6
18 (18)
6
12 (18)
6
12 (18)
6
12 (18)
6
12 (18)
6
12 18
6
12 18
6
12 18
6
12 18
6
12 18
6
12 18
6
12 (18)
6
12 18
6
18 (18)
4
(24)
24
24
(21)
(21)
24
(18)
(24)
(24)
(24)
(24)
(24)
(24)
24
24
24
24
(24)
24
(18)
Table 5.5. Bar Height, Width, Pitch, and Spacing for types 39, 40, and 43
Type
39
40
43
Height
Tall: 0.125" Short: 0.05"
5/8"
Tall: 10.2 pt. Short: 3.4 pt.
Width
0.02"
0.031"
1.68 pt.
Pitch
21 bars/inch
1/16"
Spacing
0.0475"
(Tilt: 5)
1.68 pt.
5-9
Chapter 5 Barcodes
Two-dimensional Barcodes
PDF 417 is a two-dimensional stacked barcode symbology capable of encoding over a
kilobyte of data per label. This is important for applications where a barcode must be
more than merely an identifier, an index to reference a database.
The portable data file approach is well suited to applications where it is impractical to
store item information in a database or where the database is not accessible when and
where the item's barcode is read. Because a PDF417 symbol can store so much data, item
data such as the content of a shipping manifest or equipment maintenance history can be
carried on the item, without requiring access to a remote database.
Encoding data into a PDF417 barcode is a two-step process. First, data is converted into
codeword values of 0-928, which represent the data. This is high-level encoding. Then
the values are physically represented by particular bar/space patterns, which is low-level
encoding. Decoding is the reverse process.
In addition, PDF417 is an error-correcting symbology designed for real-world applications where portions of labels can get destroyed in handling. It performs error correction
by making calculations, if necessary, to reconstruct undecoded or corrupted portions of
the symbol.
module
The narrowest width of a bar or space in the barcode. All bars or spaces are multiples (up
to six times) of this width. The nominal unit of measure.
codeword
A single group of bars and spaces (or elements) representing one or more numbers, letters, or other symbols (i.e., codeword values for the data to be encoded). Each PDF417
codeword contains four bars and four spaces, for a total of 17 module widths. Each codeword starts with a bar and ends with a space. See figure below.
1-module width
0 0 0 1 0 1 0 1 0 0 0 1 1 1 1 1 1
5-10
start pattern
A unique pattern of light and dark elements which indicates the leftmost part of a barcode label.
stop pattern
A unique pattern of light and dark elements which indicates the rightmost part of a barcode label.
row
Stop pattern
Data codeword
Start pattern
A lateral set of elements made up of a start pattern, codewords, and a stop pattern. Each
PDF417 symbol must have at least 3 rows. See figure below.
Quiet zone
Quiet zone
Quiet zone
Row 1
Row 2
Row 3
Row 4
Quiet zone
In each row, between left and right row indicators, there may be from 1 to 30 data codewords. Collectively, among all rows, these codewords form data columns.
5-11
Chapter 5 Barcodes
R0
R1
L0 dn-1 dn-2
Stop
Start
L1
Lm-2
Lm-1
C1
C0 Rm-1
XBUF
ENDB
Functions of XBCP
The mode parameter in XBCP command format identifies the various functions as listed
below. These commands are detailed in the PRESCRIBE Commands Command
Reference.
XBCP mode
XBCP 0
XBCP 1
XBCP 2
XBCP 3
XBCP 4
XBCP 5
XBCP 6
XBCP 7
XBCP 8
XBCP 9
XBCP 10 through 19
5-12
Meaning
Reset
Narrowest element width
Error correction (by percentage)
Error correction (by predetermined level)
Number of rows
Number of columns
Aspect ratio of height and width
Bar height by a ratio of element width
Number of rows and columns (XBCP 4 and 5)
Truncation
These modes give additional control options used to support Macro
PDF417 barcodes. See more details in section Macro PDF417.
Moves the cursor to a position relative to the top and left margins.
Moves the cursor from the current to a specified relative position.
Moves the cursor to a position relative to the top and left edge limits
of the page.
Sets the unit of measurement used in the PRESCRIBE commands
including the above. The initial unit is inches. The other units are
related to inches as: 1 inch=2.54 centimeters=72 points=300 or 600
dots (depending on the printing system model).
Description
256 international characters and binary data
Continuous
Yes
Yes
2
2
3
90
1
30
1
0.0075 inch or 0.191 mm
0.01 inch or 0.254 mm
Assuming 928 codewords 1 symbol length descriptor 2 symbol checksum codewords = 925 data codewords. Binary/ASCII plus mode: 1108 bytes.
Extended alphanumeric compaction mode (EXC):
1850 ASCII characters. Numeric compaction mode:
2725 digits.
5-13
Chapter 5 Barcodes
Macro PDF417
Macro PDF417 provides a powerful mechanism for creating a distributed representation
of files too large to be presented by a single PDF417 barcode. Macro PDF417 barcodes
differ from ordinary PDF417 barcodes in that they contain additional control options
which are added by modes 10 through 19 of the XBCP command. This allows a reader to
make use of this information to correctly reconstruct and verify the file, independent of
the barcode scanning order.
Note
The terminology PRESCRIBE macro and macro PDF are not the same. Refer to the
PRESCRIBE Commands Command Reference for the PRESCRIBE macro commands
(MCRO, ENDM, etc.).
The following modes of XBCP are used for Macro PDF417 to represent additional control options for XBAR. Note that implementation of these parameters are optional except
XBCP 17 and XBCP 18.
XBCP 10
XBCP 11
XBCP 12
XBCP 13
XBCP 14
XBCP 15
XBCP 16
XBCP 17
XBCP 18
XBCP 19
File name
Block count
Time stamp
Sender ID
Addressee ID
File size
Check sum
File ID
Macro PDF417 execution
Distributed barcodes positioning
The largest allowed block index is 99,998. Thus, up to 99,999 Macro PDF417 barcodes
may comprise the distributed representation of a data file.
5-14
Some samples for Macro PDF417 are provided in PRESCRIBE Commands Command
Reference on the XBCP page.
5-15
Chapter 5 Barcodes
5-16
Chapter 6
Permanent Parameters
The printing system maintains a number of parameters in a non-volatile (flash) memory.
These parameters control the initial state of the environment at power-up, including the
initial emulation mode, page orientation, character set, buffer allocations in memory,
interface parameters, and other options.
The parameters may be changed permanently with the FRPO (Firmware RePrOgram)
command. Some FRPO parameters affect only the current interface (interface-dependent) and some affect all interfaces at once (non-interface-dependent). If the printing system is shared with other users, remember that any changes to any non-interfacedependent parameters may interfere with the print jobs of the other users. This chapter
explains the FRPO command and gives examples of its use.
The current settings of the FRPO parameters are listed as option values on the printing
systems service status page. Refer to the tables in this chapter to interpret the values. To
print a service status page, command:
!R! STAT 1; EXIT;
Before changing any FRPO parameter, print out a service status page, so you will know
the parameter values before the changes are made. To return FRPO parameters to their
factory default values, send the FRPO INIT (FRPO-INITialize) command.
FRPO Parameters
The FRPO command changes the value of one parameter in permanent memory. A
separate command is required for each parameter change. The parameters, their
meanings, and the specifiable values are listed below.
In these tables, the Interface-dependent parameters affect the environment on the current
interface only. Any changes made to the parameters on one interface will not change
parameters on the other interfaces. To change a similar parameter on another interface,
first switch to that interface then issue the FRPO command.
The Interface-independent parameters affect all interfaces simultaneously. If the printing
system is shared with other users, remember that changes made to non-interfacedependent parameters can affect users on other interfaces as well.
Certain parameters are available only when the printing system is installed with the relevant option equipment.
Note
Interface-dependent Parameters
Table 6.1. Interface-dependent Parameters (Sheet 1 of 3)
Environment
Top margina
Left margina
Page lengtha
Page widtha
Page orientationa
Default font No.a
Operation panel
settings saving
6-2
Parameter
A1
A2
A3
A4
A5
A6
A7
A8
C1
C5
C2
C3
C6
C8
KC-GL optionsa
G0
Value
Integer value in inches
Fraction value in 1/100 inches
Integer value in inches
Fraction value in 1/100 inches
Integer value in inches
Fraction value in 1/100 inches
Integer value in inches
Fraction value in 1/100 inches
0: Portrait, 1: Landscape
First two digits of power-up font
Middle two digits of power-up font
Last two digits of power-up font
0: Not saved at power-off
1: Saved at power-off
0: HP compatibility mode (Characters higher
than 127 are not printed.)
32: Conventional mode (Characters higher than
127 are printed. Supported symbol sets:
ISO-60 Norway [00D], ISO-15 Italian [00I],
ISO-11 Sweden [00S], ISO-6 ASCII [00U],
ISO-4 U.K. [01E], ISO-69 France [01F],
ISO-21 Germany [01G], ISO-17 Spain
[02S], Symbol [19M]c)
0: Mode A; formfeed to SP0
1: Mode B; formfeed to SP0
2: Mode A; no formfeed to SP0
3: Mode B; no formfeed to SP0
4: Fixed mode A; formfeed
5: Fixed mode B; formfeed
6: Fixed mode A; no formfeed
7: Fixed mode B; no formfeed
8: Mode A; formfeed
9: Mode B; formfeed
10: Mode A; no formfeed
11: Mode B; no formfeed
12: Fixed mode A; formfeed
13: Fixed mode B; formfeed
14: Fixed mode A; no formfeed
Factory setting
0
0
0
0
13 (17)b
61 (30)b
13 (17)b
61 (30)b
0
00
00
00
1
0
Parameter
Value
15: Fixed mode B; no formfeed
G1 through G8 0 to 99 dot
Duplex mode
N4
Default emulation
mode
P1
Carriage-return action P2
Linefeed action
P3
Automatic emulation
sensingd
P4
Alternative emulation P5
Automatic emulation P7
switching trigger
Emulation switching
after receiving !R!
P8
Sorter sharing
S0
Sorter mode
S1
Sorter message
S2
Sorter overfilling
behavior
Job separate mode
S3
Line spacinga
Line spacinga
U0
U1
S8
0 to 99 in units of 5 seconds
0: Off
1: A2
2: A1
3: A0
4: B3
5: B2
6: B1
7: B0
0: Simplex mode
1: Long-edge binding
2: Short-edge binding
0: Line Printer
1: IBM Proprinter X24E
2: Diablo 630
5: Epson LQ-850
6: HP LaserJet
8: KC-GL
9: KPDL
0: Ignores 0x0d
1: Carriage-return
2: Carriage-return+linefeed
0: Ignores 0x0d
1: Linefeed
2: Linefeed+carriage-return
0: AES disabled
1: AES enabled
Same as the P1 values except that 9 is ignored.
0: Page eject commands
1: None
2: Page eject and Prescribe EXIT
3: Prescribe EXIT
4: Page eject commands
5: Formfeed (^L)
6: Page eject, Prescribe EXIT and formfeed
7: Prescribe EXIT and formfeed
8: Page eject commands; if AES fails, resolves
to alternative emulation (P5)
9: None; if AES fails, resolves to alternative
emulation
10: Page eject commands; if AES fails, resolves
to KPDL
0: Current emulation
1: Default emulation (P1)
2: Alternative emulation (P5)
0: Stand alone
1: Multi users
2: Multiple interfaces
0: Sorter
1: Collator
2: Stacker
3: Mailbox
0: Remove sorter paper messaged
1: Remove sorter paper deactivated except at
power-up
2: Remove sorter paper deactivated
0: Interrupts printing until trays are emptied
1: Bypasses printing to the face-down tray
0: Whole pages
1: 1st page only
Lines per inch (integer value)
Lines per inch (fraction value)
Factory setting
01/02/03/04/
05/06/07/08
6
0
0
6 (HP LJ)
10
0
0
6
0
6-3
Parameter
U2
U3
U6
6-4
U8
U9
V0
V1
V2
V3
Value
Characters per inch (integer value)
Characters per inch (fraction value)
0: US-ASCII
1: France
2: Germany
3: UK
4: Denmark
5: Sweden
6: Italy
7: Spain
8: Japan
9: US Legal
10: IBM PC-850 (Multilingual)
11: IBM PC-860 (Portuguese)
12: IBM PC-863 (Canadian French)
13: IBM PC-865 (Norwegian)
14: Norway
15: Denmark 2
16: Spain 2
17: Latin America
50 99:HP PCL symbol set coding (See page 737.)
0: Same as the default emulation mode (P1)
1: IBM
2: Daisywheel
3: HP Roman8 (US ASCII)
4: Same as 3
5: Epson LQ-850
6: HP Roman-8
7 99:HP PCL symbol set coding (See page 737.)
Integer value in cpi: 0 99
Fraction value in 1/100 cpi: 0 99
Integer value in 100 points: 09
Integer value in points: 099
Fraction value in 1/100 points: 0, 25, 50, or 75
Name of typeface of up to 32 characters, enclosed
with single or double quotation marks
Factory setting
10
0
0
10
0
0
12
0
Characters higher than 127 are printed regardless of the C8 value. However, setting C8 to 0 does
not print character code 160.
Interface-independent Parameters
Table 6.2. Interface-independent Parameters (Sheet 1 of 8)
Environment
Parameter Value
Downloadable PCL font B0
0: Off
compression
1: On
Message language
B7
0: Automatically enters message language
selection at power-on
selection menu at the initial power-on. After
a language is selected, B7=1 is set
automatically.
1: Does not automatically enter message
language selection menu at power-on.
Default pattern
B8
0: 300 dpi
resolution (PAT, FPAT,
1: 600 dpi
GPAT)
3: 1200 dpi
Minimum memory
B9
0: 12 MB or more (16 MB or more)
allocation for resource
1: 10 MB (14 MB)
protection/(in duplex
2: 8 MB (12 MB)
mode)
3: 6 MB (10 MB)
4: 4 MB (8 MB)
5: 2 MB (6 MB)
Copy count
C0
Number of copies to print:1-999
KPDL font range
C9
0: KPDL fonts only
1: KPDL and PCL fonts
Serial line control
D0
0: XON is sent every 5 seconds during the
printing system is ready or waiting. Error is
ignored.
1: XON is sent every 5 seconds during the
printing system is ready or waiting. Error is
valid.
10: XON is not sent. Error is ignored.
11: XON is not sent. Error is valid.
A4 full page bleeda
D1
0: Off
1: On
Audio alarm
D2
0: Off
1: On
Paper size error
D3
0: Not notified
1: Notified
2: Complies with MS certification
Print density
D4
Number from 1 (Light) to 5 (Dark)
Service status page
D5
0: Not printed
1: Printed
Paper jam retry timing D6
0: End of page
1: Fuser sensor activated
2: Fuser sensor deactivated
3: Page ejection
4: Same as 0; non-engine-dependent
Host buffer size
H0
0 to 99 in units of 10MB (0 to 990MB)
Factory setting
0 (countries excluding
Asia) or 1 (Asia)
1
0 or 1
1
0
0
0
1
0
3
1
0
6-5
Parameter Value
H1
3: 300 bps (not valid for some models)
6: 600 bps (not valid for some models)
12: 1200 bps
24: 2400 bps
48: 4800 bps
96: 9600 bps
19: 19200 bps
38: 38400 bps
57: 57600 bps
11: 115200 bps
Serial interface data bits H2
7 or 8
Serial interface stop bits H3
1 or 2
Serial interface parity H4
0: None
1: Odd
2: Even
3: Ignore
Serial interface protocol H5
0: Combination of 1 and 3 below
1: DTR, positive true
2: DTR, negative true
3: XON/XOFF
4: ETX/ACK
5: XON/XOFF recognized only as protocol
Buffer nearly-full
H6
Percentage of the received data buffer size.
threshold
Buffer nearly-empty
H7
Percentage of the received data buffer size.
threshold
Total host buffer size
H8
0 to 99 in units of the size defined by FRPO S5
H9
I0
I1
Character width
I2
Sleep timer
I5
End-of-job
I7
interpretation for option
interface OPT2
End-of-job
interpretation for print
server interface
I8
Reduce/enlarge ratio
J0
(Models supporting A3
size only)
6-6
M1
Factory setting
96
8
1
0
90
70
5 (monochrome
model), 10
(monochrome model
with network
Interface), or 12 (color
model)
6
0
0
1
0
Parameter Value
M2
1: Default Serial or Option Serial
2: Parallel
3: Default Network or Option Network
4: Option Network or Option2 Network
5: USB
M3
0: Automatic
1: Fixed
M4
Size of the first buffer
Factory setting
2 or 3
0
3 (model with network
interface) or 5 (other)
10 (model with
network interface) or 5
(other)
1
M5
M6
M7
M8
N0
5
5
2
Duplex binding
N4
N5
Duplex
N7
0:
2:
0:
1:
2:
3:
Printing resolution
N8
N6
Command recognition
character
Default stacker
P9
R0
Off
On
Normal
Reverse output pages.
Allows duplex from the MP tray.
Allows duplex from the MP tray; reversing
the output pages.
0: 300 dpi
1: 600 dpi
3: 1200 dpi
0: Off
1: Protects permanent PCL resources and
resets the environment.
2: Protects permanent and temporary PCL
resources.
0: Normal
1: High-speed
5: Nibble (High)
70: Auto (Negotiation)
ASCII code from 33 to 99
82 (R)
1:
2:
3:
0:
1:
2:
Face-down tray
1
Face-up tray
Bulk tray
Cassette not switched when empty.
0
Main cassette and the first feeder cassette.
Main cassette and the second feeder
cassette.
3: The first feeder cassette and the second
feeder cassette.
4: Main cassette, the first feeder cassette, and
the second feeder cassette.
5: Main cassette and the third feeder cassette.
6: The first feeder cassette and the third feeder
cassette.
7: The second feeder cassette and the third
feeder cassette.
8: Main cassette, the first feeder cassette, and
the third feeder cassette.
9: Main cassette, the second feeder cassette,
and the third feeder cassette.
10: The first feeder cassette, the second feeder
cassette, and the third feeder cassette.
11: Main cassette, the first feeder cassette, the
second feeder cassette, and the third feeder
cassette.
6-7
Parameter Value
Factory setting
12: Main cassette and the fourth feeder cassette.
13: The first feeder cassette and the fourth feeder
cassette.
14: The second feeder cassette and the fourth
feeder cassette.
15: The third feeder cassette and the fourth
feeder cassette.
16: Main cassette, the first feeder cassette, and
the fourth feeder cassette.
17: Main cassette, the second feeder cassette,
and the fourth feeder cassette.
18: Main cassette, the third feeder cassette, and
the fourth feeder cassette.
19: The first feeder cassette, the second feeder
cassette, and the fourth feeder cassette.
20: The first feeder cassette, the third feeder
cassette, and the fourth feeder cassette.
21: The second feeder cassette, the third feeder
cassette, and the fourth feeder cassette.
22: Main cassette, the first feeder cassette, the
second feeder cassette, and the fourth feeder
cassette.
23: Main cassette, the first feeder cassette, the
third feeder cassette, and the fourth feeder
cassette.
24: Main cassette, the second feeder cassette,
the third feeder cassette, and the fourth
feeder cassette.
25: The first feeder cassette, the second feeder
cassette, the third feeder cassette, and the
fourth feeder cassette.
26: Main cassette, the first feeder cassette, the
second feeder cassette, the third feeder
cassette, and the fourth feeder cassette.
99: Switched according to the page size
command in data.
Default paper size
R2
0: Size of the default paper cassette (See R4.) 0
1: Monarch (3-7/8 7-1/2 inches)
2: Business (4-1/8 9-1/2 inches)
3: International DL (11 22 cm)
4: International C5 (16.2 22.9 cm)
5: Executive (7-1/4 10-1/2 inches)
6: US Letter (8-1/2 11 inches)
7: US Legal (8-1/2 14 inches)
8: A4 (21.0 29.7 cm)
9: JIS B5 (18.2 25.7 cm)
10: A3 (29.7 42 cm)
11: B4 (25.7 36.4 cm)
12: US Ledger (11 17 inches)
13: A5 (14.8 21 cm)
14: A6 (10.5 14.8 cm)
15: JIS B6 (12.8 18.2 cm)
16: Commercial #9 (3-7/8 8-7/8 inches)
17: Commercial #6 (3-5/8 6-1/2 inches)
18: ISO B5 (17.6 25 cm)
19: Custom (11.7 17.7 inches)f
30: C4 (22.9 32.4 cm)f
31: Hagaki (10 14.8 cm)f
32: Ofuku-Hagaki (14.8 20 cm)f
33: Officio II
36: A3 Wide
37: Ledger Wide
50: Statement
51: Folio
52: Youkei 2
53: Youkei 4
Default margin settings R3
0: HP compatible margins.
0
1: Full PCL printable area.
2: Character pitch given by U2 and U3.
6-8
Parameter Value
3: Full PCL printable area with character
pitches given by U2 and U3.
10: IBM HT reference point as the left margin.
11: Full PCL printable area for HP emulation;
HT reference point as the left margin in IBM
emulation.
12: Uses Courier font for IBM emulation, using
the pitch given by U2 and U3.
Default cassette
R4
0: Multi-purpose tray
1: Cassette 1
2: Cassette 2
3: Cassette 3
4: Cassette 4 or Envelope/universal feeder
5: Cassette 5
6: Cassette 6
99: Envelope/universal feeder (FS-9000)
Page protect
R5
1 3: Automatic
4 5: On
MP tray paper size
R7
Same as the R2 values except: 0
0: Maximum paper size of the printing system
Daisywheel data length R8
7: 7-bit
8: 8-bit
Default envelope feeder R9
Same as the R2 values except below
paper size
0: A4 or Letter
A4/letter equation
S4
0: Off
1: On
Host buffer size
S5
0: 10kB (x H8)
1: 100kB (x H8)
2: 1024kB (x H8)
RAM disk capacity
S6
0 to 1024 (MB)
RAM disk
S7
0: Disabled
1: Enabled
Serial interface mode
S9
0: Normal
1: Barcode reader
MP tray mode
T0
0: Cassette mode
1: First mode (overrides other paper sources)
Cassette 1 paper sizeg T1
6: Letter
T2
Wide A4
T6
MP tray directionh
T8
Paper thickness
T9
U5
W1
Color quality
W2
Color matching
W3
7: Legal
8: A4
9: B5
13: A5
Same as above.
0:
1:
0:
1:
0:
1:
2:
3:
0:
1:
0:
1:
0:
1:
2:
0:
1:
2:
3:
0:
1:
2:
3:
Off
On
Short edge
Long edge
Normal
Thick
Thin
Extra thick
Not printed automatically
Printed automatically at power-up
Dark
Normal
Monochrome (grayscale)
Color (CMYK)
Quick color (CMY)
Normal
Quick color
Picture
Presentation
None
Auto
Vivid color
Display
Factory setting
1
0
7
0
0
1
50
0
0
1
6 (U.S.A) or 8 (Euro
and other)
6 (U.S.A) or 8 (Euro
and other)
0
1
0
0
0
1
0
6-9
Ink simulation
Gloss mode
Paper type for the MP
tray
6-10
Parameter Value
W4
0: None
1: SMPTE240M
2: HDTV (sRGB)
3: SONY Trinitron
4: Apple AGB
5: NTSC
6: KC RGB
7: Custom
W5
1: None
2: SWOP
3: Euroscale
4: TOYO
5: DIC
W6
0: Low (normal)
1: High
X0
1: Plain
2: Transparency
3: Preprinted
4: Label
5: Bond
6: Recycle
7: Vellum
8: Rough
9: Letterhead
10: Color
11: Prepunched
12: Envelope
13: Cardstock
21: Custom1
22: Custom2
23: Custom3
24: Custom4
25: Custom5
26: Custom6
27: Custom7
28: Custom8
X1 X6 1: Plain
3: Preprinted
5: Bond
6: Recycled
8: Rough
9: Letterhead
10: Color
11: Prepunched
21: Custom1
22: Custom2
23: Custom3
24: Custom4
25: Custom5
26: Custom6
27: Custom7
28: Custom8
X7
1: Plain
3: Preprinted
4: Label
5: Bond
6: Recycled
8: Rough
9: Letterhead
10: Color
11: Prepunched
12: Envelope
13: Cardstock
21: Custom1
22: Custom2
23: Custom3
24: Custom4
Factory setting
2 (For the FS-8000C, 0
and 2 only)
0
1
Parameter Value
25: Custom5
26: Custom6
27: Custom7
28: Custom8
PCL paper source
X9
0: Performs paper selection depending on
media type.
1: Performs paper selection depending on
paper sources.
2: Performs paper selection which is
compatible with HP-LJ8000.
3: Combination of value 1 and 2.
8: Performs paper selection in driver priority
mode.
9: Combination of value 1 and 8.
10: Combination of value 2 and 8.
11: Combination of value 1, 2 and 8.
Automatic continue for Y0
0: Off
Press GO
1: On
Automatic continue
Y1
number from 000 to 495 in increments of 5
timer
seconds
Quick fuser heater
Y2
0: On
1: Off
Error message for
Y3
0: Does not display an error message and pause
device error
the job when the device error occurs.
1: Displays an error message when duplex
printing is not executed because of a possible
limitation.
2: Displays an error message and pause the job
when running out of staples.
3: Combination of value 1 and 2.
4: Displays an error message and pause the job
when the waste punch box is full.
5: Combination of value 1 and 4.
6: Combination of value 2 and 4.
7: Combination of value 1, 2 and 4.
8: Displays an error message and pause the job
when the maximum number of stapling is
exceeded.
9: Combination of value 1 and 8.
10: Combination of value 2 and 8.
11: Combination of value 1, 2 and 8.
12: Combination of value 4 and 8.
13: Combination of value 1, 4 and 8.
14: Combination of value 2, 4 and 8.
15: Combination of value 1, 2, 4 and 8.
16: Displays an error message when stapling,
puching, offset or rotate collate is not
executed because of a possible limitation
except 2, 4 and 8.
17: Combination of value 1 and 16.
18: Combination of value 2 and 16.
19: Combination of value 1, 2 and 16.
20: Combination of value 4 and 16.
21: Combination of value 1, 4 and 16.
22: Combination of value 2, 4 and 16.
23: Combination of value 1, 2, 4 and 16.
24: Combination of value 8 and 16.
25: Combination of value 1, 8 and 16.
26: Combination of value 2, 8 and 16.
27: Combination of value 1, 2, 8 and 16.
28: Combination of value 4, 8 and 16.
29: Combination of value 1, 4, 8 and 16.
30: Combination of value 2, 4, 8 and 16.
31: Combination of value 1, 2, 4, 8 and 16.
Duplex operation for
Y4
0: Leaves the job as is when the job which the
specified paper type
specified paper type is specified in simplex
(Prepunched, Preprinted
mode.
and Letterhead)
1: Adds blank pages and prints the job in
duplex mode when the job which the
specified paper type is specified in simplex
mode.
Factory setting
8 (model supporting
driver priority mode)
or 0 (other)
0
6
0 or 1
0
6-11
e-MPS error
6-12
Parameter Value
Factory setting
Y5
0: Enlarges or reduces the image to fit in the 0
current paper size. Loads paper from the
current paper cassette.
1: Through the image. Loads paper which is the
same size as the image.
2: Enlarges or reduces the image to fit in the
current paper size. Loads Letter, A4 or A3
size paper depending on the image size.
3: Through the image. Loads Letter, A4 or A3
size paper depending on the image size.
8: Through the image. Loads paper from the
current paper cassette.
9: Through the image. Loads Letter, Ledger or
Legal size paper depending on the image
size.
10: Enlarges or reduces the image to fit in the
current paper size. Loads Letter, Ledger or
Legal size paper depending on the image
size.
Y6
0: Does not print the error report and display 3
the error message.
1: Prints the error report.
2: Displays the error message.
3: Prints the error report and displays the error
message.
Supported only by FS-1500 series, FS-1600 series, FS-3400 series, and FS-3600 series.
Chapter 7
Emulation
The printing systems emulate the operation of seven other printers:
HP LaserJet (mode 6)
HP 7550A (mode 8)
IBM Proprinter X24E (mode 1)
Epson LQ-850 (mode 5)
Diablo 630 (mode 2)
Standard line printer (mode 0)
KPDL (mode 9) [PostScript compatible]
Word-processing and graphics software for any of the above printers also works with the
printing system. All you need to do is to set the printing system to emulate the printer
your software supports and select the appropriate printer driver.
In rare cases when your software does not support any of the printers above, install your
software to drive the standard line printer and use PRESCRIBE commands to control
line spacing, character spacing, etc.
Inappropriate selection of printer drivers and printer-based emulations will produce
undesirable results.
When shipped from the factory, the printing system is set to emulate the HP LaserJet. For
best results, look for an appropriate printer driver in your software application.
You can also find the appropriate printer driver for your model in the CD-ROM supplied
with the product. Or, you are encouraged to visit our Internet home page to directly
download the printer driver of the latest version.
This chapter first explains how to select an emulation. Then it gives some general information applying to all the emulation modes. Finally, it goes over each of the modes,
explaining the printing systems word-processing capabilities and showing its character
sets. Tables of control codes and escape sequences are also given at the end of each emulation section.
Chapter 7 Emulation
Selecting an Emulation
When installing a printing system, you can select an emulation that best suits the requirement by the application software. In most cases, the emulation will be the factory default
setting (mode 6: HP LaserJet). Refer to the following diagram to locate the next level
emulation in case you need to change the emulation.
For example, in printing environments using the HP plotter model HP 7550A (KC-GL),
the user should select mode 8. In PostScript printing environments, mode 9 should be
selected (an option on some models) .
To set an emulation mode, send the printing system the FRPO commands listed in the
table below.
Table 7.1. Emulation Switching Command Sequence
Mode
Emulation
FRPO Commands
Line Printer
Diablo 630
Epson LQ-850
HP LaserJet
HP 7550A
KPDL
The emulation mode can also be changed from the printing systems operator panel.
7-2
The printing system cannot print on paper larger than the size of its cassette. In particular, it cannot print on continuous forms.
The 600 dpi and 1200 dpi resolutions are supported only with HP LaserJet and KPDL
emulations. Even for the models with 600 dpi and 1200 dpi support, printing occurs
only with the 300 dpi resolution in Line Printer, IBM Proprinter, Diablo, and Epson
emulation modes.
The printing systems fonts do not duplicate the appearance of the fonts of the emulated printers exactly. For a fixed font, the printing system provides the same character spacing as the printer under emulation. This is not always true for proportional
spacing. When proportional spacing is used, your word processing software, using an
HP LaserJet driver, may be unable to properly right justify proportional text.
The printing system supports scalable (outline) fonts. With the assistance of PRESCRIBE commands, the scalable fonts are available for printing in any one of the
emulation modes. (See Chapter 4 for details.)
The graphics commands which create a path are also supported in all emulation
modes. Instructions on how to create a path are described in Chapter 2.
In all emulations, the printing systems margins differ slightly between emulations.
The margins can be adjusted with PRESCRIBE margin commands. However, they
cannot be moved outside the paper edge limits.
PRESCRIBE commands can also be used for supplementary font control. Examples
are given in each section (FONT, SFNT, etc.).
7-3
Chapter 7 Emulation
Abbreviation
Meaning
BS
Backspace
10
LF
Linefeed
12
FF
Formfeed
13
CR
Carriage return
Other control codes are ignored. In particular, the escape code (ESC: character code 27)
is ignored. If the printing system receives the escape sequence ESC A, for example, it
ignores the escape code and prints the letter A. Therefore, this emulation requires PRESCRIBE commands for controlling the printing system.
In font mode (FTMD) 15, the printing system automatically gives the innate character
spacing, line spacing, and page orientation for each bitmap font, and character spacing
and page orientation for each scalable font.
If a line overruns the right margin, word wrap occurs automatically in this emulation.
Symbol sets PC-850, PC-860, PC-863, PC-865, US ASCII, and Denmark allow all ruling
characters (hex B0 to DF) and underscore characters (5F) to be printed in the correct
pitch for creating continuous lines.
The symbol set may be selected with the INTL command or the operator panel keys. Permanent setting of the symbol set is made with the FRPO U6 and U7 commands but not
with the Proprinter escape sequences.
The following symbol sets list shows the support for the IBM emulation.
Table 7.3. IBM Proprinter X24E Symbol Sets
7-4
Symbol set
Message display
FRPO command
US ASCII
IBM PC-8
Denmark
US Legal
US Legal
IBM PC-850
IBM PC-860
Message display
FRPO command
IBM PC-863
IBM PC-865
By giving a particular value for the U6 and U7 parameters, it is possible to use another
symbol set which the Diablo does not have. For details, see LaserJet Symbol Sets on
page 37.
At power-up or after a reset, the printing system defaults to LetterGothic (12 points, 10
cpi). This default font emulates the IBM printers Sans-serif 10cpi font. The default font
cannot be changed in the IBM Proprinter X24E emulation. (The FRPO C5, C2, and C3
commands will be ignored in the IBM Proprinter X24E emulation.)
The printing system also emulates three other IBM-printer fonts: Courier, Prestige Elite,
and Courier Proportional (See the table on next page). These fonts can be obtained by
embedded commands or by using a printer driver from your word-processing software
that supports the IBM Proprinter X24E. No PRESCRIBE commands are needed. An
embedded command gives double-wide versions and another give double-high version
of all four fonts. Samples are shown on the next page.
Figure 7. 4. IBM Proprinter Emulation Print Samples
The IBM Proprinter X24E emulation supports embedded commands for doublewide/double-high printing, emphasized printing, double-strike printing, superscripts,
7-5
Chapter 7 Emulation
subscripts, underlining, backspace, vertical and horizontal tabulation, line spacing, and
paper length.
The font mode set for the IBM Proprinter X24E emulation is 0 (the printing system
adjusts nothing automatically for font attributes) unless you change it by the FTMD
command. If you do not need exact character spacing, you can improve the appearance
of some fonts by changing the font mode to 13.
!R! FTMD 13; EXIT;
It should be noted that for FTMD 13; the default Draft Sans-serif font will be printed in
12 cpi, and the Courier Proportional font will be printed in fixed pitch.
To use some of the page printing systems other fonts, you can select them with font
selection commands, but a more convenient method is available. You can substitute other
fonts for the four embedded fonts with SETF (SET alternate Font) commands. This
works because the printing system obtains these fonts from the following default values
of the SETF command:
Table 7.5. IBM Proprinter Fonts
Font name
Character spacing
ALTF No.
Draft Sans-serif
10 cpi, 12 cpi
Courier
10 cpi
Prestige Elite
12 cpi
Draft Sans-serif
Courier Prop.
Proportional
A substitute font can be any resident font if you use the SFNT command to assign the
font number. (See the SFNT command page in PRESCRIBE Commands Command
Reference.)
To assign a font number to resident fonts for substituting the emulated fonts in IBM Proprinter X24E emulation, all the option parameters (including symbol-set, compression,
and angle) for the SFNT command must be specified.
Landscape orientation is another feature the printing system can offer that the IBM
printer cannot. If you command !R! SPO L; EXIT; the printing system rotates the current
font and prints text in landscape orientation.
The printing system supports the IBM printers bit-image graphics in portrait orientation,
so graphics software using the IBM Proprinter X24E emulation will print charts, graphs,
and pictures without the need for PRESCRIBE commands. The print model and clipping
features of the PRESCRIBE path mode graphics will be ignored with the IBM bit-image
graphics, however.
If you attempt to print beyond the right margin, the characters will wrap around and print
on the next line.
7-6
Function
Code (hex)
BEL
Beeper
07
BS
Backspace
08
Yes
HT
Horizontal Tab
09
Yes
LF
Line Feed
0A
Yes
VT
Vertical Tab
0B
Yes
FF
Form Feed
0C
Yes
CR
Carriage Return
0D
Yes
SO
Yes
SI
Condensed Printing
Yes
DC1
Select Printer
11
DC2
10 CPI Print
12
Yes
DC4
Yes
CAN
Cancel Data
18
ESC * m n1 n2 data
1B 2A m n1 n2 data
ESC - n
Continuous Underline
1/8 Inch Line Spacing
1B 2D n
Yes
ESC 0
1B 30
Yes
ESC 1
1B 31
Yes
ESC 2
1B 32
Yes
ESC 3 n
1B 33 n
Yes
ESC 4
1B 34
Yes
ESC 5 n
1B 35 n
Yes
ESC 6
1B 36
Yes
0F
Supported
ESC 7
1B 37
Yes
ESC :
12 CPI Printing
1B 3A
Yes
ESC =
ESC A n
1B 41 n
Yes
1B 42 n1 n2...n64 0
Yes
ESC C n m
1B 43 nm
Yes
1B 44 n1 n2...n28 0
Yes
ESC E
Emphasized Printing
1B 45
Yes
ESC F
1B 46
Yes
ESC G
Double-Strike printing
1B 47
Yes
ESC H
Yes
ESC I n
1B 49 n
Yes
ESC J n
Yes
ESC K n1 n2 v1 v2...vn
Normal-Density Bit-Image
Graphics
1B 4B n1 n2 v1 v2...vn
Yes
ESC L n1 n2 v1 v2...vn
Dual-Density Bit-Image
Graphics
(Half-Speed)
1B 4C n1 n2 v1 v2...vn
Yes
ESC N n
1B 4E n
Yes
ESC O
Yes
ESC P n
1B 50 n
Yes
ESC Q n
Deselect Printer
1B 51 n
ESC R
Yes
ESC S n
Yes
ESC T
Yes
1B 54
7-7
Chapter 7 Emulation
7-8
Command
Function
Code (hex)
ESC U n
1B 55 n
Supported
ESC W n
Continuous Double-Wide
Printing
1B 57 n
Yes
ESC X n m
1B 58 n m
Yes
ESC Y n1 n2 v1 v2...vn
Dual-Density Bit-Image
Graphics
(Normal Speed)
1B 59 n1 n2 v1 v2...vn
Yes
ESC Z n1 n2 v1 v2...vn
High-Density Bit-Image
Graphics
1B 5A n1 n2 v1 v2...vn
Yes
1B 5B 40 n1 n2 m1 m2 m3 m4 Yes
ESC [K n1 n2 in id p1 p2
1B 5B 4B n1 n2 in id p1 p2
Yes
ESC [T n1 n2 0 0 c1 c2
1B 5B 54 n1 n2 0 0 c1 c2
Yes
ESC [\ n1 n2 t1 t2 g1 g2
1B 5B 7C n1 n2 t1 t2 g1 g2
Yes
ESC [g n1 n2 m data
High-Resolution Graphics
1B 5B 67 n1 n2 m data
ESC \ n1 n2
Yes
ESC ^
1B 5E
Yes
ESC_n
Continuous Overline
1B 2D n
Yes
ESC d n1 n2
Yes
ESC j
Stop Printing
1B 6A
ESC e n1 n2
1B 65 n1 n2
Yes
Yes
7-9
7-10
7-11
Chapter 7 Emulation
Message display
US
DIABLO US
FRPO commands
FRPO U6, 0; FRPO U7, 2;
France
DIABLO France
Germany
DIABLO Germany
UK
DIABLO U.K.
Denmark
DIABLO Denmark
Sweden
DIABLO Sweden
Italy
DIABLO Italy
Spain
DIABLO Spain
Japan
DIABLO Japan
US Legal
US Legal
The U0U3 parameters of the FRPO command will be ignored in the Diablo emulation.
The line and character spacing are always 6 lines and 10 characters per inch at power-up
and after a reset.
In Diablo emulation, the printing system supports the embedded commands of word-processing software essentially the same way as the Diablo 630 printer does for the following features:
Margins
Horizontal and vertical tabulation
Line and character spacing, including proportional spacing
Half line feed, reverse line feed, and reverse half line feed
Backspace and fine backspace
Bold (shadow), double-strike, and underlining
Graphics mode
If you attempt to print beyond the right margin, the characters will not be printed.
Note
A feature the printing system has that the Diablo does not is the landscape orientation. To
print in landscape orientation, send the command SPO L; and select a landscape font.
Example:
To print in landscape, send the following command:
!R! SPO L; EXIT;
The automatic centering, justification and Hyplot mode of the Diablo printer are not supported.
7-12
Fonts can be selected by placing font commands in the file to be printed, or using SETF
(set alternate font) and ALTF (change to alternate font) commands. To substitute scalable
fonts for the embedded fonts using SETF command, employ the FSET command to
apply the appropriate font number for that scalable font. The default font mode (FTMD)
is 0, so the printing system will not adjust character spacing, line spacing, or page orientation.
The red/black ribbon feature of the Diablo 630 printer is implemented in an interesting
way. The printing system translates the black ribbon command internally into an ALTF 0
command, and the red ribbon command into an ALTF 1 command. It also uses two pairs
of SETF default values:
Ribbon color Simulated bitmap font
SETF default value
Black
CourierBM12-Roman
SETF 0, 1;
Red
Dutch 801BM10-Roman SETF 1, 2;
Accordingly, if you use the embedded command that asks for red ribbon, you will get
bitmap font 2, Dutch801BM10-Roman, which the printing system emulates using a resident scalable font. This font is proportionally spaced, so you should also specify proportional spacing with an embedded command. When you change back to black ribbon, the
printing system changes to bitmap font 1, CourierBM12-Roman, also emulated using a
scalable font.
With SETF commands you can select any two fonts you like which correspond to the
black and red ribbons. For example, you can have black mean normal CGTimes and red
mean CGTimes italicized. The appropriate setup is shown below, together with a short
file and the printed result.
!R!
SFNT CGTimes, 10, 3000;
SFNT CGTimes-It, 10, 3001;
SETF 1, 3000; CMNT Red: 10-point CGTimes;
SETF 0, 3001; CMNT Black: 10-point CGTimes Italic;
EXIT;
^[A10,000 Maniacs: ^[BOur Time in Eden ^[A(Elektra)
^[AGarth Brooks: ^[BThe Chase ^[A(Liberty)
^[ARed Hot Chill Peppers: ^[BWhat Hits!? ^[A(EMI)
For red-ribbon, put ESC A (^[A in binary notation) at the point you would start to print
in normal CGTimes, and put ESC B (^[B in binary notation) at the point to end using the
font.
Figure 7. 8. Diablo Font Printout
7-13
Chapter 7 Emulation
7-14
Command
Function
Code (hex)
Supported
NUL
Buffer code
00
Yes
ETX
End of text
03
Yes
ACK
Acknowledge
06
Yes
BEL
Sound bell
07
BS
Backspace
08
Yes
HT
Horizontal tab
09
Yes
LF
Line feed
0A
Yes
VT
Vertical tab
0B
Yes
FF
Form feed
0C
Yes
CR
Carriage return
0D
Yes
SO
0E
SI
0F
DC1
XON
11
Yes
DC2
12
DC3
XOFF
13
Yes
DC4
14
NAK
15
Yes
EM
19
DEL
7F
Yes
ESC BS
Same as NUL
Backspace 1/120 inch
1B 08
Yes
ESC HT n
1B 09 n
Yes
ESC LF
1B 0A
Yes
ESC VT n
1B 0B n
Yes
ESC FF n
1B 0C n
Yes
ESC CR P
Remote reset
1B 0D 50
Yes
ESC SO DC2
1B 0E 12
ESC SO M
1B 0E 4D
ESC DC1 n
Set offset to n
1B 11 n
Yes
ESC SYN n
1B 16 n
ESC EM 1
1B 19 31
Yes
ESC EM 2
1B 19 32
Yes
ESC EM E
1B 19 45
Yes
ESC EM R
Eject page
1B 19 52
Yes
ESC SUB SO
Memory test
1B 1A 0E
ESC SUB 1
1B 1A 31
ESC SUB 3
1B 1A 33
ESC SUB I
Initialize printer
1B 1A 49
Yes
ESC SUB R
1B 1A 52
ESC GS A
1B 1D 41
ESC GS B
1B 1D 42
ESC RS n
1B 1E n
Yes
ESC US n
1B 1F n
Yes
ESC %
1B 25
ESC &
1B 26
Yes
ESC ,
1B 2C
ESC -
1B 2D
Yes
ESC . n
1B 2E n
ESC /
1B 2F
ESC \
1B 5C
ESC 0
1B 30
Yes
ESC 1
1B 31
Yes
ESC 2
1B 32
Yes
Function
Code (hex)
Supported
ESC 3
Graphics mode ON
1B 33
Yes
ESC 4
1B 34
Yes
ESC 5
1B 35
Yes
ESC 6
1B 36
Yes
ESC 7
Print suppression
1B 37
ESC 8
1B 38
Yes
ESC 9
1B 39
Yes
ESC <
1B 3C
ESC >
1B 3E
ESC =
Auto-center
1B 3D
ESC ?
1B 3F
Yes
ESC !
1B 21
Yes
ESC A
1B 41
Yes
ESC B
1B 42
Yes
ESC C
1B 43
Yes
ESC D
1B 44
Yes
ESC E
Underline ON
1B 45
Yes
ESC G
1B 47
ESC G BEL
1B 47 07
ESC L
1B 4C
Yes
ESC M
Auto-justify
1B 4D
ESC N
1B 4E
ESC O
Bold printing ON
1B 4F
Yes
ESC P
Proportional spacing ON
1B 50
Yes
ESC Q
1B 51
Yes
ESC R
Underline OFF
1B 52
Yes
ESC S
1B 53
Yes
ESC T
1B 54
Yes
ESC U
Half linefeed
1B 55
Yes
ESC V
1B 56
ESC V BEL
Hyplotrelative plot
1B 56 07
ESC W
Shadow printing ON
1B 57
Yes
ESC X
1B 58
Yes
ESC Y
1B 59
ESC Z
1B 5A
7-15
7-16
DIABLO US (29)
Diablo U. K. (125)
7-17
7-18
7-19
Chapter 7 Emulation
7-20
Message display
FRPO commands
U.S.A.
LQ US
France
LQ France
Germany
LQ Germany
U.K.
LQ U.K.
Denmark 1
LQ Denmark
Sweden
LQ Sweden
Italy
LQ Italy
Spain 1
LQ Spain
Japan
LQ Japan
Norway
LQ Norway
Denmark II
LQ Denmark2
Spain II
LQ Spain2
Latin America
Latin America
The printing system supports the Epson graphics character sets (code page tables) of PC
437 (Epson Extended Graphics), PC 850 (Multilingual), PC 860 (Portugal), PC 863
(Canada-French), and PC 865 (Norway). These sets are available only through the use of
Epson control codes. Another Epson control code also provides the US Legal character
set. The Korean character set is not supported.
When power is first switched on or after a reset, the printing system always defaults in
the Courier font (10 cpi). This default font emulates LQ-850s Draft, 10 cpi and cannot
be changed for the LQ-850 emulation.
The printing system also emulates the other four LQ-850 fonts (five in all). These fonts
can be selected by embedded commands in the word processing software or using an
Epson LQ-850 printer driver. Double-wide and double-high effects are available for all
five fonts.
7-21
Chapter 7 Emulation
The five LQ-850 fonts actually use the printing systems resident fonts. The font mode in
the Epson emulation is 0. (The printing system does not automatically adjust character
spacing.) If you do not need exact character spacing, you can improve the appearance of
these fonts by changing to font mode 13. The printing system generates double-wide and
double-high effects for these emulating fonts.
To use other printing system fonts, select them with font commands (FONT, SFNT, and
FSET). Since the printing system emulates certain LQ-850 fonts in different spacings by
using the same resident font, it should be noted that substituting one font will also
change the other fonts emulated by that font. For example, if you change the Draft 15 cpi
font which is emulated by the PrestigeEliteBM7.2-Roman font, this will also affect the
other 15 cpi LQ-850 fonts using the same ALTF 7; setting.
Table 7.12. Epson LQ-850 Fonts (Sheet 1 of 2)
Font name
Character spacing
Draft/Epson Courier 10 cpi, Proportional
12 cpi
15 cpi
Condensed 10 cpi
Condensed 12 cpi, Condensed proportional
Epson Roman
10 cpi, proportional
12 cpi
15 cpi
Condensed 10 cpi
Condensed 12 cpi, Condensed proportional
Epson Sans Serif
10 cpi, 12 cpi, proportional
15 cpi
Condensed 10 cpi
Condensed 12 cpi, Condensed proportional
7-22
ALTF No.
0
1
7
8
9
2
3
7
8
9
4
5
8
9
Character spacing
10 cpi, 12 cpi, Proportional
15 cpi
Condensed 10 cpi
Condensed 12 cpi, Condensed proportional
ALTF No.
6
7
8
9
You can alter these default SETF assignments to suit your own purposes. In the example
below, four of the SETF assignments are changed to proportional fonts, and the font
mode is changed to 15. The sample text is then printed by selecting pica for the title, elite
for the first paragraph, compressed for the second paragraph, compressed elite for the
third paragraph, and elite for the last paragraph.
!R! SETF
SETF
SETF
SETF
EXIT;
To select a scalable font for the SETF assignments, first assign a font number to the scalable font by sending the command SFNT commands to the printing system as shown
below. The font number assigned should not duplicate a number already in use.
!R! SFNT
SFNT
SFNT
SFNT
EXIT;
0;
0;
0;
0;
All option parameters for SFNT (including symbol-set, compression, and angle) are
required for assigning font numbers to a scalable font when altering the SETF assignments for the Epson emulation.
Landscape printing is possible in the LQ-850 mode. If you send the command
!R! SPOL; EXIT; the printing system rotates fonts and prints them in landscape orientation.
In portrait orientation, the printing system supports Epson bit-image graphics, so with
graphics software for the LQ-850 printer, you can use it to print charts, graphs, and pictures. The 9-bit graphics mode is also supported.
If you attempt to print beyond the right margin, the characters wrap around and are
printed on the next line.
7-23
Chapter 7 Emulation
Function
ESC @
Initialize Printer
1B 40
Yes
DC 1
Select Printer
11
DC 3
Deselect Printer
13
DEL
Delete Character
7F
ESC <
1B 3C
Yes
ESC U n
1B 55
Printer Operation
MSB Control
ESC EM n
1B 19
ESC =
Set MSB to 0
1B 3D
Yes
ESC >
Set MSB to 1
1B 3E
Yes
ESC #
1B 35
Yes
Data Control
BEL
Beeper
07
CR
Carriage Return
0D
Yes
CAN
Cancel Line
18
Vertical Motion
FF
Form feed
0C
Yes
ESC C n
1B 43
Yes
ESC C null n
1B 43 00
Yes
ESC N n
1B 4E
Yes
ESC O
1B 4F
Yes
LF
Line Feed
0A
Yes
ESC + n
1B 2B
Yes
ESC 0
1B 30
Yes
ESC 2
1B 32
Yes
ESC 3 n
1B 33
Yes
ESC A n
1B 41
Yes
ESC J n
1B 4A
Yes
VT
Tab Vertically
0B
Yes
1B 42
Yes
1B 62
Yes
ESC / n
1B 2F
Yes
ESC l n
1B 6C
Yes
ESC Q n
1B 51
Yes
BS
Backspace
08
Yes
ESC $ n1 n2
1B 24
Yes
Horizontal Motion
ESC \ n1 n2
1B 5C
Yes
HT
Tab Horizontally
09
Yes
1B 44
Yes
ESC l n
1B 6C
Yes
ESC Q n
1B 51
Yes
BS
Backspace
08
Yes
ESC $ n1 n2
1B 24
Yes
ESC \ n1 n2
1B 5C
Yes
HT
Tab Horizontally
09
Yes
1B 44
Yes
1B 50
Yes
7-24
Select 10 CPI
Function
ESC M
Select 12 CPI
1B 4D
ESC g
Select 15 CPI
1B 67
Yes
ESC p n
1B 70
Yes
SI
0F
Yes
ESC SI
1B 0F
Yes
DC2
12
Yes
SO
0E
Yes
ESC SO
1B 0E
Yes
ESC W n
1B 57
Yes
DC4
14
Yes
ESC w n
1B 77
Yes
ESC E
1B 45
Yes
ESC F
1B 46
Yes
ESC G
1B 47
Yes
ESC H
1B 48
Yes
ESC S n
1B 53
Yes
ESC T
1B 54
Yes
ESC (- n1 n2 m d1 d2
Select Score
1B 28 2D
Yes
ESC - n
1B 2D
Yes
ESC q
1B 67
Yes
Yes
Print Enhancement
Word Processing
ESC a n
Select Justification
1B 61
ESC SP n
1B 20
Yes
Character Tables
ESC t n
1B 74
Yes
ESC 4
1B 34
Yes
ESC 5
1B 35
Yes
ESC R
1B 52
Yes
User-defined Characters
ESC & null d1 d2...dn
1B 26
1B 3A
ESC % n
1B 25
ESC 6
1B 36
Yes
ESC 7
1B 37
Yes
Graphics
ESC K n1 n2 v1 v2...vn
1B 4B
Yes
ESC L n1 n2 v1 v2...vn
1B 4C
Yes
ESC Y n1 n2 v1 v2...vn
Yes
ESC Z n1 n2 v1 v2...vn
Yes
1B 5A
1B 2A
Yes
ESC ? m n
1B 3F
Yes
7-25
7-26
LQ US (28)
LQ Germany (92)
LQ U.K. (124)
7-27
LQ Italy (220)
LQ Spain (252)
Chapter 7 Emulation
7-28
LQ Japan (284)
LQ Norway (316)
Chapter 7 Emulation
7-29
LQ Denmark 2 (348)
LQ Spain 2 (380)
Chapter 7 Emulation
7-30
LQ Denmark (156)
7-31
LQ Sweden (188)
Chapter 7 Emulation
7-32
7-33
Chapter 7 Emulation
Additional soft fonts can be downloaded from external sources before printing begins.
The printing system selects the fonts by a set of command codes (escape sequences) that
describe the font attributes: character height, orientation, weight, character set, etc. (similar to the parameters used with the FSET command of PRESCRIBE). The printing systems resident fonts include the HP resident fonts and many of the fonts from the HP font
cartridges.
The printing system supports the same soft fonts as the HP LaserJet printers. In addition,
the printing system understands the LaserJet command codes and can use them to select
any of its resident or downloaded fonts.
Since the LaserJet font selection codes are fairly complex (Refer to LaserJet Font Selection section.), software that supports the Laser Jet usually provides a simplified set of
font selection commands which the software translates into LaserJet command codes.
Software-provided font selection commands will work for the printing system as they
would for the HP LaserJet series printers. If a requested font is not present in the printing
systems memory, the page printing system will choose from the characteristics of the
closest matching font.
The LaserJet emulation supports 600/1200 dpi raster graphics for printing system models
with the 300/600/1200 dpi resolution support. There is also support of delta row compression and compressed raster data for run length encoding and TIFF.
The printing system supports the LaserJet vector graphics, which draw vertical or horizontal ruled lines and create rectangles filled with a pattern or gray scale.
7-34
The margins in this emulation differ from the A parameters of the FRPO command. They
recognize the page size of the default cassette. If you attempt to print beyond the right
margin, the characters will be discarded.
Cassette
size
Letter
A4
Line per
page
60
64
Character per
line
80
77
LaserJet Fonts
The printing system emulates the LaserJet fonts as listed below.
Table 7.15. LaserJet Fonts
No. HP LaserJet Font
1 Arial
Kyocera Font
Style
Arial
16602
16901
3 Symbol
Symbol
Medium
16686
4 Wingdings
Wingdings
Medium
31402
5 CG Times
CG Times
4101
6 Univers
Univers-Md
4148
7 Univers Cond
Univers-Cd
4148
8 Courier
Courier
4099
9 Letter Gothic
Letter Gothic
4102
10 Albertus
Albertus-Md
Medium, ExtraBold
4362
11 Antique Olive
Antique Olive
4168
12 Clarendon Cond
Clarendon-Cd
BoldCondensed
4140
13 Coronet
Coronet
Italic
4116
4197
14 Garamond
Garamond
15 Marigold
Marigold
Medium
4297
16 CG Omega
CG Omega
4113
Font Priority
On the printing systems with the 600/1200 dpi resolution support, font selection in the
HP LaserJet format adds an additional step to the font prioritization format. In font selection, the printing system evaluates the characteristics of the font and, by a process of
7-35
Chapter 7 Emulation
matching features, reduces selection to a single font. The highest priority characteristic is
symbol set, followed by spacing, pitch, point size, font style, stroke weight, and typeface.
The LaserJet emulation (mode 6) adds resolution to this priority list. This additional priority is not available in the printing systems not supporting the 600/1200 dpi resolutions.
For example, the printing system might face a font selection scenario of four near identical types of the Dutch801 font (by the KPDL emulation):
These fonts have several common attributes and there is a possibility that selecting a
Times may insert the TimesNewRoman font instead as a result of the internal font evaluation procedure. It is therefore important to understand how fonts are selected by the
printing system. (See Chapter 4 for a discussion of the printing systems internal font
evaluation.)
The final (lowest) priority for font priority is the font source. The source refers to the
place where the font is accessed. The following table shows how this characteristic is
ordered.
Ordering
priority
1
2
3
Source
Users should note two differences in the source priority of font selection. Ordering priority 1 uses the original HP method whereby the internal number assigned to a font would
be evaluated and the lowest number given the higher priority. This method applies to
fonts downloaded to the printing system and, any LDFC-generated fonts. Ordering priority 3 evaluates the font in alphabetic order. This method applies to the resident fonts and
the KPDL fonts.
An FRPO command (FRPO C8;) can modify this evaluation method by turning off evaluation of either the resident or scalable fonts, or KPDL fonts or both. The resident scalable fonts are not affected by this FRPO command. These fonts were designed by Agfa
and observe the alphabetic ordering method used by Agfa.
7-36
Value (example)
Roman-8
Fixed
12-cpi
12-point
Upright
Escape Sequence
ESC(8U
ESC(s0P
ESC(s12H
ESC(s12V
ESC(s0S
7-37
Chapter 7 Emulation
ISO 60 Norway
0D (4)
HP Extension
0E (5)
ISO 25 France
0F (6)
HP German
0G (7)
ISO 15 Italian
0I (9)
ISO 14 Japan
0K (11)
11
14
ISO 11 Sweden
0S (19)
19
ISO 6 ASCII
0U (21)
21
ISO 61 Norway
1D (36)
36
ISO 4 U.K.
1E (37)
37
ISO 69 France
1F (38)
38
ISO 21 Germany
1G (39)
39
50
HP Spanish
1S (51)
51
US Legal
1U (53)
53
ISO 57 China
2K (75)
75
ISO 17 Spain
2S (83)
83
50
ISO 2 IRV
2U (85)
85
50
ISO 10 Sweden
3S (115)
15
51
ISO 16 Portugal
4S (147)
47
51
Roman-9
4U (179)
79
51
ISO 84 Portugal
5S (179)
79
51
ISO 85 Spain
6S (211)
11
52
PC Set 1
8Q (273)
73
52
HP Roman-8
8U (277)
77
52
PC Extension
9Q (305)
53
IBM PC-8
10U (341)
41
53
11U (373)
73
53
IBM PC-850
12U (405)
54
PC-858
13U (437)
37
54
7-38
Symbol Set
ISO 60 Norway
0D (4)
ISO 15 Italian
0I (9)
14
ISO 11 Sweden
0S (19)
19
ISO 6 ASCII
0U (21)
21
ISO 4 U. K.
1E (37)
37
ISO 69 France
1F (38)
38
ISO 21 Germany
1G (39)
39
US Legal
1U (53)
53
ISO Latin 2
2N (78)
78
ISO 17 Spain
2S (83)
83
50
PC Cyrillic
3R (114)
14
PS math
5M (173)
73
ISO Latin 5
5N (174)
74
Windows Latin 5
5T (180)
80
MS Publishing
6J (202)
ISO Latin 6
6N (206)
Desktop
7J (234)
34
Greek-8
8G (263)
63
Math-8
8M (269)
69
Turkish-8
8T (276)
76
HP Roman-8
8U (277)
77
Windows Latin 2
9E (293)
93
Windows Greek
9G (295)
95
PC-1004
9J (298)
98
ISO Latin 9
9N (302)
Win Cyrillic
9R (306)
PC Turkish
9T (308)
Windows
9U(309)
PC-851 Greek
10G (327)
27
PS text
10J (330)
30
ISO Cyrillic
10N (334)
34
PC-855 Serbia
10R (338)
38
IBM PC-8
10U (341)
41
PC-869 Greek
11G (359)
59
11U (373)
73
PC-8 Greek
12G (391)
91
Macintosh
12J (394)
94
ISO Greek
12N (398)
98
USSR-GOST
12R (402)
IBM PC-850
12U (405)
ABICOMP Brazil
13P (432)
32
PC-8 Bulgarian
13R (434)
34
55
ABICOMP Int.
14P (464)
64
PC Ukrainian
14R (466)
66
Pi Font
15U (501)
PC-857 Turkish
16U (533)
33
PC-852 Latin 2
17U (565)
65
ISO-10646
18N (590)
90
PC-853 Turkish
18U (597)
97
WinBalt
19L (620)
20
Windows Latin 1
19U (629)
29
PC-860 Portugal
20U (661)
61
PC-861 Iceland
21U (693)
93
PC-863 Canada
23U (757)
57
PC-8 Polish
24Q (785)
85
PC-865 Norway
25U (821)
21
PC-775
26U (853)
53
PC-8 PC Nova
27Q (881)
81
51
52
53
54
55
56
57
58
Example:
To power up in the TimesNewRoman font for the Windows symbol set:
7-39
Chapter 7 Emulation
Resource Protection
The resource protection feature is Kyoceras implementation of the HPs resource saving. The feature preserves resources during emulation switching. The protected
resources, user-defined symbol sets and patterns, fonts, and macros, remain intact when
the user switches to and from the HP LaserJet emulation.
A permanent default can be set for resource protection using the following FRPO command:
!R! FRPO N9, 1; EXIT; or !R! FRPO N9, 2; EXIT;
The MENU key on the printing systems control panel may also be used to establish
resource protection.
The following table summarizes the features and functions of the resource protection
mode in the HP LaserJet emulation.
Table 7.18. Resource Protection and FRPO N9 Value
Resource (Property)
Emulation
N9 = 0
N9 = 1
N9 = 2
HPLJ
HPLJ
Deleted
Deleted
Retained
Deleted
Retained
Retained
Macros (Permanent)
Macros (Temporary)
HPLJ
HPLJ
Deleted
Deleted
Retained
Deleted
Retained
Retained
HPLJ
HPLJ
Deleted
Deleted
Retained
Deleted
Retained
Retained
HPLJ
HPLJ
Deleted
Deleted
Retained
Deleted
Retained
Retained
Print environment
HPLJ
Deleted
Deleted
Retained
Permanent dictionary
KPDL
Retained
Retained
Retained
A detailed description of the FRPO N9 command follows. Note that the factory default
setting for the N9 command is 0.
N9 = 0, resource protection is off. No resources will be protected during emulation
switching, regardless of whether they are temporary
or permanent. When the user returns to the mode 6
emulation, the print environment will be reset. The
print environment includes items such as number of
copies, orientation, and margins.
7-40
N9 = 1, permanent PCL resources The printing system will store in memory all
are protected.
resources marked as permanent (soft fonts, macros,
user patterns and symbol sets) and protect these
resources during emulation switching. All resources
marked as temporary (soft fonts, macros, user patterns, and symbol sets) will be lost during emulation
switching. The print environment will be reset when
it is returned to the mode 6 emulation.
N9 = 2, permanent and temporary The printing system will store in memory all
PCL resources are protected.
resources, both temporary and permanent, and protect them during emulation switching. Instead of
resetting the mode 6 environment upon switching
back, the printing system will restore the previous
print environment. This option demands a large
share of printing system memory.
Resource protection becomes operational under any of the following emulation switching conditions:
The KPDL permanent dictionary is always protected, regardless of the values for N9.
The amount of memory saved under resource protection is limited by the user memory
available. Resource protection requires extra memory for storing downloaded fonts and
macros. This memory requirement extends beyond the standard memory that accompanies the printing system. The requirement varies based upon optional features installed in
the printing system.
Note that a print environment using resource protection but whose space has been limited by user memory items like macros, symbol sets and fonts, will render the resource
protection feature non-operational.
The property value (temporary or permanent) assigned to a resource must be given in the
PCL command language. PRESCRIBE provides no commands for making a temporary
or permanent designation. As a result, resource protection mode applies only to those
resources generated with the HP PCL command language. A description of the memory
requirements and property values for typical models appear in the following table.
Resolution
300 dpi
600 dpi
HPLJ 4
2 Mbytes
2 Mbytes
2 Mbytes
6 Mbytes
2 Mbytes
7 Mbytes
3 Mbytes
10 Mbytes
7-41
Chapter 7 Emulation
Resolution
300 dpi
600 dpi
3 Mbytes
11 Mbytes
6 Mbytes
2 Mbytes
7 Mbytes
3 Mbytes
10 Mbytes
3 Mbytes
11 Mbytes
10 Mbytes 10 Mbytes
14 Mbytes 14 Mbytes
Resolution
300 dpi 600 dpi 1200 dpi
Fast mode Fine mode
8 MB
8 MB
8 MB
8 MB
8 MB
8 MB
8 MB
12 MB
8 MB
8 MB
8 MB
8 MB
8 MB
8 MB
12 MB
12 MB
10 MB 10 MB
10 MB
14 MB 14 MB
14 MB
Note
7-42
The amount of available printing system memory will determine whether the 600/1200 dpi
default can be effective. If factors such as resource protection, duplexing, and raster memory reduce memory too low, then the printing system will remain at 300 dpi resolution.
Number of copies
Page control
Cassette
Upper (R4)
Orientation
Portrait (C1)
Paper size
Fonts
Font management
VMI
6 lpi (U0/U1)
HMI
10 cpi
Top margin
50 dots
Text length
Left margin
Left logical
Right margin
Right logical
Perforation skip
On
Line termination
Font
Courier
Symbol set
Underline mode
Off
Font id
Character code
Raster graphics
75
Area fill id
Macro
Macro id
Troubleshooting command
Off
Display functions
Off
LaserJet PJL
The HP LaserJet emulation loads a Printer Job Language (PJL) that controls communication between the printing system and the system. The PJL works for both KPDL and HP
LaserJet emulations. It enables the user to change some default states but, more importantly, allows current printing system states to be communicated back to the host system.
The Kyocera printing systems described in this manual support only a subset of the HP
PJL commands. To check supported PJL features, see the table that follows.
Table 7.22. Supported PJL Commands
Command Group
Command
Description
Kernel Commands
Universal Exit
Language (UEL)
Job Separation
Commands
COMMENT
ENTER
JOB
EOJ
7-43
Chapter 7 Emulation
Command
Description
Environment
Commands
DEFAULT
SET
Status Readback
Commands
Device Attendance
Commands
INITIALIZE
RESET
INQUIRE
DINQUIRE
ECHO
INFO
USTATUS
USTATUSOFF
RDYMSG
OPMSG
STMSG
FSDELETE
FSDOWNLOAD
FSINIT
FSMKDIR
PJL prefix
@PJL
Option name
ENTER
Option value
PJL syntax also uses the following control codes and special identifiers.
<HT>
<LF>
<CR>
<SP>
<ESC>
<FF>
<WS>
7-44
<words>
^D
The prefix @PJL always must be uppercase. Other parts of the PJL command are not
case-sensitive.
Spacing between characters (white space) should either be the space character
(ASCII 32) or the horizontal tab character (ASCII 9).
The placement of white space in PJL commands depends on its location within the command. Some white space is mandatory and some is optional:
White space is required between the @PJL prefix and the PJL command name, and
between the PJL command name and command modifiers. For example:
@PJL OPMSG DISPLAY or
@PJL ENTER LANGUAGE = personality
If white space does not appear in any other place in the command, white space is
optional.
If white space appears between two portions of a PJL command, it is not allowed. An
example of white space use appears between the optional carriage return and required
line feed character that terminate most commands.
7-45
Chapter 7 Emulation
PJL variables
PJL uses alphanumeric variables, numeric variables, and strings. The following explains
the three types of variables and their ranges.
Alphanumeric variables
Any combination of letters and digits, with the rule that the first character must always
be a letter. Letters can consist of the uppercase letters (ASCII 65 through 90) and lowercase letters (ASCII 97 through 122). Digits can consist of numbers 0 through 9 (ASCII
48 through 57).
Example of valid alphanumeric variables:
Alpha 635
X2000
Examples of invalid alphanumeric variables:
635Alpha
(Alphanumeric variables must begin with a letter)
X 2000
(Space characters [ASCII 32] are not allowed in alphanumeric variables)
Numeric variables
Any number consisting of digits, with one optional decimal point and an optional plus
(+) or minus () sign preceding the first digit. Only one decimal point may be used. It
must also be placed somewhere after the first digit. Digits are unnecessary after the decimal point.
Examples of valid numeric variables:
0.123456
123.456
+657000
2468.
Examples of invalid numeric variables:
.123456
(The decimal point must be preceded by at least 1 digit).
123.45.6
(Only 1 decimal point is allowed in a numeric variable).
+657,000
(Commas should not be used in numeric variables).
Strings
Strings should be enclosed in quotation marks, and consist of any combination of characters of ASCII codes from 32 through 255 including 9 (horizontal tab) but excluding 34
(quotation marks). Examples are as follows.
Examples of valid strings:
"Model:<HT>FS-9500DN" Tabs are allowed in a string.
"Telephone number<CR>01234-5678"
<CR> is out of the valid range of ASCII characters for a string.
7-46
Invalid Commands
Invalid commands are in two general types: those with syntax errors and those with syntax or semantic warnings. The printing system handles each of those types different
ways.
Syntax errors contain errors such as unrecognized commands and command modifiers,
strings with missing closing double quotations, numeric values with missing digits
before the decimal points, and numeric values encountered when alphanumeric values
are to be expected. The printing system ignores the entire PJL commands when it
receives commands having syntax errors. Some examples follow.
The JOB commands NAME option requires double quotations around its value part.
Valid command:
@PJL JOB NAME = "Job Number 50" <LF>
Invalid command:
@PJL JOB NAME = "Job Number 51 <LF>
The closing quotation is required.
Syntax warnings and semantic warnings are issued for such commands that have unsupported options, values out of range, values missing or of the incorrect type, or values
added when none are allowed. When the printing system receives commands with syntax
or semantic warnings, the part of the command including the warning is ignored.
In the following example, the START option is valid for the JOB command.
Valid command:
@PJL JOB START = 1 <LF>
While in the following, FINISH is not a valid option and ignored (END should be used).
Invalid command:
@PJL JOB START = 1 FINISH = HOME <LF>
PJL command
FRPO parameter
Printing resolution
RESOLUTION
Raster memory
PAGEPROTECT
(HP Page protection)
FRPO R5
Personality
PERSONALITY
RET
FRPO N0
Interface timeout
TIMEOUT
FRPO N9
Copy
COPIES
FRPO C0
Paper size
PAPER
FRPO R2
Orientation
ORIENTATION
FRPO C1
Manual feed
MANUAL FEED
FRPO R4
Paper source
MANUAL FEED
FRPO R4
Output stack
OUTBIN
FRPO R0
7-47
Chapter 7 Emulation
7-48
Environment
PJL command
FRPO parameter
Duplex
DUPLEX
FRPO N4
Default font
FONTNUMBER
FRPO V3
Point size
PTSIZE
FRPO V0-2
Pitch
PITCH
Symbol set
SYMSET
FRPO U6/U7
Parameter
Command
Hexadecimal
Value
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
1B 45
Yes
Yes
Yes
Yes
Number of
Copies
# of Copies
(1-999)
ESC&l#X
1B 26 6C #...#
58
Yes
Yes
Yes
Yes
Long-Edge
(Left)
Offset
# of
Decipoints
(1/720)
ESC&l#U
1B 26 6C #...#
55
Yes
Yes
Yes
Yes
Short-Edge
(Top)
Offset
# of
Decipoints
(1/720)
ESC&l#Z
1B 26 6C #...#
5A
Yes
Yes
Yes
Yes
Unit of
Measure
# = Number of ESC&u#D
1B 26 75 #...# 44
units per inch
ESC%-12345X 1B 25 2D 31 32
33 34 35 58
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Reset
Exit PCL
Language
Simplex/Duplex Operation
ESC&l0S
1B 26 6C 30 53
Yes
Yes
Yes
Yes
ESC&llS
ESC&l2S
1B 26 6C 32 53
1B 26 6C 32 53
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Next side
ESC&a0G
1B 26 61 30 47
Yes
Yes
Yes
Yes
Front Side
ESC&a1G
1B 26 61 31 47
Yes
Yes
Yes
Yes
Back Side
ESC&a2G
1B 26 61 32 47
Yes
Yes
Yes
Yes
ESC&l1T
1B 26 6C 31 54
Yes
Yes
Yes
Yes
Current Tray
(0)
ESC&l0H
1B 26 6C 30 48
Yes
Yes
Yes
Yes
Upper Paper
Tray (1)
ESC&l1H
1B 26 6C 31 48
Yes
Yes
Yes
Yes
Manual
Feeder (2)
ESC&l2H
1B 26 6C 32 48
Yes
Yes
Yes
Yes
Manual
Feeder (3)
ESC&l3H
1B 26 6C 33 48
Yes
Yes
Yes
Yes
Lower (1)
Tray (4)
ESC&l4H
1B 26 6C 34 48
Yes
Yes
Yes
Yes
Lower (2)
Tray (5)
ESC&l5H
1B 26 6C 35 48
Yes
Yes
Yes
Yes
1B 26 6C 36 48
Yes
Yes
No
No
Auto Select
ESC&l7H
(Media Type)
1B 26 6C 37 48
Yes
Yes
Yes
Yes
ESC&l20H
3rd Tray in
Paper Feeder/
4th Tray in
Paper Feeder
ESC&l21H
5th Tray in
Paper Feeder
ESC&l22H
6th Tray in
Paper Feeder
1B 26 6C 32 30
48
Yes
Yes
Yes
Yes
1B 26 6C 32 31
48
Yes
Yes
Yes
Yes
1B 26 6C 32 32
48
Yes
Yes
Yes
Yes
Simplex/Dupl Simplex
ex Print
Duplex
Long-EdgeBinding
Short-EdgeBinding
Page Side
Selection
Job
Separation
7-49
Chapter 7 Emulation
Parameter
Command
Hexadecimal
Value
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
Output Bin
Destination
Tray 1 (Face
down)
ESC&l1G
1B 25 6C 31 47
Yes
Yes
Yes
Yes
Destination
Tray 2 (Face
up)
ESC&l2G
1B 25 6C 32 47
Yes
Yes
Yes
Yes
Destination
Tray 3 (Opt.
Face down)
ESC&l3G
1B 26 6C 33 47
No
Yes
No
Yes
Destination
Tray 1 (Face
down)
ESC&l4G
1B 26 6C 34 47
No
Yes
No
Yes
Destination
Tray 2 (Face
down)
ESC&l5G
1B 26 6C 35 47
No
Yes
No
Yes
Destination
Tray 3 (Face
down)
ESC&l6G
1B 26 6C 36 47
No
Yes
No
Yes
Destination
Tray 4 (Face
down)
ESC&l7G
1B 26 6C 37 47
No
Yes
No
Yes
Destination
Tray 5 (Face
down)
ESC&l8G
1B 26 6C 38 47
No
Yes
No
Yes
Destination
Tray 6 (Face
down)
ESC&l9G
1B 26 6C 39 47
No
Yes
No
Yes
Destination
Tray 7 (Face
down)
ESC&l10G
1B 26 6C 31 30
47
No
Yes
No
Yes
Destination
Tray 8 (Face
down)
ESC&l11G
1B 26 6C 31 31
47
No
Yes
No
Yes
Destination
Tray 9 (Face
down)
ESC&l12G
1B 26 6C 31 32
47
No
Yes
No
Yes
35 57 64 61 75
74 6F
Yes
Yes
Yes
Yes
36 57 64 50 6C
61 69 6E
Yes
Yes
Yes
Yes
31 33 57 64 54
72 61 6E 73 70
61 72 65 6E 63
79
Yes
Yes
Yes
Yes
ESC&n11Wd 31 31 57 64 50
Preprinted
72 65 70 72 69
6E 74 65 64
ESC&n7Wd 37 57 64 4C 61
Labels
62 65 6C 73
ESC&n5Wd 35 57 64 42 6F
Bond
6E 64
ESC&n9Wd 39 57 64 52 65
Recycled
63 79 63 6C 65
64
ESC&n7Vellum 37 56 65 6C 6C
75 6D 0D
ESC&n6Wd
Rough
ESC&n11Wd 31 31 57 64 4C
Letterhead
65 74 74 65 72
68 65 61 64
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Media Type
Media Type
Automatica
ESC&n5Wd
Auto
ESC&n6Wd
Plain
Plain
Transparency ESC&n13Wd
Transparency
Preprinted
Labels
Bond
Recycled
Vellum
Rough
Letterhead
7-50
Parameter
Command
Hexadecimal
Value
Color
ESC&n6Wd
Color
ESC&n11Wd
Prepunched
36 57 64 43 6F
6C 6F 72
Yes
Yes
Yes
Yes
31 31 57 64 50
72 65 70 75 6E
63 68 65 64
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Executive
ESC&n9Wd
Envelope
ESC&n11Wd 31 30 57 64 43
Cardstock
61 72 64 73 74
6F 63 6B
ESC&n8Wd
Custom1
ESC&n8Wd
Custom2
ESC&n8Wd
Custom3
ESC&n8Wd
Custom4
ESC&n8Wd
Custom5
ESC&n8Wd
Custom6
ESC&n8Wd
Custom7
ESC&n8Wd
Custom8
ESC&l1A
1B 26 6C 31 41
Yes
Yes
Yes
Yes
Letter
ESC&l2A
Yes
Yes
Yes
Yes
Legal
ESC&l3A
1B 26 6C 33 41
Yes
Yes
Yes
Yes
Ledger
ESC&l6A
1B 26 6C 36 41
Yes
Yes
Yes
Yes
A5
ESC&l25A
1B 26 6C 32 35
41
Yes
Yes
Yes
Yes
A4
ESC&l26A
1B 26 6C 32 36
41
Yes
Yes
Yes
Yes
A3
ESC&l27A
1B 26 6C 32 37
41
Yes
Yes
Yes
Yes
JIS B5
ESC&l45A
1B 26 6C 34 35
41
Yes
Yes
Yes
Yes
JIS B4
ESC&l46A
1B 26 6C 34 36
41
Yes
Yes
Yes
Yes
Hagaki
ESC&l71A
1B 26 6C 37 31
41
Yes
Yes
Yes
Yes
OufukuHagaki
ESC&l72A
1B 26 6C 37 32
41
Yes
Yes
Yes
Yes
YOUKEI 2
ESC&l2052A
1B 26 6C 32 30
35 32 41
Yes
Yes
Yes
Yes
YOUKEI 4
ESC&l2053A
1B 26 6C 32 30
35 33 41
Yes
Yes
Yes
Yes
FOLIO
ESC&l2051A
1B 26 6C 32 30
35 31 41
Yes
Yes
Yes
Yes
STATEMENT ESC&l2050A
1B 26 6C 32 30
35 30 41
Yes
Yes
Yes
Yes
OFICIO II
1B 26 6C 32 30
33 33 41
Yes
Yes
Yes
Yes
Prepunched
Envelope
Card stock
Custom 1
Custom 2
Custom 3
Custom 4
Custom 5
Custom 6
Custom 7
Custom 8
Page Size
ESC&l2033A
1B 26 6C 32 41
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
7-51
Chapter 7 Emulation
Page Length
Parameter
Command
Hexadecimal
Value
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
International
B5
ESC&l100A
1B 26 6C 31 30
30 41
Yes
Yes
Yes
Yes
Custom
ESC&l101A
1B 26 6C 31 30
31 41
Yes
Yes
Yes
Yes
Monarch
ESC&l80A
1B 26 6C 38 30
41
Yes
Yes
Yes
Yes
COM 10
ESC&l81A
1B 26 6C 38 31
41
Yes
Yes
Yes
Yes
DL
ESC&l90A
1B 26 6C 39 30
41
Yes
Yes
Yes
Yes
International
C5
ESC&l91A
1B 26 6C 39 31
41
Yes
Yes
Yes
Yes
# of Lines
ESC&l#P
1B 26 6C #...#
050
Yes
Yes
Yes
Yes
Orientation
Orientation
Portrait
ESC&l0O
1B 26 6C 30 4F
Yes
Yes
Yes
Yes
Landscape
ESC&l1O
1B 26 6C 31 4F
Yes
Yes
Yes
Yes
Reverse
Portrait
ESC&l2O
1B 26 6C 32 4F
Yes
Yes
Yes
Yes
Reverse
Landscape
ESC&l3O
1B 26 6C 33 4F
Yes
Yes
Yes
Yes
1B 26 61 #...# 50
Yes
Yes
Yes
Yes
ESC&a#P
Print Direction Degrees of
Rotation
(counterclock
wise
90increments
only)
ESC&c0T
Character Text Horizontal
Path Direction
ESC&c-1T
Vertical
Rotated
1B 26 63 30 54
Yes
Yes
Yes
Yes
1B 26 63 2D 31
54
Yes
Yes
Yes
Yes
# of Lines
ESC&l#E
1B 26 6C #...#
45
Yes
Yes
Yes
Yes
Text Length
# of Lines
ESC&l#F
1B 26 6C #...#
46
Yes
Yes
Yes
Yes
Left Margin
# of Columns ESC&a#L
1B 26 61 #...#
4C
Yes
Yes
Yes
Yes
Right Margin
# of Columns ESC&a#M
1B 26 61 #...#
4D
Yes
Yes
Yes
Yes
1B 39
Yes
Yes
Yes
Yes
ESC9
Clear
Horizontal
Margins
Perforation Skip Mode
Perforation
Skip
Disable
ESC&l0L
1B 26 6C 30 4C
Yes
Yes
Yes
Yes
Enable
ESC&l1L
1B 26 6C 31 4C
Yes
Yes
Yes
Yes
ESC&lk#H
1B 26 6B #...#
48
Yes
Yes
Yes
Yes
# of 1/120
Increments
7-52
Vertical
Motion Index
(VMI)
# of 1/48
Increments
ESC&l#C
1B 26 6C #...#
43
Yes
Yes
Yes
Yes
Line Spacing
(Lines per
inch)
1 line/inch
ESC&l1D
1B 26 6C 31 44
Yes
Yes
Yes
Yes
2 lines/inch
ESC&l2D
1B 26 6C 32 44
Yes
Yes
Yes
Yes
3 lines/inch
ESC&l3D
1B 26 6C 33 44
Yes
Yes
Yes
Yes
4 lines/inch
ESC&l4D
1B 26 6C 34 44
Yes
Yes
Yes
Yes
6 lines/inch
ESC&l6D
1B 26 6C 36 44
Yes
Yes
Yes
Yes
8 lines/inch
ESC&l8D
1B 26 6C 38 44
Yes
Yes
Yes
Yes
12 lines/inch
ESC&l12D
1B 26 6C 31 32
44
Yes
Yes
Yes
Yes
Parameter
Command
Hexadecimal
Value
16 lines/inch
ESC&l16D
1B 26 6C 31 36
44
Yes
Yes
Yes
Yes
24 lines/inch
ESC&l24D
1B 26 6C 32 34
44
Yes
Yes
Yes
Yes
48 lines/inch
ESC&l48D
1B 26 6C 34 38
44
Yes
Yes
Yes
Yes
ESC&n#W
[operation]
[String]
1B 26 6E #...#
57
Yes
Yes
Yes
Yes
Alphanumeric # of bytes
ID
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
CURSOR POSITIONING
Vertical and Horizontal
Vertical
Position
Horizontal
Position
# of Rows
ESC&a#R
1B 26 61 #...# 52
Yes
Yes
Yes
Yes
# of Dots
ESC*p#Y
1B 2A 70 #...#
59
Yes
Yes
Yes
Yes
# of
Decipoints
ESC&a#V
1B 26 61 #...# 56
Yes
Yes
Yes
Yes
# of Columns ESC&a#C
ESC*p#X
# of Dots
1B 26 61 #...# 43
Yes
Yes
Yes
Yes
1B 2A 70 #...#
58
Yes
Yes
Yes
Yes
ESC&a#H
1B 26 61 #...# 48
Yes
Yes
Yes
Yes
ESC=
1B 3D
Yes
Yes
Yes
Yes
ESC&k0G
1B 26 6B 30 47
Yes
Yes
Yes
Yes
CR = CR + LF ESC&k1G
LF = LF
FF = FF
ESC&k2G
CR = CR;
LF = CR + LF;
FF = CR + FF
CR = CR + LF; ESC&k3G
LF = CR + LF;
FF = CR + FF
1B 26 6B 31 47
Yes
Yes
Yes
Yes
1B 26 6B 32 47
Yes
Yes
Yes
Yes
1B 26 6B 33 47
Yes
Yes
Yes
Yes
# of
Decipoints
Half Line Feed
End-of-Line Termination
Line
Termination
CR = CR;
LF = LF;
FF = FF;
Push/Pop Position
Push/Pop
Position
Push
ESC&f#S
1B 26 66 30 53
Yes
Yes
Yes
Yes
Pop
ESC&f#S
1B 26 66 31 53
Yes
Yes
Yes
Yes
ESC(0D
1B 28 30 44
Yes
Yes
Yes
Yes
1B 28 31 45
Yes
Yes
Yes
Yes
1B 28 39 45
Yes
Yes
Yes
Yes
1B 28 31 46
Yes
Yes
Yes
Yes
1B 28 31 47
Yes
Yes
Yes
Yes
FONT SELECTION
Symbol Set Selection
Primary
Symbol Set
ISO 60:
Norwegian
1B 28 30 49
Yes
Yes
Yes
Yes
Microsoft
publishing
ESC(6J
1B 28 36 4A
Yes
Yes
Yes
Yes
DeskTop
ESC(7J
1B 28 37 4A
Yes
Yes
Yes
Yes
PC1004
ESC(9J
1B 28 39 4A
Yes
Yes
Yes
Yes
PS Text
ESC(10J
1B 28 31 30 4A
Yes
Yes
Yes
Yes
MC Text
ESC(12J
1B 28 31 32 4A
Yes
Yes
Yes
Yes
Wingdings
ESC(579L
1B 28 35 37 39
4C
Yes
Yes
Yes
Yes
PS Math
ESC(5M
1B 28 35 4D
Yes
Yes
Yes
Yes
7-53
Chapter 7 Emulation
Parameter
Command
Hexadecimal
Value
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
Math-8
ESC(8M
1B 28 38 4D
Yes
Yes
Yes
Yes
Symbol
ESC(19M
1B 28 31 39 4D
Yes
Yes
Yes
Yes
ECMA-94
Latin 1
ESC(0N
1B 28 30 4E
Yes
Yes
Yes
Yes
ISO L2
ESC(2N
1B 28 32 4E
Yes
Yes
Yes
Yes
ISO L5
ESC(5N
1B 28 35 4E
Yes
Yes
Yes
Yes
ISO 8859-10
Latin 6
ESC(6N
1B 28 36 4E
Yes
Yes
Yes
Yes
ISO 11:
Swedish
ESC(0S
1B 28 30 53
Yes
Yes
Yes
Yes
ISO 17:
Spanish
ESC(2S
1B 28 32 53
Yes
Yes
Yes
Yes
Windows 3.1
Latin 5
ESC(5T
1B 28 35 54
Yes
Yes
Yes
Yes
ESC(9T
PC Turkish
ISO 6: ASCII ESC(0U
ESC(1U
Legal
1B 28 39 54
Yes
Yes
Yes
Yes
1B 28 30 55
Yes
Yes
Yes
Yes
1B 28 31 55
Yes
Yes
Yes
Yes
Roman-8
ESC(8U
1B 28 38 55
Yes
Yes
Yes
Yes
Windows 3.0
Latin 1
ESC(9U
1B 28 39 55
Yes
Yes
Yes
Yes
PC-8
ESC(10U
1B 28 31 30 55
Yes
Yes
Yes
Yes
PC-8 D/N
ESC(11U
1B 28 31 31 55
Yes
Yes
Yes
Yes
PC 850
ESC(12U
1B 28 31 32 55
Yes
Yes
Yes
Yes
Pi Font
ESC(15U
1B 28 31 35 55
Yes
Yes
Yes
Yes
PC-852
ESC(17U
1B 28 31 37 55
Yes
Yes
Yes
Yes
Windows 3.1
Latin 1
(ANSI)
ESC(19U
1B 28 31 39 55
Yes
Yes
Yes
Yes
PC-775
ESC(26U
1B 28 32 36 55
Yes
Yes
Yes
Yes
1B 28 31 39 4B
Yes
Yes
Yes
Yes
Spacing
Fixed
ESC(s0P
1B 28 73 30 50
Yes
Yes
Yes
Yes
Proportional
ESC(s1p
1B 28 73 31 50
Yes
Yes
Yes
Yes
ESC(s#H
1B 28 73 #...# 48
Yes
Yes
Yes
Yes
Primary
Spacing
Pitch
ESC&k0S
1B 26 6B 30 53
Yes
Yes
Yes
Yes
Compressed
(16.5-16.7)
ESC&k2S
1B 26 6B 32 53
Yes
Yes
Yes
Yes
Elite (12.0)
ESC&k4S
1B 26 6B 34 53
Yes
Yes
Yes
Yes
# Points
ESC(s#V
1B 28 73 #...# 56
Yes
Yes
Yes
Yes
ESC(s0S
1B 28 73 30 53
Yes
Yes
Yes
Yes
Italic
ESC(s1S
1B 28 73 31 53
Yes
Yes
Yes
Yes
Condensed
ESC(s4S
1B 28 73 34 53
Yes
Yes
Yes
Yes
Condensed
Italic
ESC(s5S
1B 28 73 35 53
Yes
Yes
Yes
Yes
Compressed
(Extra
Condensed)
ESC(s8S
1B 28 73 38 53
Yes
Yes
Yes
Yes
Expanded
ESC(s24S
1B 28 73 32 34
53
Yes
Yes
Yes
Yes
Outline
ESC(s32S
1B 28 73 33 32
53
Yes
Yes
Yes
Yes
Point Size
Primary
Height
Style
7-54
Parameter
Command
Hexadecimal
Value
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
Inline
ESC(s64S
1B 28 73 36 34
53
Yes
Yes
Yes
Yes
Shadowed
ESC(s128S
1B 28 73 31 32
38 53
Yes
Yes
Yes
Yes
Outline
Shadowed
ESC(s160S
1B 28 73 31 36
30 53
Yes
Yes
Yes
Yes
ESC(s-7B
1B 28 73 2D 37
42
Yes
Yes
Yes
Yes
Extra Thin
ESC(s-6B
1B 28 73 2D 36
42
Yes
Yes
Yes
Yes
Thin
ESC(s-5B
1B 28 73 2D 35
42
Yes
Yes
Yes
Yes
Extra Light
ESC(s-4B
1B 28 73 2D 34
42
Yes
Yes
Yes
Yes
Light
ESC(s-3B
1B 28 73 2D 33
42
Yes
Yes
Yes
Yes
Demi Light
ESC(s-2B
1B 28 73 2D 32
42
Yes
Yes
Yes
Yes
Semi Light
ESC(s-1B
1B 28 73 2D 31
42
Yes
Yes
Yes
Yes
ESC(s0B
Medium
(book or text)
ESC(s1B
Semi Bold
1B 28 73 30 42
Yes
Yes
Yes
Yes
1B 28 73 31 42
Yes
Yes
Yes
Yes
Demi Bold
ESC(s2B
1B 28 73 32 42
Yes
Yes
Yes
Yes
Bold
ESC(s3B
1B 28 73 33 42
Yes
Yes
Yes
Yes
Extra Bold
ESC(s4B
1B 28 73 34 42
Yes
Yes
Yes
Yes
Black
ESC(s5B
1B 28 73 35 42
Yes
Yes
Yes
Yes
Extra Black
ESC(s6B
1B 28 73 36 42
Yes
Yes
Yes
Yes
Ultra Black
ESC(s7B
1B 28 73 37 42
Yes
Yes
Yes
Yes
ESC(s4362T
1B 28 73 34 31
36 32 54
Yes
Yes
Yes
Yes
1B 28 73 34 31
36 38 54
Yes
Yes
Yes
Yes
Clarendon
ESC(s4140T
1B 28 73 34 31
34 30 54
Yes
Yes
Yes
Yes
Coronet
ESC(s4116T
1B 28 73 34 31
31 36 54
Yes
Yes
Yes
Yes
Courier
ESC(s3T
1B 28 73 33 54
Yes
Yes
Yes
Yes
GW-Kai
ESC(s37357T
1B 28 73 33 37
33 35 37 54
Yes
Yes
Yes
Yes
Courier
ESC(s4099T
1B 28 73 34 30
39 39 54
Yes
Yes
Yes
Yes
ITC Zapf
Dingbats
ESC(s4141T
1B 28 73 34 31
34 31 54
Yes
Yes
Yes
Yes
Garamond
Antiqua
ESC(s4197T
1B 28 73 34 31
39 37 54
Yes
Yes
Yes
Yes
1B 28 73 34 31
30 32 54
Yes
Yes
Yes
Yes
Stroke Weight
Albertus
LinePrinter
ESC(s0T
1B 28 73 30 54
Yes
Yes
Yes
Yes
Marigold
ESC(s4297T
1B 28 73 34 32
39 37 54
Yes
Yes
Yes
Yes
CG Omega
ESC(s4113T
1B 28 73 34 31
31 33 54
Yes
Yes
Yes
Yes
CG Times
ESC(s4101T
1B 28 73 34 31
30 31 54
Yes
Yes
Yes
Yes
Univers
ESC(s4148T
1B 28 73 34 31
34 38 54
Yes
Yes
Yes
Yes
Arial
ESC(s16602T
1B 28 73 31 36
36 30 32 54
Yes
Yes
Yes
Yes
7-55
Chapter 7 Emulation
Parameter
Command
Hexadecimal
Value
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
MS Mincho
ESC(s28752T
1B 28 73 32 38
37 35 32 54
Yes
Yes
Yes
Yes
MS Gothic
ESC(s28825T
1B 28 73 32 38
38 32 35 54
Yes
Yes
Yes
Yes
Times New
Roman
ESC(s16901T
1B 28 73 31 36
39 30
Yes
Yes
Yes
Yes
SimHei
ESC(s37110T
1B 28 73 33 37
31 31 30 54
Yes
Yes
Yes
Yes
SimSun
ESC(s37058T
1B 28 73 33 37
30 35 38 54
Yes
Yes
Yes
Yes
Symbol
ESC(s16686T
1B 28 73 31 36
36 38 36 54
Yes
Yes
Yes
Yes
Wingdings
ESC(s6826T
1B 28 73 36 38
32 36 54
Yes
Yes
Yes
Yes
Wingdings
ESC(s31402T
1B 28 73 33 31
34 30 32 54
Yes
Yes
Yes
Yes
1B 28 33 40
Yes
Yes
Yes
Yes
1B 29 33 40
Yes
Yes
Yes
Yes
1B 26 64 30 44
Yes
Yes
Yes
Yes
1B 26 64 33 44
Yes
Yes
Yes
Yes
Font Default
Font Default
Underline
Underline
Enable
Floating
Text Parsing
Method
Disable
ESC&d@
1B 26 64 40
Yes
Yes
Yes
Yes
1-Byte
ESC&t0P
1B 26 74 30 50
Yes
Yes
Yes
Yes
1-Byte
ESC&t1P
1B 26 74 31 50
Yes
Yes
Yes
Yes
1B 26 74 32 50
Yes
Yes
Yes
Yes
1B 26 74 32 31
50
Yes
Yes
Yes
Yes
1-Byte/2-Byte ESC&t31P
1B 26 74 33 31
50
Yes
Yes
Yes
Yes
1-Byte/2-Byte ESC&t38P
1B 26 74 33 38
50
Yes
Yes
Yes
Yes
Unicode
(UTF-8)
ESC&t83P
ESC&t1008P
1B 26 74 38 33
50
1B 26 74 31 30
30 38 50
Yes
Yes
Yes
Yes
ESC&p#X
[Data]
1B 26 70 #...# 58
Yes
Yes
Yes
Yes
ESC*c#D
1B 2A 63 #...#
44
Yes
Yes
Yes
Yes
2-byte
ESC&t2P
1-Byte/2-Byte ESC&t21P
Transparent Print
Transparent
Print Data
# of Bytes
FONT MANAGEMENT
Assign Font ID Font ID #
7-56
Parameter
Command
Hexadecimal
Value
Font and
Character
Control
Delete all
Fonts
ESC*c0F
1B 2A 63 30 46
Yes
Yes
Yes
Yes
Delete all
temporary
fonts
ESC*c1F
1B 2A 63 31 46
Yes
Yes
Yes
Yes
Delete last
font
ID specified
ESC*c2F
1B 2A 63 32 46
Yes
Yes
Yes
Yes
Delete last
character
specified
ESC*c3F
1B 2A 63 33 46
Yes
Yes
Yes
Yes
Make font
temporary
ESC*c4F
1B 2A 63 34 46
Yes
Yes
Yes
Yes
Make font
permanent
ESC*c5F
1B 2A 63 35 46
Yes
Yes
Yes
Yes
Copy/Assign
the currently
invoked font
as temporary
ESC*c6F
1B 2A 63 36 46
Yes
Yes
Yes
Yes
1B 2A 63 #...#
52
Yes
Yes
Yes
Yes
ESC(f#W[DAT 1B 28 66 #...# 57
A]
ESC*c0S
1B 2A 63 30 53
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
ESC*c1S
1B 2A 63 31 53
Yes
Yes
Yes
Yes
1B 2A 63 32 53
Yes
Yes
Yes
Yes
1B 2A 63 34 53
Yes
Yes
Yes
Yes
1B 2A 63 35 53
Yes
Yes
Yes
Yes
ESC(#X
1B 28 #...# 58
Yes
Yes
Yes
Yes
ESC)#X
ID #
secondary font
1B 29 #...# 58
Yes
Yes
Yes
Yes
Delete all
symbol sets
Delete all
temporary
symbol sets
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
ID # primary
font
ESC)s#W[Data] 1B 29 73 #...# 57
Yes
Yes
Yes
Yes
Download
character
ESC(s#W[Data] 1B 28 73 #...# 57
Yes
Yes
Yes
Yes
ESC*c#E
1B 2A 63 #...#
45
Yes
Yes
Yes
Yes
1B 25 30 41
Yes
Yes
Yes
Yes
1B 25 31 41
Yes
Yes
Yes
Yes
# of bytes
7-57
Chapter 7 Emulation
Parameter
Command
Hexadecimal
Value
1B 25 30 42
Yes
Yes
Yes
Yes
1B 25 31 42
Yes
Yes
Yes
Yes
1B 2A 63 #...#
48
Yes
Yes
Yes
Yes
1B 2A 63 #...#
4C
Yes
Yes
Yes
Yes
1B 2A 63 30 54
Yes
Yes
Yes
Yes
1B 2A 63 #...#
58
Yes
Yes
Yes
Yes
1B 2A 63 #...#
59
Yes
Yes
Yes
Yes
1B 2A 74 37 35
52
Yes
Yes
Yes
Yes
1B 2A 74 31 30
30 52
Yes
Yes
Yes
Yes
1B 2A 74 31 35
30 52
Yes
Yes
Yes
Yes
1B 2A 74 32 30
30 52
No
Yes
Yes
Yes
1B 2A 74 33 30
30 52
Yes
Yes
Yes
Yes
1B 2A 74 36 30
30 52
No
Yes
Yes
Yes
1B 2A 72 30 46
Yes
Yes
Yes
Yes
1B 2A 72 33 46
Yes
Yes
Yes
Yes
1B 2A 72 30 41
Yes
Yes
Yes
Yes
1B 2A 72 31 41
Yes
Yes
Yes
Yes
1B 2A 72 32 41
No
No
Yes
Yes
1B 2A 72 33 42
No
No
Yes
Yes
Enter
HP-GL/2
Mode
ESC*c0T
Set Picture
Set anchor
Frame Anchor point to cursor
Point
position
ESC*c#X
Picture Frame Decipoints
Horizontal
Size
ESC*c#Y
Picture Frame Decipoints
Vertical Size
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
Raster Graphics
Raster
Resolution
75 dots/inch
ESC*t75R
Orientation
Raster Graphics
Raster
Graphics
Presentation
Start Raster
Graphics
Raster Y
Offset
Set Raster
Compression
Mode
7-58
Follows
orientation
ESC*r0F
ESC*r3F
Follows
physical page
ESC*r0A
Left Raster
Graphics
Margin
ESC*r1A
Current
Cursor
ESC*r2A
Scale mode
(logical left
page
boundary)
ESC*r3A
Scale mode
(at CAP)
ESC*b#Y
# of Raster
Lines of
vertical
movement
ESC*b0M
Unencoded
1B 2A 62 #...#
59
Yes
Yes
Yes
Yes
1B 2A 62 30 4D
Yes
Yes
Yes
Yes
ESC*b1M
1B 2A 62 31 4D
Yes
Yes
Yes
Yes
1B 2A 62 32 4D
Yes
Yes
Yes
Yes
1B 2A 62 33 4D
Yes
Yes
Yes
Yes
Adaptive
compression
ESC*b5M
1B 2A 62 35 4D
Yes
Yes
Yes
Yes
Replacement
Delta Row
ESC*b9M
1B 2A 98 39 4D
Yes
Yes
Yes
Yes
Run-Length
Encoded
Parameter
Command
Hexadecimal
Value
Transfer
# of Bytes
Raster Data by
row
ESC*b#W
[Data]
1B 2A 62 #...#
57
Yes
Yes
Yes
Yes
Transfer
Raster Data
(by plane)
# of Bytes
ESC*b#V
[Data]
1B 2A 98 #...#
56
No
No
Yes
Yes
End Raster
Graphics
Old version
ESC*rB
1B 2A 72 42
Yes
Yes
Yes
Yes
Preferred
ESC*rC
1B 2A 72 43
Yes
Yes
Yes
Yes
1B 2A 72 #...#
54
Yes
Yes
Yes
Yes
1B 2A 72 #...#
53
Yes
Yes
Yes
Yes
1B 2A 76 30 54
Yes
Yes
Yes
Yes
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
ESC*v0T
Solid White
ESC*v1T
1B 2A 76 31 54
Yes
Yes
Yes
Yes
HP-defined
Shading
Pattern
ESC*v2T
1B 2A 76 32 54
Yes
Yes
Yes
Yes
HP-defined
CrossHatched
Pattern
ESC*v3T
1B 2A 76 33 54
Yes
Yes
Yes
Yes
User defined
pattern
ESC*v4T
1B 2A 76 34 54
Yes
Yes
Yes
Yes
Transparent
ESC*v0N
1B 2A 76 30 4E
Yes
Yes
Yes
Yes
Opaque
ESC*v1N
1B 2A 76 31 4E
Yes
Yes
Yes
Yes
Pattern
Transparency
Mode
Transparent
ESC*v0O
1B 2A 76 30 4F
Yes
Yes
Yes
Yes
Opaque
ESC*v1O
1B 2A 76 31 4F
Yes
Yes
Yes
Yes
Logical
Operation
# = ROP3
input value
ESC*l#O
1B 2A 6C #...#
4F
Yes
Yes
Yes
Yes
Pixel
Placement
Grid
Intersection
ESC*v0R
1B 2A 6C 30 52
Yes
Yes
Yes
Yes
Pixel
Placement
ESC*v1R
1B 2A 76 31 52
Yes
Yes
Yes
Yes
ESC*c#A
1B 2A 63 #...#
41
Yes
Yes
Yes
Yes
# of decipoints ESC*c#H
1B 2A 63 #...#
48
Yes
Yes
Yes
Yes
ESC*c#B
Rectangle
# of dots
Height
(Vertical Size) # of decipoints ESC*c#V
1B 2A 63 #...#
42
Yes
Yes
Yes
Yes
1B 2A 63 #...#
56
Yes
Yes
Yes
Yes
Source
Transparency
Mode
Rectangle Dimensions
Rectangle
Width
(Horizontal
Size)
# of dots
Solid Black
ESC*c0P
1B 2A 63 30 50
Yes
Yes
Yes
Yes
Erase (solid
white fill)
ESC*c1P
1B 2A 63 31 50
Yes
Yes
Yes
Yes
Shaded Fill
ESC*c2P
1B 2A 63 32 50
Yes
Yes
Yes
Yes
Cross-hatched ESC*c3P
Fill
User-Defined ESC*c4P
1B 2A 63 33 50
Yes
Yes
Yes
Yes
1B 2A 63 34 50
Yes
Yes
Yes
Yes
ESC*c5P
1B 2A 63 35 50
Yes
Yes
Yes
Yes
1B 2A 63 #...#
47
Yes
Yes
Yes
Yes
Current
Pattern
Pattern ID
% of Shading ESC*c#G
or Type of
Pattern or
User Pattern
ID
7-59
Chapter 7 Emulation
Pattern
Parameter
Command
Hexadecimal
Value
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
2% Gray
ESC*c2G
1B 2A 63 32 47
Yes
Yes
Yes
Yes
10% Gray
ESC*c10G
1B 2A 63 31 30
47
Yes
Yes
Yes
Yes
15% Gray
ESC*c15G
1B 2A 63 31 35
47
Yes
Yes
Yes
Yes
30% Gray
ESC*c30G
1B 2A 63 33 30
47
Yes
Yes
Yes
Yes
45% Gray
ESC*c45G
1B 2A 63 34 35
47
Yes
Yes
Yes
Yes
70% Gray
ESC*c70G
1B 2A 63 37 30
47
Yes
Yes
Yes
Yes
90% Gray
ESC*c90G
1B 2A 63 39 30
47
Yes
Yes
Yes
Yes
100% Gray
ESC*c100G
1B 2A 63 31 30
30 47
Yes
Yes
Yes
Yes
1 Horiz.Line
ESC*c1G
1B 2A 63 31 47
Yes
Yes
Yes
Yes
2 Vert. Lines
ESC*c2G
1B 2A 63 32 47
Yes
Yes
Yes
Yes
3 Diagonal
Lines
ESC*c3G
1B 2A 63 33 47
Yes
Yes
Yes
Yes
4 Diagonal
Lines
ESC*c4G
1B 2A 63 34 47
Yes
Yes
Yes
Yes
1B 2A 63 35 47
Yes
Yes
Yes
Yes
1B 2A 63 36 47
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
7-60
Macro ID #
ESC&f#Y
1B 26 66 #...# 59
Parameter
Command
Hexadecimal
Value
ESC&f0X
1B 26 66 30 58
Yes
Yes
Yes
Yes
Stop Macro
Definition
ESC&f1X
1B 26 66 31 58
Yes
Yes
Yes
Yes
Execute
Macro
ESC&f2X
1B 26 66 32 58
Yes
Yes
Yes
Yes
Call Macro
ESC&f3X
1B 26 66 33 58
Yes
Yes
Yes
Yes
Enable
Overlay
ESC&f4X
1B 26 66 34 58
Yes
Yes
Yes
Yes
Disable
Overlay
ESC&f5X
1B 26 66 35 58
Yes
Yes
Yes
Yes
1B 26 66 36 58
Yes
Yes
Yes
Yes
1B 26 66 37 58
Yes
Yes
Yes
Yes
1B 26 66 38 58
Yes
Yes
Yes
Yes
1B 26 66 39 58
Yes
Yes
Yes
Yes
1B 26 66 31 30
58
Yes
Yes
Yes
Yes
ESC*s0T
1B 2A 73 30 54
Yes
Yes
Yes
Yes
ESC*s1T
1B 2A 73 31 54
Yes
Yes
Yes
Yes
1B 2A 73 32 54
Yes
Yes
Yes
Yes
1B 2A 73 33 54
Yes
Yes
Yes
Yes
Downloaded
ESC*s4T
1B 2A 73 34 54
Yes
Yes
Yes
Yes
Cartridge
ESC*s5T
1B 2A 73 35 54
Yes
Yes
Yes
Yes
User-installed ESC*s7T
ROM
(SIMMs)
Set Status
All entities of ESC*s0U
Readback
the Location
Location Unit Type
ESC*s1U
Entity 1 or
Temporary
ESC*s2U
Entity 2 or
Permanent
ESC*s3U
Entity 3
1B 2A 73 37 54
Yes
Yes
Yes
Yes
1B 2A 73 30 55
Yes
Yes
Yes
Yes
1B 2A 73 31 55
Yes
Yes
Yes
Yes
1B 2A 73 32 55
Yes
Yes
Yes
Yes
1B 2A 73 33 55
Yes
Yes
Yes
Yes
ESC*s4U
1B 2A 73 34 55
Yes
Yes
Yes
Yes
ESC*s0I
1B 2A 73 30 49
Yes
Yes
Yes
Yes
ESC*s1I
1B 2A 73 31 49
Yes
Yes
Yes
Yes
ESC*s2I
1B 2A 73 32 49
Yes
Yes
Yes
Yes
ESC*s3I
1B 2A 73 33 49
Yes
Yes
Yes
Yes
1B 2A 73 34 49
Yes
Yes
Yes
Yes
1B 26 72 30 46
Yes
Yes
Yes
Yes
1B 26 72 31 46
Yes
Yes
Yes
Yes
1B 2A 73 31 4D
Yes
Yes
Yes
Yes
1B 2A 73 #...#
58
Yes
Yes
Yes
Yes
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
Entity 4
Inquire Status Font
Readback
Macro
Entity
User-defined
Pattern
Symbol Set
Flush All
Pages
Free Memory
Space
Echo
PROGRAMMING HINTS
End-of-Line
Wrap
Enabled
ESC&s0C
1B 26 73 30 43
Yes
Yes
Yes
Yes
Disabled
ESC&s1C
1B 26 73 31 43
Yes
Yes
Yes
Yes
7-61
Chapter 7 Emulation
Parameter
Command
Hexadecimal
Value
Display
Functions
ON
ESCY
1B 59
Yes
Yes
Yes
Yes
OFF
ESCZ
1B 5A
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
1B 2A 76 #...#
49
No
No
Yes
Yes
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
Colors
Assign Color
Index
Color
Component 1
1st
Component
ESC*v#A
1B 2A 76 #...#
41
No
No
Yes
Yes
Color
Component 2
2nd
Component
ESC*v#B
1B 2A 76 #...#
42
No
No
Yes
Yes
Color
Component 3
3rd
Component
ESC*v#C
1B 2A 76 #...#
43
No
No
Yes
Yes
ESC*l#W
1B 2A 6C #...#
57
No
No
Yes
Yes
Configure
Image Data
# of Bytes
ESC*v#W
1B 2A 76 #...#
57
No
No
Yes
Yes
Download
# of Bytes
Dither Matrix
ESC*m#W
1B 2A 76 #...#
49
No
No
Yes
Yes
1B 2A 76 #...#
53
No
No
Yes
Yes
Foreground
Color
Gamma
Correction
Gamma
number
ESC*t#I
1B 2A 74 #...#
49
No
No
Yes
Yes
Monochrome
Print Model
Mixed
Rendering
ESC&b#M
1B 26 98 30 4D
No
No
Yes
Yes
Gray
Equivalent
ESC&b#M
1B 26 98 31 4D
No
No
Yes
Yes
Palette ID #
ESC&p#I
1B 26 70 #...# 49
No
No
Yes
Yes
Palette
Control ID
7-62
Parameter
Command
Hexadecimal
Value
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
Palette
Control
Delete All
Palettes in
store
ESC&p#C
1B 26 70 30 43
No
No
Yes
Yes
Delete All
Palettes in
stack
ESC*p#C
1B 26 70 31 43
No
No
Yes
Yes
1B 26 70 32 43
No
No
Yes
Yes
1B 26 70 36 43
No
No
Yes
Yes
Push/Pop
Palette
Push Palette
ESC*p#P
1B 2A 70 30 50
No
No
Yes
Yes
Pop Palette
ESC*p#P
1B 2A 70 31 50
No
No
Yes
Yes
Render
Algorithm
Continuous
tone detail
ESC*t#J
1B 2A 74 30 4A
No
No
Yes
Yes
Snap to
primaries
ESC*t#J
1B 2A 74 31 4A
No
No
Yes
Yes
ESC*t#J
Snap
black/white,
colors to black
ESC*t#J
Device best
dither
ESC*t#J
Error
diffusion
Monochrome ESC*t#J
device best
dither
Monochrome ESC*t#J
error diffusion
ESC*t#J
Cluster
ordered dither
Monochrome ESC*t#J
cluster
ordered
User-defined ESC*t#J
dither
Monochrome ESC*t#J
user-defined
dither
Ordered dither ESC*t#J
1B 2A 74 32 4A
No
No
Yes
Yes
1B 2A 74 33 4A
No
No
Yes
Yes
1B 2A 74 34 4A
No
No
Yes
Yes
1B 2A 74 35 4A
No
No
Yes
Yes
1B 2A 74 36 4A
No
No
Yes
Yes
1B 2A 74 37 4A
No
No
Yes
Yes
1B 2A 74 38 4A
No
No
Yes
Yes
1B 2A 74 30 4A
No
No
Yes
Yes
1B 2A 74 31 30
4A
No
No
Yes
Yes
1B 2A 74 31 31
4A
No
No
Yes
Yes
Monochrome ESC*t#J
ordered dither
Noise ordered ESC*t#J
dither
Monochrome ESC*t#J
noise ordered
dither
ESC*t#J
Continuous
tone smooth
ESC*t#J
Mono,
continuous
tone detail
ESC*t#J
Mono,
continuous
tone smooth
ESC*t#J
Continuous
tone basic
ESC*t#J
Mono
continuous
tone basic
ESC&p#S
Palette ID #
1B 2A 74 31 32
4A
No
No
Yes
Yes
1B 2A 74 31 33
4A
No
No
Yes
Yes
1B 2A 74 31 34
4A
No
No
Yes
Yes
1B 2A 74 31 35
4A
No
No
Yes
Yes
1B 2A 74 31 36
4A
No
No
Yes
Yes
1B 2A 74 31 37
4A
No
No
Yes
Yes
1B 2A 74 31 38
4A
No
No
Yes
Yes
1B 2A 74 31 39
4A
No
No
Yes
Yes
1B 26 70 #...# 53
No
No
Yes
Yes
1B 2A 69 #...#
57
No
No
Yes
Yes
Select Palette
Set Viewing
Illuminant
# of Bytes
ESC*l#W
7-63
Chapter 7 Emulation
Parameter
Simple Color
ESC*r#U
3-Plane
Device CMY
Palette
ESC*r#U
1-Plane K
palette
ESC*r#U
3-Plane
Device RGB
Palette
ESC*b#V
# of Bytes
Transfer
Raster (Plane)
a
7-64
Command
Hexadecimal
Value
DeskFloor
top type type
B&W
B&W
DeskFloor
top type type
Color
Color
1B 2A 72 2D 33
55
No
No
Yes
Yes
1B 2A 72 31 55
No
No
Yes
Yes
1B 2A 72 33 55
No
No
Yes
Yes
1B 2A 98 #...#
56
No
No
Yes
Yes
Mnemonic
Parameters
ESC%#A
RESET
ESCE
None
PRIMARY FONT
Fl
Font_lD
SECONDARY FONT
FN
Font_lD
0 = Scalable fonts only
1 = Bitmapped fonts allowed
PALETTE EXTENSIONS
Color Range
CR
Number of Pens
NP
[n];
PC
TRANSPARENCY MODE
TR
0 = Off (opaque)
1 = On (transparent)
SCREENED VECTORS
SV
[screen_type[,shading[,index]]]
ARC ABSOLUTE
AA
x_center,y_center,sweep_angle
[,chord_angle];
ARC RELATIVE
AR
x_increment,y_increment,sweep_angle
[,chord_angle];
AT
x_inter,y_inter,x_end,y_end
[,chord_angle];
PLOT ABSOLUTE
PA
[x,y...[,x,y]];
PLOT RELATIVE
PR
[x,y...[,x,y]];
PEN DOWN
PD
[x,y...[,x,y]];
PEN UP
PU
[x,y...[,x,y]];
RT
x_incr_inter,y_incr_inter,x_incr_end,
y_incr-end [,chord_angle];
POLYLINE ENCODED
PE
[flag[val]coord_pair...[flag[val]coord
_pair]];
BEZIER RELATIVE
BR
kind, x1_control_pt_increments,
y1 _control_pt_increments,
x2 _control_pt increments,
y2_control_ pt_increments,
x3_control_pt_increments,
y3_control_pt_increments,
[,params ... [,params]];
CIRCLE
Cl
radius [,chord_angle];
RA
x_coordinate,y_coordinate;
VECTOR GROUP
POLYGON GROUP
RR
x_increment,y_increment;
EA
x_coordinate,y_coordinate;
ER
x_increment,y_increment;
FILL WEDGE
WG
radius,start_angle,
sweep_angle [,chord_angle];
EDGE WEDGE
EW
radius,start_angle,
sweep_angle[,chord_angle];
POLYGON MODE
PM
polygon_definition;
FILL POLYGON
FP
EDGE POLYGON
EP
CHARACTER GROUP
SELECT STANDARD FONT
SS
None
7-65
Chapter 7 Emulation
Mnemonic
Parameters
SA
None
ABSOLUTE DIRECTION
Dl
[run,rise];
RELATIVE DIRECTION
DR
[run,rise];
Sl
[width,height];
SR
[width,height];
CHARACTER SLANT
SL
[tangent_of_angle];
EXTRA SPACE
ES
[width[,height]]
SD
[kind,value...[,kind,value]];
AD
[kind,value...[,kind,value]];
CF
[fill_mode[,edge_pen]];
LABEL ORIGIN
LO
[position];LABEL
LABEL
LB
[char...[,char]]lbterm
DT
[1bterm[,mode]];
CHARACTER PLOT
CP
[spaces,lines];
TRANSPARENT DATA
TD
[mode];
DV
[path[,line]];
LINE TYPE
LT
[line_type[,pattern_length[,mode]]];
LINE ATTRIBUTES
LA
[kind,value...[,kind,value]];
PEN WIDTH
PW
[width[,pen]];
WU
[type];
SELECT PEN
SP
SYMBOL MODE
SM
[char];
FILL TYPE
FT
[fill_type[,option1 [,option2]]];
ANCHOR CORNER
AC
[x_coordinate,y_coordinate];
RF
[index[,width,height,pen_nbr...pen_nbr]];
(width and height must be less than 255)
UL
[index[,gap1...gapn]];
PG
[n];
SCALE
SC
[x1,x2,y1,y2[,type[,left,bottom]]];
or
[x1,xfactor,y1,yfactor,2];
INPUT WINDOW
IW
[xLL,yLL,xUR,yUR];
INPUT P1 AND P2
IP
[p1x,p1y[,p2x,p2y]];
IR
[p1x,p1y[,p2x,p2y]];
DEFAULT VALUES
DF
INITIALIZE
IN
[n];
Replot
RP
[n];
RO
[angle];
7-66
Begin Plot
BP
CT
[mode];
Download Character
DL
Frame Advance
FR
Media Type
MT
[type];
Merge Control
MC
[mode [, opcod]];
Output Error
OE
OH
Output Identification
OI
Output P1 and P2
OP
Output Status
OS
Pixel Placement
PP
Plot Size
PS
[length [,width]];
Quality Level
QL
[quality level]
[mode];
<>
Special Identifiers
<HT>
<LF>
<CR>
<SP>
<WS>
White space
<ESC>
<FF>
<Words>
PJL Commands
COMMENT
DEFAULT
DINQUIRE
Response
@PJL DINQUIRE [LPARM: personality] variable <CR> <LF> value <CR> <LF>
<FF>
ECHO
Response
ENTER
EOJ
INFO
Response
@PJL INFO read only variable <CR> <LF> [1 or more lines of printable characters or
<WS> followed by <CR> <LF>]<FF>
INITIALIZE
INQUIRE
Response
@PJL INQUIRE [LPARM: personality] variable <CR> <LF> value <CR> <LF> <FF>
JOB
OPMSG
RDYMSG
RESET
SET
STMSG
Response
UEL/SPJL
<ESC>%-12345X
USTATUS
Response
USTATUSOFF
PJL
7-67
7-68
7-69
ISO-4 U. K. (1E)
Chapter 7 Emulation
7-70
7-71
US Legal (1U)
7-72
PC Cyrillic (3R)
7-73
PS math (5M)
7-74
MS publishing (6J)
7-75
Desktop (7J)
Chapter 7 Emulation
7-76
Greek-8 (8G)
Math-8 (8M)
7-77
Turkish-8 (8T)
HP Roman-8 (8U)
Chapter 7 Emulation
7-78
7-79
PC-1004 (9J)
7-80
PC-Turkish (9T)
7-81
Windows (9U)
7-82
PS text (10J)
7-83
7-84
Macintosh (12J)
7-85
USSR-GOST (12R)
Chapter 7 Emulation
7-86
7-87
7-88
PC Ukrainian (14R)
Pi font (15U)
7-89
7-90
ISO-10646 (18N)
7-91
Winbalt (19L)
7-92
7-93
7-94
PC-775 (26U)
7-95
Chapter 7 Emulation
7-96
Basic
This section explains basic information about the KC-GL language.
Optional separator
(Commas or spaces)
Required
separator
Terminator (A semi-colon or
line feed, not required if
instructions continue)
Some instructions use no parameters. For two or more parameters, they must be separated by at least one comma or space. In some cases, a plus (+) or minus (-) sign can be
used as a separator. A comma or space can also be used as a separator before, after, or
between instructions, and after a terminator. When a series of instructions is coded, the
series should be terminated by a semicolon, but no semicolon is required between
instructions in the series.
The printing system executes instructions as soon as it receives them. When too many
instructions are issued, the printing system executes the allowed number of parameters
and reports error number 2 (wrong number of parameters).
7-97
Chapter 7 Emulation
The SM (Symbol Mode) instruction defines the first succeeding character as a symbol
character. The DT (Define label Terminator) instruction defines the first succeeding
character as a character plot terminator.
The character plot terminator is used to terminate the LB (LaBel) instruction. The default
terminator is the ETX character (End of Text), which uses ASCII code 3. If this terminator is inconvenient, the DT instruction enables the user to change the character plot terminator to a different character.
Parameter Formats
KC-GL parameters are specified in one of the following formats:
Integer
When not scaled, integers are valid in the range from 223 to 2231 plotter units. Digits
to the right of the decimal point are ignored. If no sign is specified, the value is assumed
to be positive.
Character string
A combination of characters, numeric expressions, and string variables.
When coding an instruction with two or more parameters (Examples: PA, PR, PU, PD)
remember that the parameters must be set apart by a separator.
7-98
SP
Normal mode
Enhance mode
16
32
Chapter 7 Emulation
1 = Printing System remains in mode A even when the IP instruction includes a negative parameter value.
Pen Selection
On an actual plotter, pen thickness and color are selected by physically installing pens.
On the printing system, the pen thickness is established with a PRESCRIBE command,
or by a simple front-panel operation.
Format
!R! FRPO Gn, xx; EXIT;
Parameters
n:
pen number:
1 = pen 1
2 = pen 2
3 = pen 3
4 = pen 4
5 = pen 5
6 = pen 6
7-100
7 = pen 7
8 = pen 8
xx:
Line-width (in dots): 0 to 99 (0 - line not printed)
Positions in the plot area can be defined as plotter units or user units. These units are
explained next.
Note
Since the pen thickness is measured in the unit of dot, printing an object in the 600-dpi resolution will result in the thickness of lines being half that expected in the 300-dpi resolution. To avoid this, switch the printing resolution to 300 dpi using the FRPO N8 command
or, temporarily, using the PRESCRIBE RESL command. Alternatively, if you need to use the
600-dpi resolution, increase the pen thickness to the double.
Format
!R! FRPO J9, x; EXIT;
x:
data size:
0 = no reduction
1 = A2
2 = A1
3 = A0
4 = B3
5 = B2
6 = B1
7 = B0
User Units
The Scale instruction (SC) establishes a system of user units in the plot area by specifying the coordinates of two scaling points (P1 and P2). Parameters of the Scale instruction
can use integer values from 223 to 2231; any digits to the right of the decimal place will
be ignored. (Plot instructions use the same range of parameter values, but digits to the
right of the decimal point are valid.) If designating 0, 0 and 1, 1 as scaling points, all data
will be real numbers between 0 and 1.
7-101
Chapter 7 Emulation
1
2
Initialize plotter
P1 and P2: 1-cm square1
Scale: user unit = 1 cm
Select pen 1
Move pen
Draw four circles
Select pen 2
Draw two circles
Select pen 8
Draw circle
Select pen 2
"Print label2
This instruction locates P1 at 0, 0 and P2 at 400, 400 in plotter units. 400 plotter units=1 cm (0.025 mm x 400).
ETX (End of Text, character code 03) is required as a terminator.
7-102
Description
Output Actual position and pen status
Output Commanded position and pen status
Output Error
Output Factors
Output Hard-clip limits
Output Identification
Output Label length
Output Options
Output P1 and P2
Output Status
Output carousel Type
Output Window
All of these instructions use the same syntax and must be followed immediately by a terminator. They use no parameters.
The functions of these instructions appear on the following pages. The last ASCII character sent by the plotter (printing system) in response to the instruction is a terminator,
which will be designated here by the symbol TERM. The terminator is actually a carriage return unless changed by the ESC.M operator.
7-103
Chapter 7 Emulation
OE [Output Error]
The plotter returns a decimal error number for the instruction executed immediately
before the OE instruction. The error code is converted to a non-negative ASCII-coded
integer whose identity is given in the following table.
Error Number
0
1
2
3
4
5
6
7
Description
No error
Instruction not recognized
Wrong number of parameters
Illegal parameter
(Reserved)
Unknown character set
Plot position overflow
(Reserved)
OF [Output Factors]
This instruction returns the number of plotter units per millimeter on each coordinate
axis, as follows:
40, 40 TERM
This response indicates that plotter units are equal to 0.025 mm on both the x- and yaxes. The actual number of plotter units per millimeter is approximately 40.
OI [Output Identification]
This instruction returns a character string indicating the plotter model being emulated, as
follows:
KC-GL option Plotter model
(FRPO G0)
Mode A
7550A TERM
Mode B
7596A TERM
The length of the longest line in the buffered label in character plot cell spaces.
characters An integer representing the number of printing characters and spaces in the
longest line of the buffered label. A backspace is counted as 1, whereas a
character with automatic backspace counts as zero.
linefeeds An integer representing the net number of linefeeds that will occur when the
buffered label is drawn. An inversed line feed (VT) counts as 1, and a linefeed (LF) counts as +1.
OO [Output Options]
This instruction returns eight ASCII-coded integers separated by commas. The integers
indicate plotter options supported by the printing system, as follows:
Buffer allocation
Polygon instruction
Arc and circle plotting instructions are supported.
Pen selection is supported.
Pen is not down until the paper feeding completes
in auto-feed mode.
7-105
Chapter 7 Emulation
OS [Output Status]
This instruction returns an integer from 0 to 255 giving one byte of status information, as
follows:
status TERM
The following table describes the individual bits in the status byte. After powered up or
an IN instruction, bit positions 3 and 4 turn on making the bit value to be 24. Bit position
3 is cleared subsequently after delivering the status.
Bit Position Bit Value Description
0
1
The pen is down.
1
2
P1 or P2 has been changed. This bit is cleared when actual P1 and
P2 values are read via the RS-232C interface, or when the IN
instruction is executed.
2
4
A digitized point is ready for output. This bit is cleared when the
point is output via the RS-232C interface, or when the IN instruction is executed.
3
8
Initialized. This bit is cleared when a status byte is output via the
RS-232C interface, or when the IN instruction is executed.
4
16
Ready to receive next data.
5
32
Error. This bit is cleared when an error number is output via the RS232C interface, or when the IN instruction is executed.
6
64
SRQ was set.
7
128
(Reserved)
7-106
Pen stall
1
2
3
4
5
6
7
8
OW [Output Window]
This instruction returns the x- and y-coordinates of two diagonally opposite corners of
the current plottable area. Four ASCII-coded integers indicating the lower left and upper
right corner coordinates are returned by using the following format:
XLL, YLL, XUR, YUR, TERM
LL: lower left
UR: upper right
Device-Control Instructions
KC-GL uses device-control instructions to return buffer status information and other status information from the printing system via the RS-232C interface. Status information
cannot be output on the parallel interface. If device-control instructions are received via
the parallel interface, they are ignored.
The device-control instructions for status output appear below.
On-line status
Cover open
Paper empty
Paper jam
Buffer full
The following table describes this status information.The paper feed source is the internal cassette at all time. A complete list of device-control instructions appear in DeviceControl Instructions on page 114.
Table 7.30. Status Information
Response
1
9
17
Description
The buffer is full.
The buffer is empty (normal).
The buffer is full and the printing system is off-line.
7-107
Chapter 7 Emulation
7-108
Symbol Set
ANSI ASCII
HP 9825 Character Set
French/German
Scandinavian
Spanish/Latin American
JIS ASCII
Roman Extensions
Katakana
ISO IRV (International Reference Version)
ISO Swedish
ISO Swedish For Names
ISO Norwegian Version 1
ISO German
ISO French
ISO United Kingdom
ISO Italian
ISO Spanish
ISO Portuguese
ISO Norwegian Version 2
ISO No.
006
014
013
002
010
011
060
021
025
004
015
017
016
061
7-109
Katakana (8)
7-110
KC-GL Limits
This section provides limit values for the various KC-GL parameters. Plotter units are
used unless otherwise specified.
0.187
0.269
A3
0.285
0.375
Letter
0.187
0.269
Ledger
0.285
0.375
11477
3389 7999
2362
A3
16398
4842 11487
3392
Letter
10776
3182 8236
2432
Ledger
16872
4982 10776
3182
Coordinate Values
Table 7.34. Coordinate Values, Mode A, RO 0
Paper size P1x P1y P2x
P2y
A4
430, 200
10430, 7400
A3
380, 430
15580, 10430
Letter
80,
Ledger
620, 80
320
10080, 7520
15820, 10080
P2y
A4
200, 430
7400, 10430
A3
Letter
320,
80
Ledger
80,
7520, 10080
P1y
P2x P2y
A4
A3
Letter
Ledger
7-111
Chapter 7 Emulation
P1y
P2x P2y
A4
A3
Letter
Ledger
7-112
Instruction
Parameters
Description
AA
Arc absolute
AF
Advance page
AH
Advance page
AR
BL
CA
character-set-no. [i]
CI
Circle
CP
horizontal-character-count [d],
vertical-character-count [d]
Character plot
CS
character-set-no. [i]
CT
DF
Default
DI
Absolute direction
DR
Relative direction
DT
terminator [c]
EA
EP
Buffer label
ER
x [i/sd], y [i/sd]
ES
EW
Edge wedge
FP
FT
Fill type
IM
Input mask
IN
Initialize
IP
Input P1 and P2
IW
Input window
LB
character-string [c]
Label
LO
position-number [i]
Label origin
LT
Line type
OA
Parameters
Description
OC
OE
Output error*
OF
Output factors*
OH
OI
Output identification*
OL
OO
Output options*
OP
OS
OT
OW
Output window*
PA
x1-coordinate [i/sd], y1-coordinate [i/sd] (,x2coordinate [i/sd], y2-coordinate [i/sd], ..., xncoordinate [i/sd], yn- coordinate [i/sd])
Plot absolute
PB
PD
Pen down
PM
Polygon mode
PR
PS
paper-size [i]
PT
pen-thickness [d]
Pen thickness
PU
Pen up
RA
RO
angle-in-degrees [i]
RR
x [i/sd], y [i/sd]
SA
SC
Scale
SI
SL
tan [d]
Character slant
SM
character [c]
Symbol mode
SP
pen-number [i]
Select pen
SR
SS
TL
tick-length-in-positive-direction [d]
(, tick-length-in-negative-direction [d])
Tick length
UC
WG
XT
X-tick
YT
Y-tick
7-113
Chapter 7 Emulation
Illegal parameter
Unknown character
16
32
64
128
S-Mask/P-Mask Values
Table 7.39. S-Mask/P-Mask Values
S-Mask/P-Mask Values Bit Value Description
1
Pen down
Changed P1 or P2
Initialized
16
Ready
32
Error
64
128
Device-Control Instructions
Table 7.40. Device-Control Instructions
Instruction
Parameters
Description
ESC.(
Plotter ONa
ESC.Y
Plotter ONa
ESC.)
Plotter OFFa
ESC.Z
Plotter OFFa
ESC.@
[(<DEC>);(<DEC>)];
Plotter configurationa
ESC.B
ESC.E
ESC.H
[(<DEC>);(<ASC>);
(<ASC>); (;...<ASC>)]
ESC.I
[(<DEC>);(<ASC>);
(<ASC>); (;...<ASC>)]
ESC.J
ESC.K
ESC.L
ESC.M
[(<DEC>);(<ASC>);
(<ASC>);
(<ASC>);(<ASC>);
(<ASC>)]
ESC.N
[(<DEC>);(<ASC>);
(;...<ASC>)]
ESC.O
ESC.R
Reset handshakinga
7-114
Ignored
Plotting mode
PA;
Polygon mode
PM0; PM2;
Empty polygon
Line type
LT;
Solid line
LTn,4;
Scaling
SC;
Input window
IW;
5 degrees
Symbol mode
SM;
Off
Tick length
TL;
Mask value
IM233,0,0;
Fill type
FT;
Fill spacing
FT;
Fill angle
FT;
0 degrees
Pen thickness
PT;
Label origin
Relative direction
DR1,0;
Horizontal characters
Relative size
SR;
Character space
ES 0, 0;
None
Character slant
SL;
0 degrees
Label buffer
BL ETX;
None
Label terminator
DT ETX;
Label origin
LO;
Position number
Character set
SS;
CS0;
Character set 0
Code tolerance
CT;
CA0;
Character set 0
Default conditions
DF;
Scaling points
IP;
Default values
Initialized according to paper size
0 degrees (default setting)
7-115
Chapter 7 Emulation
KPDL Operators
This section describes the machine-independent part of KPDL, Kyoceras implementation of the PostScript command language. KPDL deployed in the printing system encompasses the features of LanguageLevel 3 of the PostScript command language.
The KPDL operators described in this section can be used for confirming and changing
the printing systems internal settings. Most of the operators in this section are paired:
one operator for setting an environmental parameter, and another operator for confirming
the setting. The setting operator starts with the letters set. The confirmation operator has
the same name, but without the initial set.
The initial SEM 9; ensures that the printing system is in the KPDL mode. If the printing
system is already in the KPDL mode, SEM 9; is ignored. The percent signs (%) and the
words to the right are comments. Comments are included only to explain the operators,
and can be omitted when typing operators.
Try using one of the methods explained on the following page to enable delivery of the
result of the above example. The print result appears as shown in Figure 7. 43. on page
117.
7-116
KPDL Operators
File transfer
One way to transfer a file is to place all lines above in a file and transfer the file to the
printing system. The basic requirements are:
Except for SEM 9; and EXIT; (which can be in either uppercase or lowercase letters),
all operators must be typed in lowercase letters, exactly as shown.
The file must not contain any extraneous control codes, as are frequently added by
word-processing software.
The file must be sent as a file, not printed. If you print the file, you will only obtain
printed output.
KPDL Summary
This section lists all KPDL operators, their operands, and their results.
When received from the computer, operators and operands are placed in an area in the
printing systems memory called the stack. In the operator table, each operator is preceded by its list of operands (if any). These operands must be placed onto the stack prior
to the operator itself. Each operator is followed by a list of its results (if any). The results
returned by the operator are also placed onto the stack.
For example, the add operator is listed as follows:
num1 num2 add sum
The action of this operator is to remove the two numbers that precede it from the top of
the stack, add them, and put their sum onto the stack.
If an operator does not require any preceding operands or does not place any result on the
stack, the corresponding column in the table is blank.
The following abbreviations (and a few others) are used for operands:
ang
bool
dict
int
num
obj
pattern
proc
tag
userpath
7-117
Chapter 7 Emulation
Certain operators are hyphenated in the following tables because of the editorial limitation
only. These operators must not be hyphenated to be executed.
Note
Operator
obj
Result
Description
Write object to standard output
=print
=string
obj
2 <<
mark
2 >>
dict
mark
array
num1
abs
num2
num1 num2
add
sum
array
aload
a0...a(n-1) array
string target
anchorsearch
int/bool1 int/bool2
and
int/bool3
x y r ang1 ang2
arc
x y r ang1 ang2
arcn
x1 y1 x2 y2 r
2 arct
x1 y1 x2 y2 r
arcto
int
array
array
ax ay string
ashow
astore
array
num den
atan
angle
cx cy chr ax ay string
awidthshow
dict
begin
proc
bind
proc
int1 count
bitshift
int2
file
bytesavailable
int
cachestatus
bsize bmax
msize mmax
csize cmax
blimit
ceiling
num2
num1
string bool
7-118
==
charpath
clear
cleardictstack
KPDL Operators
Operator
mark obj1...objn
cleartomark
clip
clippath
3 cliprestore
3 clipsave
file
Result
closefile
Close file
closepath
Description
3 composefont
font
matrix
concat
matrix1 matrix2
matrix3
concatmatrix
matrix3
obj1...objn n
copy
obj1...objn
dict1 dict2
copy
dict2
array1 array2
copy
subarray2
string1 string2
copy
substring2
gstate1 gstate2
angle
copy
copypage
cos
real
count
countdictstack
int
countexecstack
int
mark obj1...objn
counttomark
proc string
2 cshow
string
2 currentblackgeneration
proc
2 currentcacheparams
2 currentcmykcolor
cyan magenta
yellow black
2 currentcolor
2 currentcolorrendering
dict
2 currentcolorscreen
2 currentcolorspace
array
2 currentcolortransfer
redproc greenproc
blueproc grayproc
currentdash
array offset
2 currentdevparams
dict
7-119
Chapter 7 Emulation
gstate
matrix
Operator
Result
Description
currentdict
dict
currentfile
file
currentflat
num
currentfont
font
2 currentglobal
bool
currentgray
num
2 currentgstate
gstate
2 currenthalftone
halftone
currenthsbcolor
currentlinecap
int
currentlinejoin
int
currentlinewidth
num
currentmatrix
matrix
currentmiterlimit
num
2 currentobjectformat
int
2 currentoverprint
bool
2 currentpacking
bool
2 currentpagedevice
dict
currentpoint
xy
currentrgbcolor
currentscreen
currentshared
7-120
3 currentsmoothness
num
2 currentstrokeadjust
bool
2 currentsystemparams
dict
currenttransfer
proc
2 currentundercolorremoval
proc
2 currentuser params
dict
x1 y1 x2 y2 x3 y3
curveto
num/string
cvi
obj
cvlit
obj
string
cvn
name
num/string
cvr
real
cvrs
substring
Convert number to
representation in radix
obj string
cvs
substring
obj
cvx
obj
key value
def
KPDL Operators
Operator
Result
Description
matrix
defaultmatrix
matrix
key font
definefont
font
2 defineresource
instance
index any
2 defineuserobject
filename
2 deletefile
int
dict
array
dictstack
subarray
num1 num2
div
quotient
dx dy
dtransform
dx dy
dx dy matrix
dtransform
dx dy
obj
dup
obj obj
bool
echo
end
eoclip
eofill
any1 any2
eq
obj1 obj2
exch
obj
exec
form
2 execform
array
execstack
index
2 execuserobject
array/file/string
executeonly
erasepage
subarray
array/file/string
exit
base exponent
exp
real
false
false
string1 string2
file
file
2 filenameforall
file
2 fileposition
fill
src|tgt
2 filter
param1...paramn name
file
name
string
3 findcolorrendering
name bool
key
2 findencoding
array
key
findfont
font
key category
2 findresource
instance
flattenpath
num1
file
floor
flush
flushfile
7-121
Chapter 7 Emulation
Operator
Result
Description
FontDirectory
dict
for
array proc
forall
dict proc
forall
string proc
forall
any
2 gcheck
bool
num/string1
num/string2
ge
bool
array index
get
obj
dict key
get
obj
string index
get
int
getinterval
substring
getinterval
subarray
name
2 globaldict
dict
2 GlobalFontDirectory
dict
2 glyphshow
grestore
grestoreall
gsave
2 gstate
gstate
num/string1
num/string2
gt
bool
matrix
identmatrix
matrix
int1 int2
idiv
quotient
dx dy
idtransform
dx dy
dx dy matrix
idtransform
dx dy
bool proc
if
ifelse
dict
image
imagemask
index
objn...obj0 objn
x y userpath
2 ineofill
ineofill
bool
x y userpath
2 infill
infill
bool
initclip
initgraphics
initmatrix
x y userpath
7-122
2 instroke
instroke
KPDL Operators
Operator
Result
Description
x y userpath
userpath1 userpath2
2 inueofill
inueofill
bool
x y userpath
userpath1 userpath2
2 inufill
inufill
bool
x y userpath
2 inustroke
x y userpath matrix
inustroke
userpath1 userpath2
userpath1 userpath2
inustroke
inustroke
bool
invertmatrix
matrix2
2 ISOLatin1Encoding
array
x y
itransform
xy
x y matrix
itransform
xy
Transform coordinates by
inverse of matrix
dict key
known
bool
proc string
kshow
matrix
matrix1 matrix2
num/string1
num/string2
2 languagelevel
int
le
bool
array
length
int
dict
length
int
string
length
int
name
length
int
xy
lineto
num
ln
real
key
load
value
num
log
real
proc
loop
num/string1
num/string2
lt
bool
font matrix
makefont
font
dict matrix
2 makepattern
pattern
mark
mark
matrix
matrix
maxlength
int
int1 int2
mod
remainder
xy
moveto
num1 num2
mul
product
obj1 obj2
ne
bool
num1
neg
num2
dict
int/bool1
newpath
array/dict/file/string
Get logarithm
Do proc until exit is
encountered
noaccess
not
int/bool2
null
null
nulldevice
int/bool1 int/bool2
or
int/bool3
Bitwise or logical OR
obj0...objn-1 n
2 packedarray
packedarray
7-123
Chapter 7 Emulation
Operator
Result
Description
pathbbox
obj
pop
string
obj tag
2 printobject
2 product
string
pstack
put
put
put
putinterval
putinterval
quit
rand
int
array/dict/file/string
rcheck
bool
rcurveto
file
read
file string
readhexstring
substring bool
file string
readline
substring bool
array/dict/file/string
readonly
array/dict/file/
string
file string
readstring
substring bool
2 realtime
int
x y width height
numarray/numstring
2 rectclip
rectclip
x y width height
numarray/numstring
2 rectfill
rectfill
x y width height
x y width height matrix
numarray
numarray matrix
numstring
numstring matrix
2 rectstroke
rectstroke
rectstroke
rectstroke
rectstroke
rectstroke
Generate pseudo-random
integer
Test if object is read-accessible
Create Bzier cubic curve to
relative point
old new
2 renamefile
int proc
repeat
file
resetfile
2 resourceforall
key category
2 resourcestatus
save
restore
reversepath
2 revision
7-124
prompt
status size
true (false)
int
KPDL Operators
Operator
dx dy
rlineto
Result
Description
dx dy
rmoveto
ob(n-1)...ob0 n i
roll
ob(i-1)..ob0
ob(n01)..obi
2 rootfont
font
angle matrix
rotate
matrix
angle
rotate
num1
round
num2
rrand
int
string
run
save
save
sx sy matrix
scale
matrix
sx sy
scale
font scale
scalefont
font
any
2 scheck
bool
Same as gcheck
string target
search
key scale
2 selectfont
2 serialnumber
2 setbbox
proc
2 setblackgeneration
setcachedevice
2 setcachedevice2
num
setcachelimit
wx wy
setcharwidth
2 setcmykcolor
dict
2 setcolorrendering
array (name)
2 setcolorspace
redproc greenproc
blueproc grayproc
2 setcolortransfer
array offset
setdash
string dict
2 setdevparams
file position
2 setfileposition
Reposition a file
num
setflat
font
setfont
7-125
Chapter 7 Emulation
Operator
bool
2 setglobal
Result
num
setgray
gstate
2 setgstate
halftone
2 sethalftone
sethsbcolor
int
setlinecap
int
setlinejoin
num
setlinewidth
matrix
setmatrix
num
setmiterlimit
int
2 setobjectformat
bool
2 setoverprint
bool
2 setpacking
dict
2 setpagedevice
pattern
2 setpattern
setrgbcolor
setscreen
bool
2 setshared
Same as setglobal
num
3 setsmoothness
bool
2 setstrokeadjust
dict
2 setsystemparams
proc
settransfer
mark blimit
2 setucacheparams
proc
2 setundercolor removal
dict
2 setuserparams
int
2 setvmthreshold
dict
string
2 shareddict
dict
2 SharedFontDirectory
dict
Same as globaldict
Same as GlobalFontDirectory
3 shfill
show
showpage
angle
sin
real
num
sqrt
real
int
srand
stack
StandardEncoding
array
start
7-126
Description
bool passwd
2 startjob
bool
file
status
bool
KPDL Operators
Operator
Result
Description
statusdict
dict
stop
obj
stopped
bool
key value
store
int
string
string
string
stringwidth
wx wy
stroke
strokepath
num1 num2
sub
difference
systemdict
dict
file
token
string
token
xy
transform
x y
x y matrix
transform
x y
Transform coordinates by
matrix
tx ty
translate
tx ty matrix
translate
matrix
true
true
num1
truncate
num2
obj
type
name
userpath
2 uappend
2 ucache
2 ucachestatus
userpath
2 ueofill
userpath
2 ufill
dict key
2 undef
key
2 undefinefont
key category
2 undefineresource
index
2 undefineuserobject
bool
2 upath
userdict
dict
2 UserObjects
array
2 usertime
int
userpath
userpath matrix
2 ustroke
2 ustroke
userpath
userpath matrix
2 ustrokepath
2 ustrokepath
version
int
2 vmreclaim
string
7-127
Chapter 7 Emulation
Operator
Result
Description
vmstatus
level used
maximum
array/dict/file/string
wcheck
bool
key
where
cx cy char string
widthshow
file int
write
file string
writehexstring
2 writeobject
file string
writestring
obj
xcheck
bool
int/bool1 int/bool2
xor
int/bool3
string numarray
2 xshow
string numarray
2 xyshow
string numarray
2 yshow
int (string)
pages action
Operator
Result
Description
buildtime
int
byteorder
bool
checkpassword
bool
defaulttimeouts
diskonline
bool
diskstatus
free total
dostartpage
bool
dosysstart
bool
jobname
string
jobtimeout
int
manualfeed
bool
initializedisk
manualfeedtimeout
int
margins
top left
newsheet
pagecount
7-128
KPDL Operators
string
Operator
Result
Description
pagestackorder
bool
papersize
name bool
printername
substring
product
string
ramsize
int
realformat
string
revision
int
setdefaulttimeouts
bool
setdoprinterrors
int
setdoret
bool
setdostartpage
bool
setdosysstart
int
setjobtimeout
top left
setmargins
int
setmultirayid
bool
setpagestackorder
old new
setpassword
string
setprintername
bool
setuserdiskpercent
waittimeout
int
a3
b4
a4
a4small
b5
dlenvelope
(110 x 220 envelope)
11x17
legal
letter
lettersmall
executivepage
7-129
Chapter 7 Emulation
bool
Operator
monarcenvelope
(3.875 x 7.5 envelope)
com6envelope
com9envelope
(3.75 x 8.875 envelope)
a5
a6
b6
b5envelope
c4envelope
c5envelope
custom
postcard
doublepostcard
setdefaultduplexmode
int
7-130
bool
setdefaulttumble
defaulttumble
bool
bool
setduplexmode
duplexmode
bool
Description
Set imageable area to Commercial 10
envelope size. See KPDL Printable Area on
page 141. This operator is in userdict.
defaultduplexmode
bool
Result
com10envelope
(4.125 x 9.5 envelope)
bool
settumble
tumble
bool
Get current tumble mode setting. (true: shortedge bind, false: long-edge bind)
firstside
bool
setdefaultpapertray
KPDL Operators
Operator
Result
Description
defaultpapertray
int
setpapertray
papertray
int
setpapertray2
papertray2
bool
int
bool
settrayswitch
trayswitch
setdefaulttrayswitch
defaulttrayswitch
bool
bool
a4tray
a5tray
a6tray
b5tray
b6tray
legaltray
lettertray
executivetray
c4envelopetray
c5envelopetray
com10envelope-tray
com6envelope-tray
com9envelope-tray
7-131
Chapter 7 Emulation
Operator
Description
Find tray containing DL size envelopes, select
it as current tray, and set imageable area for DL
size envelopes.
monarcenvelopetray
a3tray
b4tray
ledgertray
b5envelopetray
doublepostcardtray
postcardtray
customtray
int
setdefaultoutputtray
int
setoutputtray
defaultoutputtray
bool
7-132
Result
dlenvelopetray
int
outputtray
int
appletalktype
string
doprinterrors
bool
setdoautocontinue
doautocontinue
bool
dojamrecovery
bool
usertime
int
#copies
int
KPDL Operators
Parameter
Result
BuildTime
int
Description
Timestamp for printers date of manufacture
ByteOrder
bool
Byte order of binary encoded tokens. (true: loworder byte first, false: high-order byte first)
CurDisplayLista
int
CurFontCachea
int
CurFormCachea
int
CurOutlineCachea
int
CurPatternCachea
int
CurScreenStoragea
int
CurSourceLista
int
CurUPathCachea
int
DoAutoContinue
bool
DoPrintErrors
bool
DoStartPage
bool
FactoryDefaults
bool
FontResourceDir
string
GenericResourceDir
string
GenericResourcePathSep
string
JobTimeout
int
MaxDisplayList
int
MaxFontCache
int
MaxFormCache
int
MaxOutlineCache
int
MaxPatternCache
int
MaxScreenStorage
int
Indicate in bytes the maximum storage of the halftone screen usable by the screen.
7-133
Chapter 7 Emulation
Parameter
Result
Description
MaxSourceList
int
MaxUPathCache
int
PageCount
int
Password
int, string
PrinterName
string
RamSize
int
RealFormat
string
Revision
int
StartJobPassword
int, string
StartupMode
int
SystemParamsPassword
int, string
WaitTimeout
MaxImageBuffer
7-134
Read only
MaxStoredFontCache int
CurStoredFontCache int
KPDL Operators
Parameter
Result
Description
AccurateScreens
bool
JobName
string
JobTimeout
int
MaxDictStack
int
MaxExecStack
int
MaxFontItem
int
MaxFormItem
int
MaxLocalVM
int
MaxOpStack
int
MaxPatternItem
int
MaxScreenItem
int
MaxUPathItem
int
MinFontCompress
int
VMReclaim
int
VMThreshold
int
WaitTimeout
int
7-135
Chapter 7 Emulation
7-136
Result
Description
BeginPage
array
Duplex
bool
EndPage
array
ExitJamRecovery
bool
HWResolution
array
ImagingBBox
array
InputAttributes
dict
Install
array
ManualFeed
bool
ManualFeedTimeout
int
Margins
array
MediaColor
string
MediaType
stringa
MediaWeight
int
NumCopies
int
OutputAttributes
dict
OutputFaceUp
bool
OutputType
string
PageSize
array
KPDL Operators
Result
Description
Policies
dict
PostRendering-Enhance
bool
Turn on/off KIR mode. (true: KIR on, false: KIR off)
PostRendering-EnhanceDetails dict
SorterDetailsb
dict
TraySwitch
bool
Tumble
bool
DeferredMedia-Selection
bool
ProcessColorModel
name
MediaPosition
int
OutputPage
bool
Collate
bool
CollateDetails
dict
Fold
int
FoldDetails
dict
FoldMode
int
1:
FoldCopy
int
Jog
int
Staple
int
StapleDetailsc
dict
EconoMode
bool
Punchd
int
PunchDetails
dict
7-137
Chapter 7 Emulation
7-138
Result
Description
PunchMode
int
SlipSheet
int
SlipSheetDetails
dict
CopyMode
int
PreRenderingEnhance
bool
DeviceRenderingVividInfo
dict
DeviceRenderingRGBInfo
dict
DeviceRenderingCMYKInfo
dict
KPDL Operators
SorterDetails can specify tray arrangement and sorter operation mode as the following example:
<< /SorterDetails << /SorterTray[1 2]/SorterMode(SORTER)>> >>
setpagedevice
Tray arrangement array of [1 2] specifies tray 1 and tray 2 to be used. If tray numbers are omitted ([
]), all trays are used. Sorter mode string of (SORTER) specifes sorter mode. Other options include
(COLLATOR) and (MAILBOX).
A typical StapleDetails sequence is as follows. To staple each 20 pages at position 3 on the page:
<< /Staple 3 /StapleDetails << /StaplePosition 3 /Count 20 >> >>
setpagedevice
CollateDetails Parameters
CollateDetails has the following parameters as tabled below according to the key of
operations. By making /Collate true, CollateDetails enables the printing system to
implement the e-MPS function according to the keys explained in the following table.
Table 7.49. CollateDetails Parameters
Key
Type
Meaning
Parameters
/Mode
integer
Job mode
0:
1:
2:
8:
/Type
integer
8:
/Hold
integer
1:
2:
3:
QuickCopy
Stored job
Proof and Hold
/HoldType
integer
0:
1:
No security
Security with PIN code
default
0
/HoldKey
integer
PIN code
Number of 4 bytes
/Barcode
integer
Barcode output
0:
1:
2:
/BarcodePosition integer
0:
1:
2:
3:
4:
5:
6:
7:
128:
129:
130:
131:
132:
133:
134:
135:
/Share
Share flag
0:
1:
Shared
Not shared
integer
/Name
string
Job name
()
/User
string
User name
()
/Time
string
Time stamp
()
/Destination
array
VMB destination
[]
7-139
Chapter 7 Emulation
keys to the CollateDetails parameter should have the following integer values depending
on the mode of each e-MPS function.
Table 7.50. Enabling e-MPS Functions
e-MPS
/Collate
/Type
/Hold
/HoldType
Electronic sorting
true
true
true
Virtual mailbox
true
QuickCopy
true
QuickCopy (Private)
true
true
Stored job
true
/HoldKey
(1234)
(1234)
Examples:
To post a print job into the virtual mailbox aliased Robert, a typical CollateDetails
sequence of parameters will be as follows:
<< /Collate true /CollateDetails << /Mode 8
/Destination [(Robert)]>> setpagedevice
7-140
Code Error
Meaning
00
01
dictfull
02
dictstackoverflow
03
04
05
handle
06
interrupt
07
invalidaccess
08
invalidexit
09
invalidfile
10
invalidfont
11
invalidrestore
KPDL Operators
Meaning
12
ioerror
Input/output error
13
limitcheck
14
nocurrentpoint
15
rangecheck
16
stackoverflow
17
stackunderflow
18
syntaxerror
19
timeout
20
typecheck
21
undefined
22
23
undefinedresult
24
unmatchedmark
25
unregister
Internal error
26
vmerror
27
badpassword
Bad password
28
invalidnumber
Invalid number
29
nomemory
Memory unavailable
30
31
invalidcontext
32
invalidid
33
98
fatal
7-141
Chapter 7 Emulation
Paper size
A3a
cm
Points
cm
Pt.
cm
Pt.
cm
29.7 x 42.0
842 x 1191
0.42
12
0.35
10
Pt.
B4a
25.7 x 36.4
728 x 1032
0.42
12
0.35
10
A4
21.0 x 29.7
595 x 842
0.42
12
0.35
10
A4 Small
21.0 x 29.7
595 x 842
0.875 25
0.875 25
A5
14.8 x 21.0
421 x 595
0.42
12
0.35
10
14 x 20.28
397 x 575
A6
10.5 x 14.8
297 x 421
0.42
12
0.35
10
9.63 x 14.14
273 x 401
B5
18.2 x 25.7
516 x 729
0.74
21
0.35
10
B6
12.8 x 18.2
364 x 516
0.42
12
0.35
10
Intl DL
11.0 x 22.0
312 x 624
0.42
12
0.35
10
10.16 x 21.3
Intl B5
17.6 x 25.0
499 x 708
0.42
12
0.42
12
Intl C4a
22.9 x 32.4
649 x 919
0.42
12
0.35
10
22.0 x 31.7
Intl C5
16.2 x 22.9
459 x 649
0.42
12
0.35
10
7-142
Vertical
10 x 14.8
11 x 17
288 x 604
625 x 899
421 x 595b
0.42
12
0.49
14
420 x 567a
0.35
10
0.35
10
297 x 421b
0.46
13
0.35
10
9.56 x 14.14
271 x 401
283 x 420a
0.35
10
0.35
10
9.28 x 14.11
263 x 400
792 x 1224
0.16
12
0.11
Legal
8.5 x 14
612 x 1008
0.16
12
0.11
8.18 x 13.78
588 x 992
Letter
8.5 x 11
612 x 792
0.16
12
0.11
8.18 x 10.78
588 x 776
Ltr Small
8.5 x 11
612 x 792
0.35
25
0.35
25
7.8 x 10.3
562 x 742
Executive
7.25 x 10.5
522 x 756
0.16
12
0.11
6.93 x 10.28
498 x 740
Com. #10
4.125 x 9.5
297 x 684
0.16
12
0.11
3.79 x 9.28
273 x 668
Monarch
3.875 x 7.5
279 x 540
0.16
12
0.11
3.555 x 7.28
255 x 524
Com. #6
3.625 x 6.5
261 x 468
0.16
12
0.11
3.29 x 6.28
237 x 452
Com. #9
0.16
12
0.11
3.54 x 8.666
255 x 623
Customa
11.7 x 17.7
0.11
0.11
842 x 1274
Index
Numerics
16-bit word, 4-13
A
Baseline, 1-8
Beveled line join, 2-21
Bzier curve, 2-26
Binary number, 2-13, 4-13
Bit image, 2-34
Bitmap font, 4-6
Bitmap fonts, 1-6, 4-6
block, 2-10
Box, 2-6
Butt cap, 2-20
2-24
K
KC-GL
character sets, 7-108
coordinates, 7-99
default status, 7-115
device control, 7-107
emulation, 7-97
instruction format, 7-97
instructions (table), 7-112
modes A and B, 7-99
parameter format, 7-98
pen selection, 7-100
status information, 7-103
KPDL, 4-4, 7-116
L
Line
drawing, 2-2
path mode, 2-18
Line end (caps), 2-20
Line join, 2-21
Line join mode, 2-21
Line printer emulation,
Line width, 2-2
Line-cap mode, 2-20
Lines, 2-2
relative, 2-4
zero-relative, 2-3
Logical page, 1-9
7-3
H
HP LaserJet series
character set, 7-68
emulation, 7-33
font selection, 7-35
printer commands, 7-49
HP PCL
language, 1-13
HP-GL/2
language, 1-6
printer commands, 7-65
Human-readable text (barcode), 5-3
Human-readable text (macro), 5-2
I
IBM Proprinter
ii
O
Origin,
1-7
Q
Quotation marks,
T
Tagged image file format (TIFF),
Text positioning, 1-7
Thickness of lines, 2-3
Tilt (SFNT), 4-8
Transparency mode, 2-37
Twos comlement (TIFF), 2-35
Typeface, 4-1
1-9
2-34, 7-34
1-11
U
W
Word-processing software,
X
X/Y (coordinates),
1-12
1-7
Z
Zero-relative coordinates,
2-24