PRESCRIBE Commands 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.
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.
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 system’s capability.
About the Technical Reference manual The Technical Reference manual is organized into eight chapters. The first four chapters of this manual constitute an tutorial introduction to PRESCRIBE. The rests mainly concern advanced utilities and setups: Chapter 1 Introduction to PRESCRIBE introduces some basic concepts of PRESCRIBE. Chapter 2 Graphics Tutorial outlines the graphic handling features of PRESCRIBE.
Table of Contents General Infomation ................................................................................................................................... i Introduction.............................................................................................................................................iii Introduction to PRESCRIBE Format of PRESCRIBE Commands ....................................................................................................1-4 Basic Concepts..........
Font Selection ....................................................................................................................................... 4-7 Font Selection by PRESCRIBE Commands ............................................................................... 4-7 Placement of Font Commands ................................................................................................... 4-11 Creation of New Symbols and Characters .................................................................
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.
Chapter 1 Introduction to PRESCRIBE Entry and Exit The printing system can be thought of as having a multiple personality. When its power is switched on, it performs the normal printing system functions of printing out files and other data. Application software can control the printing system using one of the seven emulations. When the printing system uses an emulation, it is said to be printing in emulation mode.
Figure 1. 2. Text Including PRESCRIBE Commands !R! RES; SLM 1; STM 1; SPD 0.03; FTMD 13; SFNT "Helvetica-Bd"; EXIT; WELCOME TO WINDFALL NATIONAL PARK !R! SFNT "Times-Rom"; EXIT; The park entrance is located in the rolling hills of the Northern Woods, a forested area abundant in deer, elk, squirrel, rabbit, opossum, lynx, wolf, and other wildlife. It is the park’s most popular area, featuring excellent trails and campsites for hiking and backpacking. !R! BOX 3.4, 0.
Chapter 1 Introduction to PRESCRIBE Format of PRESCRIBE Commands The basic format of a PRESCRIBE command is: • • • or • • • • (command name) parameter, ..., parameter; The command names generally consist of three or four letters. In most commands, the parameters must be followed by commas. The last parameter is always followed by a semicolon. Some commands (RES, for example) have no parameters. In this case, the command should be followed immediately by a semicolon (RES;).
Basic Concepts Figure 1. 4. Edge Limits and Margins Edge limits in HP emulation Portrait Orientation Edge limits in HP emulation 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.
Chapter 1 Introduction to PRESCRIBE 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.
Basic Concepts Figure 1. 6.
Chapter 1 Introduction to PRESCRIBE 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.
Basic Concepts Figure 1. 8. Character Spacing 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.
Chapter 1 Introduction to PRESCRIBE Figure 1. 9. Logical Page and Physical Page Standard Mode (0,0) x = Logical page y Path Mode −y −x x 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.
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 Number used by printing system 1234.1234 -1234.1234 0.1234 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.
Chapter 1 Introduction to PRESCRIBE TEXT "You’re about to enter PRESCRIBE."; TEXT ’ " " " ’; In the first command above, the character string starts with a double quotation mark. The printing system therefore expects the string to end with a double quotation mark, and regards the apostrophe in the word You’re as an ordinary character, not as the string terminator. Similarly, the double quotation marks in the second command above are recognized as ordinary characters, not as string terminators.
Command Parameters !R! Text ’A’; Cir 1; Exit; 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.
Chapter 1 Introduction to PRESCRIBE 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.
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.
Chapter 2 Graphics Tutorial 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: • • • • Draw lines of any desired width Draw circles and rectangles Draw a variety of filled shapes, including boxes and arcs Draw pie charts This is referred to as the standard graphics mode because it is a standard feature of all versions of PRESCRIBE.
Figure 2. 1. Result of Draw Commands: Absolute Lines 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 system’s permanent defaults.
Chapter 2 Graphics Tutorial Figure 2. 2. Result of Draw Commands: Zero-relative Lines 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.
Figure 2. 3. Result of Draw Commands: Relative Lines Edge limits 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 cursor’s current position. When the command sequence starts, the cursor is located at the intersection of the left and top margins.
Chapter 2 Graphics Tutorial Figure 2. 4. Result of Draw Commands: Lines in Angles 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.
Figure 2. 5. An Example of a Box 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.
Chapter 2 Graphics Tutorial Figure 2. 6.
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.
Chapter 2 Graphics Tutorial 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. Drawing Filled Blocks The following command sequence prints the block shown below. !R! RES; UNIT P; MZP 72, 72; PAT 6; BLK 72, -144, H; PAGE; EXIT; Figure 2. 8.
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.
Chapter 2 Graphics Tutorial Defining Fill Patterns With a little work, you can construct your own fill patterns. You can generate 8 × 8 dot patterns using the FPAT (generate Fill PATtern) command, or 16 × 16 dot patterns using the XPAT (generate eXpanded fill PATtern) command. This section gives examples of both. !R! RES; MZP 1, 1; FPAT 16, 40, 68, 130, 65, 34, 20, 8; BLK 1, 1; PAGE; EXIT; Line 4 of this command sequence prints a filled block using a fill pattern defined by the FPAT command on line 3.
!R! RES; XPAT 100; @X0@ | 0Af0CC0FA8L@
Chapter 2 Graphics Tutorial 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)
Figure 2. 12. PIE Example The PIE command uses the format PIE radius, starting angle, size of slice, ...; In the example above, the radius is 2 centimeters (since we set the unit to centimeters with the UNIT command), and the starting angle is 0 degrees. Four pie slices are specified, with sizes of 10, 20, 30, and 40. The printing system automatically converts the slice sizes to angles totalling 360 degrees.
Chapter 2 Graphics Tutorial Figure 2. 13. Pattern Filled PIE 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.
Path Mode Graphics 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.
Chapter 2 Graphics Tutorial 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.
Path Mode Graphics 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.
Chapter 2 Graphics Tutorial 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.
Path Mode Graphics 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.
Chapter 2 Graphics Tutorial Figure 2. 19. Miter Limit W = line width L = miter length W L Miter limit = maximum ratio of L/w = 1/sin (a/2) If the angle at which lines join is such that this limit is exceeded, the lines are joined with a beveled join, rather than a mitered one. The purpose of the miter limit is to prevent objectionably long spikes when lines join at small angles. The default miter limit is 10, which results in beveled joins at angles of less than about 11.5 degrees.
Path Mode Graphics The following program illustrates use of this command. !R! RES; UNIT C; CMNT Sets unit to cm; NEWP; CMNT Starts new path; SPD .5; CMNT Sets line width to .5 cm; PMZP 2, 2; PDZP 4, 4; DPAT 5; STRK; PAGE; EXIT; Figure 2. 20. Printout of the DPAT Example 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.
Chapter 2 Graphics Tutorial Figure 2. 21. Printout of the SDP Example 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.
Path Mode Graphics Figure 2. 22. Printout of the PARC Example 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.
Chapter 2 Graphics Tutorial Figure 2. 24. Printout of a Circle Made with PMRA Drawing Complex Curves PRESCRIBE also provides a second curve-drawing operator for constructing complex curves that are referred to as Bézier curve segments. The PCRP (Path, Curve to Relative Position) uses the following format. PCRP x1, y1, x2, y2, x3, y3; Figure 2. 25.
Path Mode Graphics 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.
Chapter 2 Graphics Tutorial !R! RES; UNIT C; NEWP; SPD .1; PMZP 3, 4; PCRP 4, 2, 5, 4, 6, 2; STRK; PAGE; EXIT; Figure 2. 28. Third PCRP Example Setting the Flatness of Curves When PRESCRIBE renders any curve, it actually converts the curve to a series of connected straight line segments. The length of these line segments is referred to as a curve’s flatness. You can change the degree of flatness with the FLAT (set FLATness) command. The default flatness is 1 (dot).
Path Mode Graphics !R! RES; UNIT C; NEWP; SPD .1; FLAT 60; PMZP 5, 5; PCRP 4, 2, 5, 4, 4, 0; STRK; PAGE; EXIT; Figure 2. 30. Curve with Flatness 60 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.
Chapter 2 Graphics Tutorial Figure 2. 31. A Closed Path 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.
Path Mode Graphics 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; PMZP 10.5, 4.
Chapter 2 Graphics Tutorial 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.
Path Mode Graphics Figure 2. 34. Clipping Rectangle Example Printing with Character Paths When a resident scalable (outline) font is selected, you can treat a character as a path and add it to the current path. The PRESCRIBE command is CPTH (Character PaTH). Paths created with the CPTH command can be either stroked or filled. See the following example. !R! RES; UNIT P; NEWP; PAT 26; SFNT ’Helvetica-Bd’, 54; PMZP 72, 144; CPTH "xyz"; FILL 1; PAGE; EXIT; Figure 2. 35.
Chapter 2 Graphics Tutorial 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.
Raster Graphics raster data represents a repeating pattern or an uncompressed (unencoded) pattern. It also determines the number of pattern repetitions or bytes of uncompressed data. The control byte is a two’s complement value that can be either zero, positive, or negative. A negative value (-1 to -127) indicates that the following byte represents a repeating pattern. The number of repetitions of the pattern is determined by the absolute value of the control byte.
Chapter 2 Graphics Tutorial Figure 2. 36. Presentation Modes Presentation mode = 0 X X Current point Y Y Width Current point Height Width Height Landscape Portrait Presentation mode = 1 X X Current point Current point Y 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.
Raster Graphics tagged image file format raster data. Both commands are used with the ENDR (END Raster) command. Printing Raster Data The normal sequence for printing raster data is to set the presentation mode (and, if desired, the height and width of the raster image area) with the SRO command, to set the dot resolution with the STR command, then to print the raster data with the RVRD or RVCD/ENDR command pair.
Chapter 2 Graphics Tutorial Figure 2. 38. Image Models Source transparency mode = 0 (transparent) Pattern transparency mode = 0 (transparent) Source transparency mode = 0 (transparent) Pattern transparency mode = 1 (opaque) Source transparency mode = 1 (opaque) Pattern transparency mode = 0 (transparent) Source transparency mode = 1 (opaque) Pattern transparency mode = 1 (opaque) PRESCRIBE establishes the printing system’s imaging model with the SIMG (Set IMaGe model) command.
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.
Chapter 2 Graphics Tutorial 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.
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).
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.
Examples of Macros Figure 3. 1. PRESCRIBE Macro Limitations Macro limitations are summarized as follows.
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.
Examples of Macros Figure 3. 2.
This page is left blank intentionally.
Chapter 4 Fonts This chapter covers font-related topics, including the printing system’s 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.
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 system’s 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 system’s default emulation, the power-up (default) font is Courier.
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 NewCentur
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 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 NewC
Chapter 4 Fonts Font Name Univers-Condensed-Medium Univers-Condensed-MediumItalic Univers-Medium Univers-MediumItalic Wingdings-Regular ZapfChancery-MediumItalic ZapfDingbats Substituting a Bitmap Font The printing system does not contain any bitmap fonts except LinePrinterBM8.5Roman. If the printing system receives a request for the bitmap fonts that the previous lineups of the printers supported (tabled on page 4-4), a scalable font is substituted.
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.
Chapter 4 Fonts • • • • CSET (Change current symbol SET) FTMD (set bitmap FonT MoDe) FONT (select current FONT by number) SFA (Set bitmap Font Attributes) 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.
Font Selection The parameters for symbol set, compression, and obliquing must be either all specified or all omitted. Selecting Fonts Using the FSET Command The FSET command provides a method of selecting fonts based on font characteristics and font location in the printing system.
Chapter 4 Fonts Selecting Fonts with the FONT Command The FONT command uses font numbers to select fonts. A scalable font does not normally have the font number, therefore, you must take one extra step using the SFNT (Select FoNT by typeface) command. See Selecting Fonts Using the SFNT Command above.
Font Selection !R! FTMD 13; FONT 19; EXIT; For making many font changes within a document, use the ALTF (change to ALTernate Font) and SETF (SET alternate Font) commands instead of FONT. To switch repeatedly between fonts 6 and 8, for example, place the following sequence at the beginning of your document: !R! SETF 1,6; CMNT PrestigeEliteBM10-Roman; SETF 2, 8; CMNT LetterGothicBM12-Roman; EXIT; Then use !R! ALTF1; EXIT; within the document to select font 6 and !R! ALTF2; EXIT; to select font 8.
Chapter 4 Fonts Font Selection by Embedded Commands Word-processing programs with IBM and Epson printer drivers include support for a set of specific typefaces. The Kyocera printing system internally assigns these typefaces to match similar typefaces already in the printing system. Kyocera users may reassign these fonts to create a custom font list. To make this change, refer to the SETF command in PRESCRIBE Commands Command Reference.
Symbol Set Figure 4. 1. Character dot pattern 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).
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.
Symbol Set • • CSET (Change symbol SET) SFNT (Select current FoNT by typeface) 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.
This page is left blank intentionally.
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.
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.
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.
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.
Chapter 5 Barcodes Table 5.1. Barcode Types (Sheet 2 of 2) No. 32 33 34 35 36 37 38 39 40 41 42 43 44 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 Table 5.2.
Table 5.2. Length, Character Set, and Default (Sheet 2 of 2) Type 29 30 31 32 33 34 35 36 37 38 39 40 Length 1–25 1–25 1–25 1–25 1–25 1–25 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 0 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.
Chapter 5 Barcodes Table 5.3. Location of POSTNET and FIM 3” 2”±1/8” 1”-3/4” 1”-1/4” 5/ ” 8 Stamp FIM (BARC 40) Clear Zone Preferred location for left-most bar Barcode read area POSTNET (BARC 39) Clear Zone (5/8” × 4-1/2”) Not drawn to scale 7/ ” 16 3/ ” 16 1/ ” 8 1/ ” 4 Preferred base height 3-1/4” min. 4” max. 4-1/2” Table 5.4.
Table 5.4.
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.
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 Right row indicator codeword Data codeword Left row indicator 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.
Chapter 5 Barcodes Left row indicators Data codeword area Right row indicators R0 R1 L0 dn-1 dn-2 Stop Start L1 Lm-2 d0 Ck-1 Ck-2 Rm-2 Lm-1 C1 C0 Rm-1 Error correction area Printing a Two-dimensional Barcode XBAR, XBCP, XBUF, and ENDB commands support two-dimensional barcode printing. Each command does the following to put data together for printing a barcode. XBAR XBCP XBUF ENDB Prints a two-dimensional barcode from the given data string. Must be followed by an ENDB command.
Positioning the Barcodes The following commands are positioning commands the PRESCRIBE language provides. These commands are useful and sometimes essential for proper positioning of the barcodes onto a medium such as label. More detailed discussion on these (and some other) positioning commands can be found in the PRESCRIBE Commands Command Reference. By default the cursor is located at the top left corner of the barcode and stays there after printing is done.
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.
Some samples for Macro PDF417 are provided in PRESCRIBE Commands Command Reference on the XBCP page.
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.
Chapter 6 Permanent Parameters 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.
Table 6.1.
Chapter 6 Permanent Parameters Table 6.1.
Interface-independent Parameters Table 6.2. Interface-independent Parameters (Sheet 1 of 7) 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.
Chapter 6 Permanent Parameters Table 6.2. Interface-independent Parameters (Sheet 2 of 7) Environment Buffer nearly-full threshold Buffer nearly-empty threshold Total host buffer size Parameter Value 4: ETX/ACK 5: XON/XOFF recognized only as protocol H6 Percentage of the received data buffer size. 90 H7 Percentage of the received data buffer size.
Table 6.2. Interface-independent Parameters (Sheet 3 of 7) Environment Ecoprint level Parameter Value N6 0: Off 2: On Duplex N7 0: Normal 1: Reverse output pages. 2: Allows duplex from the MP tray. 3: Allows duplex from the MP tray; reversing the output pages. Printing resolution N8 0: 300 dpi 1: 600 dpi 3: 1200 dpi PCL resource protection N9 0: Off 1: Protects permanent PCL resources and resets the environment. 2: Protects permanent and temporary PCL resources.
Chapter 6 Permanent Parameters Table 6.2. Interface-independent Parameters (Sheet 4 of 7) Environment Parameter Value 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.
Table 6.2.
Chapter 6 Permanent Parameters Table 6.2.
Table 6.2. Interface-independent Parameters (Sheet 7 of 7) Environment Error message for device error Parameter Value Factory setting Y3 0: Does not display an error message and pause 0 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.
Chapter 6 Permanent Parameters 6-12 b I0—Name of the partition in memory card The FRPO I0 specifies a memory card partition name to be automatically read at power up. Only one partition may be specified. The data read from the named partition at power up will be available to users accessing the currently-active interface. The command uses the following format: FRPO I0, ’partition-name’; Note that a comma must be placed after the I0 parameter.
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.
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.
Line Printer Emulation (Mode 0) Automatic emulation sensing In printing systems that permit the selection of KPDL emulation, the automatic emulation sensing (AES) can be activated so that print jobs using other emulations will automatically print in the correct emulation. Refer to the AES related FRPO command parameters, P4 and P5, in Interface-independent Parameters on page 5 in Chapter 6.
Chapter 7 Emulation Table 7.2. Line Printer Control Codes Character code (decimal) Abbreviation Meaning 8 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.
IBM Proprinter X24E Emulation (Mode 1) Table 7.3. IBM Proprinter X24E Symbol Sets Symbol set Message display FRPO command IBM PC-863 (Canadian French) IBM PC-863 FRPO U6, 12; FRPO U7, 1; IBM PC-865 (Norwegian) IBM PC-865 FRPO U6, 13; FRPO U7, 1; 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.
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.
IBM Proprinter X24E Emulation (Mode 1) Table 7.6.
Chapter 7 Emulation Table 7.6. IBM Proprinter X24E Control Codes 7-8 Command Function Code (hex) ESC U n Set Print Direction 1B 55 n Supported – ESC W n Continuous Double-Wide Printing 1B 57 n Yes ESC X n m Set Horizontal Margins 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...
IBM PC-8 (341) IBM Symbol Sets IBM PC-8 (D/N) (373) IBM Proprinter X24E Emulation (Mode 1) 7-9
IBM PC-850 (405) IBM PC-860 (30) Chapter 7 Emulation 7-10
IBM PC-863 (62) IBM PC-865 (94) IBM Proprinter X24E Emulation (Mode 1) 7-11
Chapter 7 Emulation Diablo 630 Emulation (Mode 2) To set the power-up emulation for Diablo 630, send the printing system the following PRESCRIBE command sequence: !R! FRPO P1, 2; FRPO P3, 1; EXIT; The Diablo uses ten symbol sets as shown below. To select one of these symbol sets, use the INTL command or the operator panel keys. Permanent setting of the symbol set is made with the FRPO U6 and U7 parameters. The factory setting for the symbol set at power-up is IBM PC-8 for all emulation modes. Table 7.7.
Diablo 630 Emulation (Mode 2) 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.
Chapter 7 Emulation Diablo 630 Control Codes Table 7.9.
Diablo 630 Emulation (Mode 2) Table 7.9.
7-16 DIABLO US (29) Diablo 630 Symbol Sets Diablo France (61) Chapter 7 Emulation
Diablo Germany (93) Diablo U. K.
Diablo Denmark (157) Diablo Sweden (189) Chapter 7 Emulation 7-18
Diablo Italy (221) Diablo Spain (253) Diablo 630 Emulation (Mode 2) 7-19
Diablo Japan (285) Chapter 7 Emulation 7-20
Epson LQ-850 Emulation (Mode 5) Epson LQ-850 Emulation (Mode 5) To set printing system to power up in the LQ-850 emulation with the LQ German symbol set, command: !R! FRPO P1, 5; FRPO P3, 2; FRPO U6, 2; EXIT; The Epson LQ-850 emulation uses 13 symbol sets that include both plain and italic characters. The desired symbol set can be selected with the U6 parameter of the FRPO command or changed temporarily with the INTL command or from the operator panel keys.
Chapter 7 Emulation Figure 7. 11. Epson LQ-850 Font Printout The five LQ-850 fonts actually use the printing system’s 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.
Epson LQ-850 Emulation (Mode 5) Table 7.12. Epson LQ-850 Fonts (Sheet 2 of 2) Font name Epson Prestige 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.
Chapter 7 Emulation EPSON LQ-850 Control Codes Table 7.13.
Epson LQ-850 Emulation (Mode 5) Table 7.13.
7-26 LQ US (28) LQ-850 Symbol Sets LQ France (60) Chapter 7 Emulation
LQ Germany (92) LQ U.K.
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
Latin America (412) LQ Denmark (156) Epson LQ-850 Emulation (Mode 5) 7-31
LQ Sweden (188) Chapter 7 Emulation 7-32
HP LaserJet Emulation (Mode 6) HP LaserJet Emulation (Mode 6) On shipment from the factory, the printing system is set to power up in the HP LaserJet (PCL 6) emulation. The Kyocera printing systems support to emulate the following HP printer language as tabled below: Table 7.14. HP LaserJet Emulation by Model No.
Chapter 7 Emulation The printing system also supports as many HP symbol sets as the LaserJet regularly supports and still other symbol sets can be provided in downloaded fonts. (A full list of the supported symbol sets appear in section LaserJet Symbol Sets on page 37.) These symbol sets can be used by appropriate font selection commands as explained below. Fonts can be selected with PRESCRIBE commands, or through the printer driver provided with your software.
HP LaserJet Emulation (Mode 6) 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.
Chapter 7 Emulation LDFC fonts or downloaded bitmap fonts by the user, they will constantly print unpredictably if the printing system uses the resolution of 300 dpi. 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 matching features, reduces selection to a single font.
HP LaserJet Emulation (Mode 6) LaserJet Font Escape Sequences The example below shows an HP font selection escape sequence that selects a LetterGothic font with fixed-pitch, 12-cpi, 12-point, upright-style, normal stroke weight.
Chapter 7 Emulation Table 7.17. Symbol Sets for Bitmap Fonts Symbol Set HP Symbol Set ID (Value) FRPO U6 Value FRPO U7 Value ISO 60 Norway 0D (4) 4 HP Extension 0E (5) 5 ISO 25 France 0F (6) 6 HP German 0G (7) 7 ISO 15 Italian 0I (9) 9 ISO 14 Japan 0K (11) 11 ECMA-94 Latin 1 0N (14) 14 ISO 11 Sweden 0S (19) 19 ISO 6 ASCII 0U (21) 21 ISO 61 Norway 1D (36) 36 ISO 4 U.K.
HP LaserJet Emulation (Mode 6) Table 7.18.
Chapter 7 Emulation !R! FRPO V3, ’TimesNewRoman’; FRPO U6, 9; FRPO U7, 53; STAT; EXIT; The STAT command in the third line prints a status page that enables the user to confirm changes made with the preceding sequences. The power-up font and symbol set are shown in the Interfaces section. Resource Protection The resource protection feature is Kyocera’s implementation of the HP’s resource saving. The feature preserves resources during emulation switching.
HP LaserJet Emulation (Mode 6) 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.
Chapter 7 Emulation Table 7.20.
HP LaserJet Emulation (Mode 6) HP LaserJet Reset State The printing system resets to the following states when it receives a PCL reset command. Shown in parentheses are the related FRPO parameters. Table 7.22.
Chapter 7 Emulation Table 7.23. Supported PJL Commands Command Group Command Description Environment Commands DEFAULT Sets default for environment variables. SET Sets an environment variable to a specified value during a PJL job. Status Readback Commands Device Attendance Commands PJL File System Commands INITIALIZE Resets current and default PJL variables to factory default. RESET Defaults current PJL variables. INQUIRE Requires the current value for a specified environment variable.
HP LaserJet Emulation (Mode 6) ^D Printable characters (ASCII characters 33 through 255) and , starting with a printable character. KPDL end-of-file indication. It is not part of PJL, but is used to end KPDL instructions. The PJL command syntax should follow one of four formats: Format 1: %-12345X This format uses the Universal Exit Language (UEL) only. Format 2: @PJL [] This format may be used to add a visual line break among the PJL command lines.
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).
HP LaserJet Emulation (Mode 6) 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.
Chapter 7 Emulation Table 7.24.
HP LaserJet Emulation (Mode 6) HP LaserJet Printer Commands — PCL In the tables below, Yes means that the command is supported and No means that the command is not supported. Table 7.25. HP LaserJet PCL Commands (Sheet 1 of 15) Function Parameter Command Hexadecimal Value 1000 1000+ 1800 1900 3800 6300 6750 6900 9100DN 8000C 9500DN JOB CONTROL COMMANDS Reset ESCE 1B 45 Yes Yes Yes Yes Yes Number of Copies # of Copies (1-999) ESC&l#X 1B 26 6C #...
Chapter 7 Emulation Table 7.25. HP LaserJet PCL Commands (Sheet 2 of 15) Function Parameter Command Hexadecimal Value 1000 1000+ 1800 1900 3800 6300 6750 6900 9100DN 8000C 9500DN Output Bin Destination Tray 1 (Face down) ESC&l1G 1B 25 6C 31 47 Yes Yes Yes Yes Yes Destination Tray 2 (Face up) ESC&l2G 1B 25 6C 32 47 No Yes Yes Yes Yes Destination Tray 3 (Opt.
HP LaserJet Emulation (Mode 6) Table 7.25.
Chapter 7 Emulation Table 7.25.
HP LaserJet Emulation (Mode 6) Table 7.25. HP LaserJet PCL Commands (Sheet 5 of 15) Function Parameter Command Hexadecimal Value 16 lines/inch ESC&l16D 1B 26 6C 31 36 44 Yes Yes Yes Yes Yes 24 lines/inch ESC&l24D 1B 26 6C 32 34 44 Yes Yes Yes Yes Yes 48 lines/inch ESC&l48D 1B 26 6C 34 38 44 Yes Yes Yes Yes Yes ESC&n#W [operation] [String] 1B 26 6E #...
Chapter 7 Emulation Table 7.25.
HP LaserJet Emulation (Mode 6) Table 7.25.
Chapter 7 Emulation Table 7.25.
HP LaserJet Emulation (Mode 6) Table 7.25. HP LaserJet PCL Commands (Sheet 9 of 15) Function Parameter Hexadecimal Value 1000 1000+ 1800 1900 3800 6300 6750 6900 9100DN 8000C 9500DN ESC(f#W[DAT 1B 28 66 #...
Chapter 7 Emulation Table 7.25.
HP LaserJet Emulation (Mode 6) Table 7.25.
Chapter 7 Emulation Table 7.25. HP LaserJet PCL Commands (Sheet 12 of 15) Function Pattern Parameter Command Hexadecimal Value 1000 1000+ 1800 1900 3800 6300 6750 6900 9100DN 8000C 9500DN 1 Horiz.Line ESC*c1G 1B 2A 63 31 47 Yes Yes Yes Yes Yes 2 Vert.
HP LaserJet Emulation (Mode 6) Table 7.25.
Chapter 7 Emulation Table 7.25. HP LaserJet PCL Commands (Sheet 14 of 15) Function Parameter Command Hexadecimal Value 1000 1000+ 1800 1900 3800 6300 6750 6900 9100DN 8000C 9500DN Picture Frame Decipoints Horizontal Size ESC*c#X 1B 2A 63 #...# 58 Yes Yes Yes Yes Yes Picture Frame Decipoints Vertical Size ESC*c#Y 1B 2A 63 #...# 59 Yes Yes Yes Yes Yes 1B 2A 76 #...
HP LaserJet Emulation (Mode 6) Table 7.25.
Chapter 7 Emulation HP-GL/2 Context Printer Commands In the command tables below, parameters in brackets are optional. Table 7.26.
HP LaserJet Emulation (Mode 6) Table 7.26. HP-GL/2 Context Printer Commands (Sheet 2 of 2) Command Mnemonic SELECT ALTERNATE FONT SA Parameters None ABSOLUTE DIRECTION Dl [run,rise]; RELATIVE DIRECTION DR [run,rise]; ABSOLUTE CHARACTER SIZE Sl [width,height]; RELATIVE CHARACTER SIZE SR [width,height]; CHARACTER SLANT SL [tangent_of_angle]; EXTRA SPACE ES [width[,height]] STANDARD FONT DEFINITION SD [kind,value...[,kind,value]]; ALTERNATE FONT DEFINITION AD [kind,value...
Chapter 7 Emulation PJL Syntax Comparison Table 7.27. PJL Syntax Comparison Suggested Syntax Rules [] Items in brackets “[ . . . ]” indicate optional parameters. <> Identifies a control code character Special Identifiers Horizontal tab character (ASCII 9). Line feed character (ASCII 10). Carriage return character (ASCII 13). Space character (ASCII 32). White space Escape character (ASCII 27). Form feed character (ASCII 12).
ISO-60 Norway (0D) LaserJet Symbol Sets ISO-15 Italian (0I) HP LaserJet Emulation (Mode 6) 7-67
ECMA-94 Latin 1 (0N) ISO 11 Sweden (0S) Chapter 7 Emulation 7-68
ISO-6 ASCII (0U) ISO-4 U. K.
ISO-69 France (1F) ISO-21 Germany (1G) Chapter 7 Emulation 7-70
US Legal (1U) ISO Latin 2 (2N) HP LaserJet Emulation (Mode 6) 7-71
ISO-17 Spain (2S) PC Cyrillic (3R) Chapter 7 Emulation 7-72
PS math (5M) ISO Latin 5 (5N) HP LaserJet Emulation (Mode 6) 7-73
Windows Latin 5 (5T) MS publishing (6J) Chapter 7 Emulation 7-74
ISO Latin 6 (6N) Desktop (7J) HP LaserJet Emulation (Mode 6) 7-75
Greek-8 (8G) Math-8 (8M) Chapter 7 Emulation 7-76
Turkish-8 (8T) HP Roman-8 (8U) HP LaserJet Emulation (Mode 6) 7-77
Windows Latin 2 (9E) Windows Greek (9G) Chapter 7 Emulation 7-78
PC-1004 (9J) ISO Latin 9 (9N) HP LaserJet Emulation (Mode 6) 7-79
Win Cyrillic (9R) PC-Turkish (9T) Chapter 7 Emulation 7-80
Windows (9U) PC-851 Greek (10G) HP LaserJet Emulation (Mode 6) 7-81
PS text (10J) ISO Cyrillic (10N) Chapter 7 Emulation 7-82
PC-855 Serbia (10R) PC-869 Greek (11G) HP LaserJet Emulation (Mode 6) 7-83
PC-8 Greek (12G) Macintosh (12J) Chapter 7 Emulation 7-84
ISO Greek (12N) USSR-GOST (12R) HP LaserJet Emulation (Mode 6) 7-85
ABICOMP Brazil (13P) PC-8 Bulgarian (13R) Chapter 7 Emulation 7-86
PC-8 Greek/437G (14G) ABICOMP Int.
PC Ukrainian (14R) Pi font (15U) Chapter 7 Emulation 7-88
PC-857 Turkish (16U) PC-852 Latin 2 (17U) HP LaserJet Emulation (Mode 6) 7-89
ISO-10646 (18N) PC-853 Turkish (18U) Chapter 7 Emulation 7-90
Winbalt (19L) Windows Latin 1 (19U) HP LaserJet Emulation (Mode 6) 7-91
PC-860 Portugal (20U) PC-861 Iceland (21U) Chapter 7 Emulation 7-92
PC-863 Canada (23U) PC-8 Polish (24Q) HP LaserJet Emulation (Mode 6) 7-93
PC-865 Norway (25U) PC-775 (26U) Chapter 7 Emulation 7-94
PC-8 PC Nova (27Q) HP LaserJet Emulation (Mode 6) 7-95
Chapter 7 Emulation HP 7550A Emulation [KC-GL] (Mode 8) The HP 7550A emulation applies only to the printing systems that handle A3-size paper. The printing system emulates the Hewlett-Packard plotter model HP 7550A and uses the Kyocera Graphics Language (KC-GL). While it shares features with the HP-GL language, it is designed to provide additional features the plotter cannot give. KC-GL uses a simple mnemonic graphic language consisting of two-letter instructions.
HP 7550A Emulation [KC-GL] (Mode 8) 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.
Chapter 7 Emulation Table 7.28. FRPO G0 Command Options Bit Position Bit Value Logic Value Description 4 5 0 0 Landscape page orientation 16 1 Page orientation to FRPO C1 0 0 Default cursor at top left 32 1 Default cursor at bottom left Plot Coordinates (bit 0) This bit defines one of two plotting coordinate modes. (See Figure 7. 29. on page 98.) 0 = Mode A 1 = Mode B In mode A, the origin (0, 0) starts at bottom left. In mode B, the origin starts at the center of the page.
HP 7550A Emulation [KC-GL] (Mode 8) 1 = Printing System remains in mode A even when the IP instruction includes a negative parameter value. Enhance Mode (bit 3) This bit supports the enhance mode of HP 7550A and HP 758X plotters. 0 = Normal mode (HP 7550A standard mode and HP 758X emulation mode). 1 = Enhance mode (HP 7550A enhance mode and HP 758X standard mode). The enhance mode should be turned on when the printing system uses the HP 758X mode.
Chapter 7 Emulation 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.
HP 7550A Emulation [KC-GL] (Mode 8) Setting the Scaling Points At power-up, scaling point P1 will be in the lower left corner of the paper, the default plot position. Point P2 is always diagonally opposite to P1. These two points define the diagonal of a rectangle, which by default is centered on the paper. P1 and P2 can be moved by an instruction which defines any rectangle, independent of the actual paper size.
Chapter 7 Emulation Figure 7. 30. KC-GL Sample Program Plotter Status Information When the RS-232C interface is used, in addition to receiving data, the plotter (printing system) can return information such as the current pen position, pen status, and error numbers. This return information applies to the following KC-GL instructions.
HP 7550A Emulation [KC-GL] (Mode 8) OA [Output Actual position and pen status] The plotter returns the x- and y-coordinates of the current pen position and indicates whether the pen is currently up or down.
Chapter 7 Emulation 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 OL [Output Label length] This instruction returns information on the contents of the label buffer. This may be used together with the BL instruction for accessing the necessary space for the buffered label before printing it.
HP 7550A Emulation [KC-GL] (Mode 8) 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.
Chapter 7 Emulation OW [Output Window] This instruction returns the x- and y-coordinates of two diagonally opposite corners of the current plottable area.
HP 7550A Emulation [KC-GL] (Mode 8) Table 7.31. Status Information Response Description 25 The buffer is empty and the printing system is off-line. 33 The buffer is full with the printing system under one of the following conditions: cover open, paper empty, or paper jam. 41 The buffer is empty with the printing system under one of the following conditions: cover open, paper empty, or paper jam. Fonts and Symbol Sets in KC-GL KC-GL uses a special stroke font.
7-108 ANSI ASCII (0) KC-GL Symbol Sets Roman Extensions (7) Chapter 7 Emulation
Katakana (8) KC-GL International Characters HP 7550A Emulation [KC-GL] (Mode 8) 7-109
Chapter 7 Emulation KC-GL Limits This section provides limit values for the various KC-GL parameters. Plotter units are used unless otherwise specified. Standard Character Sizes Table 7.33. Standard Character Sizes Paper size Width (mm) Height (mm) A4 0.187 0.269 A3 0.285 0.375 Letter 0.187 0.269 Ledger 0.285 0.375 Maximum Plot Area Table 7.34.
HP 7550A Emulation [KC-GL] (Mode 8) Coordinate Values, Mode B, RO 90 Paper size P1x P1y P2x P2y A4 –2480, –4700 2480, 4700 A3 –4700, –6680 4700, 6680 Letter –2598, –4348 2598, 4348 Ledger –4348, –6916 4348, 6916 Summary of KC-GL Instructions The table below lists KC-GL instructions supported by the printing system. The following legend is used: [c] Character string [d] decimal (-128.0000 to +127.9999) [i] integer (-32768 to +32767) [sd] scaled decimal (-32768.0000 to +32767.9999) Table 7.38.
Chapter 7 Emulation Table 7.38.
HP 7550A Emulation [KC-GL] (Mode 8) Table 7.39. E-Mask Bit Values Bit Error No. Description 4 2 3 Illegal parameter 8 3 4 Unknown character 16 4 5 Unknown character set 32 5 6 Plot position overflow 64 6 7 – 128 7 8 – S-Mask/P-Mask Values Table 7.40.
Chapter 7 Emulation Default States (DF) Table 7.42. Default States (DF) Function Equivalent Instruction Default Value Plotting mode PA; Absolute (plotter units) Polygon mode PM0; PM2; Empty polygon Line type LT; Solid line Line pattern length LTn,4; 4% of distance between P1 and P2 Scaling SC; Off (plotter units used for x- and y-coordinates) Input window IW; Set to hard-clip limits Circle and arc resolution – 5 degrees Symbol mode SM; Off Tick length TL; x-axis: 0.
KPDL Operators KPDL Operators This section describes the machine-independent part of KPDL, Kyocera’s 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 system’s internal settings.
Chapter 7 Emulation Figure 7. 44. Sample Printout 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.
KPDL Operators Certain operators are hyphenated in the following tables because of the editorial limitation only. These operators must not be hyphenated to be executed. Note KPDL Page Description Operators The following table summarizes the page description operators including all language levels of KPDL. In the following table, operators having the higher language level are indicated by 2 (level 2) or 3 (level 3) . Table 7.45.
Chapter 7 Emulation Table 7.45. KPDL Page Description Operators (Sheet 2 of 11) Preceding stack Operator mark obj1...objn cleartomark Clear stack down through mark clip Create new clipping path file Result clippath Set current path as clipping path 3 cliprestore Restore stored clipping path 3 clipsave Copy and save the current clipping path closefile Close file closepath Connect subpath to starting point width height bits/comp colorimage matrix datasrc0 ...
KPDL Operators Table 7.45.
Chapter 7 Emulation Table 7.45.
KPDL Operators Table 7.45.
Chapter 7 Emulation Table 7.45.
KPDL Operators Table 7.45.
Chapter 7 Emulation Table 7.45. KPDL Page Description Operators (Sheet 8 of 11) Preceding stack Operator dx dy rlineto Create line from current point to relative point dx dy rmoveto Move current point by relative amount ob(n-1)...ob0 n i roll ob(i-1)..ob0 ob(n01)..
KPDL Operators Table 7.45.
Chapter 7 Emulation Table 7.45.
KPDL Operators Table 7.45.
Chapter 7 Emulation Table 7.46.
KPDL Operators Table 7.46. KPDL Status Operators (Sheet 3 of 5) Preceding stack bool Operator monarcenvelope (3.875 x 7.5 envelope) Set imageable area to Monarch envelope size. See KPDL Printable Area on page 140. This operator is in userdict. com6envelope Set imageable area to Commercial 6 envelope size. See KPDL Printable Area on page 140. This operator is in userdict. com9envelope (3.75 x 8.875 envelope) Set imageable area to Commercial 9 envelope size. See KPDL Printable Area on page 140.
Chapter 7 Emulation Table 7.46. KPDL Status Operators (Sheet 4 of 5) Preceding stack int Operator Result defaultpapertray int setpapertray papertray int bool bool Get current paper tray. Select a tray by converting the tray number that is currently specified by the PRESCRIBE tray number into a KPDL tray number. int Convert the current tray number into a PRESCRIBE tray number.
KPDL Operators Table 7.46. KPDL Status Operators (Sheet 5 of 5) Preceding stack Operator Result Description dlenvelopetray Find tray containing DL size envelopes, select it as current tray, and set imageable area for DL size envelopes. monarcenvelopetray Find tray containing Monarch size envelopes, select it as current tray, and set imageable area for Monarch size envelopes. a3tray Find tray containing A3 size paper, select it as current tray, and set imageable area for A3 size paper.
Chapter 7 Emulation KPDL System Parameters The following table summarizes the system parameters. Table 7.47. KPDL System Parameters (Sheet 1 of 2) Preceding stack 7-132 Parameter Result Description BuildTime int Timestamp for printer’s date of manufacture ByteOrder bool Byte order of binary encoded tokens. (true: loworder byte first, false: high-order byte first) CurDisplayLista int Indicate in bytes the memory block size used for storing DisplayList for the current page.
KPDL Operators Table 7.47. KPDL System Parameters (Sheet 2 of 2) Preceding stack Parameter Result Description MaxSourceList int Indicate in bytes the maximum storage of the host buffer used by the current input device. MaxUPathCache int Indicate in bytes the maximum storage which can be used by the user path cache. PageCount int Indicate the total number of printed pages since the printer’s manufacture.
Chapter 7 Emulation KPDL User Parameters The following table summarizes the user parameters. The user parameters establish temporary policies on functions such as naming the current job for a user. Table 7.48. KPDL User Parameters Preceding stack 7-134 Parameter Result Description AccurateScreens bool Turn on/off the accurate mode flag for the setscreen operator. (true: detail screen on, false: default) JobName string Return the name of the job currently being processed by the printer.
KPDL Operators KPDL Page Device Parameters The page device parameters for setpagedevice allow manipulating the output devices to receive or provide various finishing operations on the printed outputs. For example, the OutputType parameter allows to choose paper stack as follows: To receive the output pages in the default printer stack: <> setpagedevice To receive the output pages in the finisher for stapling: <> setpagedevice Table 7.49.
Chapter 7 Emulation Table 7.49. KPDL Page Device Parameters (Sheet 2 of 3) Preceding Stack Parameter 7-136 Result Description Policies dict Execute the policies function. This is checked when the device cannot satisfy the user-specified setpagedevice. PostRendering-Enhance bool Turn on/off KIR mode. (true: KIR on, false: KIR off) PostRendering-EnhanceDetails dict Set the dictionary representing the KIR mode when PostRenderingEnhance is true.
KPDL Operators Table 7.49. KPDL Page Device Parameters (Sheet 3 of 3) Preceding Stack Parameter a Result Description PunchMode int Punch using sub style. (DF-71) 1: Native style of punching 2: Sub style SlipSheet int Insert transparency separator. 0: No separator 3: Insert a separator when a set of job is printed. SlipSheetDetails dict Control the detailed parameters of punching. See CopyMode below. CopyMode int Print on transparency separator.
Chapter 7 Emulation b 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). c A typical StapleDetails sequence is as follows.
KPDL Operators keys to the CollateDetails parameter should have the following integer values depending on the mode of each e-MPS function. Table 7.51.
Chapter 7 Emulation Table 7.52. KPDL Error Messages Code Error Meaning 12 ioerror Input/output error 13 limitcheck Path too complex, more than 6 files open, etc.
KPDL Operators Figure 7. 53. Printable Area Table 7.54. Paper Sizes and Printable Area Paper type Paper size Edge limits (A above) Printable area (B above) Horizontal Vertical cm Points cm Pt. cm Pt. cm A3a 29.7 x 42.0 842 x 1191 0.42 12 0.35 10 28.85 x 41.31 818 x 1171 Pt. B4a 25.7 x 36.4 728 x 1032 0.42 12 0.35 10 24.83 x 35.70 704 x 1012 A4 21.0 x 29.7 595 x 842 0.42 12 0.35 10 20.14 x 28.99 571 x 822 A4 Small 21.0 x 29.7 595 x 842 0.875 25 0.875 25 19.
This page is left blank intentionally.
Index Numerics 16-bit word, 4-13 A Absolute coordinates, 2-19 Absolute position, 2-2 Arc, 2-10 path mode drawing, 2-24 B Baseline, 1-8 Beveled line join, 2-21 Bézier 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 C Cartesian (X,Y) coordinates, 2-5 Case, 1-12 exception, 1-13 Cassette size, 1-4 Character cells, 1-8 Character path, 2-33 Character set KC-GL, 7-96 Character spacing, 1-8 Character string, 1-11 Check digit, 5-2
control codes, 7-24 emulation, 7-21 Even-odd rule (FILL), 2-32 F Fill pattern, 2-10 defining, 2-12 Filled area, 1-9, 2-30 Filled block, 2-10 Flag, 5-2 Flatness of curves, 2-28 Font characteristics, 4-9 definition, 4-2 identifying characteristics, 4-1 selection, 4-7 Font mode, 4-10, 7-22 Font name, 4-6 Font number assigning to a scalable font (SFNT), 4-8 Font orientation, 4-9 Font selection, 4-7, 7-35 by embedded software commands, 4-12 by PRESCRIBE, 4-7 font selection commands, 4-7 priority, 4-9 Font sele
O Origin, 1-7 P Page direction, 1-5 Page orientation, 1-5 Path mode graphics, 2-16 Pattern number, 2-22, 2-24 Permanent parameters, 6-1 Physical page, 1-9 Pie charts, 2-14 Plotter units, 7-100 PRESCRIBE command length limit, 1-4 format, 1-4 Presentation mode, 2-36 Print direction, 1-6 Print model, 2-1 Proportional fonts, 1-8 Proportional spacing, 1-8 Q Quotation marks, Soft fonts, 4-2 Source image, 2-37 Spacing commands, 4-10 Square cap, 2-20 Standard graphics mode, 2-2 Standard mode and path mode logi
Rev. 4.7 2009.