ページ1に含まれる内容の要旨
D512 PCL PROGRAMMING MANUAL
PN: 9001180B
ページ2に含まれる内容の要旨
SATO America, Inc. 10350A Nations Ford Road Charlotte, NC 28273 Main Phone: (704) 644.1650 Technical Support: (704) 644.1660 Technical Support Fax: (704) 644.1661 E-Mail: satosales@satoamerica.com techsupport@satoamerica.com www.satoamerica.com Copyright 2008 SATO America, Inc. All rights reserved WARNING THE EQUIPMENT REFERENCED IN THIS DOCUMENT COMPLIES WITH THE REQUIREMENTS IN PART 15 OF FCC RULES FOR A CLASS B COMPUTING DEVICE. OPERATION OF THIS EQUIPMENT IN A RESIDENTIAL AREA MAY CAUSE UN
ページ3に含まれる内容の要旨
Table of Contents PCL Emulation PCL Emulation ........................................................................................................................ 1-2 Selecting PCL Emulation ...................................................................................................................... 1-2 Page Formatting ................................................................................................................................... 1-3 Font and Symbol Set Support...
ページ4に含まれる内容の要旨
PN: 9001180B SATO D512 PCL PROGRAMMING MANUAL
ページ5に含まれる内容の要旨
1PCL EMULATION • Selecting PCL Emulation • Page Formatting • Font and Symbol Set Support • Command Structure • PCL Emulation Commands • GL/2 Commands • Raster Image Graphics •Macros SATO D512 PCL Programming Manual Page 1-1
ページ6に含まれる内容の要旨
Unit 1: PCL Emulation PCL EMULATION The D512 printer supports the Hewlett-Packard Company’s LaserJet Printer Command Language. This chapter discusses PCL emulation commands, along with resident PCL emulation font and symbol set support. To determine which commands your printer supports, see Section, “PCL Support.” SELECTING PCL EMULATION USING YOUR SOFTWARE PROGRAM The D512 requires a PJL prologue, or series of commands, at the start of each print job, including the Printer Job Language (PJL)
ページ7に含まれる内容の要旨
Unit 1: PCL Emulation PAGE FORMATTING The printable areas and logical pages for PCL emulation (both portrait and landscape orientation) are illustrated below. See the Legend that follows for definitions of areas A through I. PRINTABLE AREAS Legend: A Portrait physical page width and landscape physical page length B Portrait physical page length and landscape physical page width C Portrait logical page width D Landscape logical page width E Distance between the side edge of the physical page and
ページ8に含まれる内容の要旨
Unit 1: PCL Emulation FONT AND SYMBOL SET SUPPORT Your printer has 10 resident scalable PCL fonts. Several parameters are used to select a font from the data stream. These include symbol set, spacing, point, or pitch, style, weight, and typeface number. For scalable fonts, you can vary the size of a font by specifying pitch or point size (point size for proportional fonts, pitch for fixed space fonts. A symbol set defines which characters are available for a font and the code point for each o
ページ9に含まれる内容の要旨
Unit 1: PCL Emulation SELECTING SYMBOL SETS FOR THE SATO D512 To determine if a font or typeface supports a symbol set, see the complete listing of PCL emulation fonts and symbol sets in the table below. Table 1-2: PCL Emulation Symbol Sets Typeface / Symbol Set Symbol Set ID Courier Regular Univers Medium Univers Bold CG Triumvirate Condensed Bold Roman Pillar Regular Roman Pillar Italic Roman
ページ10に含まれる内容の要旨
Unit 1: PCL Emulation COMMAND STRUCTURE This section introduces the different types of PCL emulation commands and their structure, or syntax. It also demonstrates how you can link commands to abbreviate them. CONTROL CODES Control Codes are single-character instructions. Table 1-3: Control Codes Code Dec Hex Function Result BS 8 08 Backspace Moves the cursor toward the left margin one horizontal space equal to the last printed character HT 9 09 Horizontal Tab Moves the cursor to the next def
ページ11に含まれる内容の要旨
Unit 1: PCL Emulation COMMAND STRUCTURE Most PCL emulation commands have the following structure: ESC & a # C Spaces have been added to this example for readability. The command parameter variables are indicated by a number sign (#). Table 1-4: Description of Command Structure Element Description ESC Decimal 27 or hex 1B & Parameterized character from American National Standard Code for Information Interchange (ASCII) table (ranging from 33 to 47 decimal) a Group character from ASCII table (r
ページ12に含まれる内容の要旨
Unit 1: PCL Emulation Use the plus symbol (+) or the minus symbol (-) to select a position relative to the current cursor position. For example: ESC &a6C Move to horizontal cursor position, column six ESC &a+6C Move six columns to the right of the current position ESC &a-6C Move six columns to the left of the current position LINKING COMMANDS You can combine PCL emulation commands by linking them if the first 3 bytes of the commands are identical. The combined, short form sends the first 3 byt
ページ13に含まれる内容の要旨
Unit 1: PCL Emulation PCL EMULATION COMMANDS See the following tables for a listing of the commands grouped by function. To determine which commands your printer supports, see “Table 3-1: PCL Emulation Commands” in the PCL Support section. PCL EMULATION COMMANDS BY FUNCTION Table 1-5: Job Control Command / Parameters Function / Result ESC E Printer Reset - • Prints any partial pages. • Resets printer environment to defaults. • Deletes all temporary downloaded resources. ESC &d#A Number of Coll
ページ14に含まれる内容の要旨
Unit 1: PCL Emulation Table 1-5: Job Control (continued) Command / Parameters Function / Result ESC &u#D Unit of Measure Range = 300 Sets the size for the PCL Unit (units per inch). The Unit of Measure defines the unit used in the following commands: ESC • Horizontal Cursor Position by PCL Unit ( *p#X) ESC • Vertical Cursor Position by PCL Unit ( *p#Y) ESC • Horizontal Rectangle Size by PCL Unit ( *c#A) ESC • Vertical Rectangle Size by PCL Unit ( *c#B) The Unit of Measure also affects the round
ページ15に含まれる内容の要旨
Unit 1: PCL Emulation Table 1-6: Page Control (continued) Command / Parameters Function / Result ESC &c#T Character Text Path Direction 0 Horizontal Printing Vertically rotates text for use in vertical writing, such as printing -1 Vertical Rotated Printing Japanese text. ESC &a#L Set Left Margin # = Column Sets the left margin to the left edge of the designated column. Default = 0 Note: The column width is defined by the space character of the active font and the Horizontal Motion Index (HMI).
ページ16に含まれる内容の要旨
Unit 1: PCL Emulation Table 1-6: Page Control (continued) Command / Parameters Function / Result ESC &l#D Set Line Spacing (Alternative Method) 1 1 line/inch Specifies VMI in lines per inch. 22 lines/inch Notes: 33 lines/inch • Unsupported values are ignored. 44 lines/inch • Use of this command alters any earlier VMI setting. 6 6 lines/inch (Default) 88 lines/inch 12 12 lines/inch 16 16 lines/inch 24 24 lines/inch 48 48 lines/inch ESC &a#G Duplex Page Side Selection This command is parsed and i
ページ17に含まれる内容の要旨
Unit 1: PCL Emulation Table 1-7: Cursor Positioning Command / Parameters Function / Result ESC &a#C Horizontal Cursor Position (in Columns) 1 # = number of Columns Moves the cursor to a new position along the horizontal axis. Note: The column width is determined by the space character width of the active font or the Horizontal Motion Index (HMI), if set. ESC &a#H Horizontal Cursor Position (in Decipoints) 1 # = number of Decipoints Moves the cursor to a new position along the horizontal axis.
ページ18に含まれる内容の要旨
Unit 1: PCL Emulation Note: For the commands listed in the following table, font selection is based on all parameters set following the best fit selection rules. Table 1-8: Font Selection Command / Parameters Function / Result ESC (# (primary) Select Symbol Set ESC )# (secondary) See Table 9-2 for the symbol sets which are supported. # = symbol set ID ESC (s#P (primary) Select Spacing ESC )s#P (secondary) Selects a font with proportional or fixed spacing. 0 Fixed (Default) 1 Proportional ESC (s
ページ19に含まれる内容の要旨
Unit 1: PCL Emulation Table 1-8: Font Selection (continued) Command / Parameters Function / Result ESC (s#B (primary) Select Stroke Weight ESC )s#B (secondary) Selects a font with a particular thickness. -7 Ultra Thin Note: This command will not alter the stroke weight of an available font. -6 Extra Thin See Table1 in this section “Forward and Backward Compatibility Font -5 Thin Selection Commands” for the stroke weight variations available for the -4 Extra Light resident fonts. -3 Light -2 D
ページ20に含まれる内容の要旨
Unit 1: PCL Emulation Table 1-8: Font Selection (continued) Command / Parameters Function / Result ESC &t#P Text Parsing Method 0, 1 1 byte characters Communicates to the PCL parser whether character codes are interpreted 21 1 or 2 byte characters as 1-byte or 2-byte character codes. This command is parsed and 31 1 or 2 byte characters ignored. 38 1 or 2 byte characters 1008 1, 2, or 3 byte characters (UTF-8) ESC &k#S Select Primary and Secondary Pitch 0 10.00 cpi Selects the pitch for the pri