Panasonic Software Commands Manual for KX-P7200 Table of Contents Printing Description PCL Commands HP-GL/2 Command PJL Commands Appendix A Character Tables Appendix B Unicode Symbol List MSL Symbol List Index
PCL Commands Page Formatting Font Selection Moving the Printing Position Raster Graphics Macros Print Model Advanced Graphics Status Readback Miscellaneous HP-GL/2 Commands The Configuration and Status The Polygon Group The Vector Group The Line and Fill Attributes Group The Character Group
PJL Commands Introduction PJL Command Syntax and Format Print Environment Composition PJL Reset Conditions Environment Variables Status Message Usage of Command PJL Commands
Printing Description Introduction The items discussed in the following sections are listed below: • Page Orientation, Paper Length, Paper Width • Printable Area • Coordinate System • Fonts • Terms for Bitmap Font • Paper Formatting • Print Start Conditions
Page Orientation, Paper Length, Paper Width Only single sheet paper can be used with this printer. The size of the paper is determined by the paper length and paper width settings. Both paper length and paper width are decided by the direction of printing, i.e., page orientation. There are two page orientations: portrait printing mode and landscape printing mode. In the portrait printing mode, the text is printed perpendicular to the longer side of the paper.
Paper width Paper length ABCDEFG Paper width ABCDEFG Paper length Portrait printing mode Figure2.
Printable Area The printable area refers to the area where texts and figures can be printed. There exists an unprintable area on the margins of the paper where texts and figures cannot be printed (illustrated below by oblique lines). The printable area size shown in the table is for the printer with 300 dpi resolution. Multiply the dots by 2 for the printer with 600 dpi resolution. For the printer with 600 dpi resolution, 1 dot is equal to 1/600".
B C B C A D Printing area Printing area A D C F V C A: B: C: D: G E Portrait F C Paper length Paper width Distance between the edge of the paper and the printable area Length of the printable area C F C E: F: G: Figure 2.
Paper Type Paper Size Letter 8. 5"x11" (215.9x279.4 mm) P L 3,300 2,550 2,550 3,300 50 50 3,200 2,450 2,450 3,200 75 60 2,400 3,180 Legal 8. 5"x14" (215.9x355.6 mm) P L 4,200 2,550 2,550 4,200 50 50 4,100 2,450 2,450 4,100 75 60 2,400 4,080 (1 dot=1/300") A4 210x297 mm (8.27"x11.7") Portrait/ Landscape P L A(dots) 3,507 2,480 B(dots) 2,480 3,507 C(dots) 50 50 D(dots) 3,407 2,380 E(dots) 2,380 3,407 F(dots) 71 59 G(dots) 2,338 3,389 Table 2.1 Printable area size (continued) EXECUTIVE 7. 25"x10.5" (184.
Paper Type Paper Size Envelope #10 4.13"x9.5" (104.9x241.3 mm) P L 2,850 1,237 1,237 2,850 50 50 2,750 1,137 1,137 2,750 75 60 1,087 2,730 Monarch 3.88"x7.5" (98.5x190.5 mm) P L 2,250 1,162 1,162 2,250 50 50 2,150 1,062 1,062 2,150 75 60 1,012 2,130 (1 dot=1/300") International DL Paper Size 110x220 mm (4.33"x8.66") Portrait/ Landscape P L A(dots) 2,598 1,299 B(dots) 1,299 2,598 C(dots) 50 50 D(dots) 2,498 1,199 E(dots) 1,199 2,498 F(dots) 71 59 G(dots) 1,157 2,480 Table 2.
Paper Type Paper Size Portrait/ Landscape A(dots) B(dots) C(dots) D(dots) E(dots) F(dots) G(dots) Table 2.1 Printable area size Custom maximum 215.9x355.6 mm (8.
Coordinate System A coordinate system should be set up as a standard for deciding the location where texts or figures are printed. The origin of the coordinate system is initialized at the left upper corner of the paper in accordance with the printing direction in both portrait printing mode and landscape printing mode. Refer to Figure 2.3. Origin (0,0) X Origin (0,0) ABCDEFG X ABCDEFG Y Y Portrait printing mode Figure 2.
Built-in Fonts The fonts except Line Printer are all scalable fonts. Proportional spacing for a scalable font can be set from 4 to 999.75 points. The value is increased or decreased by 0.25. Fixed pitch for a scalable font can be set from 0.44 to 99.99 cpi (characters per inch). The value is increased or decreased by 0.01. Line Printer is the only supported Bitmap Font (16.66 pitch, 8.5 points).
Font Clarendon Condensed Coronet Pitch ps ps Courier fixed Style Condensed Italic Upright Italic Garamond Antiqua Garamond Halbfett Garamond Kursiv Garamond Kursiv Halbfett ps ps ps ps Letter Gothic fixed Line Printer Marigold Symbol fixed ps ps Times New Roman ps Upright Upright Italic Italic Upright Italic Upright Upright Upright Upright Italic Table 2.
Font Univers Wingdings Table 2.
Terms for Bitmap Font Cell The term “cell” refers to the frame of the character which decides the size of bitmap when designing a font. The horizontal line of dots is called the dot line and vertical line is called dot column. The bottom line of the cell is called the first line and the leftmost column is called the first column. Baseline The term “baseline” refers to a standard line for printing characters in line. The position of a baseline is decided when designing a font.
Cell width Cell height Baseline Left offset Figure 2.
Fixed Pitch Characters The cell width is constant for fixed pitch characters. HMI Baseline Figure 2.6 Fixed character pitch Proportional Spacing Characters Proportional spacing means the character width of the cell is different for each character according to the width of each character. An “M” is a wider character than an “I”. A B Baseline A≠B Figure 2.
Paper Formatting The printer has the following paper formatting requirements: • Page width is the distance from the left edge to the right margin of the paper and must be less than or equal to the paper width. • Page length must be greater than or equal to 1 line and less than or equal to the paper length.
Portrait Printing Mode Single page Origin Page width TM BM LM Page length RM Page length TM: BM: LM: RM: Page width Figure 2.
Landscape Printing Mode Single page Origin Page width TM BM LM Page length Page length RM Paper width Figure 2.
Print Start Conditions This printer is a page printer. As such it will only begin printing when print start conditions are satisfied, that is, after the layout of data for one sheet of print has been completed. Therefore, if the print start conditions are not satisfied, the data to be printed remains in the printer even if all the printing data has been sent from the computer. • FF is received. • Reset command is received. • Orientation is changed. • DATA TIME OUT is set to ON and the time set has passed.
PCL Commands Command Group Page Formatting Font Selection Function Orientation Page Size Print Direction Top Margin Text Length Skip Perforation Left Margin Right Margin Margin Clear Lines Per Inch VMI HMI Shift In Shift Out Symbol Set Spacing Print Pitch Character Height Character Style Stroke Weight Typeface Default Font Control code comparison chart-page reference table (continued) Name ESC “&l#O” ESC “&l#A” ESC “&a#P” ESC “&l#E” ESC “&l#F” ESC “&l#L” ESC “&a#L” ESC “&a#M” ESC “9” ESC “&l#D” ESC “&l#
Command Group Moving the Printing Position Function Horizontal Vertical Resolution Set Graphics Presentation Mode Height Width Graphics Start Y Offset Compression Mode Data Sending Graphics End Version B Version C Font ID define Font Downloading Font Header Character Code Define Download Character Font Define Font/character Control User-Defined Symbol Set ID Code Define User-Defined Symbol Set User-Defined Symbol Set Control Control code comparison chart-page reference table (continued) Raster Graphic
Command Group Macros Print Model Advanced Graphics Function Macro ID Macro Control Pattern Transparency Mode Source Transparency Mode Current Pattern Designating Graphics Pattern Logical Operation Pixel Placement Rule Width Rule Height Pattern ID Rule/Pattern Print Download Pattern Data Tile Pattern Control Pattern Set Status Readback Location Type Status Readback Set Status Readback Location Unit Inquire Status Readback Entity Free Space Flush All Pages Echo Control code comparison chart-page reference
Command Group Miscellaneous Function Display Function Transparent Print Underlining Setting Release Push/Pop Printing Position Half Line Feed CR/LF/FF Action Wrap Around Number of Copies Paper Input Control Duplex Page Side Selection Simplex/Duplex Print Printer Reset Self-test Left Offset Registration Top Offset Registration Universal Exit/Start of PCL Decide PCL Units Picture frame Horizontal Plotting Picture size-Decipoints Frame Picture frame Vertical size-Decipoints Set picture frame anchor point
PCL Commands Page Formatting Page formatting is executed by setting the following: orientation, page size, page length, top margin, text length, skip perforation, vertical line feed, horizontal spacing, left margin and right margin. Format can be classified by orientation in two ways; portrait printing mode and landscape printing mode. Top margin Top margin Bottom Text length margin Page length Page length Left margin Right margin Portrait printing mode Figure 3.
Orientation Setting: ESC “&l#O” #=0: Portrait printing mode 1: Landscape printing mode 2: Reverse portrait printing mode 3: Reverse landscape printing mode This command decides the page orientation. When the orientation is changed, top margin, text length, left margin, right margin, HMI and VMI return to the default setting and the primary and secondary fonts are changed and reevaluated. Therefore, this command should be sent from the computer as the first command of the page.
Page Size Setting: ESC “&l#A” #= 1: Executive (71/4x101/2 inch) 3: Legal (81/2x14 inch) 2: Letter (81/2x11 inch) 6: Ledger (11x17 inch) 26: A4 (210x297 mm) 27: A3 (297x420 mm) 80: Monarch (Letter37/8x71/2 inch) 81: Commercial #10 (Business41/8x91/2 inch) 90: International DL (110x220 mm) 91: International C5 (162x229 mm) 101: Custom (maximum 13x19 inch) This command sets the page size and also sets page length, page width, top margin, bottom margin, left margin and right margin to default setting values.
Top Margin Setting: ESC “&l#E” #=Number of lines This command sets the top margin. The top margin indicates the margin on the upper end of the printing paper. The desired length of the margin is entered by the number of the lines(1 line = VMI) in the value field #, and any value from 0 to the page length can be used. The default setting is ½ inch from top of logical page. When the top margin is set, the text length returns to the default setting.
Text Length, Bottom Margin Setting: ESC “&l#F” #=Number of lines This command sets the text length. Text length refers to the number of lines to be printed on the paper. Enter the desired number of lines in the value field #. When # exceeds the value of “Page Length-Top Margin”, this command is invalid.
Skip Perforation Setting: ESC “&l1L” Release: ESC “&l0L” The bottom margin is controlled by the skip perforation mode command. When the skip perforation is set, as soon as the printing position enters the bottom margin area, the paper feed is performed and the printing starts from the top margin of the next page. When the skip perforation is released, the printing continues even after the printing position enters the bottom margin area.
Right Margin Setting: ESC “&a#M” #=Column number Release: ESC “9” This command defines the right margin. Enter the desired number of columns from the origin in the value field # to set the right margin. One column is equal to one HMI. Default setting of the left margin is column 0 and the right margin is the page width. ESC “9” is used to clear the left and right margins at the same time.
• By the number of lines per inch Setting: ESC “&l#D” #= 1: 1 lpi 2: 2 lpi 3: 3 lpi 4: 4 lpi 6: 6 lpi 8: 8 lpi 12: 12 lpi 16: 16 lpi 24: 24 lpi 48: 48 lpi Enter a desired number of lines per inch. 1, 2, 3, 4, 6, 8, 12, 16, 24 and 48 are acceptable values as the value field #. For example, to print 6 lines per inch, the computer must send ESC “&l6D”. • By VMI (Vertical Motion Index) VMI sets the vertical motion amount in multiples of 1/48 inch.
Horizontal Motion Amount Horizontal motion amount is the amount of horizontal space between characters and is a unit of the left and right margins in the fixed pitch mode. This overrides the print pitch set by the font selection. This is set by HMI (Horizontal Motion Index). HMI sets the horizontal motion amount in multiples of 1/120 inch. Setting: ESC “&k#H” #= Multiples of 1/120 inch Enter a desired number of HMI from 0 to 32767 in the value field #.
Font Selection Commands that set font characteristic enable font selection of internal or download fonts, and fonts from external font cards. The printer has seven font characteristics as follows: Symbol Set: the set of characters available for printing. Spacing: is either fixed or proportional. Fixed spaced characters all have the same width; proportional character widths vary from character to character. In proportional spacing, an “M” takes up more space than an “I”.
Primary/Secondary Font Attribute Font characteristics are set on both primary and secondary fonts, therefore two fonts can be selected. Only one of these attributes can be given to a font. The primary font attribute is given to the font that is used most often in the document, while the secondary attribute is given to an auxiliary font. These fonts can be alternated by using the control codes SI and SO.
Symbol Set ISO 60 Norwegian V1 ISO 4 United Kingdom Windows 3.1 Latin 2 ISO 69 French ISO 21 German ISO 15 Italian Microsoft Publishing DeskTop PS Text MC Text Ventura International Ventura US Wingdings PS Math Ventura Math Math-8 Symbol ISO 8859/1 Latin 1 (ECMA-94) ISO 8859/2 Latin 2 ISO 8859/9 Latin 5 ISO 11 Swedish ISO 17 Spanish Windows 3.1 Latin 5 PC-Turkish Table 3.
Symbol Set ISO 6 ASCII Legal Roman-8 Windows 3.0 Latin 1 PC-8 PC-8 Danish/Norwegian PC-850 Multilingual Pi Font PC-852 Latin 2 Windows 3.1 Latin 1 Table 3.2 Symbol set ID numbers Spacing Setting/Primary: ESC “(s#P” Setting/Secondary: ESC “)s#P” #=0: Fixed spacing 1: Proportional spacing This command selects fixed pitch or proportional spacing.
Print Pitch • Case 1 Setting/Primary: ESC“(s#H” Setting/Secondary: ESC “)s#H” #=Number of characters per inch This command sets the print pitch by entering the pitch (number of characters per inch) in the value field #. If proportional spacing is set, this setting is registered as a characteristic, but is invalid. • Case 2 Setting: ESC “&k#S” #=0: 10 cpi 2: 16.66 cpi 4: 12 cpi This command sets the print pitch for both the primary and secondary fonts.
Character Style Setting/Primary: ESC “(s#S” Setting/Secondary: ESC “)s#S” #=Character style value Value (#) Character Style 0 Upright, Solid 1 Italic 4 Condensed 5 Condensed Italic 8 Compressed, or Extra Condensed 24 Expanded 32 Outline 64 Inline 128 Shadowed 160 Outline Shadowed Table 3.3 Character style value This command sets character style listed in Table 3.3.
Stroke Weight Setting/Primary: ESC “(s#B” Setting/Secondary: ESC “)s#B” #=Thickness value Value (#) Typeface -7 Ultra Thin -6 Extra Thin -5 Thin -4 Extra Light -3 Light -2 Demi Light -1 Semi Light 0 Medium, Book, or Text 1 Semi Bold 2 Demi Bold 3 Bold 4 Extra Bold 5 Black 6 Extra Black 7 Ultra Black Table 3.4 Typeface value This command selects the thickness of the characters.
Typeface Setting/Primary: ESC “(s#T” Setting/Secondary: ESC “)s#T” #=Typeface value This command selects the design of characters. Typeface Family Typeface Base Value (#) Value (#) 4096 0 4099 3 4101 5 4102 6 4113 17 4116 20 4140 44 4148 52 4168 72 4197 101 4297 201 4314 218 4362 266 4398 302 4613 517 6826 2730 Table 3.
Typeface Selection Command Two-Byte Printer Font One-Byte/Two-Byte Typeface Descriptor Two-Byte Your Printer Typeface selected. Typeface for font Two-Byte One-Byte selection is ignored. One-Byte Two-Byte Typeface* selected. One-Byte One-Byte Typeface selected. Table 3.
Default Font Selection The default font command sets the font to default value. • To make the primary font default. Setting: ESC “(#@” #=3: To select all characteristics of the default font as characteristics of the primary font. Any value except 3 is invalid • To make the secondary font default. Setting: ESC “)#@” #=3: To select all characteristics of the default font as characteristics of the secondary font.
Moving the Printing Position The printing position can be moved horizontally or vertically by commands that change the location of printing data. Two methods of moving the print position are available; relative movement from the current printing position and absolute movement from the origin. When the value in the value field # is prefixed with “+”, the printing position moves relative to the right in horizontal movement mode and downward in vertical movement mode.
Horizontal Movement • By columns Setting: ESC “&a#C” #=Number of columns This command moves the current printing position to a new column position. The width of a column depends on the current HMI. • By decipoints Setting: ESC “&a#H” #=Number of decipoints ( 1/720inch) This command moves the current printing position to a new decipoint position. • By PCL units Setting: ESC “*p#X” #=Number of PCL units This command moves the current printing position to a new PCL units position. See “Deciding PCL Units”.
Vertical Movement • By lines Setting: ESC “&a#R” #=Number of lines This command moves the current printing position to the same position on a new line. The height of a line depends on the current VMI. • By decipoints Setting: ESC “&a#V” #=Number of decipoints ( 1/720inch) This command moves the current printing position to a new decipoint position. • By PCL units Setting: ESC “*p#Y” #=Number of PCL units This command moves the current printing position to a new PCL units position. See “Deciding PCL Units”.
Raster Graphics Raster Graphics is a printing function that prints graphic patterns by sending dot image data by raster units (scanning line) from the computer. Raster graphics are printed by using the following procedures: Setting the Resolution Setting: ESC “*t#R” #=Resolution (75, 100, 150, 200, 300 or 600) This command sets the dot resolution at 75, 100, 150, 200, 300 or 600 dpi. The default setting is 75 dpi. Once raster graphics printing is started, this command is invalid until printing ends.
Raster Graphics Presentation Mode Setting: ESC “*r#F” #=0: To print raster image in orientation of logical page #=3: To print raster image along the width of physical page This command sets the orientation for raster image on the logical page. The default is 3. Raster Height Setting: ESC “*r#T” #=Height in raster rows This command sets the height in raster rows of the raster areas denoted when the start raster graphics mode command (ESC “*r#A”) being executed.
Raster Width Setting: ESC “*r#S” #=Width in pixels of the specified resolution This command sets the width in pixels of the raster areas denoted when the start raster graphics mode command (ESC “*r#A”) being executed. The width is the same direction as the raster rows are positioned. The value field # is 0 to logical page width (left graphics margin).
Start the Raster Graphics Mode Setting: ESC “*r#A” #=0 or 1 This command directs the printer to start raster graphics printing as well as deciding the starting point of the graphic to be printed. When the value field # is 0, printing starts vertically from the left end of the printing area, while printing starts from the current printing position when the # is 1. When # is 1, the printing position must be moved to the upper left position of the graphics pattern before entering this command.
Set Compression Mode Setting: ESC “*b#M” #=0: Unencoded 1: Run-length encoding 2: Tagged imaged file format (TIFF) rev. 4.0 3: Delta row compression 5: Adaptive compression Any value except 0, 1, 2, 3 and 5 is invalid. This command encodes the raster data by one of four compressed formats: Run-length encoding, Tagged imaged file format (TIFF) rev. 4.0, Delta row compression and Adaptive compression. • Unencoded This code sends data in the form of binary, without compressing data.
• Tagged Image File Format Encoding This format has features of Unencoded and Run-length encoding. A control byte in the raster data determines whether the subsequent data is unencoded or encoded. If you send unencoded data, send subsequently bytes of literal data. If you send encoded data, send subsequently literal patterns and the number of repetitions. When the control byte value is negative (-1 to -127), the printer repeats the subsequent data byte the times of the absolute value.
• Delta Row Compression When a part of bytes in a row are different from those of the preceding row, this format identifies the difference and sends only the data which is different (the delta data). When you encode the row completely different from its preceding row, you must send the whole data for the row as the delta. When only one bit in a row is different, you need to send only one byte.
Example: Indicates 2 bytes Delta row Command byte compression mode SC “*b3m2W”(00000000)2(01111111)2 Number of bytes to replace Replacement byte Relative offset The upper three bits: shows the number of replacement bytes (1 to 8 bytes) The lower five bits: shows the location for the replacement bytes. When a row has more than one replacement, the second offset begins at the next untreated byte in the row. An offset value varies from 0 to 31.
An offset byte is added to the command byte. If 255 is set for additional offset bytes, offset bytes must be added until the required offset value is entered. If the offset byte is set to less than 255, the printer interprets that the last offset value and the offset bytes are added.
• Adaptive Compression This code can be used with the other modes (#=0, 1, 2 and 3). Example: ESC “*b5m16W”03(h)00(h)0a(h)ff(h)....
Four program samples to print the raster graphics are shown: Program sample 1: Unencoded 10 OPEN "lPt1:" FOR RANDOM AS #1 20 WIDTH #1, 255 30 PRINT #1, CHR$(27); "*t75R"; 40 PRINT #1, CHR$(27); "*r0F"; 50 PRINT #1, CHR$(27); "*r0A"; 60 PRINT #1, CHR$(27); "*b0m6Wn; 70 PRINT #1, CHR$(&H0);CHR$(&H0);CHR$(&H0);CHR$(&H0);CHR$(&H0);CHR$(&H0); 80 PRINT #1, CHR$(27); "*b0m6W"; 90 PRINT #1, CHR$(&H0);CHR$(&H0);CHR$(&H1);CHR$(&H0);CHR$(&H0);CHR$(&H0); 100 PRINT #1, CHR$(27); "*b0m6W"; 110 PRINT #1, CHR$(&H0);CHR$(&
290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, CHR$(&H0);CHR$(&H7);CHR$(&HFF);CHR$(&HFF);CHR$(&HC0);CHR$(&H0); CHR$(27); "*b0m6W"; CHR$(&H0);CHR$(&HF)
40 PRINT #1, CHR$(27); "*r0F" ; 50 PRINT #1, CHR$(27); "*r0A" ; 60 PRINT #1, CHR$(27); "*b1m2W"; 70 PRINT #1, CHR$(5); CHR$(&H0); 80 PRINT #1, CHR$(27); "*b1m6W"; 90 PRINT #1, CHRS(&H1);CHR$(&H0);CHR$(&H0);CHR$(&H1);CHR$(&H2);CHR$(&H0); 100 PRINT #1, CHR$(27); "*b1m8W"; 110 PRINT #1, CHR$(&H1);CHR$(&H0);CHR$(&H0);CHR$(&H3) 115 PRINT #1, CHR$(&H0);CHR$(&H80);CHR$(&H1);CHR$(&H0); 120 PRINT #1, CHR$(27); "*b1m8W"; 130 PRINT #1, CHR$(&H1);CHR$(&H0);CHR$(&H0);CHR$(&H7) 135 PRINT #1, CHR$(&H0);CHR$(&HC0);CHR(&H1)
310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 455 460 470 480 490 500 510 520 530 540 550 560 570 580 590 600 610 620 630 PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT #1, CHR$(&HFF);CHR$(&H0);CHR$(&HC0);CHR$(&H0);CHR$(&H0); #1, CHR$(27); "*b1m10W"; #1r CHR$(&H0);CHR$(&H0);CHR$(&H0);CHR$(&HF);CHR$(&H1); #1, CHR$(&HFF);CHR$(&H0);CHR$(&HE
Program sample 3: Tagged imaged file format (TIFF) rev. 4.
340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, CHR$(27); "*b2m8W"; CHR$(1);CHR$(&H0);CHR$(&H3F);CHR$(&HFF);CHR$(&HFF);CHR$(1);CHR$(&HF8);CHR$(&H0); CHR$(27); "*b2m8W"; CHR$(1);CHR$(&H0);CHR$(&H7F);CHR$(&HFF);CHR$(&HFF);C
80 PRINT #1, CHR$(27); "*b3m2W"; 90 PRINT #1, CHR$(&H2);CHR$(&H1); 100 PRINT #1, CHR$(27); "*b3m3W"; 110 PRINT #1, CHR$(&H22);CHR$(&H3);CHR$(&H80); 120 PRINT #1, CHR$(27); "*b3m3W"; 130 PRINT #1, CHR$(&H22);CHR$(&H7);CHR$(&HC); 140 PRINT #1, CHR$(27); "*b3m3W"; 150 PRINT #1, CHR$(&H22);CHR$(&HF);CHR$(&HE0); 160 PRINT #1, CHR$(27); "*b3m3W"; 170 PRINT #1, CHR$(&H22);CHR$(&H1F);CHR$(&HF0); 180 PRINT #1, CHR$(27); "*b3m3W"; 190 PRINT #1, CHR$(&H22);CHR$(&H3F);CHR$(&HF8); 200 PRINT #1, CHR$(27); "*b3m3W" ; 210
430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, #1, CHR$(&H0);CHR$(&H3);CHR$(&H4);CHR$(&H80); CHR$(27); "*b3m4W"; CHR$(&H0);CHR$(&H7);CHR$(&H4);CHR$(&HC0); CHR$(27); "*b3m4W"; CHR$(&H0);CHR$(&HF);CHR$(&H4);CHR$(&HE0); CHR$(27); "*b3m4W"; CHR$(&H0);CHR$(&H1F);CHR$(&H4);CHR$(&HF0); CHR$(27); "*b3m4W"; CHR$(&H0);CHR$(&H3F);CHR$(&H4);CHR$(&HF8); CHR$(27
Sending the Raster Graphics Data Setting: ESC “*b#W” #= Number of bytes of bit image data This command is used to send raster graphics data. Send the bit image data for 1 raster line after this command. The bit image data are composed as follows: • Designate the bit to be printed as 1 and the bit not to be printed as 0. • The unit of bit image data is a byte consisting of 8 bits. Therefore, the last byte must be padded with 0 if it does not amount to 8 bits.
End Raster Graphics Mode Version B Setting: ESC “*rB” This command designates the end of raster graphics. In addition, when this command is received, • compression seed row is reset to 0. • the cursor is moved to the last raster row in the raster area. • validates the raster commands which became invalid. Version C Setting: ESC “*rC” This command designates the end of raster graphics. In addition, when this command is received, • compression seed row is reset to 0.
100 WIDTH "lpt1:",255 110 OPEN "lptl:" AS #1 120 ’ 130 PRINT #1,CHRS(27);"*t75R"; '75 dpi 140 PRINT #1,"RASTER GRAPHICS ( 75 DPI)";CHR$(l3);CHR$(10); 150 PRINT #1,CHR$(27);"*r1A"; 160 FOR I=1 TO 4 170 FOR J=1 TO 4: PRINT #1,CHRS(27);"* b48W";STRING$ (48,CHR$(&HF0));: NEXT J 180 FOR J=1 TO 4: PRINT #1,CHR$(27) ;"*b48W";STRING$(48,CHR$($HF));: NEXT J 190 NEXT I 200 PRINT #1,CHR$ (27);"*rB";CHR$(10);CHR$(10); 210 PRINT #1,CHRS(27);"*t100R"; '100 dpi 220 PRINT #1,"RASTER GRAPHICS (100 DPI)";CHR$(13);CHR$(10); 2
450 PRINT #1,CHR$(12); 460 END RASTER GRAPHICS ( 75 DPI) RASTER GRAPHICS (100 DPI) RASTER GRAPHICS (150 DPI) RASTER GRAPHICS (300 DPI) Figure 3.
Font Downloading The user can select a desired font from the built-in fonts. Additionally, the printer permits the user to download fonts in HP compatible format from the computer. This function enables the user to install the desired fonts in the printer. Font downloading is executed by the following procedures: Designating the Font ID Setting: ESC “*c#D” #=ID number (0 to 32767) This command designates the ID number used to identify the font to be downloaded. The default is 0.
Bitmap Font Byte 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 FONT DESCRIPTOR SIZE (64) DESCRIPTOR FORMAT (0) FONT TYPE STYLE MSB (0) RESERVED BASELINE POSITION CELL WIDTH CELL HEIGHT ORIENTATION FIXED/PROPORTIONAL SYMBOL SET PITCH (default HMI) HEIGHT x-HEIGHT WIDTH TYPE STYLE LSB STROKE WEIGHT TYPEFACE LSB TYPEFACE MSB SERIF STYLE QUALITY PLACEMENT UNDERLINE POSITION UNDERLINE POSITION (DISTANCE) (DISTANCE) 32 TEXT HEIGHT 34 TEXT WIDTH 36 FIRST CODE 38 LAST CODE 40 PITCH EXTENDED HEIGHT EXTENDED 42 CAP HEI
Byte 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 FONT DESCRIPTOR SIZE (68) DESCRIPTOR FORMAT (20) FONT TYPE STYLE MSB (0) RESERVED BASELINE POSITION CELL WIDTH CELL HEIGHT ORIENTATION FIXED/PROPORTIONAL SYMBOL SET PITCH (default HMI) HEIGHT x-HEIGHT WIDTH TYPE STYLE LSB STROKE WEIGHT TYPEFACE LSB TYPEFACE MSB SERIF STYLE QUALITY PLACEMENT UNDERLINE POSITION UNDERLINE THICKNESS (DISTANCE) (HEIGHT) 32 TEXT HEIGHT 34 TEXT WIDTH 36 FIRST CODE 38 LAST CODE 40 PITCH EXTENDED HEIGHT EXTENDED 44to47 FONT NUMBER* 48
Bitmap Font FONT DESCRIPTOR SIZE: These two bytes specify the number of bytes for the font descriptor. DESCRIPTOR FORMAT: This 1 byte specifies the format for Bitmap Font by 0 and Resolutionspecified Bitmap Font by 20. FONT TYPE: This 1 byte specifies the font type shown in the table below. Value (#) Font Type Bound font. ASCII code 20HEX to 7FHEX can be 0 printed. 1 Bound font. ASCII code 20HEX to 7FHEX and A0HEX to FFHEX can be printed. Bound font.
STYLE MSB: This 1 byte is used as style word by combining with Style LSB. Style word is composed as follows: Style Word = Posture + ( 4 × Width ) + ( 32 × Structure ) 15 X 14 Style MSB 13 12 11 10 Reserved 9 8 7 6 Structure 5 Style LSB 4 3 2 Width 1 0 Posture Value (#) Posture (Style Word partial sum) 0 Upright 1 Italic 2 Alternate Italic 3 Reserved Table 3.
Value (#) Structure (Multiply by 32 for Style Word partial sum) 0 Solid 1 Outline 2 Inline 3 Contour 4 Solid with Shadow 5 Outline with Shadow 6 Inline with Shadow 7 Contour with Shadow 8 to 11 Patterned (Complex patterns, subject to type family) 12 to 15 Patterned with Shadow 16 Inverse 17 Inverse in Open Border 18 to 30 Reserved 31 Unknown structure Table 3.10 Structure value BASELINE POSITION: The baseline position is a distance from the top of the cell to the baseline.
Baseline position Cell height CELL HEIGHT: The cell must have enough space in height for the highest character. The range is from 1 to 65535. The cell height is decided in PCL coordinate system dots. 10 20 30 Baseline 40 50 10 20 Cell width Figure 3.
ORIENTATION: This 1 byte specifies the font orientation (direction of printing); portrait is selected by 0, landscape by 1, reverse portrait by 2 and reverse landscape by 3. The Bitmap Font can not be created with unsupported values. FIXED/PROPORTIONAL: This 1 byte specifies the spacing; fixed spacing is selected by 0 and proportional spacing by 1. SYMBOL SET: These two bytes specify the symbol set of the font.
Value Field Number ISO 60 Norwegian V1 0 ISO 4 United Kingdom 1 Windows 3.1 Latin 2 9 ISO 69 French 1 ISO 21 German 1 ISO 15 Italian 0 Microsoft Publishing 6 DeskTop 7 PS Text 10 MC Text 12 Ventura International 13 Ventura US 14 Wingdings 579 PS Math 5 Ventura Math 6 Math-8 8 Symbol 19 ISO 8859/1 Latin 1 (ECMA-94) 0 ISO 8859/2 Latin 2 2 ISO 8859/9 Latin 5 5 ISO 11 Swedish 0 ISO 17 Spanish 2 Table 3.
Symbol Set Windows 3.1 Latin 5 PC-Turkish ISO 6 ASCII Legal Roman-8 Windows 3.0 Latin 1 PC-8 PC-8 Danish/Norwegian PC-850 Multilingual Pi Font PC-852 Latin 2 Windows 3.1 Latin 1 Table 3.11 Symbol set value Value Field Number 5 9 0 1 8 9 10 11 12 15 17 19 Uppercase Letter T T U U U U U U U U U U Value 180 308 21 53 277 309 341 373 405 501 565 629 PITCH: These two bytes specify the font pitch of the Bitmap Font by the number of dots × 4.
WIDTH TYPE: This 1 byte specifies the width type of the font. Value (#) Width Type -5 Ultra Compressed -4 Extra Compressed -3 Compressed or Extra Condensed -2 Condensed 0 Normal 2 Expanded 3 Extra Expanded Table 3.12Width type value STYLE LSB: This 1 byte specifies the least significant byte (LSB) of the style word. Refer to STYLE MSB.
STROKE WEIGHT: This 1 byte specifies the thickness of the font. The value must be within -7 to 7; the plus value shows the font is thicker (Bold) while minus shows the font is thinner. Value (#) Stroke Weight -7 Ultra Thin -6 Extra Thin -5 Thin -4 Extra Light -3 Light -2 Demi Light -1 Semi Light 0 Medium, Book, or Text 1 Semi Bold 2 Demi Bold 3 Bold 4 Extra Bold 5 Black 6 Extra Black 7 Ultra Black Table 3.
TYPEFACE LSB,TYPEFACE MSB: These two bytes specify the typeface family value whose components are vendor and typeface family. Typeface family value 15 12 11 Vendor 0 Typeface family The vendor is ranged from 0 to 15, and the typeface family from 0 to 4095. The typeface family value is determined by the following formula. Typeface base value + (Vendor valuesx4096) = Typeface family value Value (#) Vendor 0 Reserved 1 Agfa Division, Miles Inc. 2 Bitstream Inc.
Typeface Family Typeface Base Value (#) Value (#) 4096 0 4099 3 4101 5 4102 6 4113 17 4116 20 4140 44 4148 52 4168 72 4197 101 4297 201 4314 218 4362 266 4398 302 4613 517 6826 2730 Table 3.15 Typeface value Typeface Line Printer Courier CG Times Letter Gothic CG Omega Coronet Clarendon Univers Antique Olive Garamond Marigold Arial Albertus Symbol Times New Roman Wingdings SERIF STYLE: The printer ignores the values for the Bitmap Font.
QUALITY: This 1 byte specifies the quality of the font. Value (#) 0 1 2 Table 3.16 Quality Data processing (draft) Near Letter Quality Letter Quality Quality value PLACEMENT: This 1 byte specifies a position of the character patterns relative to the baseline. The table shows the value of placement. Value (#) 1 0 -1 Table 3.17 Placement Superior Normal Inferior Placement value UNDERLINE POSITION (DISTANCE): This 1 byte specifies the distance from the baseline to the top of the underline in dots.
UNDERLINE THICKNESS (HEIGHT): This 1 byte specifies the thickness of the underline in font design dots. The underline is printed with the 3 dots thickness at 300 dpi (6 dots at 600 dpi). TEXT HEIGHT: These two bytes specify the appropriate inter-line spacing for the font. The text is typically 1.2 times as high as the font. These two bytes specify text height by the number of dots × 4. TEXT WIDTH: These two bytes specify the average lower case character width of the font.
LAST CODE: These two bytes determine the last code of the font. PITCH EXTENDED: An extra 1 byte is added to the pitch field for precise pitch information. The value is in 1/1024 dots. For example, for 8.5 cpi at 300 dpi resolution: The value of 8.5 cpi in 1/1024 dots is calculated 1024 × In hexadecimal form this is 008D2D 8DHEX=141, 2DHEX=45 300 /8.5 = 36141 Therefore, the pitch field is 141 (=8DHEX) and the pitch extended field is 45 (=2DHEX).
CAP HEIGHT: The cap height is a percentage of the Em of a font. And the cap height is used to calculate the distance from the cap line (the unaccented top, the uppercase letter, H) to the baseline. The font which is specified by 0 in this field is supposed to have 70.87 percent of the Em of the font. 0.7087 × 65535 = 46.445 FONT NUMBER: The printer ignores the field of font number for the Bitmap Font. FONT NAME: You can enter a font name with 16 ASCII characters.
Intellifont Scalable Font Byte 0 FONT DESCRIPTOR SIZE (minimum 80) 2 DESCRIPTOR FORMAT (10) FONT TYPE 4 STYLE MSB RESERVED 6 BASELINE POSITION 8 CELL WIDTH 10 CELL HEIGHT 12 ORIENTATION FIXED/PROPORTIONAL 14 SYMBOL SET 16 PITCH (default HMI) 18 HEIGHT 20 x-HEIGHT 22 WIDTH TYPE STYLE LSB 24 STROKE WEIGHT TYPEFACE LSB 26 TYPEFACE MSB SERIF STYLE 28 QUALITY PLACEMENT 30 UNDERLINE POSITION UNDERLINE THICKNESS (DISTANCE) (HEIGHT) 32 TEXT HEIGHT 34 TEXT WIDTH 36 FIRST CODE 38 LAST CODE 40 PITCH EXTENDED HEIGHT EX
Byte 44 to 47 48 to 63 64 66 68 70 72 74 76 Desc.Size-2 80 n FONT NUMBER FONT NAME SCALE FACTOR X RESOLUTION Y RESOLUTION MASTER UNDERLINE POSITION MASTER UNDERLINE THICKNESS (HEIGHT) OR THRESHOLD GLOBAL ITALIC ANGLE GLOBAL Intellifont DATA SIZE GLOBAL Intellifont DATA COPYRIGHT (optional) RESERVED (0) CHECKSUM Figure 3.
Byte 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 to 47 FONT DESCRIPTOR SIZE (minimum 88) DESCRIPTOR FORMAT (11) FONT TYPE (10) STYLE MSB RESERVED BASELINE POSITION CELL WIDTH CELL HEIGHT ORIENTATION FIXED/PROPORTIONAL SYMBOL SET PITCH (default HMI) HEIGHT x-HEIGHT WIDTH TYPE STYLE LSB STROKE WEIGHT TYPEFACE LSB TYPEFACE MSB SERIF STYLE QUALITY PLACEMENT UNDERLINE POSITION UNDERLINE THICKNESS (DISTANCE) (HEIGHT) TEXT HEIGHT TEXT WIDTH RESERVED NUMBER OF CONTOURS (characters) PITCH EXTEND
Byte 48 to 63 64 66 68 70 72 74 76 78 to 85 Desc. Size-2 Desc. Size n FONT NAME SCALE FACTOR X RESOLUTION Y RESOLUTION MASTER UNDERLINE POSITION MASTER UNDERLINE THICKNESS (HEIGHT) OR THRESHOLD GLOBAL ITALIC ANGLE CHARACTER COMPLEMENT GLOBAL Intellifont DATA SIZE GLOBAL Intellifont DATA COPYRIGHT (optional) RESERVED (0) CHECKSUM Figure 3.
Intellifont Scalable Font FONT DESCRIPTOR SIZE: These two bytes specify the number of bytes for the font descriptor. DESCRIPTOR FORMAT: This 1 byte specifies the format for Intellifont Bound Scalable Font by 10 and Intellifont Unbound Scalable Font by 11. FONT TYPE: This 1 byte specifies the font type shown in the table below. Value (#) 0 Font Type Bound font. ASCII code 20HEX to 7FHEX can be printed. 1 Bound font. ASCII code 20HEX to 7FHEX and A0HEX to FFHEX can be printed. 2 Bound font.
STYLE MSB: See STYLE MSB in the case of Bitmap Font. BASELINE POSITION: These two bytes specify a Y-coordinate in the design window. CELL WIDTH: The cell must have enough space in width for the widest character. The range is from 1 to 65535. The cell width is decided in design units. CELL HEIGHT: The cell must have enough space in height for the highest character. The range is from 1 to 65535. The cell height is decided in design units. ORIENTATION: This 1 byte must be set to 0.
HEIGHT: The height depends on the master design height. The height is typically set to 2000. x-HEIGHT: These two bytes determine the distance from the baseline to lower case “x” height in design units. WIDTH TYPE, STYLE LSB, STROKE WEIGHT, TYPEFACE LSB,TYPEFACE MSB: See WIDTH TYPE, STYLE LSB, STROKE WEIGHT, TYPEFACE LSB and TYPEFACE MSB in the case of Bitmap Font. SERIF STYLE: For Intellifont Scalable Font, bit 7 and bit 6 are used as shown below.
UNDERLINE THICKNESS (HEIGHT): This 1 byte must be set to 0. The Master Underline Thickness is recognized as the information on the scalable fonts. TEXT HEIGHT: These two bytes specify the appropriate inter-line spacing for the font in design units. The text is typically 1.2 times as high as the font. TEXT WIDTH: These two bytes specify the average lower case character width of the font in design units. FIRST CODE: These two bytes must be set to 0.
CAP HEIGHT: These two bytes specify the cap height in design units. FONT NUMBER: The font number field is composed with four bytes; the lower three bytes indicate the font number of vendor, the most significant bit of the most significant byte indicates the format of font, and the rest 7 bits indicate the character code of the initial letter in vendor's name. FONT NAME: You can enter a font name with 16 ASCII characters.
MASTER UNDERLINE THICKNESS (HEIGHT): This field decides the thickness of floating underline in design units. OR THRESHOLD: These two bytes are the pixel size of design unit. GLOBAL ITALIC ANGLE: Refer to the FAIS document issued by AGFA Compugraphic. CHARACTER COMPLEMENT: These eight bytes specify the symbol set.
Bit 63 Value 0:Standard Latin character sets 1:the others 0:East European Latin character sets 62 1:the others 0:Turkish character sets 61 1:the others 0:Math character sets 34 1:the others 33 0:Semi-graphic character sets 1:the others 32 0:ITC Zapf Dingbats character sets 1:the others 2, 1, 0 111 indicates MSL Table 3.
Bit 31 Value 0:7 bit ASCII character sets 1:the others 0:ISO 8859/1 Latin 1 character sets 30 1:the others 0:ISO 8859/2 Latin 2 character sets 29 1:the others 0:Latin 5 character sets 28 1:the others 27 0:DeskTop Publishing character sets 1:the others 26 0:accented character sets 1:the others 25 0:traditional PCL character sets 1:the others 24 0:Macintosh character set (MC Text) 1:the others 23 0:PostScript Standard Encoding (PS Text) 1:the others 22 0:Code Page 1:the others 2, 1, 0 110 indicates unicode T
GLOBAL Intellifont DATA SIZE: Refer to the FAIS document issued by AGFA Compugraphic. GLOBAL Intellifont DATA: Refer to the FAIS document issued by AGFA Compugraphic. COPYRIGHT: These two bytes include the ASCII data. CHECKSUM: The field for checksum ranges from scale factor to the reserved.
TrueType Scalable Font Byte 0 FONT DESCRIPTOR SIZE (minimum 72) 2 DESCRIPTOR FORMAT (15) FONT TYPE 4 STYLE MSB RESERVED 6 BASELINE POSITION 8 CELL WIDTH 10 CELL HEIGHT 12 ORIENTATION FIXED/PROPORTIONAL 14 SYMBOL SET 16 PITCH (default HMI) 18 HEIGHT 20 x-HEIGHT 22 WIDTH TYPE STYLE LSB 24 STROKE WEIGHT TYPEFACE LSB 26 TYPEFACE MSB SERIF STYLE 28 QUALITY PLACEMENT 30 UNDERLINE POSITION UNDERLINE THICKNESS (DISTANCE) (HEIGHT) 32 TEXT HEIGHT 34 TEXT WIDTH 36 FIRST CODE 38 LAST CODE/NUMBER OF CHARACTERS 40 PITCH
Byte 44 to 47 48 to 63 64 66 68 70 72 Desc. Size #-2 FONT NUMBER FONT NAME SCALE FACTOR MASTER UNDERLINE POSITION MASTER UNDERLINE THICKNESS (HEIGHT) FONT SCALING TECHNOLOGY VARIETY (for insertion of additional data) SEGMENTED FONT DATA RESERVED (0) CHECKSUM Figure 3.
TrueType Scalable Font FONT DESCRIPTOR SIZE: These two bytes specify the number of bytes for the font descriptor. DESCRIPTOR FORMAT: This 1 byte specifies the format for TrueType Scalable Font by 15. FONT TYPE: This 1 byte specifies the font type shown in the table below. Value (#) 0 Font Type Bound font. ASCII code 20HEX to 7FHEX can be printed. 1 Bound font. ASCIIcode 20HEX to 7FHEX and A0HEX to FFHEX can be printed. 2 Bound font. All ASCII codes except 0, 7 to 0FHEX, 1BHEX can be printed.
BASELINE POSITION: The baseline position must be set to 0. CELL WIDTH: The cell must have enough space in width for the widest character. The range is from 1 to 65535. The cell width is decided in design units. CELL HEIGHT: The cell must have enough space in height for the highest character. The range is from 1 to 65535. The cell height is decided in design units. ORIENTATION: This 1 byte must be set to 0. FIXED/PROPORTIONAL, SYMBOL SET: See FIXED/PROPORTIONAL and SYMBOL SET in the case of Bitmap Font.
WIDTH TYPE, STYLE LSB, STROKE WEIGHT, TYPEFACE LSB, TYPEFACE MSB: See WIDTH TYPE, STYLE LSB, STROKE WEIGHT, TYPEFACE LSB and TYPEFACE MSB in the case of Bitmap Font. SERIF STYLE: For TrueType Scalable Font, bit 7 and bit 6 are used as shown below.
PITCH EXTENDED, HEIGHT EXTENDED, CAP HEIGHT, FONT NUMBER, FONT NAME, SCALE FACTOR, MASTER UNDERLINE POSITION, MASTER UNDERLINE THICKNESS (HEIGHT): See PITCH EXTENDED, HEIGHT EXTENDED, CAP HEIGHT, FONT NUMBER, FONT NAME, SCALE FACTOR, MASTER UNDERLINE POSITION and MASTER UNDERLINE THICKNESS (HEIGHT) in the case of Bitmap Font. FONT SCALING TECHNOLOGY: This 1 byte specifies the technology for font scaling by setting to 1.
These two bytes consist of SEGMENT IDENTIFIER, SEGMENT SIZE and DATA SEGMENT, and is terminated by Null Segment. SEGMENT IDENTIFIER; Each item in the segment font data section have a unique identification number. Value (#) Mnemonic 17219 CC 17232 CP 18260 GT 20545 PA 22618 XW 65535 Table 25 Data segment value Data Segment Character Complement Copyright Global TrueType Data PANOSE Description X-Windows Font Name Null Segment SEGMENT SIZE; Indicates the number of byte in Data Segment.
Deciding the Character Code Setting: ESC “*c#E” #=Decimal value of the character code (0 to 65535) This command replaces the ASCII character designated in the value field # with your downloaded font. The default is 0. The character code of a given character in unbound font and its symbol index value are equal.
Bitmap Font Byte 0 FORMAT (4) CONTINUATION (0) 2 DESCRIPTOR SIZE (14) CLASS (1) 4 ORIENTATION RESERVED (0) 6 LEFT OFFSET 8 TOP OFFSET 10 CHARACTER WIDTH 12 CHARACTER HEIGHT 14 DELTA X 16 CHARACTER DATA (in bytes) Figure 3.12 Character descriptor in Bitmap Font Byte 0 FORMAT (4) CONTINUATION (non-zero) 2 CHARACTER DATA (in bytes) Figure 3.
Intellifont Scalable Font Byte 0 FORMAT (10) CONTINUATION (0) 2 DESCRIPTOR SIZE (2) CLASS (3) 4 CONTOUR CHARACTER DATA (in bytes) (Refer to Figure 3.13.) #-2 RESERVED (0) CHECKSUM Figure 3.14 Character descriptor and data format in Intellifont Scalable Font Byte 4 6 8 10 12 14 CONTOUR DATA SIZE METRIC DATA OFFSET CHARACTER Intellifont DATA OFFSET CONTOUR TREE OFFSET XY DATA OFFSET METRIC DATA CHARACTER Intellifont DATA CONTOUR TREE DATA XY COORDINATE DATA Figure 3.
Byte 0 2 4 6 8 FORMAT (10) CONTINUATION (0) DESCRIPTOR SIZE (2) CLASS (4) COMPOUND CHARACTER ESCAPEMENT NUMBER OF COMPONENTS CHARACTER CODE X OFFSET Y OFFSET #-2 RESERVED CHECKSUM Figure 3.
TrueType Scalable Font Byte 0 FORMAT (15) CONTINUATION (0) 2 DESCRIPTOR SIZE CLASS (15) 4 (for insertion of additional descriptor data) 2+Desc Size CHARACTER DATA SIZE 4+Desc Size GLYPH ID 6+Desc Size TrueType GLYPH DATA #-2 RESERVED CHECKSUM #=Character data block size as defined in Character Descriptor command. Figure 3.
FORMAT: This 1 byte decides the format of the character data;Bitmap Font by 4, Intellifont Scalable Font by 10, and TrueType Scalable Font by 15. CONTINUATION: This 1 byte specifies whether the following data is font data with character descriptor or font data only. 0 specifies font data with the character descriptor, while 1 specifies font data only. This is needed when the font data is over the ESC sequence value limit (32767). The continuation of the compound character is disabled.
DESCRIPTOR SIZE: The value is fixed by 14 for the Bitmap Font. For Intellifont Scalable Font, the value is fixed by 2. For TrueType Scalable Font, the value is 2 or more. CLASS: This 1 byte decides the format of the character data; Bitmap Font by 1, compressed Bitmap Font by 2, contour Intellifont Scalable Font by 3, compound contour Intellifont Scalable Font by 4 and TrueType Scalable Font by 15. See CHARACTER DATA in the next page for the method to compress the class 2 character data.
Bitmap Font ORIENTATION: This 1 byte decides the orientation of the character; portrait by 0, landscape by 1, reverse portrait by 2 and reverse landscape by 3. LEFT OFFSET: These two bytes decide the distance from the character reference point to the left end of the character pattern. The value must be within -16384 to 16384. TOP OFFSET: These two bytes designate the distance from the character reference point to the upper end of the character pattern by the number of dots.
CHARACTER DATA: The following bytes indicate the character pattern. This data is grouped in the vertical direction and padded by the byte boundary in the horizontal direction. Each bit of the byte corresponding to the pixel is printed and when the bit is 0 it is not printed. Thus the character pattern is composed.
Intellifont Scalable Font CLASS: Class 3; Intellifont Scalable Font This character is for the character data of Intellifont Scalable Font. Class 4;Compound character This character is a compound character of Intellifont Scalable Font. CONTOUR DATA SIZE: These two bytes indicate the size of contour data. METRIC DATA OFFSET: These two bytes indicate the offset to the metric data. CHARACTER Intellifont DATA OFFSET: These two bytes indicate the offset to the character Intellifont data.
COMPOUND CHARACTER ESCAPEMENT: For COMPOUND CHARACTER ESCAPEMENT, refer to the FAIS document issued by AGFA Compugraphic. NUMBER OF COMPONENTS: This indicates the number of components of a compound character. Refer to the FAIS document issued by AGFA Compugraphic. CHARACTER CODE: These two bytes specify the character code number for the compound character. X OFFSET, Y OFFSET: A character is offset at the origin on X and Y coordinates.
TrueType Scalable Font CHARACTER DATA SIZE: The value must be equal to the sum of character Data Size, Glyph ID and TrueType Glyph Data file size. GLYPH ID: This field is used by TrueType font scaler as the glyph data ID number related to the given character. TrueType GLYPH DATA: This field contains the segment related to the character found in the glyph table of the original TrueType font file. CHECKSUM: The field for checksum is the total of CHARACTER DATA SIZE, GLYPH ID and TrueType GLYPH DATA.
Top offset=22 Character height=33 10 20 30 Baseline 40 50 Left offset=2 10 20 30 Character width=27 Delta X=30 Figure 3.
Baseline 10 20 30 40 50 Left offset=-22 Character width=33 Figure 3.
A program example for the "q" character in portrait mode is as follows: 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 WIDTH "lpt1:" , 255 OPEN "lpt1:" FOR RANDOM AS # 1 PRINT #1, CHR$(27) ; "&100"; ' PRINT #1, CHR$(27) ; "*c1OD"; PRINT #1, CHR$(27) ; ")s64w"; PRINT #1, CHR$(0) ; CHR$(64) ; PRINT #1, CHR$(0) ; PRINT #1, CHR$(1) ; PRINT #1, CHR$(0) ; CHR$(0) ; PRINT #1, CHR$(0) ; CHR$(35) ; PRINT #1, CHR$(0) ; CHR$(30) ; PRINT
420 PRINT #1, CHR$(0) ; ´Pitch Extended : 0/1024 dots 430 PRINT #1, CHR$(0) ; ´Height Extended : 0/1024 dots 440 PRINT #1, CHR$(0) ; CHR$(0) ; ´Reserved 450 PRINT #1, CHR$(0) ; CHR$(0) ; ´Reserved 460 PRINT #1, CHR$(0) ; CHR$(0) ; ´Reserved 470 PRINT #1, "COURIER 10 "; ´Font Name : 16 characters 480 ´ 490 PRINT #1, CHR$(27) ; "*c113E" ; ´Character Descriptor Command 500 PRINT #1, CHR$(27) ; "(s148W" ; ´Character Data Command 510 PRINT #1, CHR$(4) ; ´Format :4 520 PRINT #1, CHR$(0) ; ´Continuation :0 530 PRI
760 770 780 790 800 810 DATA DATA DATA DATA DATA DATA &H7F, &HFF, &HFE, &H00, &H7F, &HFF, &HFE, &H00, &H3F, &HFF, &HFE, &H00 &H3F, &HFF, &HFE, &H00, &H1F, &HFF, &HFE, &H00, &H0F, &HFF, &HFE, &H00 &H03, &HFF, &H9E, &H00, &H00, &HFE, &HIE, &H00, &H00, &H00, &H1E, &H00 &H00, &H00, &H1E, &H00, &H00, &H00, &H1E, &H00, &H00, &H00, &H1E, &H00 &H00, &H00, &H1E, &H00, &H00, &H00, &H1E, &H00, &H00, &H00, &H1E, &H00 &H00, &H1F, &HFF, &HE0, &H00, &H1F, &HFF, &HE0, &H00, &H1F, &HFF, &HE0 Figure 3.
A program example for the "q" character in landscape mode is as follows: 100 WIDTH "1pt1:", 255 110 OPEN "lpt1:" FOR RANDOM AS #1 120 PRINT #1, CHR$(27) ; "&110" ; 130 ' 140 PRINT #1, CHR$(27) ; "*c11D" ; 150 PRINT #1, CHR$(27) ; ")s64W" ; 160 PRINT #1, CHR$(0) ; CHR$(64) ; 170 PRINT #1, CHR$(0) ; 180 PRINT #1, CHR$(1) ; 190 PRINT #1, CHR$(0) ; CHR$(0) ; 200 PRINT #1, CHR$(0) ; CHR$(35) ; 210 PRINT #1; CHR$(0) ; CHR$(30) : 220 PRINT #1, CHR$(0) ; CHR$(50) ; 230 PRINT #1, CHR$(1) ; 240 PRINT #1, CHR$(0) ; 25
420 PRINT #1, CHR$(0) ; 'Pitch Extended : 0/1024 dots 430 PRINT #1, CHR$(0) ; 'Height Extended : 0/1024 dots 440 PRINT #1, CHR$(0) ; CHR$(0) ; 'Reserved 450 PRINT #1, CHR$(0) ; CHR$(0) ; 'Reserved 460 PRINT #1, CHR$(0) ; CHR$(0) ; 'Reserved 470 PRINT #1, "COURIER 10 ”; 'Font Name : 16 characters 480 ' 490 PRINT #1, CHR$(27) ; "*c113E" ; 'Character Descriptor Command 500 PRINT #1, CHR$(27) ; "(s151W" ; 'Character Data Command 510 PRINT #1, CHR$(4) ; 'Format :4 520 PRINT #1, CHR$(0) ; 'Continuation :0 530 PRI
760 770 780 790 800 810 820 830 840 DATA DATA DATA DATA DATA DATA DATA DATA DATA &H7F, &HFF, &HFC, &H03, &H80, &H7F, &HFF, &HFC, &H03, &H80 &HFF, &HFF, &HFE, &H03, &H80, &HEF, &HFF, &HFE, &H03, &H80 &HEF, &HFF, &HFE, &H03, &H80, &HEF, &HFF, &HFE, &H03, &H80 &HEF, &HFF, &HFE, &H00, &H00, &HEF, &HFF, &HFE, &H00, &H00 &HFF, &HFF, &HFE, &H00, &H00, &H7F, &HFF, &HFC, &H00, &H00 &H7F, &HFF, &HFC, &H00, &H00, &H3F, &HFF, &HF8, &H00, &H00 &H3F, &HFF, &HF8, &H00, &H00, &H1F, &HFF, &HF0, &H00, &H00 &H0F, &HFF, &HE0
The output of previous programs is as follows: Resident Font : q q q q Downloaded Font : Landscape mode Portrait mode Figure 3.
Temporary/Permanent Font Attribute There are two additional attributes which can be given to downloaded fonts; temporary and permanent. Only one of these attributes can be given to font ID. The temporary font attribute can be cleared by the reset command, while the permanent font attribute cannot. Therefore, when downloadable fonts are used for many pages, the permanent attribute is suitable, and when used only on an individual page, temporary attribute is suitable.
• Controlling font/character Setting: ESC “*c#F” This command controls the font in accordance with the value in the value field #. #=0: All the fonts under control of font ID are cleared together along with the font with permanent attribute. #=1: All of the fonts with temporary attribute under control of font ID are cleared. #=2: The font whose font ID was designated last is cleared.
User-Defined Symbol Set The user can gather the characters of high frequency from a symbol set and download them as user-defined symbol set. The following three commands are provided to use a user-defined symbol set. Symbol Set ID Code Define Symbol Set Symbol Set Control ESC “*c#R” ESC “(f#W” [Symbol set data] ESC “*c#S” These commands are available with the unbound scalable font. First decide the symbol set ID code (ESC “*c#R”).
HEADER SIZE: These two bytes specify the number of bytes from Header Size (byte 0) to Symbol Map. The value is 18 or more. ENCODED SYMBOL SET DESIGNATOR: The value must correspond to the symbol set ID code number. See “Assigning ID Code”. FORMAT: This field specifies MSL by 1 or Unicode by 3. When the value except 1 and 3 is set, the symbol set definition is ignored. SYMBOL SET TYPE: This field specifies the range of codes for printable symbols.
LAST CODE: These two bytes specify the last character code of symbol set. First Code and Last Code determine the range of character codes to be mapped to symbol index number in the symbol map field. CHARACTER REQUIREMENTS: This field determines whether a requirement for symbol collection is executed to make an unbound font symbol set, or not. Each bit indicates a bit specific collection. Setting the bit to 1 requires for symbol collection, and 0 does not require for symbol collection. The tables 3.
Bit ASCII 30 West Europe extensions 29 East Europe extensions 28 Turkish 27 DeskTop 26 Accent extensions 25 PCL extensions 24 Macintosh extensions 23 PostScript extensions 22 Code Page extensions 2, 1, 0 Unicode Symbol Index Table 3.28 Unicode symbol index character requirements For example, setting this field to 2000000000000000HEX requires Turkish. SYMBOL MAP: This field specifies the symbol index numbers. This list specifies the symbols for symbol set.
Assigning ID Code Setting: ESC “*c#R” #=Symbol Set ID Code (0 to 32767) This command is used to assign a symbol set ID code to a user-defined symbol set. A symbol set ID code is decided by the following formula: Symbol Set ID Code = (# × 32)+(ID - 64) # = 0 to 1023 ID = ASCII code number We recommend you select an unoccupied ID code. The default is 0.
Macros A macro is a function that enables efficient operation of the system by shortening the time to send data from the computer to the printer. A program to print the document often includes the same text or the same sequences. In such a case, by using the macro function, the computer does not need to send the same data several times. This makes it possible to produce the document in a shortened time. In addition, the program becomes simpler, making it easier to produce, read and control.
Downloading Macro Data Send the text or ESC sequence to be registered as the macro from the computer. Ending the Macro Setting: ESC “&f1X” This command designates the end of the macro data to be registered. Executing a Macro There are three modes available for executing a macro. • Jump to macro Setting: ESC “&f2X” This command does not restore the printer to a pre-existing configuration after executing the macro.
• Call macro Setting: ESC “&f3X” This is a mode to restore an executing circumstance of a program after execution. On receiving this command, the printer starts to execute the macro in the present executing circumstance. The mode set during execution is invalid after completion of the macro and the mode before execution is restored.
• Overlay macro automatically Setting: ESC “&f4X” Release: ESC “&f5X” This mode automatically executes the macro on every page. On receiving this command, the printer executes the macro in the overlay circumstance on every page printed. The overlay circumstance is invalid after execution and the previous circumstance is restored.
Listed below are the overlay circumstances: Page length Orientation Input control Copy count Top margin Bottom margin Left margin Right margin Skip perforation mode Line termination End of line wrap Font attributes Font ID Primary font address Character code Macro ID HMI VMI (line spacing) Horizontal ruling Vertical ruling Underline mode Graphics resolution Graphics mode Graphics margin Pattern ID Overlay Position stack current current current current 0.5 inches 0.
Controlling a Macro The macro has temporary and permanent attributes. The temporary attribute must be given to the macro upon storing it. These two attributes differ from each other in the way they release the stored macro; the temporary macro can be released by a reset command while the permanent macro cannot. There are 5 modes available to control the macro; they are as follows: • Releasing all macros Setting: ESC “&f6X” This command releases all temporary and permanent macros.
Print Model Print Model is a printing function that draws images and characters filledwith any of the printer's shading or hatch patterns pre-defined. This is performed by the following procedures: Pattern Transparency Mode Setting: ESC “*v#O” #=0: Transparent 1: Opaque This command determines whether the pattern is transparent or opaque in the pattern transparency mode. The default is 0 (transparent). Any values other than 0 or 1 are ignored.
Pattern Source image + + Destination result = Source transparency mode=0 (transparent) Pattern transparency mode=0 (transparent) + + Source transparency mode=0 (transparent) Pattern transparency mode=1 (opaque) Figure 3.
Pattern Source image + Destination + result = Source transparency mode=1 (opaque) Pattern transparency mode=0 (transparent) + + Source transparency mode=1 (opaque) Pattern transparency mode=1 (opaque) Figure 3.
Select Current Pattern Setting: ESC “*v#T” #=0: Printed black 1: Printed white 2: Gray scale pattern 3: Hatch pattern 4: User-defined pattern This command specifies the type of pattern which is printed on the destination. The default is 0 (printed black). Any values outside the range 0 to 4 are ignored. Designating the Graphics Pattern Setting: ESC “*c#G” #=Gray scale pattern or hatch pattern value This command specifies the level or hatch pattern. The default is 0 (no pattern).
Logical Operation Setting: ESC “*l#O” #=0 to 255 This command specifies a logical operation of destination, source and pattern made on RGB color space to make new destination data. The default is 252. When both the source transparency mode (ESC “*v#N”) and the pattern transparency mode (ESC “*v#O”) are set to opaque (=case 1), the result of the operation is shown in the Boolean Function in the ROP3 Table. For example, PDSoxn in the Boolean Function indicates NOT [pattern XOR (source OR destination)].
case 1 Source transparency=1 (opaque) Pattern transparency=1 (opaque) Return=ROP3 (Dest, Src, Pat) case 2 Source transparency=0 (transparent) Pattern transparency=0 (transparent) tmp_ROP3=ROP3 (Dest, Src, Pat) Image A=tmp_ROP3 & Src & Pat Image B=Dest & NOT Src Image C=Dest & NOT Pat Return=Image A | Image B | Image C case 3 Source transparency=0 (transparent) Pattern transparency=1 (opaque) tmp_ROP3=ROP3 (Dest, Src, Pat) Image A=tmp_ROP3 & Src Image B=Dest & NOT Src Return=Image A | Image B case 4 S
Value Boolean Function Value 0 0 23 1 DPSoon 24 2 DPSona 25 3 Pson 26 4 SDPona 27 5 Dpon 28 6 PDSxnon 29 7 PDSaon 30 8 SDPnaa 31 9 PDSxon 32 10 Dpna 33 11 PSDnaon 34 12 Spna 35 13 PDSnaon 36 14 PDSonon 37 15 Pn 38 16 PDSona 39 17 Dson 40 18 SDPxnon 41 19 SDPaon 42 20 DPSxnon 43 21 DPSaon 44 22 SDPSanaxx 45 Table 3.
Value Boolean Function Value 46 PSDPxox 69 47 PSDnoan 70 48 Psna 71 49 SDPnaon 72 50 SDPSoox 73 51 Sn 74 52 SPDSaox 75 53 SPDSxnox 76 54 SDPox 77 55 SDPoan 78 56 PSDPoax 79 57 SPDnox 80 58 SPDSxox 81 59 SPDnoan 82 60 PSx 83 61 SPDSonox 84 62 SPDSnaox 85 63 Psan 86 64 PSDnaa 87 65 DPSxon 88 66 SDxPdxa 89 67 SPDSanaxn 90 68 SDna 91 Table 3.
Value Boolean Function Value Boolean Function 92 DPSDxox 115 SDPnoan 93 DPSnoan 116 DSPDxox 94 DPSDnaox 117 DSPnoan 95 Dpan 118 SDPSnaox 96 PDSxa 119 Dsan 97 DSPDSaoxxn 120 PDSax 98 DSPDoa 121 DSPDSoaxxn 99 SDPnox 122 DPSDnoax 100 SDPSoax 123 SDPxnan 101 DSPnox 124 SPDSnoax 102 DSx 125 DPSxnan 103 SDPSonox 126 SPxDSxo 104 DSPDSonoxxn 127 DPSaan 105 PDSxxn 128 DPSaa 106 DPSax 129 SPxDSxon 107 PSDPSoaxxn 130 DPSxna 108 SDPax 131 SPDSnoaxn 109 PDSPDoaxxn 132 SDPxna 110 SDPSnoax 133 PDSPnoaxn 111 PDSxnan 134 DS
Value Boolean Function Value 138 DSPnoa 161 139 DSPDxoxn 162 140 SDPnoa 163 141 SDPSxoxn 164 142 SSDx 165 143 Pdxax 166 144 PDSanan 167 145 PDSxna 168 146 SDPSnoaxn 169 147 DPSDPoaxx 170 148 SPDaxn 171 149 PSDPSoaxx 172 150 DPSaxn 173 151 DPSxx 174 152 PSDPSonoxx 175 153 SDPSonoxn 176 154 DSxn 177 155 DPSoaxn 178 156 SDPSoaxn 179 157 SPDnax 180 158 DSPDoaxn 181 159 DSPDSaoxx 182 160 PDSxanDPa 183 Table 3.
Value Boolean Function Value 184 PSDPxax 207 185 DSPDaoxn 208 186 DPSnao 209 187 Dsno 210 188 SPDSanax 211 189 SDxPDxan 212 190 DPSxo 213 191 DPSano 214 192 Psa 215 193 SPDSnaoxn 216 194 SPDSonoxn 217 195 PSxn 218 196 SPDnoa 219 197 SPDSxoxn 220 198 SDPnax 221 199 PSDPoaxn 222 200 SDoa 223 201 SPDoxn 224 202 DPSDxax 225 203 SPDSaoxn 226 204 S 227 205 SDPono 228 206 SDPnao 229 Table 3.
Value Boolean Function 230 SDPSanax 231 SPxPDxan 232 SSPxDSxax 233 DSPDSanaxxn 234 DPSao 235 DPSxno 236 SDPao 237 SDPxno 238 Dso 239 SDPnoo 240 P 241 PDSono 242 PDSnao Table 3.
Pixel Placement Command Setting: ESC “*l#R” #=0: Grid intersection 1: Grid centered This command decides how the pixels in image are printed. The default is 0. A rectangle in the grid centered mode (#=1) is one dot row thinner and shorter than that in the grid intersection mode (#=0). (0,0) (0,0) (0,0) (1,1) (1,1) (3,5) Grid Intersection (Printer) Figure 3.
Advanced Graphics Advanced Graphics is a printing function that draws a designated pattern by defining the height and the width of the area. This is performed by the following procedures: Deciding the Upper-left Position of the Pattern Choose the upper-left position of the area where the pattern is drawn. This is set by the command to move the cursor horizontally/vertically.
Designating the Graphics Pattern Setting: ESC “*c#G” #=Gray scale pattern, hatch pattern or user-defined pattern value This command designates the graphics pattern. Combining it with the start printing command (ESC “*c#P”) can designate the gray scale pattern or define the hatch pattern or user-defined pattern.
• Gray scale pattern (combining with ESC “*c2P”) The following 8 patterns are available in accordance with the value in the value field #. #=1 to 2 #=3 to 10 #=11 to 20 #=21 to 35 #=36 to 55 #=56 to 80 #=81 to 99 #=100 Figure 3.
• Defined hatch pattern (combining with ESC “*c3P”) The following 6 patterns are available in accordance with the value in the value field #. #=1 #=2 #=3 #=4 #=5 #=6 Figure 3.
User-Defined Pattern Graphics The user can designate user-defined pattern graphics (area fill) and download them in the printer. The pattern graphics can be controlled by the following three commands: User-Defined Pattern Set Pattern Reference Point Pattern Control ESC “*c#W” [pattern data] ESC “*p#R” ESC “*c#Q” First define a binary raster data image as user base pattern. The user base pattern is downloaded in the printer by using the user-defined pattern command {ESC “*c#W” [data]}.
Downloading Pattern Data Setting: ESC “*c#W” [pattern data] #=Number of Pattern data byte This command provides you with the method to download the binary pattern data which defines a user pattern. The pattern data includes 8 bytes of pattern display (header) data at 300 dpi resolution, and 12 bytes at 600 dpi resolution. The format for headers at 300 dpi and 600 dpi resolutions is shown below.
FORMAT: This 1 byte must be set to 0. CONTINUATION: This 1 byte must be set to 0. PIXEL ENCODING: This 1 byte must be set to 1. RESERVED: This field is not used. This 1 byte must be set to 0. HEIGHT IN PIXELS: This 1 byte specifies the number of rows in a pattern (height). WIDTH IN PIXELS: This 1 byte specifies the number of pixels in a pattern (width). PATTERN IMAGE: This field includes the raster data of pattern.
Tiling the Pattern Setting: ESC “*p#R” #=0: rotates a pattern in accordance with printing direction 1: fixed pattern This command tiles the pattern related to the current cursor position. Two modes (#=0 and 1) can be selected by this command. The default pattern reference point is positioned on the upper-left corner (0,0) on the logical page. When this command is not set, the pattern is tiled at the default reference point.
Status Readback You can gain information on available printer (user) memory, available current font, available symbol set or available user-defined pattern from the printer by using the status readback commands. To utilize this function, the host computer needs bi-directional driver to receive status response data. To receive status response data, sending a request for memory status or entity status data is necessary.
Status Response When the printer receives the status request command, the printer processes the request of the command and stores response data in the I/O status buffer. The response data is stored in the buffer until the data is read by users, or the printer is turned off (status buffer is deleted). Status response will be deleted from the buffer when one of the following settings has been changed.
Set Status Readback Location Unit Command Setting: ESC “*s#U” Location Type 0 1 2 3 4 Table 3.30 Location Unit (#) *:invalid location *:current selection *:all locations 0:all internal 0:all downloaded 1:temporarily downloaded 2:permanently downloaded *=any entered value is ignored. This command sets the status location unit. The location unit is used in association with the location type. The range is from 0 to 2. The default is 0.
Entity Status Responses The status response to the inquire status readback entity command is varied. The status response depends on the type of the requested entity. • Font Response When the value of the inquire entity is 0 (font), the printer will send the status response information with keywords. The keywords are different depending on bitmap, unbound scalable or bound scalable font.
• Macro Response When the value of the inquire entity is 1 (macro), the macro status response sends all the macro ID in the specified location. Response example: (Readback commands) Location Type (ESC “*s#T”) #=4 Location Unit (ESC “*s#U”) #=0 Entity (ESC “*s#I”) #=1 (Response) INFO MACROS IDLIST=“6, 7, 8, 9, 10” The response example above indicates the macros listed after “IDLIST=” are downloaded.
• User-Defined Pattern Response When the value of the inquire entity is 2 (user-defined pattern), the user-defined pattern response sends all the ID numbers of the user- defined pattern in the specified location.
• Symbol Set Response When the value of the inquire entity is 3 (symbol set), the symbol set response sends all the ID numbers of the symbol sets which can be bound to unbound scalable fonts in the specified location.
• Font Extended Response When the value of the inquire entity is 4 (font extended response), the font extended response sends back font name and internal font ID numbers with the information of selected entity type, symbol sets, location type and unit.
Entity Error Code The printer will send one of the following four error codes, when an error condition occurs. • ERROR=INVALID ENTITY This code is sent when the entity type specified in the escape sequences is outside the range, or is not supported. • ERROR=INVALID LOCATION This code is sent when the location (type or unit) is invalid while an entity type is valid, or the specified device is not installed.
Free Space Command Setting: ESC “*s1M” This command sends back user available memory. The response sends back two values; total of available memory and the amount of the largest block of available memory. This command is useful, when you compare user available memory space with necessary memory space for your job. • Memory Status Response The free space status sends back two values of free memory by using two keywords; “Total” and “Largest”.
Flush All Pages Command Setting: ESC “&r#F” #=0: flushes all complete pages 1: flushes all pages This command intermits receiving data until all the print data in the printer is completely printed out. This intermission gives time for the printer to clear memory. The value 0 indicates to process only complete page data. When uncompleted page data is existed in the printer, the uncompleted page data is not processed. The value 1 indicates to process all page data including uncompleted page data.
Miscellaneous Display Functions Setting: ESC “Y” Release: ESC “Z” When the display function mode is set, the original control code functionsare ignored and control codes are printed with the following exceptions. • When detecting CR, the printer performs CR+LF and prints CR. • When ESC “Z” is entered, the printer prints ESC Z and turns this mode off. This mode is helpful to confirm that the control codes or ESC commands are properly sent from the computer.
Automatic Underlining Setting: ESC “&d#D” #=0: Fixed underline 3: Floating underline Release: ESC “&d@” These commands control the automatic underlining mode. In floating underline mode, underline is drawn in the position defined in a font descriptor. In fixed underline mode, underline is drawn five dots below the baseline and the thickness is three dots. Spaces set by SP codes or printing position horizontal motion commands will also be underlined.
Backspace Code: BS This code moves the printing position by one column in the opposite direction of the current print direction. The backspacing amount depends on the pitch or HMI setting. Line Feed Code: LF This code moves the printing position by one line in the forward direction while retaining the current column position. Form Feed Code: FF This code moves the printing position to the top margin of the next page while retaining the current column position.
Half Line Feed Setting: ESC “=” This command advances the printing position by half of VMI CR/LF/FF Action Setting: ESC “&k#G” This printer has the ability to add functions to the CR/LF/FF codes. Additional functions are given to CR/LF/FF codes in accordance with the value in the value field # as shown in Table 4.13. Action # CR 0 CR 1 CR+LF 2 CR 3 CR+LF Table 3.
Select Number of Copies Setting: ESC “&l#X” #= Number of copies (1 to 99) This command repeatedly prints the same data by setting the desired number of copies. When using this command the computer does not need to send the same page data more than once. It is also possible to set this function through the front panel. Later setting overrides former setting whenever that is made by software command or front panel.
Duplex Page Side Selection The Duplex Page Side Selection command instructs the printer to feed papers and which side of the paper to print. The function to skip pages at a position of a document is needed during duplex printing, For example, a chapter generally begins from front side of the page. Setting: ESC “&a#G” #=0: Select next side 1: Select front side 2: Select back side The default setting is 0. Any value except 0, 1 and 2 is invalid.
Simplex / Duplex Print This command instructs a duplex printer to print simplex or Duplex. In Simplex mode, printer prints on one side of a paper. In Duplex mode, printer prints on both sides of a paper. Setting: ESC “&l#S” #=0: Simplex 1: Duplex, Long-Edge Binding 2: Duplex, Short-Edge Binding The default setting is 0. Any value except 0, 1 and 2 is invalid. Long-Edge bound duplexed pages are bound along the length of the physical page.
Reset Setting: ESC “E” This command causes the printer to print any partial pages of data which have been received, and returns all functions under software control to their default settings. The functions set through the front panel key operation are not cleared and the settings saved permanently are not cleared by this command. The printer returns the following settings to default after feeding the present page.
• Set the horizontal rule size to 0, • Set the vertical rule size to 0. • Set the pattern ID to 0. • Clear the push/pop stack. • Set Left Offset Registration to 0. • Set Top Offset Registration to 0. Self-test Setting: ESC “z” This command allows the printer to stop processing data, to feed the present page, and proceed with the character test print mode.
Top Offset Registration Setting: ESC “&l#Z” #=Number of decipoints (1/720 inch) This command sets the position of the logical page along the length (long side) of the physical page. -Top offset -Left offset +Left offset -Top offset +Left offset -Left offset ABC +Top offset ABC +Top offset Portrait Landscape Figure 3.
Universal Exit Language Command Setting: ESC “%-12345X” This command is effective in any language mode, and terminates the processing in the current language mode. Refer to Entering the PJL mode. Deciding PCL Units Setting: ESC “&u#D” #=Number of units per inch(96, 100, 120, 144, 150, 160, 180, 200, 225, 240, 288, 300, 360, 400, 450, 480, 600, 720, 800, 900, 1200, 1440, 1800, 2400, 3600 or 7200) This command decides the measure for the amount of cursor movement (PCL Unit). The default is 300.
PCL Picture Frame This section shows the following: • Defining the frames in PCL and GL modes • Specifying the picture frame (ESC “*c#X”, ESC “*c#Y”) • Specifying the anchor point of the picture frame (ESC “*c#T”) • Specifying the plot size (ESC “*c#K”, ESC “*c#L”) The length and width of the drawn image in Figure 3.35 are reduced by 50% when printing the image. How much the GL image is enlarged or reduced depends on the ratio of the GL plot size to the PCL picture frame size.
Anchor point Picture frame PCL logical page (PCL mode in default) Setting example: ESC “*c1440X” ESC “*c2880Y” ESC “*p600X” ESC “*p900Y” ESC “*c0T” ESC “*c4K” ESC “*c8L” Anchor point 3" Anchor point 2" Picture frame 4" 8" 2" 4" Setting plot size Setting PCL picture frame (GL mode) (PCL mode) Figure 3.
Horizontal Size of Picture Frame Setting: ESC “*c#X” #= Horizontal size (1/720 inch) This command designates the horizontal size of the picture frame, which is used to scale the GL image data. • In case of #=720, the horizontal size is 1 inch. • The default is the Width of the logical page. • The value field # is 0 to 32767 (a multiple of 4 is recommended) P1 and P2 positions are defaulted when executing the command ESC “*c#X”.
Vertical Size of Picture Frame Setting: ESC “*c#Y” #=Vertical size (1/720 inch) The command designates the vertical size of the picture frame, which is used to scale the GL image data. • In case of #=720, the vertical size is 1 inch. • The value field # is 0 to 32767 (a multiple of 4 is recommended). • The default is the distance between the default top and bottom margins (the default text length). Top margin Text length (default vertical size of PCL picture frame) Bottom margin Figure 3.
P1 and P2 positions are defaulted when executing the command ESC “*c#Y”. P1 is defaulted on the lower-left corner of picture frame, and P2 is defaulted on the upper-right corner of picture frame. The printable area of the GL image in the GL mode (soft-clip area) is reset to PCL picture frame boundaries, the polygon buffer is cleared and the current pen position is defaulted to the PI position. Refer to the IW command.
Anchor Point Location Setting: ESC “*c#T” #=0 This command designates the location of the PCL picture frame anchor point and sets the picture frame anchor point to the current position. • All values other than 0 will be ignored. • The default location of the anchor point is at the left edge on the top margin of the current logical page. The anchor point is set on the upper-left corner of PCL picture frame.
Horizontal Plot Size of GL Setting: ESC “*c#K” #= Horizontal size in inches This command designates the horizontal plot size of the GL image. This command specifies the valid range (plot size) in which image data is plotted in the GL mode. • The default horizontal size is the width of the current selected picture frame. • The value field # is 0 to 32767 (a multiple of 4 is recommended). The GL horizontal plot size is proportional to the size of frame, and the image is drawn within the PCL picture frame.
Vertical Plot Size of GL Setting: ESC “*c#L” #= Vertical size in inches This command designates the GL vertical plot size of the GL image. This command specifies the valid range (plot size) in which image data is plotted in the GL mode. • The default vertical size is the height of the current selected picture frame. • The value field # is 0 to 32767 (a multiple of 4 is recommended). The GL vertical plot size is proportional to the size of frame, and the image is drawn within the PCL picture frame.
Entering PCL mode Setting: ESC “%#A” #=0: To specify the predefine PCL cursor position. #=1: To specify the current pen position in the GL mode This command enters the PCL mode from the GL mode. This command also specifies the pen position in the PCL mode. When a number other than 0 or 1 is set, an even number−sets 0. an odd number−sets 1. If the pen position in the GL mode is outside the PCL logical page limits, a new PCL cursor position falls in the logical page limits.
Entering GL mode Setting: ESC “%#B” #=0: To specify the redefined pen position in the GL mode. #=1: To specify the current cursor posiion in the PCL mode. This command enters the GL mode from the PCL mode. This command also specifies the pen position in the GL mode. When a number other than 0 or 1 is set. an even number−specifies 0. an odd number−specifies 1.
HP-GL/2 Command Command Group Configuration and Status Group Function Comment Defaulting values Initializing Inputting P1 and P2 Inputting relative P1 and P2 Inputting window Rotating coordinate system Scaling Edging rectangle absolute Polygon Group Edging polygon Edging rectangle relative Edging wedge Filling polygon Polygon mode command Pixel placement Filling rectangle absolute Filling rectangle relative Filling wedge Control code comparison chart-page reference table (continued) Name CO DF IN IP IR I
Command Group Vector Group Function Arc absolute Arc relative Absolute arc three point Bezier curve relative Bezier curve absolute Circle Plotting absolute Pen down Polyline encoded Plotting relative Pen up Relative arc three point Anchor corner Line and Fill Filling type Attributes Group Line attributes Line type Merge control Pen width Raster fill definition Symbol mode Selecting pen Screened vectors Transparency mode User-defined line type Pen width unit selection Control code comparison chart-page refe
Command Group Character Group Function Alternate font definition Character fill mode Character plot Absolute direction Relative direction Defining label terminator Defining variable text path Extra space Selecting primary font Selecting secondary font Labeling Labeling origin Selecting alternate font Scalable or bitmap fonts Standard font definition Absolute character size Character slant Relative character size Selecting standard font Transparent data Control code comparison chart-page reference table Na
HP-GL/2 Commands GL (Graphics Language) Commands Introduction to GL Graphics This printer gives you access to two modes: PCL (Printer Control Language) mode and GL (Graphics Language) mode. The commands in the PCL mode have been explained earlier in this chapter. The printer provides vector graphics using the GL commands in the GL mode after leaving the PCL mode. You can take advantage of vector graphics for various types of images such as technical drawings or business graphics.
• The commands need to be terminated by a semicolon, which is called a “terminator”, or by the next mnemonic like PA100,200;PR; or PA100,200PR; . The last command in a string requires a terminator. Notes: • The Label (LB) command must be terminated by ETX (03HEX), not by a semicolon. The Define Label Terminator (DT) command allows the Label (LB) command to be terminated by any other codes except 03HEX. • For clarity, mnemonics are shown in uppercase, parameters in italic.
Parameter Range Parameters must be given the format needed by each GL command. Please refer to the parameter description of each command. Integer parameters range from - 1073741824 (-230) to 1073741823 (230- 1). When the fractional parameters are specified, the printer rounds the fractional parameters to the nearest integer. Clamped integer parameters range from -32768 (-215) to 32767 (215- 1). When the fractional parameters are specified, the printer rounds the fractional parameters to the nearest integer.
For example, the Fill Type (FT) command: FT3,100,1; Indicates that this example has three optional parameters: fill type=3 (hatching), spacing lines=100 (default distance along the X-axis in current unit), angle of lines=1 (default in degrees). FT3 ; Indicates that this example has the only one parameter. Note that the third parameter must be omitted, if the second one is omitted. These two settings are interpreted as the same by the printer.
Program 100 110 120 130 140 150 160 170 WIDTH “LPT1:”,255 OPEN “LPT1:” AS #1 PRINT #1,CHR$(27);“E”; PRINT #1,CHR$(27);“%0B”; ’ PRINT #1,“IN;”; PRINT #1,“SP1;”; PRINT #1,“PA1000,1000;”; 180 PRINT #1,“PD6000,1000,6000, 6000,1000,6000,1000,1000;”; 190 PRINT #1,“PU;”; 200 PRINT #1,“PA2000,2500;”; 210 PRINT #1,“PD2000,2500,5000, 2500,3500,5000,2000,2500;”; 220 PRINT #1,“PU;”; Comment Resets the printer. Enters the GL mode. Initializes the GL mode. Selects the “black” pen.
270 PRINT #1,“ER2000,2000;”; Draws a rectangle; the current pen location and the specified point are on the diagonal opposite corners. The specified coordinates indicate the increment from the current coordinates. Fills a rectangle specified by ER command. 280 PRINT #1,“RR2000,2000;”; 290 ’ 300 PRINT #1,CHR$(27);“%0A”; Returns to the PCL mode. 310 PRINT #1,CHR$(12); Prints out the page. 320 END Figure 3.37 Print example for Figure 3.
Figure 3.
Adjusting the GL Image When making the image in the GL mode, the image is enlarged or reduced to fit the size of the PCL picture frame before printing out the page. The rectangular shown in Figure 3.39 is called the PCL picture frame. The page location of the PCL picture frame is determined by the anchor point. A scaling factor is used to enlarge or reduce GL image so that it may fit the size of the PCL picture frame, and an existing image in the GL graphic is placed in the PCL picture frame.
GL Coordinate System The default GL coordinate system is distinct from the PCL coordinate system. In the GL mode, the printer adjusts the Cartesian coordinate system within the PCL picture frame. The Cartesian coordinate system is formed by the X- and Y-axes. Refer to Figure 3.40. Y Physical page PCL picture frame Y increment X increment Origin(0,0) Figure 3.
You can move the GL coordinate system to any point within the PCL picture frame by designating the number of units called a coordinate. The default location of the GL coordinate system is the lower-left corner of the PCL picture frame. The origin point (0,0) in Figure 3.40 can be changed by using the IP or IR command. The SC command sets the coordinate system. Note: Coordinate pairs are in parentheses (X,Y) for clarity, but you should not use the parentheses in your program.
GL & PCL Orientation Interactions This section shows the relationship between the GL orientation and PCL logical page orientation. The origin of the GL coordinate system is located in the lower-left corner of PCL picture frame. Refer to Figure 3.41. The X-coordinates of GL and PCL increase in the same direction, but the Ycoordinates increase in the opposite direction.
Plotting Units In the GL mode, the X and Y axes can be expressed in two ways plotter units and user units. The plotter units are used to convert the number to equivalent dot coordinates to specify distances, and the user units depend on the Scale (SC) command. Plotter Units One plotter unit is 0.025mm. 1mm is equivalent to 40 plotter units. The minimum value of the coordinate system is 1 plotter unit. 1 plotter unit = 0.025mm/0.
Pen Status and Location Pen Status Pen status means “pen” up or down. The terms “pen” and “pen position” indicate the imaginary cursor and the current active position (CAP) in the GL mode. In “pen” up (PU command), a line is not drawn from the current printing position to the specified position when you change X, Y coordinates. In “pen” down (PD command), a line is drawn from the current printing position to the specified position when you change X,Y coordinates.
Command Page Edging rectangle absolute 4-92 EA Edging polygon 4-92 EP Edging rectangle relative 4-93 ER Edging wedge 4-93 EW Filling polygon 4-96 FP Filling rectangle absolute 4-98 RA Filling rectangle relative 4-98 RR Filling wedge 4-99 WG Circle 4-105 CI Symbol mode 4-126 SM Labeling 4-147 LB Table 3.32 Commands that include an automatic pen down Pen Location Pen location means the X and Y coordinates of the current position.
Scaling The default units in the GL mode is 1016 plots/inch in plotter units, and you can define your own plotting units by the Scaling (SC) command. You can redefine a desired plot in the range of -230 to 230- 1 in user units. It is convenient for you to redefine easy user-units for other commands, since user units are applied to other commands for drawing. IPX1,Y1,X2,Y2; Sets the scaling point in the plotter units. SCX1,X2,Y1,Y2; Sets the scaling point in the user units.
Example: IP10,10,20,20; Sets up the scaling point in the plotter units so that P1 is (10,10) and P2 is (20,20). SC0,5,0,5; Sets up user scaling so that P1' is (0,0) and P2' is (5,5). PCL picture frame P2 PCL picture frame P2=(20,20) P2 P1 • P2’=(5,5) P1 • P1=(10,10) P1’=(0,0) Figure 3.42 Coordinates in plotter and user units Note: The image made in the GL mode is automatically enlarged or reduced to fit the size of the PCL picture frame without changing the current scaling points P1 and P2.
Pen Movement The Plot Absolute (PA) and Plot Relative (PR) allow users to move the pen to the specified coordinates in two ways: absolute pen move and relative pen move. Plot Absolute (PA) Plots the drawing by the relative pen move to the origin. In the case that you plot by the PA command, the pen always moves to the specified coordinates regardless with the last pen location. Plot Relative (PR) Plots the drawing by the relative pen move to the current pen location.
The Cofiguration and Status Group This section shows the configuration and status group commands functioning for: • Setting up default conditions and values • Scaling images in the dimensional units you desire • Setting Up a window (soft-clip limits) • Enlarging or reducing images • Rotating the GL coordinate system • Drawing equal-sized and mirror-imaged drawings Table 3.
When you are using the GL mode or the PCL mode, you should reset the printer at the beginning of each print job to avoid any trouble caused by data left in the previous mode. There are two types of commands for initialization in the GL mode; IN command and DF command. The DF command resets all settings to the factory default. The reset command (ESC “E”) executes the IN command automatically and resets all functions to the factory default. In scaling, P1 and P2 are used as default points.
Comment Setting: CO(“comment”;) The words in the double quotation is interpreted as a comment. The comment is ignored by the printer. Defaulting Values Setting: DF(;) This command returns the printer's GL settings to the factory default settings. Anchor Corner (AC): Anchor corner (different than the picture frame anchor point) positioned to the lower-left corner of the PCL picture frame, relative to the current coordinate system. Alternate Font Definition (AD): Stick Font 9 cpi 11.
Line Type (LT): Solid line, relative mode, pattern length is 4% of diagonal distance between P1 and P2 Plotting Mode (PA): Absolute plotting Polygon Mode (PM0PM2): Clears polygon buffer. Raster Fill (RF): Printed black Scalable or Bitmap Fonts (SB0): Only scalable fonts Scale (SC): Scaling in plotter units Screened Vectors (SV): No screening Standard Font Definition (SD): Stick Font 9 cpi 11.5 pts Upright Medium Absolute Character Size (SI): Stops transforming a size.
Initializing Setting: IN(;) This command returns all the GL functions to the factory default settings. ESC “E” executes automatically this command.
Inputting P1 and P2 Setting: IPP1X,P1Y(,P2X,P2Y;) or IP(;) Parameter Format Range Default : : : : P1X, P1Y (,P2X, P2Y) integer -230 to 230-1 P1 lower-left corner P2 upper-right corner (on the PCL picture frame) This command specifies default frame for scaling using absolute coordinates. This command sets new locations of P1 and P2 with the coordinates in plotter units. If P2 is not specified, the distance between P1 and P2 is not changed and P2 moves the same distance as P1.
P2 Default P2 P1 P1 P1 P1 P2 Figure 3.
Inputting Relative P1 and P2 Setting: IRP1X,P1Y(,P2X,P2Y;) or IR(;) Parameter Format Range Default : : : : P1x , P1Y (, P2X, P2Y) clamped real 0 to 100% 0,0,100,100% This command sets up the default location for the scaling frame points P1 and P2 relative to the PCL picture frame. This command repositions PI and P2 to the lower-left and upper-right of the PCL picture frame respectively if no parameters are entered.
Example: IR20,20,50,50; PCL picture frame P2 100% • New P2 50% 20% P1 • New P1 20% 50% 100% Figure 3.44 Establishing new locations for P1 and P2 If P2 is not specified, the distance between P1 and P2 is not changed and P2 moves the same distance as P1. Note that the distance is limited to the window. This command is used to move the scale points P1 and P2 to the default locations or the specified locations or to print a mirror image, enlarge or reduce the vector or characters.
Inputting Window Setting: IWXLL, YLL,XUR, YUR(;) or IW(;) Parameter Format Range Default : : : : XLL, YLL, XUR, YUR current units -230 to 230-1 PCL picture frame ( LL=Lower-Left, UR =Upper-Right) This command defines a rectangular area and restricts the drawing to that area. This command specifies the opposite, diagonal corners of the window area in current units. The printer interprets coordinates in user units when scaling is on and in plotter units when scaling is off.
Logical page Hard-clip limit Picture frame User-defind window (IW command) Printable area Soft-clip limit Figure 3.45 The effective window The hard-clip limit shows the boundaries resulting from the physical limits of the printer. In the PCL mode, this area is specified as the printable area. The soft-clip limit shows an area defined by the GL Input Window (IW) command.
Rotating Coordinate System Setting: ROangle(;) or RO(;) Parameter Format Range Default : : : : angle clamped integer 0°, 90°, 180° or 270° 0° This command rotates the coordinate system in 90 degrees increments (0°, 90°, 180°, 270°) and in a counterclockwise directions. • Angle Specifies the degrees to rotate the coordinate system. 0° sets the orientation to horizontal. 90° rotates and changes the P1 and P2 location counterclockwise 90 degrees.
O O 270 180 ABC ABC O 90 O ABC Figure 3.
Scaling Setting: SCXMIN,XMAX,YMIN,YMAX,[,type,(,left,bottom;)] or SCXMIN,XFACTOR,YMIN,YFACTOR,type(;) or SC(;) Parameter Format Range Default : : : : XMIN,XMAX real - 230 to 230-1 no default YMIN,YMAX real -230 to 230-1 no default type clamped integer 0, 1 or 2 0 Parameter Format Range Default : : : : left clamped real 0 to 100% 50% bottom clamped real 0 to 100% 50% XFACTOR,YFACTOR real -230 to 230-1 no default This command sets the coordinate system in user units, which is set by userdefined coor
• X,Y coordinates The parameters represent the user-units range on the X,Y axes Example: SC0,20,0,30; Indicates 20 user units along the X-axis and 30 user units along the Y-axis. P2(20,30) P1(0,0) Figure 3.47 Using SC command As a result, the P1 and P2 coordinate system is respectively (0,0) and (20,30). Notes: • XMIN can not be equal to XMAX, and YMIN can not be equal to YMAX.
• Type Specifies anisotropic or isotropic scaling. Type=0: Anisotropic scaling Enables user units along the X-axis to be a different size than user units along the Y-axis. The scaling command causes printed images to be distorted. For example, if you print a circle, the circle might be oval- shaped. Left and bottom parameters are ignored for this scaling. Type=1: Isotropic scaling Produces the same-sized user units on the X- and Y-axes.
Left,bottom=100,100 P2 (20,20) Isotropic area P1 (0,0) SC0,20,0,20,1,100,100; Isotropic area P2 (40,20) (0,0) P1 SC0,40,0,20,1,100,100; Left bottom=50,50 (default) (20,20) P2 P2 (40,20) Isotropic area Isotropic area (0,0) P1 P1 (0,0) SC0,20,0,20,1,50,50; Figure 3.
• XMIN, XFACTOR, YMIN, YFACTOR Establishes the P1 user unit coordinates and a ratio of plotter units to user units. XMIN,YMIN indicates the coordinate values. XFACTOR indicates the plotter units per horizontal user units, YFACTUR indicates the plotter units per vertical user units. Example: SC0,1,0,1,2; P1 is located on the origin. The ratio of user units to plotter units is 1:1. SC0,40,0,40,2; Scales in millimeters. 1 millimeter is 40 plotter units. User units are 1 millimeter. SC0,1.016,0,1.
The Polygon Group This section shows the function of the polygon commands. The Polygon stores the original units (point units) in the polygon buffer and draws the graphics by the polygon commands after execution of the polygon mode. The polygon buffer is a temporary data storage area in your printer. • Drawing circles, wedges and rectangles • Using polygon mode for drawing polygons, subpolygons and circles Table 3.
Function Edging rectangle absolute Edging polygon Command EA Description Draws an outline of a rectangle defined using absolute coordinates. Draws an outline of the contents of the polygon EP buffer. Edging rectangle Draws an outline of a rectangle defined using ER relative relative coordinates. Edging wedge Specifies and draws an outline of a wedgeEW shaped polygon. Filling polygon Takes up the polygon specified in the polygon FP buffer with the line and fill types.
The polygon data (in point units) remains in the polygon buffer until another polygon command is set or the printer is initialized. The total buffer capacity depends on the amount of available user memory in your printer. The polygon command stores the plot from starting point through end point in the polygon buffer and after the mode is executed, the EP and FP commands draw the image stored in the buffer. Example: PM0; Starts the polygon PDn1,n2,n3,n4,...nX,nY; No.1 No.2 last plot PM2; Closes the polygon.
To draw an outline on the point in the polygon buffer, use the EP after finishing the polygon mode. The line type depends on the LT command. To fill an image on the point in the polygon buffer, use the FP command after finishing the polygon mode. The fill type for filling an image depends on the FT command. When an arc remains in the polygon buffer, the arc is drawn after the number of points is replaced by the number of chords in the arc.
Edging Rectangle Absolute Setting: EAX, Y(;) Parameter Format Range Default : : : : X, Y coordinates current units -230 to 230-1 no default This command draws a rectangle, whose opposite points are on the current pen location and absolute location specified by X,Y coordinates, in accordance with the line type and terminator of a line. • X,Y Coordinates Sets the corner of the rectangle opposite the current pen location. The current pen is positioned at the starting point of the rectangle.
Edging Polygon Setting: EP(;) This command outlines the polygon stored in the current polygon buffer by the PM command. This command also outlines wedges and rectangles as defined by the EA, ER, EW, RA, RR and WG commands. This command is invalid when the polygon data does not exist in the polygon buffer, or the data is changed in any way. This command edges a rectangle using the line type and pen width defined by the commands excluding the PM command.
Edging Rectangle Relative Setting: ERX, Y(;) Parameter Format Range Default : : : : X, Y increments current units -230 to 230-1 no default This command draws a rectangle in accordance with the type and terminator of a line. Its diagonally opposite corners are on the current pen location and relative coordinates specified by the increments of X,Y from the current pen location. • X,Y Increments Increments indicate a move between the current pen location and the opposite point.
Edging Wedge Setting: EW radius, start angle, sweep angle(,chord angle;) Parameter Format Range Default : : : : radius current units -230 to 230-1 no default start angle clamped real -32768 to 32767 (modulo 360) no default Parameter Format Range Default : : : : sweep angle clamped real ±360° no default chord angle clamped real 0.5° to 180° 5° This command outlines the specified wedge. • Radius Specifies the distance between the current pen location and the starting point of the wedge's arc.
90° 180° 270° Zero-degree Positive start Negative radius angle 0° 0° Zero-degree Negative start Positive radius angle Current pen location 270° Positive radius 180° Current pen location 90° Negative radius Figure 3.50 Start angles • Start Angle Specifies the starting point for the arc in the number of degrees from the zero degree point. positive start angle positions a radius counterclockwise. negative start angle positions a radius clockwise.
• Sweep Angle Specifies the angle of the arc in the number of degrees. positive sweep angle sets the angle counterclockwise. negative sweep angle sets the angle clockwise. sweep angle greater than 360° sets a wedge angle to 360°. • Chord Angle Specifies the chord angle for drawing the arc. The smoothness of the arc depends on the chord angle. Chord angle specifies an angle of a chord, and an arc is drawn using the specified chord. The default is 5 degrees.
This command uses the distance which is specified with a radius parameter from the current pen location as a radius for a wedge and draws a wedge using a start angle, sweep angle and chord angle. The wedge is drawn using the specified line type. This command has the function of an automatic pen down. The pen location and pen up/down functions are returned to the conditions set before this command is executed. This command outlines a wedge, while the WG fills it.
Filling Polygon Setting: FP fill method(;) or FP(;) Parameter: Format: Range: Default: fill method clamped integer 0 or 1 0 This command fills the polygon stored in the polygon buffer by the PM command. • Fill Method Selects one of the following methods, which decides the algorithm to determine which area in the specified polygon is filled. Method=0: Even/Odd fill algorithm. First this method positions a starting point inside the polygon area, and draws a line to the outside of the polygon.
Method=1: Non-Zero fill algorithm This method determines the area to be filled as follows: 1. Draws a line from a starting point inside the polygon to the outside of a polygon. 2. Adds 1 every time the outline of the polygon which crosses the line drawn from the starting point is drawn in the right direction, or upward. 3. Subtracts 1 every time the outline of the polygon which crosses the line drawn from the starting point is drawn in the left direction, or downward. 4.
Polygon Mode Command Setting: PM polygon definition(;) or PM(;) Parameter Format Range Default : : : : polygon definition clamped integer 0, 1 and 2 0 This command enables polygon mode to define unique shapes and exits to fill or edge them by the EP or FP commands. This command removes the polygon buffer and sets the start of the polygon mode if no parameters are entered. • Polygon Definition Selects one of the three polygon modes as follows: Mode=0: Clears the polygon buffer and enters the polygon mode.
Example: PA1000,2000; Stores (1000,2000) as the first point of polygon in the polygon buffer. PM0; Enters the polygon mode. Subsequent specified coordinates are stored as the points of a polygon in the buffer. Mode=1: Closes the currently set polygon, but the polygon mode is not cleared. The point sent following PM1; is the first point for the next polygon. If you have not closed the polygon (in case it is not a complete polygon), you may have to add a point to close the polygon.
Pixel Placement Command Setting: PP mode(;) or PP(;) Parameter: Format: Range: Default: mode Clamped integer 0 or 1 1 This command controls how the pixel is positioned on the layout grid, when a polygon is filled. The mode=0 is grid intersection mode, and the mode=1 is grid centered mode.
Filling Rectangle Absolute Setting: RAX,Y(;) Parameter Format Range Default : : : : X, Y coordinates current units -230 to 230-1 no default This command fills a rectangle whose diagonally opposite corner is on absolute coordinates specified with X,Y coordinates from the current pen location. • X,Y coordinates Specifies the absolute coordinates of the opposite corner of a rectangle. The printer interprets coordinates in user units when scaling is on, and in plotter units when scaling is off.
Filling Rectangle Relative Setting: RRX, Y(;) Parameter Format Range Default : : : : X, Y increments current units -230 to 230-1 no default This command fills a rectangle whose opposite corner is on the relative coordinates set with X, Y increments from the current pen location. • X,Y increments Indicates the distance from the current pen location to the coordinates which are opposite to the current pen location.
Filling Wedge Setting: WG radius, start angle, sweep angle(,chord angle;) Parameter Format Range Default : : : : radius current units -230 to 230-1 no default start angle clamped real -32768 to 32767 no default Parameter Frmat Range Default : : : : sweep angle clamped real ±360° no default chord angle clamped real 0.5° to 180° 5° This command fills a specified wedge. • Radius Specifies the distance between the current location and the starting point of the wedge's arc.
• Start Angle Specifies the starting point for the arc in the number of degrees from the zero degree point. positive start angle positions a radius counterclockwise. negative start angle positions a radius clockwise. start angle greater than 360° sets a remainder of: (the Start angle/360°) i.e., the start angle MOD 360°. • Sweep Angle Specifies the angle of a wedge in degrees. positive sweep angle sets the angle counterclockwise. negative sweep angle sets the angle clockwise.
The Vector Group This section shows the vector group commands for: • Positioning absolute and relative coordinates when plotting • Drawing lines, arcs and circles • Encoding coordinates to increase the printer's throughput Table 3.
Function Arc absolute Arc relative Absolute arc three point Bezier curve relative Bezier curve Absolute Circle Plotting absolute Command AA AR AT Description Shapes an arc using absolute coordinates. Shapes an arc using relative coordinates. Shapes an arc from the current pen location through two absolute points. This command draws a bezier curve by using BR the specified relative coordinates. This command draws a bezier curve by using BZ the specified absolute coordinates.
The PA and PR commands are used to move the pen to the specified position. You should specify the X,Y values to set the coordinates. The multiple settings of coordinates are available with X,Y coordinates data. The pen position (up/down) determines drawing from the current pen position to the specified position: when the pen is up, a line is not drawn and when the pen is down, a line is drawn. Absolute Coordinate Movement: Moves to the specified coordinates from the origin (0,0).
Arc Absolute Setting: AA Xcenter,Ycenter,sweep angle(,chord angle;) Parameter Format Range Default : : : : Xcenter, Ycenter current units -230 to 230-1 no default sweep angle clamped real -32768 to 32767 no default chord angle clamped real 0.5° to 180° 5° This command uses the specified absolute coordinates as a center point, and draws an arc. • Xcenter, Ycenter Shows an absolute location of a center point. If the arc is 360°, the center of the arc is the center of the circle and a circle is drawn.
• Chord Angle Specifies the chord angle for drawing an arc. The chord angle determines the smoothness of a curve. Chord angle specifies an angle of a chord, and an arc is drawn using the specified chord. The default is 5 degrees. If the specified sweep angle is not divided equally by chord angle, the printer automatically allots the same-sized chords to an arc. Arc segment Drawn chord Chord angle Figure 3.
Arc Relative Setting: AR Xincrement,Yincrement, sweep angle(,chord angle;) Parameter Format Range Default : : : : Xincrement,Yincrement current units -230 to 230-1 no default sweep angle clamped real -32768 to 32767 no default chord angle clamped real 0.5° to 180° 5° This command uses the specified coordinates relative to the current pen location as a center point to drawn an arc. • Xincrement, Yincrement Specifies the center point of an arc as the distance from the current pen location.
This command uses the specified relative distance from the current pen location as a radius, and makes the relative location a center position, the current pen location is starting point, and draws an arc using a chord angle as a sweep angle. The arc is drawn depending on the pen type and line type. The current pen location after drawing an arc is at the end position of an arc.
• Chord Angle Specifies the chord angle for drawing an arc. The chord angle determines the smoothness of a curve. Chord angle specifies an angle of a chord, and an arc is drawn using the specified chord. The default is 5 degrees. If the specified sweep angle is not divided equally by the chord angle, the printer automatically allots the samesized chords to an arc.
Bezier Curve Relative Setting: BR X1, Y1, X2, Y2, X3, Y3…(X1, Y1, X2, Y2, X3, Y3) Parameter: Format: Range: Default: X, Y increments current units -223 to 223-1 no default This command draws a bezier curve by using the specified relative coordinates. This command uses the current pen position as the first control point for the bezier curve. The other three control points should be specified with relative increments from the first control point.
‘ (2560,5120) (3840,2048) • Starting Point (1st Control Point) Points 1, 2, and 3 relative to this point (1024,4096) Ž (3072,-512) Point 4, 5, and 6 relative to this point Œ 1 (0,-3072) 2 • (-768,-2560) 3 4 5 • (2560,-2816) 6 BR0,-3072,3840,2048,3072,-512,-768,-2560,2560,-2816,2560,5120; Figure 3.
Bezier Curve Absolute Setting: BZ X1, Y1, X2, Y2, X3, Y3…(X1, Y1, X2, Y2, X3, Y3) Parameter: Format: Range: Default: X, Y coordinates current units -223 to 223-1 no default This command draws a bezier curve by using the specified absolute coordinates. This command uses a current pen position as the first control point and the three specified coordinates as the second, third and fourth control points.
‘ (6656,8704) (4864,6144) • Starting Point (1st Control Point) (1024,4096) Ž (4096,3584) Œ 1 (1024,1024) 2 • (3328,1024) 3 4 • (6656,768) 5 6 BZ1024,1024,4864,6144,4096,3584,3328,1024,6656,768,6656,8704; Figure 3.
Circle Setting: CI radius(,chord angle;) Parameter Format Range Default : : : : radius current units -230 to 230-1 no default chord angle clamped real 0.5° to 180° 5° This command shapes a circle using the specified radius and chord angle. • Radius Specifies a radius of a circle as the distance from the current pen location. The printer interprets coordinates in user units when scaling is on and in plotter units when scaling is off. • Chord Angle Specifies the chord angle for drawing a circle.
Chord Chord • • =Chord angle 0° œ Chord angle œ 180° • Sets the angle to the value (360°- •) 180° œ Chord angle œ 360° Figure 3.56 Setting the chord angle This command uses the specified distance from the current pen location as a radius, and draws a circle using a chord angle. This command has the function of an automatic pen down. After this command is complete, the current pen location and pen up/down functions are returned to the conditions set before this command is executed.
Plotting Absolute Setting: PAX,Y(,...;) or PA(;) Parameter : X, Y coordinates Format : current units Range : -230 to 230-1 Default : no default This command moves the pen location from the current pen position to the specified absolute coordinates. If no parameters are entered, the printer enters the absolute plot mode for subsequent commands. • X,Y Coordinates Specifies the absolute location to which the pen moves.
Pen Down Setting: PDX,Y(,...;) or PD(;) Parameter : X, Y coordinates/increments Format : current units Range : -230 to 230-1 Default : no default This command lowers and moves the pen from the current pen location to the specified location (absolute or relative). The printer lowers the pen for subsequent graphic commands if no parameters are entered. • X,Y Coordinates/Increments Specifies the absolute coordinates for absolute plotting.
Polyline Encoded Setting: PE(flag)(value) coord pair...(flag)(value) coord pair; or PE(;) Parameter Format Range Default : : : : flag character :, <, >, =, or 7 no default value character depends on flag coordinate pair character -230 to 230-1 no default This command encodes the commands: PA, PR, PU, PD and SP, and reduces the size of a file and time required for data transmission. It is useful for you to use this command with an RS-232C interface.
• Flag Specifies the way to interpret subsequent values. ASCII characters are used for flags and are not encoded. The eighth bit of a flag is ignored. Example: 61HEX (3D) and 189HEX (BD) send “=”. Flag=“ : ”: Selects the pen The subsequent value indicates the set pen number. If no pen number is set, the printer uses the current selected pen. Flag=“ < ”: Pen Up and Plot Absolute Moves to the specified coordinate pair with the pen up.
• value Specifies value set by a flag.
The printer ignores in Base 64 or 32 the following: space, delete character, control character in parameters, 128 to 160 and 255 in ASCII. The converting formula for X,Y coordinates encoding is: 1. PE > n coordinate pair Converts coordinate data which was entered for encoding, based on n. k = round (n x 3.33) sets an absolute value x1 = coordinate data x 2k x2 = round (x1) sets an absolute coordinate data 2. Diagnoses whether the value of coordinate data is positive or negative.
Plotting Relative Setting: PRX, Y(,...;) or PR(;) Parameter Format Range Default : : : : X, Y increments current units -230 to 230-1 no default This command moves the pen from the current location to a specified location relative to the current location. The printer resets the printer to relative plotting mode for subsequent commands if no parameters are entered. • X,Y Increments Indicates the distance from the current pen location to the specified location.
The data is used in edging or filling the polygon. When using this command, the command only moves the pen location when the pen is up, and moves the pen and draws a line to the moved pen location. Note: The PR or PE command has a valid plotter units range of -230 to 230-1. When the current pen location is beyond the valid range, GL commands are ignored until the printer receives valid data.
Pen Up Setting: PUX,Y(, ... ;) or PU(;) Parameter Format Range Default : : : : X, Y coordinates/increments current units -230 to 230-1 no default This command raises a pen and moves location from the current location to the specified points (absolute or relative). The printer raises the pen for subsequent commands. If no parameters are entered, the command lowers the pen temporarily in the automatic pen mode. • X,Y Coordinates/Increments Specifies the absolute coordinates in absolute plotting.
Relative Arc Three Point Setting: RT Xincr inter, Yincr inter,Xincr end, Yincr end(,chord angle;) Parameter Format Range Default : : : : Xincr inter, Yincr inter current units -230 to 230-1 no default Xincr end, Yincr end current units -230 to 230-1 no default chord angle clamped real 0.5° to 180° 5° This command draws an arc segment using the three points (relative coordinates) from a starting point, through an intermediate point, to an end point.
• Chord Angle Specifies chord angle for drawing an arc. The chord angle determines the smoothness of a curve. Chord angle specifies an angle of a chord, and an arc is drawn using the specified chord. The default is 5 degrees. If the specified sweep angle is not divided equally by chord angle, the printer automatically allots the same-sized chords to an arc.
The Line and Fill Attributes Group This section shows the line and fill attribute group commands for: • Enhancing your drawings with various line types • Enhancing your drawings with different fill types • Positioning fill type patterns Table 3.
Function Anchor corner Filling type Line attributes Line type Merge Control Command AC FT LA LT MC Pen width Raster fill definition Symbol mode PW RF Selecting pen Screened vectors SP SV Transparency mode TR SM Description Determines the starting point for fill patterns. Selects the pattern to fill polygons. Specifies the shape of line ends and joins. Selects the line pattern to draw lines. This command specifies the raster operation (ROP) in the HP-GL/2 mode. Sets a new pen width.
The command selects the line type in plotting a line using the LT command. The command specifies line type in the specified length of patterns. The command allows you to select one of 17 types: 8 fix line types, and 8 adoptive line types and dot patterns. The printer allows you to define the line type using the UL command. The LA command specifies the starting end or joined part of plotted lines.
The FT command selects one of the pattern types for filling a specified area with patterns: black, hatching, cross-hatching, shading, user-pattern, hatch pattern. The RF command enables users to assign a user-defined pattern for filling. The RA, RR, WG and FP commands fill an area with the selected pattern. The PW command specifies the pen width for plotting a line. The units of the pen width depends on the WU command.
Anchor Corner Setting: ACX,Y(;) or AC(;) Parameter Format Range Default : : : : X, Y coordinates current units -230 to 230-1 no default This command determines the absolute starting point of the fill pattern. This command starts any fill pattern at the point specified by the X, Y parameters. The printer defaults to the lower-left corner of PCL picture frame.
• Fill Type Selects one of the fill patterns.
Fill Type 3 and 4: • Option 1 sets the distance between lines in fill type. The distance is set in the current units along the X-axis. If 0 is set in option 1, the printer sets the line space to 1% of the distance between the opposite corners of P1 and P2. The default of the option is 1% of the diagonal distance from P1 and P2. The change of P1 and P2 coordinates affects this distance when a spacing is specified in user units.
Fill Type 10: • The fill type 10 indicates gray scale level with the option 1. • The gray scale level is indicated in 0 to 100% and eight levels are selectable. Refer to Figure 4.23 “Gray scale pattern” on page 4-54. Fill Type 11: • The fill type 11 selects the index number of the user-defined pattern specified by the RF command from the option 1. • If the user-defined pattern does not exist, the solid fill pattern is selected.
Line Attributes Setting: LA kind,value[,kind,value(,kind,value;)] or LA(;) Parameter Format Range Default : : : : kind clamped integer 1 to 3 1 Parameter Format Range Default : : : : clamped integer Kind 1: 1 to 4 1 (Butt) value clamped integer Kind 2: 1 to 6 1 (Mitered) clamped real Kind 3: 1 to 32,767 5 This command selects line ends, line starts and line joins using parameters.
Kind=2: Specifies the line join. Value=1: Mitered join • Miter length > New miter length Miter is cut by the excess of a new miter. • Miter length œ New miter length Miter is extended to the end of a new miter Value=2: Mitered/beveled join • Miter length > New miter length Miter is cut by the excess of the join. The join is beveled. • Miter length œ New miter length Miter is extended to the end of a new miter.
Example: when miter limit is 10 and the pen width is 5mm, a new miter limit is 50mm. Line ends (kind 1) Value=1 End point Butt ends Value=2 1 /2 pen width Rectangle ends Value=3 1 /2 pen width Triangle ends Figure 3.
Line joins (kind 2) Value=1 miter length Mitered join Value=3 ½ pen width Triangle join Figure 3.
No join (kind 2,value 6) No join butt end No join triangle end Figure 3.
Miter limit Pen width miter limit Clipped mitered join ¥miter limit Maximum clipped mitered join (beveled join) miter length Miter limit =Miter length/Pen width Figure 3.60 Miter limit This command specifies how a line start, a line end and joins are shaped. To determine the new miter length, you must specify the miter limit and pen width. The default is 5 when the miter limit value is not specified.
Line Type Setting: LT line type[,pattern length(,mode;)] or LT(;) or LT 99(;) Parameter Format Range Default : : : : Parameter Format Range Default : : : : line type clamped integer -8 to 8 solid line pattern length clamped real >0 4% of the distance between P1 and P2 99 restores previous line type mode clamped integer 0 or 1 0 (relative) This command specifies a line type and pattern length of a line.
• Line Type Selects a line pattern. Line Type = 1 to 8: Fixed line type A line type uses the specified pattern length. The pattern length specified is set repeatedly between the start and end of a line. Line Type = 0: A dot is drawn for line type. This is saved when the commands: AA, AR, CI, PA, PD, PR, RT are received. Line Type = -1 to -8: Adaptive line type A pattern length depends on the length from the start to the end.
8 7 6 Fixed 5 line 4 types 3 2 1 0 -1 -2 -3 Adaptive -4 -5 line -6 types -7 -8 • • • • • • • • • • • • Figure 3.
• Pattern Length Specifies the pattern length which contains one complete line pattern. The length units is millimeters or a percentage of the diagonal distance between P1 and P2, depending on the mode parameter. You should specify a length more than 0. The previously specified length is used if the length parameter is omitted. • Mode Specifies the units of the pattern length. 0 Relative Mode Specifies a percentage of the diagonal distance between P1 and P2.
The pattern specified using this command is used with AA, AR, AT, CI, EA, EP, ER, FP, PA, PD, PE, PR, RA, RR, RT, WG commands. You should not use a line type between -1 to -8 (adaptive line type) in the circle, arc, wedge and polygon modes. If you use them, the command draws those images with an angle of 5 degrees. This command remains in effect until another LT command is executed, or the printer is initialized or reset.
Merge Control Setting: MC mode, (opcode)(;) or MC(;) Parameter Format Range Default : : : : mode clamped integer 0 or 1 0 (ROP 252) opcode clamped integer 0 to 255 168.252 This command specifies the raster operation (ROP) in the HP-GL/2 mode. The raster operation defines how to combine the source, destination and pattern for the desired final image. This command supports all the 256 codes of Microsoft Windows composed of three raster-operation codes. • Mode mode=0: ignores the opcode.
Pen Width Setting: PW width(,pen;) or PW(;) Parameter Format Range Default : : : : width clamped real -32768 to 32767 dependent pen integer 0 or 1 1 (black) This command specifies the pen width. The pen width depends on the pen width units set by the WU command if no parameters are entered. In the case of the WU command set to 0.35mm, 0.1% of the diagonal distance from P1 to P2 if used. • Width Specifies the line width. 0 specifies a dot of width.
• Pen Specifies the pen number to which the new width is applied. 0 white 1 black Unless the pen parameter is specified, the currently selected pen width is used. The printer ignores values other than 0 and 1. This command updates the pen width set by the pen parameter. Resetting the pen width can be executed without the SP command. Changing white or black is determined by the SP command. This command is effective until another PW or WU command is executed. This command is not reset by the DF command.
Raster Fill Definition Setting: RF index, width, height, pen number(,.. pen number;) or RF index(;) or RF(;) Parameter Format Range Default : : : : index clamped integer 1 to 8 1 (solid) width clamped integer 1 to 255 no default Parameter Format Range Default : : : : height clamped integer 1 to 255 no default pen number integer 0 or 1 no default This command defines the fill pattern formed by dot data. The printer resets all raster fill patterns to a solid pattern if no parameters are entered.
• Pen Number Means a pixel in the defined pattern and specifies its color. 0 white 1 black This command specifies the dot data by dot widthdot height, this defines the user pattern to the desired index. The user-defined pattern formed by this command is available with the FT command. Example: FT11,3; Selects the Index of this command. User-defined pattern of Index Number 3 is set. The dot data is defined as rows from left to right, from upper to lower.
Symbol Mode Setting: SM character(;) or SM(;) Parameter Format Range : : : Default : character label most printing characters (decimal codes 33 to 58, 60 to 126, 161 and 254) no default This command draws the symbol at the specified coordinate point. The printer closes the symbol mode if no parameters are entered. • Character Specifies the symbol drawn at each X, Y coordinates point. A semi colon can not be selected as a character since it is used to terminate the symbol mode.
Selecting Pen Setting: SP pen number(;) or SP(;) Parameter Format Range Default : : : : pen number integer 0 or 1 0 (no pen) This command selects the pen used for plotting. If the parameter is not specified the pen selection is canceled. • Pen Number Selects the “logical” pen. Only when this command is sent, will the printer start drawing. 0 selects a white pen. If there is a black background or this command is specified TR0;, a white pen prints. 1 selects a black pen.
Screened Vectors Setting: SV{screen type [,option1(,option2)]}(;) or SV(;) Parameter Format Range Default : : : : screen type clamped integer 0, 1, 2 21 or 22 No screening (solid) option1, option2 clamped integer depends on type depends on type This command selects the screening type to be applied to a line or a hatching pattern. The printer defaults to solid black if no parameters are entered. • Screen Type Selects the types of screening.
Screen Type=2: User-defined raster fill Option 1 specifies the user-defined pattern index made by the RF command. Option 2 specifies the pen number 1 (=0) or selects the specified pen (=1). Screen Type=21: Hatch pattern Option 1 selects one of 6 hatch patterns. Option 2 ignored. Screen Type=22: User-defined pattern fill Option 1 Specifies the ID number of the userdefined pattern which was designated by the command ESC “*c#W”. Option 2 ignored.
Transparency Mode Setting: TR(mode)(;) or TR(;) Parameter Format Range Default : : : : mode clamped integer 0 or 1 1 (on) This command determines whether or not the white areas of the source graphic image are copied on the destination graphics image. The printer sets the transparency mode to on if no parameters are entered. • Mode Sets the transparency mode to on or off. 0 Transparency mode is off. 1 Transparency mode is on.
+ Source = Final destination Original destination Transparency mode ON + Source = Original destination Final destination Transparency mode OFF Figure 3.62 Transparency mode ON/OFF This command is reset by ESC “E”, IN, DF or another TR command.
User-Defined Line Type Setting: UL index(,gap1,...gap20;) or UL(;) Parameter Format Range Default : : : : index clamped integer 1 to 8 no default gaps clamped real 0 to 32767 default line types This command draws a user-defined line type comprised of spaces and lines. This command clears all lines types if no parameters are entered. Refer to the LT command. • Index Determines as which index a line is identified. If the index is set without the parameters, the default pattern is set (depends on the LT ).
Pen Width Unit Selection Setting: WU type(;) or WU(;) Parameter Format Range Default : : : : type clamped integer 0 to 1 0 (metric) This command specifies the pen width in millimeters or as a percent. The printer resets the pen width units to the default of 0.35mm if no parameters are entered. • Type Specifies the unit selection of the pen width. 0 sets the pen width in millimeters. Example: PW10; 10mm in width 1 sets the pen width parameter to a percentage of the diagonal distance between P1 and P2.
The Character Group You can add text to the image in the PCL mode or you can print text from the GL mode, when you wish to add text. “Label” used in this section indicates the printing of text.
Function Extra space Command ES Selecting primary font Selecting secondary font Labeling Labeling origin FI Selecting alternate font Scalable or bitmap fonts Standard font definition Absolute character size Character slant Relative character size Selecting standard font Transparent data SA Description Raise or reduce the space between label characters and lines Selects a font previously assigned a font ID number as standard. Selects a font previously assigned a font ID number as alternate.
The LB command labels characters and positions the text you want to print after the LB command. You should use the terminator at the end of the command, the text following the LB command is stored as print data. The command terminator is 03HEX. Example: LBKHIJL03 KHIJL after the LB is the print data, and KHIJL will be printed. The terminator can be changed by the DT command.
Command Command Name AA Arc absolute AR Arc relative AT Ablosute arc three point BR Bezier curve relative BZ Bezier curve absolute DF Defaulting values DI Absolute direction DR Relative direction DV Defining variable text path IN Initializing LO Labeling origin PA Plotting absolute PE Polyline encoded PR Plotting relative RO Rotating coordinate system RT Relative arc three point Table 3.
When the printer is reset, the following label conditions are defaulted. Symbol Set (Character Set): Roman-8 font, fixed spacing Pitch: 9 characters per inch Height: 11.5 point Posture: Upright Stroke Weight: Medium Typeface: GL Stick Label terminator: ASCII end-of-text character ETX (decimal code 3). Refer to the DT command. Label starting point: Current pen location. Refer to the LO command. Label direction: Horizontal. Refer to the DI, DR and DV commands.
The SI and SR commands specify the size of characters: the SI command specifies the height and width in centimeters, and the SR command specifies the size as a percentage of the distance between P1 and P2. Example: SI1,2; 2 cm A 1 cm Note: The specified bitmap and scalable font (proportional font) print characters which are most close to the specified size. The DI and DR commands specify the label orientation. Each bitmap font character can be rotated only in 90°, 180°, or 270°.
DI or DR command Label angle Bitmap fonts Stick or Scalable fonts Figure 3.63 Label orientation The SL command slants characters. SL command Figure 3.
The SL command is invalid for bitmap fonts. Character origin Character width Character plot cell width Figure 3.65 Cell Point size Cap height Line feed In each character, the basis for each character or space is the character cell.
Baseline: the imagenary line on which a text line is placed. A descender of a character stretches below the baseline. Line feed: the vertical distance between the baselines of 2 lines of text. The linefeed is about 1.2 times the point size (1.33 times the point size for stick fonts). Point size: the traditional character size measured from the top of a capital letter to the bottom of a descender. Cap height: the height measured from the baseline to the top of a capital letter.
There are three types of fonts which you can change using the command: • Scalable fonts • Bitmap fonts • Stick fonts Proportional-spacing fonts do not have a uniform fixed character cell. The character cell width is determined by each character's amount of horizontal space.
Alternate Font Definition Setting: AD kind, value...(,kind,value;) or AD(;) Parameter Format Range Default : : : : kind clamped integer 1 to7 no default value clamped real depends on kind depends on kind This command defines an alternate GL font and its attribute: font spacing, pitch, height, posture, stroke weight and typeface. The printer sets the alternate font attributes to that of the Stick font if no parameters are entered. • Kind Specifies the attribute which you desire.
Kind=4: Kind=5: Selects the point size for the proportional spacing by the height of the character cell. Default value=11.5 Selects the character's vertical posture. Default value=0: Upright Kind=6: Selects the line thickness used in the font's design. Default value=0: Medium, or Text Kind=7: Selects the typeface. Default value=48: Stick font Example: The following command represents the default setting. AD1,277,2,0,3,9,4,11.
Character Fill Mode Setting: CF fill mode[,edge pen(;)] or CF(;) Parameter Format Range Default : : : : fill mode clamped integer 0, 1, 2, or 3 0 (solid fill) edge pen integer -230 to 230 -1 0 (no edging) This command designates how the characters are filled and edged. The printer resets characters to solid fill without edging if no parameters are entered. • Fill Mode Defines the conditions in which characters are filled and edged (outlined).
• Edge Pen Specifies whether the pen used for edging the characters is white or black. 0 white edging 1 black edging This command specifies fill pattern type to the characters using the currently specified solid fill type and edge pen. The fill type and edge pen is valid to scalable font, while the edge pen is invalid to bitmap and stick fonts. The fill types: gray scale, cross hatch and raster fill (fill type 10, 11 and 21) are valid to bitmap fonts and stick fonts.
Character Plot Setting: CP spaces,lines(;) or CP(;) Parameter Format Range Default : : : : spaces clamped real -32768 to 32767 no default lines clamped real -32768 to 32767 no default This command shifts the pen the specified number of the spaces from the current pen location. The printer executes the carriage return and line feed if no parameters are entered. • Spaces Sets the number of spaces the pen moves horizontally.
• Lines Specifies the number of lines the pen will move vertically. The number is indicated by the cell height (of the current specified fonts) × the number of lines. positive value moves to the upper direction. negative value moves to the lower direction. line=0 stops a vertical move. This command moves the pen location the number of spaces and lines specified by the parameters.
Absolute Direction Setting: DI run,rise(;) or DI(;) Parameter Format Range Default : : : : run (or cos ) clamped real -32768 to 32767 1 rise (or sin ) clamped real -32768 to 32767 0 This command designates the slope and direction at which labels are printed. The printer sets the label direction to absolute and horizontal (default) if no parameters are entered. • Run Sets a move along X-axis of the label direction. positive value specifies the right direction.
• Rise Sets a move along the Y-axis of the label direction positive value specifies the upper direction. negative value specifies the lower direction. You must specify the slope using the run and rise parameters. You can select one of three ways to specify the rise and run: aspect ratio, number of measured units and the trigonometric functions cosine and sine. Refer to Figure 3.
You should specify both run and rise parameters. Run=0, Rise≠ 0 plotted in vertical mode. Run≠ 0, Rise=0 plotted in horizontal mode. Run=0 Rise=0 A Run=0 Rise=0 A Figure 3.67 Vertical and This command specifies the label direction using the run (or cosθ), rise (or sinθ) parameters. The line feed position depends on the character's slope by this command execution. You can specify the label direction for the bitmap fonts, but the characters are rotated only in 90° increments.
Bitmap fonts Other fonts Figure 3.68 Label direction comparison between bitmap and other fonts This command is effective until another DI or DR command is executed, the printer is initialized or reset.
Relative Direction Setting: DR run,rise(;) or DR(;) Parameter Format Range Default : : : : run clamped real -32768 to 32767 1% of P2X-P1X rise clamped real -32768 to 32767 0 This command sets the direction in which labeling is performed relative to the scaling points P1 and P2. The printer resets the label direction to relative and horizontal (default) if no parameters are entered. • Run Specifies the relative distance to the horizontal direction as a percentage.
This command specifies the label direction by the relative distance between P1 and P2 using the run and rise parameters. The line feed depends on the character's slope by this command execution. This command changes the label direction every time you change the P1 and P2 by the IP command. You can specify the label direction for bitmap fonts, but the characters are rotated only in 90° increments.
• Label Terminator Sets the label terminator using this command. ESC (1bHEX), ENQ (05HEX), “;” (3bHEX) are invalid as terminators. • Mode Determines whether the label terminator is printed or not. Mode=0: When the terminator is a control code only performs its function. When the terminator is a character code prints the label terminator and performs its function. Mode=1: When the terminator is a control code, the label terminator does not perform its function.
Defining Variable Text Path setting: DV path(,line;) or DV(;) Prameter Format Range Default : : : : path clamped integer 0,1,2 or 3 0 (horizontal) line clamped integer 0 or 1 0 (normal line feed) This command designates the text path for subsequent labels and the direction of line feeds. The printer resets the text path to horizontal with normal line feed (default) if no parameters are" entered. • Path Sets the location of each character in preceding character.
ABC Path=0 (0°) A B C Path=1 (-90°) CBA Path=2 (-180°) C B A Path=3 (270°) Figure 3.69 Text path example • Line Specifies the direction of line feeding. Line=0: Normal line feed. Feed a line clockwise (-90 degrees in the text path). Line=1: Reverse line feed. Feed a line counterclockwise (+90 degrees in the text path).
Line=0 ABC DEFG Path=0 (0°) DA EB FC G Path=1 (-90°) GFED CBA Path=2 (-180°) G CF BE AD Path=3 (-270°) Line=1 DEFG ABC Path=0 (0°) AD BE CF G Path=1 (-90°) CBA GFED Path=2 (-180°) G FC EB DA Path=3 (-270°) Figure 3.70 Line feed direction This command determines the directions of characters and line feed with the path parameters and line parameters respectively.
Extra Space Setting: ES width(,height;) or ES(;) Parameter Format Range Default : : : : width clamped real -32768 to 32767 0 height clamped real -32768 to 32767 0 This command changes the space amount between characters and lines. The printer resets the spaces and lines between characters for “no extra space” (default) if no parameters are entered. • Width Sets an increase or a reduction in the space amount between characters. The space is indicated by the font cell width (currently specified) x width.
Selecting Primary Font Setting: FI font ID(;) Parameter Format Range Default : : : : font ID integer 0 to 32767 no default This command assigns fonts for the font ID number and allows you to select it as standard font. This command selects the fonts assigned in the PCL mode as standard. The SS command enables you to use the selected font (when the SS command is in effect, you do not need to select it). When the selected font is proportional-spaced, the pitch is not changed.
Labeling Setting: LB text.. text label terminator Parameter Format Range Default : : : : text .... text character any characters no default This command labels (prints) the text using the currently defined font. • text...text Characters are drawn using the current selected font. Setting CR (0DHEX) and LF (0AHEX) causes the carriage return command to be executed. • Label Terminator Terminates this command. The text specified before the text terminator is set.
Labeling Origin Setting: LO position(;) or LO(;) Parameter Format Range Default : : : : position clamped integer 1 to 9, 11 to 19 and 21 1 This command changes the printing positions relative to the current pen location. The printer defaults to the label origin if no parameters are entered. • position Indicates the printing position relative to the current pen location within the range 1 to 9, 11 to 19 and 21 The dot indicates the current pen location.
Position=1 ABC Position=4 ABC Position=7 ABC Position=2 ABC Position=5 ABC Position=8 ABC Position=3 ABC Position=6 ABC Position=9 ABC Figure 3.71 Printing position (1) 11 to 19 sets the printing position where the labels are offset. (For 15, the labels are not offset. ) Position=11 ABC Position=14 ABC Position=17 ABC Position=12 ABC Position=15 ABC Position=18 ABC Position=13 ABC Position=16 ABC Position=19 ABC Figure 3.
For stick fonts, the label is offset by an amount equal to one half of the specified character's width. This command selects one of 18 printing positions specified using the position number parameter. Every time this command is executed, the carriage return position is updated to the most recent carriage return position This command is effective until another LO command is received, the printer is initialized or reset.
Selecting Alternate Font Setting: SA(;) This command selects the alternate font. This command selects and uses alternate font defined by the AD command. If a standard font has been specified, this causes a standard font to change to an alternate font, and the alternate font is used. This command functions the same as the shift out control character SO (0EHEX).
•n Determines whether bitmap font is valid or invalid 0 bitmap font is invalid. 1 bitmap font is valid. For a standard font or an alternate font, this command makes bitmap fonts or scalable fonts valid. This command is defaulted using the DF command. Standard Font Definition Setting: SD kind, value...
Example: The following command represents the default setting. SD 1,277,2, 0,3,9,4,11.5,5,0,6,0,7,48 Symbol set Font spacing Pitch Height Typeface Stroke weight Posture Kind=1:Selects the symbol set. Symbol Set Value 4 37 293 38 39 9 202 234 330 Table 3.39 Symbol set Description ISO 60 Norwegian V1 ISO 4 United Kingdom Windows 3.
Symbol Set Value 394 426 458 18540 173 205 269 621 14 78 174 19 83 180 308 21 53 277 309 341 373 405 501 565 629 Table 3.39Symbol set Description MC Text Ventura International Ventura US Wingdings PS Math Ventura Math Math-8 Symbol ISO 8859/1 Latin 1 (ECMA-94) ISO 8859/2 Latin 2 ISO 8859/9 Latin 5 ISO 11 Swedish ISO 17 Spanish Windows 3.1 Latin 5 PC-Turkish ISO 6 ASCII Legal Roman-8 Windows 3.0 Latin 1 PC-8 PC-8 Danish/Norwegian PC-850 Multilingual Pi Font PC-852 Latin 2 Windows 3.
Kind=2: Selects the spacing. Value = 0: Fixed spacing (default) Value = 1: Proportional spacing Kind=3: Specifies the number of characters per inch for the fixed-spaced font. Range 0 to 32767.9999 (default is 9) If proportional spacing is set, this setting is registered as a characteristic, but is invalid. Kind=4: Selects the font point size for the proportional font by the height of the character cell. Range 0 to 32767.9999 (default is 11.5) 1 inch is 72 points.
Kind=6: Selects the line thickness used in the font's design.
Kind=7:Selects the typeface. TypefaceFamily TypefaceBase Value (#) Value (#) 4096 0 4099 3 4101 5 4102 6 4113 17 4116 20 4140 44 4144 48 4148 52 4168 72 4197 101 4297 201 4314 218 4362 266 4398 302 4613 517 6826 2730 Table 3.
This command specifies the value required to select a standard font. The SS; enables you to select the specified font using this command. The kind and value parameters can not be omitted, but other parameters can be omitted.
Absolute Character Size Setting: SI width,height(;) or SI(;) Parameter Format Range Default : : : : width clamped real - 32768 to 32767 dependent* height clamped real - 32768 to 32767 dependent* *Depends on the pitch and font height set currently by the AC or SD command This command sets the size of characters in centimeters for labeling. The character size is designated depending on the SD or ADcommand if no parameters are entered. • Width Specifies the width in centimeters.
SI1,1; SI-1,1; Label direction 1cm 1cm 1cm 1cm SI-1,-1; SI1,-1; 1cm 1cm Figure 3.
This command sets the width and height in centimeters for the current specified font. The parameters for width and height must be specified together. If one of the parameters is omitted or is set to 0 {or both are (0,0)}, this command is ignored. When this command is performed after selecting a bitmap font using SB1;, the bitmap font is altered to a stick font, or printing will be performed using the font which is closest to the character height or width specified by this command.
Designates the slant of characters with tangent of angle. tan θ tan θ Positive slant Negative slant Figure 3.74 Positive and negative slant This command slants the characters per tangent θ in the vertical direction. The base of the character always stays on the horizontal. The change of slant does not affect the height of characters. This command does not slant any bitmap fonts.
Relative Character Size Setting: SR width height(;) or SR(;) Parameter Format Range Default : : : : width clamped real -32768 to 32767 0.75% of P2X-P1X height clamped real -32768 to 32767 1.5% of P2Y-P1Y This command sets the size of characters to a percentage of the between P1 and P2. The printer resets the relative character width to 0.75% of the distance (P2XP1X) and the height to 1.5% of the distance (P2Y-P1Y) if no parameters are entered.
Example: P2 (5000,5000) 2.45cm P1 (100,100) G 1.225cm IP100,100,5000,5000; SR10,20; width=(5000-100)×10%=490 plotter units or 1.225cm height=(5000-100)×20%=980 plotter units or 2.45 cm This command sets the width and height for the current selected font as a percentage of the distance between P1 and P2. A negative parameter will mirror characters the same as the SI command.
omitted or set to 0, this command is ignored. If this command is executed using the SB1; after a bitmap font, the bitmap font is changed to a stick font and the bitmap font characters are printed using a font that is closest to the character height or width specified by this command. This command is effective until another SR or SI command is executed, or the printer is initialized or reset. Selecting Standard Font SS(;) This command selects the standard font specified using the SD command.
Transparent Data Setting: TD mode(;) or TD(;) Parameter Format Range Default : : : : mode clamped integer 0 to1 0 (normal) This command allows a control code to be printed. This printer resets to the normal mode if no parameters are entered. • Mode Selects normal mode or transparent mode. Mode=0: Normal mode A control code is not printed. Mode=1: Transparent mode Specifies that all characters are printed including control codes. For the non-character code, a blank appears.
PJL Commands Introduction PJL (Printer Job Language) commands are a group of the commands which has the following functions: •Initializes or sets the print environment of the printer •Informs the computer of the Current Print Environment (by using the PJL status readback command) or the printer status PJL commands enable you to control the printer's print environment from an application software as you wish.
PJL Command Syntax and Format We are showing a PJL command example including the PJL SET command. PJL prefix PJL command Command modifier Parameter @PJL SET [LPARM:PCL] variable=value è[] PJL prefix: indicates the line is PJL command line. PJL command: one space is required before a command. Command modifier: enter command modifier, LPARM:PCL, when needed. enables to set PCL specific variables by inserting LPARM:PCL in the command line. Parameter: environment variable=its value; See Table 3.
:Tab (ASCII 9) :Line feed (ASCII 10) :Carriage return (ASCII 13) :Space (ASCII 32) :Escape (ASCII 27) :Form feed (ASCII 12) :one or more SP or HT Notes: • In this chapter for the PJL commands, the UEL (Universal Exit Language) command is shown as follows:UEL command:%12345XThe ESC sequence in this section is shown in the different manner from the section for PCL commands, and character codes are not quoted.
Print Environment Composition The print environment consists of the following four environments. Modified Print Environment (The processed data is printed out under this environment) ⇑ When the reset command, E is entered. (loaded) Can be changed by the PCL commands. PJL Current Environment When the UEL command or the PJL RESET command is entered. When a PJL reset condition occurs. ⇑ (loaded) Can be changed by the PJL SET command.
Factory Default Environment The Factory Default Environment is a group of the settings stored permanently in the printer. It's impossible to change the value of the Factory Default settings. The printer uses this environment only in the following cases. •When the printer has been turned on only after it was shipped from factory. •When the PJL INITIALIZE command has been entered. User Default Environment The User Default Environment can be set by the PJL DEFAULT command.
The following figure shows how the print environment settings are changed by PJL commands, PCL commands or PJL reset condition. Example of Paper Size Setting Modified Print PAPER=LETTER Environment LETTER PJL Current Environment PAPER=LETTER LETTER User default Environment PAPER=LETTER LETTER Factory Default PAPER=LETTER Environment LETTER The PJL INITIALIZE command is sent. The PJL DEFAULT command, @PJL DEFAULT èPAPER=LEGAL is sent. Figure 3.
A4 EXECUTIVE LEGAL A4 A4 LEGAL LEGAL LEGAL LEGAL LETTER LETTER LETTER The PJL command, @PJL SET èPAPER=A4 is sent. The command, @PJL ENTER èLANGUAGE= èPCL &l1A is sent. When the PJL reset condition occurs, the Setting returns to the User Default setting. *Confirm the Factory Default setting for your country by seeing the Operating Instructions for the printer. Figure 3.
PJL Reset Conditions The print environment resets to the User Default Environment in the following cases; •when the UEL command is sent •when “@PJL RESET” is sent •when a reset operation through a control panel (if your printer has) is executed •when the PJL JOB or EOJ command is sent Environment Variables Environment variables are variables to control the printer's print environment. The value of each environment variable can be changed by using the PJL SET or the PJL DEFAULT command.
Status Message The PJL USTATUS command makes the printer send automatically status message to the printer, when the printer's status is changed, a syntax error occurs, or unsupported option or outranged value is entered. The status message is formed with status code and display string. The status code shows the printer's status or an error with a number of five figures. The Status Code contains a list of the status codes. The display string shows the printer's status with ASCII characters.
Usage of Command ¬ Send the UEL (%-12345X) command followed with @PJL prefix to enter into the PJL mode. The print environment returns to the User Default Environment. - Use the PJL SET command to set the variables which can not be set by using the PCL commands. ® Enter into the PCL mode using the PJL ENTER command, and use the PCL commands to set the desired Modified Print Environment. ¯ Send the UEL command. The table 3.
Commands/Responses (Commands from Computer to Printer) %-12345X@PJL @PJL SET COPIES=2 @PJL SET LPARM:PCL FONTNUMBER=13 Comments sends the UEL command followed by the PJL prefix to enter the PJL mode. sets the number of copies to 2, and font number to 13 by using the PJL SET command. uses the PJL INQUIRE @PJL INQUIRE COPIES @PJL INQUIRE LPARM:PCL FONTNUMBER command to inquire the set number of copies and the set font number.
Commands/Responses (Commands from Computer to Printer) @PJL ENTER LANGUAGE=PCL Comments enters the PCL mode by using the PJL ENTER command. Edata.... sends print data to the printer. %-12345X sends the UEL command to terminate the job and return the print environment to the User Default setting. Table 3.
PJL Commands PJL Commands Function UEL command Comment Enter the PCL mode Set User Default Inquire User Default ECHO Send information Initialize Inquire PJL Current Default Reset Set PJL Current Environment USTATUS USTATUSOFF JOB Command Line %-12345X @PJL COMMENT remarks[] @PJL ENTER LANGUAGE=PCL [] @PJL DEFAULT [LPARM:PCL] variable =value[] @PJL DINQUIRE[LPARM:PCL] variable[] @PJL ECHO words[] @PJL INFO category[] @PJL INITIALIZE [] @PJL INQUIR
Entering the PJL mode Setting: %-12345X Response: (no response) Parameter: (no parameter) This command is effective in any language mode, and terminates the processing in the current language mode. When this command is entered in the PJL mode, all of the unprocessed commands are abandoned. To enter the PJL mode, send the PJL command prefix (@PJL) after the UEL command as shown below.
Entering from PJL mode to PCL mode Setting: @PJL ENTER LANGUAGE=PCL[] Response: (no response) Parameter: (no parameter) This command changes a printer language mode from the PJL mode to the PCL mode. The characters after LF are interpreted in the PCL mode. Setting User Default Setting: @PJL DEFAULT [LPARM:PCL] variable=value[] Response: (no response) Parameter: variable value •variable Enter the desired environment variable. The table 3.44 contains a list of environment variables.
Inquiring User Default Setting: @PJL DINQUIRE [LPARM:PCL] variable[] Response: @PJL DINQUIRE [LPARM:PCL] variable value Parameter: variable value (only in response) •variable Enter the environment variable you desire to inquire. •value The printer sends back the value of the selected User Default setting. This command enables you to inquire the User Default of the environment variable specified by the variable. The printer sends back a response in the format above.
ECHO Command Setting: @PJL ECHO words[] Response: @PJL ECHO words Parameter: words •words Enter characters (maximum 80) from ASCII 33 to 255, including SP and HT. This command does not affect a print environment. This command sends back only response including the specified words. The response data is stored in the printer's buffer until the computer reads the data.
•category ID CONFIG MEMORY PAGECOUNT STATUS VARIABLES USTATUS printer model number information on configuration total of user available memory he total number of pages printed out by the printer's engine the current printer status a list of environment variables, the available variable values and the current variable values variables and the values which are available by using the PJL USTATUS command This command sends information on the specified category to the computer.
Inquiring PJL Current Default Setting: @PJL INQUIRE [LPARM:PCL] variable[] Response: @PJL INQUIRE [LPARM:PCL] variable value Parameter: variable value (only in response) •variable Enter the desired environment variable. The table 3.44 contains a list of environment variables. The list shows which variables your printer supports. •value (of variable) The printer sends back the value of the selected setting.
Resetting Setting: @PJL RESET[] Response: (no response) Parameter: (no parameter) This command resets all the environment variables to the User Default settings (see Figure 3.75 Print environment). Setting PJL Current Environment Setting: @PJL SET [LPARM:PCL] variable=value[] Response: (no response) Parameter: variablevalue •variable Enter the desired environment variable. The table 3.44 contains a list of environment variables. The list shows which variables your printer supports.
USTATUS Command Setting: @PJL USTATUS variable=value[] Response: (no response) Parameter: variable value Variable DEVICE Value ON Function automatically sends a message to the computer when the printer status has been changed. VERBOSE also reports a syntax and a semantic error in the PJL command line, and a warning, added to the same function as in the Device On setting. OFF does not report any status change. JOB ON automatically reports start and end of the print job. OFF does not report.
This command does not return a response to the computer. The printer automatically sends a message in the following format, depending on the setting by the PJL USTATUS command.
•variable=PAGE value=ON @PJL USTATUS PAGE the total number of pages printed in the current job è •variable=TIMEDvalue=the time interval (from 5 to 300 seconds) @PJL USTATUS TIMED CODE=status code DISPLAY="display string" ONLINE=TRUE Unsolicited status message is generated automatically by the printer, while solicited status message is generated by the command such as the PJL INQUIRE, DINQUIRE or ECHO command.
USTATUSOFF Command Setting: @PJL USTATUSOFF[] Response: (no response) Parameter: (no parameter) This command sets the printer not to send automatically information on unsolicited status. You can get the same result as you sets all the variables of USTATUS command to off by using the PJL USTATUS command. If you use the PJL USTATUS command to turn off all the variables of the PJL USTATUS command, you need to set each variable to off.
JOB Command Setting: @PJL JOB [NAME=“job name”][START=first page] è [END=last page][] Response: (no response) Parameter: job namefirst pagelast page •job name Enter a line of characters (maximum 80) composed of ASCII 33 to 255, including SP and HT. The line must be quoted. •first page Enter the first page number of the job. The range is from 1 to 2147483647. The default is 1. •last page Enter the last page number of the job. The range is from 1 to 2147483647.
EOJ Command Setting: @PJL EOJ [NAME=“job name”][] Response: (no response) Parameter: job name •job name Enter a line of characters (maximum 80) composed of ASCII 33 to 255, including SP and HT. The line must be quoted. This command notifies the printer of the end of job, and resets the PJL Current Environment to User Default Environment. This command must be always used with the PJL JOB command in pairs.
(Commands sent from the computer) %-12345X@PJL @PJL USTATUS DEVICE=ON @PJL USTATUS JOB=ON @PJL USTATUS PAGE=ON @PJL USTATUS TIMED=10 @PJL JOB NAME="Example for PJL Command" @PJL ENTER LANGUAGE=PCL This is the first page of example of USTATUS Command. This is the second page.
@PJL USTATUS TIMED CODE=10001 DISPLAY="PRINTER READY" ONLINE=TRUE @PJL USTATUS PAGE 1 @PJL USTATUS TIMED CODE=10001 DISPLAY="PRINTER READY" ONLINE=TRUE @PJL USTATUS PAGE 2 @PJL USTATUS JOB END NAME="End of PJL Example" PAGES=2 @PJL USTATUS TIMED CODE=10001 DISPLAY="PRINTER READY" ONLINE=TRUE
(Output) This is the first page of example of USTATUS Command. This is the second page.
Environment variables and Values Environment AUTOCONT BINDING CLEARABLE WARNINGS Value (OFF) ON (LONGEDGE) SHORTEDGE JOB (ON) STOP COPIES (1) to 999 CPLOCK (OFF) ON DENSITY DUPLEX 1 to 5 (OFF) ON ECONOMODE (TONRSAVR) Details The auto continue feature. The default relationship of the front and back images on pages printed in duplex printing. Clearable Warnings are the messages that are not critical, and can be cleared by pressing Continue key.
Environment FORMLINES INTRAY1 * INTRAY2 * INTRAY3 * Table 3.44 A Value 5 to 128 Details The number of line per page. The change of PAPER and ORIENTATION settings may override this setting. If one of their settings is changed, FORMLINES will automatically update its value to keep the same line space. (UNLOCKED) Locks Multi Purpose Tray from auto-selection LOCKED feature of Paper Input. (UNLOCKED) Locks Standard Cassette from auto-selection LOCKED feature of Paper Input.
Environment INTRAY1SIZE * Value Details The paper size in Multi Purpose Tray. (LETTER) LEGAL (A4) EXECUTIVE LEDGER A3 CUSTOM COM10 MONARCH C5 DL B5 INTRAY2SIZE * (LETTER) The paper size in Standard Cassette. LEGAL (A4) EXECUTIVE LEDGER A3 INTRAY3SIZE * (LETTER) The paper size in Option Cassette. This LEGAL command is effective only when the Optional Units is installed.
Environment IOBUFFER Value Details ON I/O Buffer size of the printer. When Auto is (AUTO) selected, I/O Buffer size is automatically decided for the printer’s installed memory. When On is selected, the value of IOSIZE becomes the I/O Buffer size. IOSIZE 10-max memory I/O Buffer size of the printer. To this command effective, I/O Buffer’s setting has to be On. LANG ENGLISH The language of displayed message on the display panel and status feedback display panel. LOWTONER (CONTINUE) Low toner message.
Environment ORIENTATION Value (PORTRAIT) LANDSCAPE PAGEPROTECT ON (PAGEPROTECTION) (AUTO) Details The paper orientation, Portrait or Landscape. The Page protection feature. When printing very dense or complex image, especially HpGL/2 image, the printer sometimes causes overrun error. The page protection feature can keep printer memory to avoid such a overrun. The value can be changed to any legal value at any time, in spite of current free memory’s amount or current resolution.
Environment PAPER PASSWORD POWERSAVE Value (LETTER) LEGAL (A4) LEDGER A3 EXECUTIVE COM10 MONARCH C5 DL B5 CUSTOM (0) TO 65535 (ON) OFF Details The paper size. The password for PJL security. Power save feature reduces power supplied to the printer, if the printer is idle for a certain time. The time depends on the printer. RESOLUTION 300,(600) The print resolution, 600 dpi or 300 dpi(dots per inch). Table 3.
Environment RET (EET) Value Details With EET turned on, the printer will smooth the OFF jagged edges of text and line art, and improves LIGHT the printing quality. This feature may not need to MEDIUM be adjusted usually because the default settings DARK prints well for almost all type’s printing. TIMEOUT 5 to 300 The duration of I/O timeout in seconds.
Environment FONTNUMBER Value 0 (or 1) to n Details The value for Font number. This value depends on the current font source. If the font source includes a default-marked font, the value start from 0. Otherwise, the value start from 1. The upper limits changes depending on the number of font installed in the font source. For instance, if the font source includes 50 fonts and default-marked font, the value range of FONTNUMBER is from 0 to 49.
Environment PITCH Value 0.44 to 99.99 (10.00) PTSIZE 4.0 to 999.75 (12.00) SYMSET Details The pitch of default font in number of characters per inch. (The default font has to be fixed-pitch scalable font.) The user can specify the pitch value to two decimal places. The height of the default font in units of point. (The default font has to be proportional scalable font) The user can specify the point size to a quarter of a point. The symbol set. PC8 ROMAN8 WIN31J Another Symset Table 3.
Status Code IF DEVICE,JOB or PAGE parameter of the PJL USTATUS command are set to ON (and verbose for DEVICE) or TIMED parameter is set to time interval except 0, the printer sends back unsolicited status message using status code and display string when the printer status changes. The format is; CODE=Status CODE DISPLAY=“Display String” Status code shows syntax and semantic errors in the PJL command line, and a warning with a number of five figures.
Informational Message Status Code 10001 Display String ON LINE 10003 10004 WARM UP INITIALIZING 10005 INITIALIZING 10006 TONER LOW 10014 10015 10018 PRINTING… PRINTING… INITIALIZING 10023 10024 10025 10029 Processing JOB REMAINING DATA ACCESS DENIED PRINTING… 10050 10106 INITIALIZING TONER EMPTY Table 3.45 Informational Message Status The printer is in the online state and ready to print. The printer is warming up. The printer is executing internal diagnostic after power on.
Paper Tray Status (12xyy) Paper Tray status message occur when a tray is empty, low or medium. Paper tray status message are in format 12xyy. The following tables list the X and Y values for these messages. X = Tray Code 0 2 3 Tray (Cassette) MP tray Standard Cassette Optional Cassette yy = Status Code Tray (Cassette) Status 11 Paper Empty (warning error) 12 Paper Low (warning error) 13 Paper Medium (warning error) 21 Paper Empty (Off line error) Table 3.
PJL Parser Errors (20xxx) These status codes denote PJL parser errors. The entire PJL command line is ignored. Status Code 20001 20002 20004 20005 20006 Meaning General Syntax error (entire PJL command ignored) Unsupported command Unsupported personality, system, or I/O port PJL command buffer overflow Illegal character or line terminated by the Universal Exit Language command 20007 or [] missing after closing quotes 20008 Alphanumeric value holds an invalid character.
Status Code 20017 Meaning Order of LPARM:PCL and option in command line is not correct. 20018 Alphanumeric command is not sent. 20019 Numerical values have been sent incorrectly in place of alphanumeric values. 20020 A character line has been sent incorrectly in place of alphanumeric values. 20021 Command modifier except LPARM:PCL has been sent (only LPARM:PCL is supported as command modifier).
PJL Parser Warnings (25xxx) This group of status codes denote PJL parser warnings, which indicates that pats of the PJL command is ignored. Status Code 25001 25002 25003 25004 25005 25006 25007 25008 25009 25010 25011 Meaning General warning error (part of the PJL command ignored) No PJL prefix Too long alphanumeric values Too long character line Too long numerical value Unsupported option name No value for option Type of values (character or numerical value) is not proper.
PJL Semantic Errors (27xxx) This group of status codes denote PJL semantic error. As much of the command is executed as possible, depending on the current configuration of the printer. Status Code 27001 27002 Meaning General semantic error EOJ command encountered without a previously matching JOB command. An EOJ command does not have a matching JOB command if the number of valid EOJ commands received is greater than the number of valid JOB commands received.
Auto-Continuable Conditions (30xxx) This list specifies the set of PJL error codes and corresponding control panel display strings for auto-continuable conditions. If no action is taken, the device automatically continues if auto-continue is set to true (expect for 30035 and 30036 error) Status Code 30016 Display String MEM OVERFLOW 30017 30106 OVER RUN TONER EMPTY 30206 TONER LOW Table 3.50 Auto-Continuable Conditions Error Name Page overflow, image overflow, or download overflow has occurred.
Potential Operator Intervention Conditions (35xxx) This list specifies the set of PJL error codes and corresponding control panel display strings for conditions where operator intervention may be required. The device says “online” and continues to operate, possibly with reduced functionality. Data may be lost. Status Code Display String Error Name 35029 IMAGE CTL 35103 MAINTE M86 Fuser unit reaches time for replacement. 35104 MAINTE M88 Pick-up roller reaches time for replacement.
Operator Intervention Conditions (40xxx) This list specifies the set of PJL error codes and corresponding control panel display strings for conditions where operator intervention is required. Printing cannot continue until the condition is resolved. Status Code 40000 40021 40048 40049 40061 40079 Display String ON LINE (SLEEP) COVER OPEN [PJL OPMSG] [PJL STMSG] CALL SERVICE E52, CALL SERVICE E53 OFF LINE Error Name The printer is in power save mode. Top Cover is open. SIMM RAM Error (Slot 2).
Paper Loading (41xyy) Paper loading message are send when one of the paper input sources is put of paper and there is no other input source available and loaded with the correct paper size.
Paper Jam Message (421xx) yy = Jam Location Tray or Cassette 02 PAPER JAM 01 04 PAPER JAM 02 06 PAPER JAM 03 08 DUPLEX ERROR 10 DUPLEX JAM Table 3.54 Paper Jam Message Hardware Errors (50xxx) These status codes are sent out when a hardware problem exists and a printer is working well enough to send status messages.