SATO D512 PCL User Manual

D512 PCL PROGRAMMING MANUAL
PN: 9001180B

SATO America, Inc.

10350A Nations Ford Road

Charlotte, NC 28273

Main Phone: (704) 644.1650

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 UNACCEPTABLE INTERFERENCE TO RADIO AND TV RECEPTION.

Table of Contents

PCL Emulation
PCL Emulation ........................................................................................................................ 1-2
Selecting PCL Emulation ...................................................................................................................... 1-2
Page Formatting ................................................................................................................................... 1-3
Font and Symbol Set Support............................................................................................................... 1-4
Command Structure.............................................................................................................................. 1-6
Command Structure.............................................................................................................................. 1-7
PCL Emulation Commands .................................................................................................................. 1-9
GL/2 Commands................................................................................................................................. 1-27
Raster Image Graphics....................................................................................................................... 1-30
Macros ................................................................................................................................................ 1-38
Printer Job Language
Printer Job Language.............................................................................................................. 2-2
PJL Command Notation........................................................................................................................ 2-2
Kernel Commands ................................................................................................................................ 2-3
Job Separation Commands .................................................................................................................. 2-4
Environment Commands and Variables ............................................................................................... 2-7
Status Readback Commands ............................................................................................................. 2-12
Status Message Format...................................................................................................................... 2-18
PCL Support
PCL Support............................................................................................................................ 3-2
PJL Support
Printer Job Language Support ................................................................................................ 4-2
Barcode Commands
Bar code Commands............................................................................................................... 5-2
Two-dimensional bar codes.................................................................................................................. 5-5
Printer Language Change Commands
Setting the Printer to SBPL Language .................................................................................... 6-2
Setting the Printer to PCL Language....................................................................................... 6-2
SATO Contacts
SATO Group of Companies .................................................................................................... 7-2
SATO D512 PCL PROGRAMMING MANUAL PN: 9001180B
PN: 9001180B SATO D512 PCL PROGRAMMING MANUAL
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
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) Enter Language Command. See “ENTER LANGUAGE Command” in Printer Job Language section for more information. See “Printer Job Language” in the Printer Job Language section for the syntax and use of PJL. An example of a well-structured PJL prologue would be the following:
esc
[
]%-12345X @PJL SET LCUSTOMPAPERUNITS=INCHES @PJL SET LCUSTOMPAPERHEIGHT=6 @PJL SET LCUSTOMPAPERWIDTH=4 @PJL SET RESOLUTION=300 @PJL ENTER LANGUAGE=PCL
Page 1-2 SATO D512 PCL Programming Manual
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.
P
RINTABLE 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 the logical
page in portrait
F Distance between the side edge of the physical page and the logical
page in landscape
G Distance between the top and bottom edge of the physical page and
logical page
H Distance between the left and right edge of the physical page and the
printable area in portrait, or distance between the top and bottom edge of the physical page and printable area in landscape
I Distance between the top and bottom edge of the physical page and the
printable area in portrait, or distance between the left and right edge of the physical page and the printable area in landscape
SATO D512 PCL Programming Manual Page 1-3
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 of these characters. Your printer supports 16 resident symbol sets. The table beginning on page 1-5 shows the symbol sets available for each font in PCL emulation. Not all fonts support all symbol sets.
S
TANDARD PCL EMULATION FONTS
The following table lists the parameters to be used in the font selection commands for each of the10 standard PCL emulation fonts.
Table 1-1: Forward and Backward Compatibility Font Selection Commands
Forward and Backward Compatibility Mode
Standard PCL Emulation Font Name
Courier Regular 0 0 0 4099
Univers Medium 1 0 0 4148
Univers Bold 1 0 3 4148
CG Triumvirate Condensed Bold 1 4 3 4100
Roman Pillar Regular 0 0 0 30211
Roman Pillar Italic 0 1 0 30211
Roman Pillar Bold 0 0 3 30211
Roman Pillar Bold Italic 0 1 3 30211
OCR-A 0 0 0 23584
OCR-B 0 0 0 23590
Spacing Style Wei ght Typ ef ace
Page 1-4 SATO D512 PCL Programming Manual
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 Pillar Bold
Roman Pillar Bold Italic
OCR-A
OCR-B
Indicates Typeface supports the specified Symbol Set.
US Ascii (0U)
Windows Latin 1 (19U)
Windows Latin 1 (9E)
Windows Latin 1 (5T)
Windows Latin 1 (19L)
Windows Cyrillic (9R)
0U
19U
9E
5T
19L
9R
Indicates Typeface does not support the specified Symbol Set.
Windows Greek (9G)
9G
ISO8859-1 (0N) (Latin 1)
ISO8859-2 (2N) (Latin 2)
0N
2N
ISO8859-9 (5N) (Latin 5)
ISO8859-10 (6N) Latin 6)
5N
6N
ISO8859-5 (10N) Cyrillic)
Roman 8 (8U)
10N
8U
IBM CP850 (12U)
12U
OCR-A (0O)
0O
OCR-B (1O)
1O
SATO D512 PCL Programming Manual Page 1-5
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.
C
ONTROL 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 defined tab stop
LF 10 0A Line Feed Advances the cursor to the same horizontal position on the following line as
determined by either the Vertical Motion Index (VMI) or Set Line Spacing command
FF 12 0C Form Feed Advances the cursor to the same horizontal position at the top margin of the
next page
CR 13 0D Carriage Return Moves the cursor to the left margin
SP 32 20 Space Moves the cursor to the right one column
SI 15 0F Primary Font Selects the primary font
SO 14 0E Secondary Font Selects the secondary font
OMMANDS
C
PCL commands are multibyte strings (also known as “escape sequences”) that begin with the Escape control code (
ESC
, ¬, decimal 27, or hexadecimal 1B). The
ESC
control code notifies the printer that the characters that follow are to be interpreted as part of a command and are not control codes or data to be printed.
Page 1-6 SATO D512 PCL Programming Manual
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
& Parameterized character from American National Standard Code for Information
a Group character from ASCII table (ranging from 96 to 126 decimal) that specifies a
# Decimal character string value within specified numeric ranges; may be preceded by a +
Decimal 27 or hex 1B
Interchange (ASCII) table (ranging from 33 to 47 decimal)
group type of control
or - sign and contain a decimal point
C Termination character from ASCII table (ranging from 64 to 94 decimal)
C
OMMAND PARAMETERS
A command parameter sets the value for a command. This value stays constant until either a different value resets the command or a command resets the printer to the default values. For example, after the printer receives a command that selects a right margin beginning at column 63, the right margin of each printed page begins at column 63. That margin stays constant until a right margin command with a different value resets it or until the printer is reset.
Parameters for each command are listed in the command tables beginning on page 9. Use the Symbol Set Tables to determine the decimal or hexadecimal value for each parameter. To determine a decimal or hex value, first locate the value of the parameter you require in the Symbol Set Table. The decimal value is the value shown in the bottom of the cell or box with that parameter. To find a hex value, go straight up the grid from the desired parameter and read the value in the top heading. This is the first character of the hex value. Next, go straight across the grid to the left of the parameter and read the value in the left column heading. This is the second
character of the hex value. For example,
ESC
(¬) is coded 1B in Hex and 27 in decimal. (Any one of the three values ¬, 1B, or 27 might be used in your application. Read your documentation to determine which to use.) The example sets the pitch of the primary font to16.66 characters per inch.
Example:
ESC
(s16.66H
•Decimal: 27 40 115 49 54 46 54 54 72
•Hex: 1B 28 73 31 36 2E 36 36 48
SATO D512 PCL Programming Manual Page 1-7
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
L
INKING 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 bytes only once in the string. To combine commands:
Use the first 3 bytes (characters) of the command only once at the start of the command string.
Make the last letter of each command in the string lowercase.
Capitalize the last letter of the string.
For example, notice that the first 3 bytes of these two commands are the same:
ESC
(s10H Select 10 characters per inch
ESC
(s4099T Select Courier typeface
To combine these two commands, use this form:
ESC
(s10h4099T
which is 3 bytes shorter than the long form:
ESC
(s10H
ESC
(s4099T
You can combine more than two commands; for example, you can add Select Stroke Weight
ESC
Bold (
(s3B) to the previous two commands:
ESC
(s10h3b4099T
or in the long form:
ESC
(s10H
ESC
(s3B
ESC
(s4099T
Page 1-8 SATO D512 PCL Programming Manual
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 E
MULATION 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
0 = Collation off
1 … 999 (number of Copies)
ESC
&l#X
# = number of Copies (1 to 32767)
Default = 1
ESC
&l#S Simplex/Duplex Print
ESC
&l#U
# = number of Decipoints
Range = -32767 to 32767
(1 Decipoint = 1/720 inch)
Default = 0
ESC
&l#Z
# = number of Decipoints
Range = -32767 to 32767
(1 Decipoint = 1/720 inch)
Default = 0
Number of Collated Copies
Turns collation of pages off or sets the number of collated copies.
Number of Copies
Affects the page currently in process and subsequent pages.
This command is parsed and ignored.
Long-Edge Offset Registration
Also known as Left Offset.
Adjusts placement of logical page along the width of the physical page.
Short-Edge Offset Registration
Also known as Top Offset.
Adjusts placement of logical page along the length of the physical page.
SATO D512 PCL Programming Manual Page 1-9
Unit 1: PCL Emulation
Table 1-5: Job Control (continued)
Command / Parameters Function / Result
ESC
&u#D
Range = 300
ESC
% – 12345X Universal Exit Language (UEL) / Start of PJL
Unit of Measure
Sets the size for the PCL Unit (units per inch).
The Unit of Measure defines the unit used in the following commands:
• Horizontal Cursor Position by PCL Unit (
• Vertical Cursor Position by PCL Unit (
• Horizontal Rectangle Size by PCL Unit (
• Vertical Rectangle Size by PCL Unit (
The Unit of Measure also affects the rounding of character escapements and the Horizontal Motion Index.
Note: This command does not affect the interpretation of binary raster data for bitmapped fonts, raster graphics, or user defined fill patterns.
This command terminates the current printer language and allows switching into PJL. For more information, see “UNIVERSAL EXIT LANGUAGE Command” in Section 2, Printer Job Language.
ESC
ESC
ESC
*p#X)
*p#Y)
ESC
*c#A)
*c#B)
Table 1-6: Page Control
Command / Parameters Function / Result
ESC
&l#A Set Page Size
This command is parsed and ignored.
ESC
&l#H Paper Source
This command is parsed and ignored.
ESC
&f#G Set Universal Width
This command is parsed and ignored.
ESC
&f#F Set Universal Height
This command is parsed and ignored.
ESC
&f#O Set Universal Feed Direction
This command is parsed and ignored.
ESC
&f#W [custom name]
# = number of bytes in the custom name
ESC
&l#O
0 Portrait (Default) 1 Landscape 2 Reverse Portrait 3 Reverse Landscape
ESC
&a#P
# = Degrees (0, 90, 180, 270)
Default = 0
Set Universal Custom Name
This command is parsed and ignored.
Select Orientation
Specifies the position of the logical page with respect to the physical page.
Note: This setting resets margins, the number of printable lines per page, and the cursor position.
Print Direction
Rotates the coordinate system counter-clockwise in 90° increments with respect to the current orientation.
Note: Margins are not rotated or cleared.
Page 1-10 SATO D512 PCL Programming Manual
Unit 1: PCL Emulation
Table 1-6: Page Control (continued)
Command / Parameters Function / Result
ESC
&c#T
0 Horizontal Printing
-1 Vertical Rotated Printing
ESC
&a#L
# = Column
Default = 0
ESC
&a#M
# = Column
Default = Logical Page Width
ESC
9 Clear Horizontal Margins
ESC
&l#E
# = number of lines
Default = 3 (1/2 inch)
ESC
&l1T Job Separation
ESC
&l#F
# = number of lines
Default = 60 or 64 (Country specific)
ESC
&l#G Set Output Bin
ESC
&l#L
0 Off 1 On (Default)
ESC
&k#H
# = number of 1/120 inch increments
(Valid to 4 decimal places)
ESC
&l#C
# = number of 1/48 inch increments
(Valid to 4 decimal places)
Default = 8
Character Text Path Direction
Vertically rotates text for use in vertical writing, such as printing Japanese text.
Set Left Margin
Sets the left margin to the left edge of the designated column.
Note: The column width is defined by the space character of the active font and the Horizontal Motion Index (HMI).
Set Right Margin
Sets the right margin to the right edge of the designated column.
Note: The column width is defined by the space character of the active font and the HMI.
Clears left and right margins.
Set Top Margin
Sets the number of lines between the top of the physical page and first line of print. Line height is determined by the current Vertical Motion Index (VMI) and/or line spacing value.
Note: Setting a top margin of 0 results in the first line of text falling outside of the printable area.
This command is parsed and ignored.
Set Text Length
Sets the bottom margin length in lines, measured from the first line of the page.
Text Length equals Logical Page Length –1 inch (–1/2 inch for top and – 1/2 inch for bottom).
This command is parsed and ignored.
Skip Perforation
Perforation area includes the area from the bottom margin of the current page to the top margin of the next page. When skipping perforations, a line feed past the bottom margin ejects a page and places the cursor at the top margin of the next page.
Set Horizontal Motion Index (HMI)
Sets the width of all characters for fixed-space fonts. Sets only the width of the space for proportional spaced fonts.
Set Vertical Motion Index (VMI)
Sets Vertical Motion Index in 1/48 inch increments. The VMI determines the vertical distance between lines.
Notes:
• Use of this command alters any previous Set Line Spacing command settings.
SATO D512 PCL Programming Manual Page 1-11
Unit 1: PCL Emulation
Table 1-6: Page Control (continued)
Command / Parameters Function / Result
ESC
&l#D
1 1 line/inch 22 lines/inch 33 lines/inch 44 lines/inch 6 6 lines/inch (Default) 88 lines/inch 12 12 lines/inch 16 16 lines/inch 24 24 lines/inch 48 48 lines/inch
E
SC
&a#G Duplex Page Side Selection
ESC
&l#P
# = number from 0 to 14 0 = default page length is used (1 to 14 = new page length is set)
ESC
&k#W Text Scale Mode
Set Line Spacing (Alternative Method)
Specifies VMI in lines per inch.
Notes:
• Unsupported values are ignored.
• Use of this command alters any earlier VMI setting.
This command is parsed and ignored.
Set Page Length
Sets the logical page length in number of lines.
Notes:
• This command is sent at the beginning of a page in a print job and prior to any printable data.
• When the command is sent, the current page is closed and printed.
• Unsupported values are ignored.
This command is parsed and ignored.
Page 1-12 SATO D512 PCL Programming Manual
Unit 1: PCL Emulation
Table 1-7: Cursor Positioning
Command / Parameters Function / Result
ESC
&a#C
# = number of Columns
ESC
&a#H
# = number of Decipoints
1
1
(1 Decipoint = 1/720 inch)
ESC
*p#X
# = number of PCL Units
ESC
&a#R
# = number of Rows
ESC
&a#V
# = number of Decipoints
1
1
1
(1 Decipoint = 1/720 inch)
ESC
*p#Y
# = number of PCL Units
ESC
= Half Line-Feed
ESC
&k#G
1
0 CR=CR, LF=LF, FF=FF (Default) 1 CR=CR+LF, LF=LF, FF=FF 2 CR=CR, LF=CR+LF, FF=CR+FF 3 CR=CR+LF, LF=CR+LF,
FF=CR+FF
ESC
&f#S
0 Push 1 Pop
1
Parameter preceded by + or - sign denotes a relative cursor move from the current cursor position. Parameter without a sign
denotes an absolute cursor move from the top left margin.
Horizontal Cursor Position (in 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.
Horizontal Cursor Position (in Decipoints)
Moves the cursor to a new position along the horizontal axis.
Horizontal Cursor Position (in PCL Units)
Moves the cursor to a new position along the horizontal axis.
Note: PCL units are set by the Unit-of-Measure Command.
Vertical Cursor Position (in Rows)
Moves the cursor to a new position along the vertical axis.
Note: Row height is determined by either the Vertical Motion Index (VMI) or the Set Line Spacing Command.
Vertical Cursor Position (in Decipoints)
Moves the cursor to a new position along the vertical axis.
Vertical Cursor Position (in PCL Units)
Moves the cursor to a new position along the vertical axis.
Note: PCL units are set by the Unit-of-Measure Command.
Moves the cursor down 1/2 line (1/2 of the current VMI).
Set Line Termination
Controls how the printer responds to the Carriage Return (CR), Line Feed (LF), and Form Feed (FF) control codes.
Push / Pop Cursor Position
Sets up a cursor position stack for storing and recalling various cursor positions. The stack can store up to 20 cursor positions.
SATO D512 PCL Programming Manual Page 1-13
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)
ESC
)# (secondary)
# = symbol set ID
ESC
(s#P (primary)
ESC
)s#P (secondary)
0 Fixed (Default) 1 Proportional
ESC
(s#H (primary)
ESC
)s#H (secondary)
# = characters per inch
Default = 10
ESC
(s#V (primary)
ESC
)s#V (secondary)
# = height in points (.25 to 999.75)
Default = 12
ESC
(s#S (primary)
ESC
)s#S (secondary)
0 Upright (Default) 1 Italic 4 Condensed 5 Condensed Italic 8 Compressed 24 Expanded 32 Outline 64 Inline 128 Shadowed 160 Outline Shadowed
Select Symbol Set
See Table 9-2 for the symbol sets which are supported.
Select Spacing
Selects a font with proportional or fixed spacing.
Select Pitch
Selects the number of characters per inch (cpi) for a fixed-space bitmapped or monospaced scalable font. Valid to 2 decimal places.
Note: Pitch is not needed for proportional spaced fonts.
Height (Select Point Size)
Sets the font height in points. Valid to 2 decimal places.
Note: Point size is not needed for monospaced fonts. For fonts larger than 12 points, it may be necessary to change the line spacing.
Select Style
Identifies the physical traits of a character and the composition of the font symbols.
Note: You can only use this command to select fonts currently available in the printer. It cannot alter the appearance of the available fonts.
Page 1-14 SATO D512 PCL Programming Manual
Unit 1: PCL Emulation
Table 1-8: Font Selection (continued)
Command / Parameters Function / Result
ESC
(s#B (primary)
ESC
)s#B (secondary)
-7 Ultra Thin
-6 Extra Thin
-5 Thin
-4 Extra Light
-3 Light
-2 Demi Light
-1 Semi Light 0 Medium (Default) 1 Semi Bold 2 Demi Bold 3 Bold 4 Extra Bold 5 Black 6 Extra Black 7 Ultra Black
ESC
(s#T (primary)
ESC
)s#T (secondary)
# Typeface identifier (0 - 65535)
Select Stroke Weight
Selects a font with a particular thickness.
Note: This command will not alter the stroke weight of an available font. See Table1 in this section “Forward and Backward Compatibility Font Selection Commands” for the stroke weight variations available for the resident fonts.
Select Typeface
Selects the best fit font design.
Note: For a list of typeface numbers, see Table 1 in this section: “Forward and Backward Compatibility Font Selection Commands.” See “Font and Symbol Set Support” on page 4.
ESC
(#X (primary)
ESC
)#X (secondary)
Select Font by Font ID
Selects the font by the identification number.
# = Font ID (0 - 32767)
ESC
(3@ (primary)
ESC
)3@ (secondary)
ESC
&p#X[data]
# = number of data of bytes to print as text
Select Default Font
Sets all font selection characteristics to the Default Font.
Transparent Print Data
This command is only supported when used to enter data to be encoded in a Maxicode barcode.
ESC
&d#D
0,1 Fixed 2 Fixed - double 3Floating 4 Floating - double
Select Underline Type (Enable)
Notes:
• Fixed underline is drawn 5 pels below cursor position.
• Floating underline position is determined by all the positions of the characters with descenders in the fonts that are to be underlined.
• Underline thickness is 1/100 inch. Double underline is not supported and will be printed as a single underline.
ESC
&d@ Underline - Disable
SATO D512 PCL Programming Manual Page 1-15
Unit 1: PCL Emulation
Table 1-8: Font Selection (continued)
Command / Parameters Function / Result
ESC
&t#P
0, 1 1 byte characters 21 1 or 2 byte characters 31 1 or 2 byte characters
Text Parsing Method
Communicates to the PCL parser whether character codes are interpreted as 1-byte or 2-byte character codes. This command is parsed and
ignored. 38 1 or 2 byte characters 1008 1, 2, or 3 byte characters (UTF-8)
ESC
&k#S
0 10.00 cpi
Select Primary and Secondary Pitch
Selects the pitch for the primary and secondary font. 2 16.66 cpi 4 12.00 cpi
Table 1-9: User-Defined Symbol Set
Command / Parameters Function / Result
ESC
*c#R
# = Symbol Set ID (0 - 32767)
Default = 0
ESC
(f#W[data]
# = number of data bytes
ESC
*c#S
0 Delete all (temporary and permanent) 1 Delete all temporary 2 Delete current (ID) 4 Make current temporary 5 Make current permanent
Symbol Set ID Code
Sets the symbol set identification for the symbol set downloaded.
Define Symbol Set
Contains the data for the user-defined symbol sets.
Symbol Set Control
Manages user-defined symbol sets.
Page 1-16 SATO D512 PCL Programming Manual
Unit 1: PCL Emulation
Table 1-10: Font Creation
Command / Parameters Function / Result
ESC
*c#D
# = Font ID # (0 - 32767)
Default = 0
ESC
)s#W[data]
# = number of data bytes
ESC
*c#F
0 Delete all (temporary and permanent) 1 Delete all temporary 2 Delete previous font ID 3 Delete previous specified character 4 Make previous font ID temporary 5 Make previous font ID permanent 6 Copy current font
ESC
*c#E
# = Code Point (0 - 65536)
Default = 0
ESC
(s#W[data]
# = number of data bytes
Set Font ID
Sets the identification number for the font being downloaded.
Load Font Header
Downloads soft font header information.
Note: Set Font ID before using this command.
Font Control
Manages soft fonts.
Set Character Code
Sets the decimal code point associated with the next character downloaded or deleted.
Load Character
Downloads character descriptor and data to the current character code.
Table 1-11: Macros
Command / Parameters Function / Result
ESC
&f#Y
# = Macro ID (0 - 32767)
Default = 0
ESC
&f#X
0 Start definition 1 End definition 2 Execute macro (previous macro ID) 3 Call macro (previous macro ID) 4 Enable overlay (previous macro ID) 5 Disable overlay 6 Delete all macros 7 Delete all temporary macros 8 Delete current macro ID 9 Make last ID temporary 10 Make last ID permanent
SATO D512 PCL Programming Manual Page 1-17
Set Macro ID
Sets the ID for the macro you have created on flash.
Macro Control
Manages use of macros.
Notes:
• GL/2 commands are supported inside macros.
• Only call and execute macro commands are allowed within a macro.
• A macro may call or execu
• e another macro. This is called nesting. A maximum of two nesting levels are allowed, for a total of three levels.
See “Macros” later in this section for additional information.
Unit 1: PCL Emulation
Table 1-12: Print Model
Command / Parameters Function / Result
ESC
*c#G
Gray Scale Fills
0 White (default) 1-2 2% gray 3-10 10% gray 11-20 15% gray 21-35 30% gray 36-55 45% gray 56-80 70% gray 81-99 90% gray 100 100% gray (Black)
Cross-Hatch Fills
1 Horizontal line 2 Vertical line 3 Diagonal line 4 Diagonal line 5 Square grid 6 Diagonal grid
User-Defined Patterns
# = User-Defined Pattern ID
ESC
*v#N
0 Transparent (Default) 1 Opaque
ESC
*v#O
0 Transparent (Default) 1 Opaque
ESC
*l#O Logical Operation
ESC
*l#R Pixel Placement
ESC
*v#T
0 Solid Black (Default) 1 Solid White 2 Gray Shading Pattern 3 Cross-Hatch Pattern 4 User Defined Pattern 9 True gray Level Fill
Area Fill ID
Selects pattern used to fill a rectangular area.
Note: This command is also used to set the user-defined pattern ID. Cross-Hatch Fills are not supported.
Source Transparency Mode
Affects copying of white pixels from the source onto the destination image.
Pattern Transparency Mode
Affects copying of white pixels from the pattern onto the destination image.
This command is parsed and ignored.
This command is parsed and ignored.
Select Current Pattern
Selects pattern used when printing text and raster images.
Note: Cross-Hatch Patterns are not supported.
Page 1-18 SATO D512 PCL Programming Manual
Unit 1: PCL Emulation
Table 1-13: User-Defined Pattern
Command / Parameters Function / Result
ESC
*c#W[data]
# = number of data bytes
ESC
*p#R
0 Rotate with print (Default) 1Fixed
ESC
*c#Q
0 Delete all patterns (temporary and
permanent) 1 Delete all temporary patterns 2 Delete pattern (last ID specified) 4 Make pattern of last ID # temporary 5 Make pattern of last ID # permanent
User-Defined Pattern
Downloads binary pattern data.
Set Pattern Reference Point
Sets the pattern reference point to the current cursor position for user­defined patterns.
Note: Default pattern reference point is the upper left corner of the logical page.
Caution: Pattern Control
Manages the use of user-defined patterns.
Note: Use the Area Fill ID command (
ESC
*c#G) to set the ID.
Table 1-14: Rectangular Area Fill Graphics
Command / Parameters Function / Result
ESC
*c#H
# = Number of Decipoints (0 - 32767)
(1 Decipoint = 1/720 inch)
Default = 0, valid to 4 decimal places
ESC
*c#A
# = Number of PCL Units (0 - 32767)
Default = 0
ESC
*c#V
# = Number of Decipoints (0 - 32767)
(1 Decipoint = 1/720 inch)
Default = 0, valid to 4 decimal places
ESC
*c#B
# = Number of PCL Units (0 - 32767)
Default = 0
Horizontal Rectangle Size (in Decipoints)
Specifies the rectangle width in decipoints.
Horizontal Rectangle Size (in PCL Units)
Specifies the rectangle width in PCL units.
Note: The size of PCL Units is set by the Unit-of-Measure command.
Vertical Rectangle Size (in Decipoints)
Specifies the rectangle height in decipoints.
Vertical Rectangle Size (in PCL Units)
Specifies the rectangle height in PCL units.
Note: The size of PCL Units is set by the Unit-of-Measure command.
SATO D512 PCL Programming Manual Page 1-19
Unit 1: PCL Emulation
Table 1-14: Rectangular Area Fill Graphics (continued)
Command / Parameters Function / Result
ESC
*c#G
Gray Scale Fills
0 White (default) 1-2 2% Gray 3-10 10% Gray 11-20 15% Gray 21-35 30% Gray 36-55 45% Gray 56-80 70% Gray 81-99 90% Gray 100 100% Gray (Black)
Cross-Hatch Fills
1 Horizontal Line 2 Vertical Line 3 Diagonal Line 4 Diagonal Line 5 Square Grid 6 Diagonal Grid
User-Defined Patterns
# = User-Defined Pattern ID
ESC
*c#P
0 Black Fill (Default) 1 White Fill 2Gray Fill 3 Pre-Defined Cross-Hatch
Pattern Fill 4 User-Defined Pattern 5 Current Pattern Fill 9 True gray Level Fill
Area Fill ID
Selects the pattern used to fill the rectangular area.
Note: This command is also used to set the user-defined pattern ID. Cross-Hatch Patterns are not supported
Fill Rectangular Area
Fills a rectangular area defined by Horizontal and Vertical Rectangle Sizes with the selected pattern.
Note: Cross-Hatch Patterns are not supported.
Page 1-20 SATO D512 PCL Programming Manual
Unit 1: PCL Emulation
Table 1-15: Raster Graphics
Command / Parameters Function / Result
ESC
*t#R
300 300 dpi
ESC
*r#F
0 Rotate with print 3 Fixed (Default)
ESC
*r#S
# = Number of Input Pixels
ESC
*r#T
# = Number of Raster Lines
ESC
*r#A
0 Left Graphics Margin at 0 (Default) 1 Current Cursor Position 2 At logical left page limit with scaling
On
3 At current cursor position with
scaling On
ESC
*b#V[data]
# = Number of Data Bytes
ESC
*b#Y
# = Number of Raster Lines
ESC
*b#M
0 Uncoded (Default) 1 Run-Length Encoded 2 Tagged Image File Format (TIFF)
byte 3Delta Row 5 Adaptive Compression 9 Replacement Delta Row 999 Zlib 1002 Group 4 1003 Group 3 one dimensional 1004 Group 3 two dimensional K=2 1005 Group 3 two dimensional K=4 1006 TIFF word (16 bit) 1007 TIFF double-word (32 bit) 1008 Adaptive compression (includes TIFF
word and TIFF double-word)
ESC
*b#W[data]
# = Number of Data Bytes
Raster Resolution
Note: Only 300 dpi is supported. All other values are parsed
and ignored.
Raster Graphics Presentation
Sets the Raster Image Orientation in relation to the logical page.
Raster Width (Source)
Sets the width of the clip window for raster graphics.
Raster Height (Source)
Sets the height of the clip window for raster graphics.
Start Raster Graphics
Sets the left margin for raster graphics.
Transfer Raster Data by Plane
This command is used when the raster data is encoded by plane as specified by the Simple Color command or the Configure Image Data command. The command sends each plane in the row except the last.
Y Offset
Moves the cursor position down by the specified number of raster lines.
Set Raster Compression Mode
Identifies the compression mode the host uses to transfer RIG data. For instance, this command can be run-length encoding or TIFF encoding.
Note: For further information, see “Raster Compression Mode” in this section, and “Group 3 and Group 4 Raster Compression” in this section.
Transfer Raster Data by Row/Block
Transfers RIG data.
Note: After each command, the cursor position is moved to the beginning of the next raster row.
SATO D512 PCL Programming Manual Page 1-21
Unit 1: PCL Emulation
Table 1-15: Raster Graphics (continued)
Command / Parameters Function / Result
ESC
*rB End Raster Graphics (Version B)
Signals the end of the raster graphics transfer. If a Raster Height is specified, the cursor is moved to the first raster row past the Raster Height.
ESC
*rC End Raster Graphics (Version C)
Same as Version B, but:
• Resets the compression mode to uncoded.
• Sets the left graphics margin to 0.
ESC
*t#H Raster Width (Destination)
Sets the width of the destination raster.
Page 1-22 SATO D512 PCL Programming Manual
Unit 1: PCL Emulation
Table 1-15: Raster Graphics (continued)
Command / Parameters Function / Result
ESC
*t#V Raster Height (Destination)
Sets the height of the destination raster.
ESC
*g#W[data]
# - 8 (K-only) or 26 (KCMY)
Data
Byte 0 - 0x02 (constant)
Byte 1 - number of colors
0x01 - K only
0x04 - CMYK
Byte 2,3 - X res for K plane
0x012C (300) or 0x0258 (600)
Byte 4,5 - Y res for K plane
0x012C (300) or 0x0258 (600)
Byte 6,7 - K plane intensity levels
0x02 (1 bit/plane) or 0x04 (2 bits/plane)
Byte 8,9 - X res for C plane
0x012C (300) or 0x0258 (600)
Byte 10,11 - Y res for C plane
0x012C (300) or 0x0258 (600)
Byte 12,13 - C plane intensity levels
0x02 (1 bit/plane) or 0x04 (2 bits/plane)
Byte 14,15 - X res for M plane
0x012C (300) or 0x0258 (600)
Byte 16,17 - Y res for M plane
0x012C (300) or 0x0258 (600)
Byte 18,19 - M plane intensity levels
0x02 (1 bit/plane) or 0x04 (2 bits/plane)
Byte 20,21 - X res for Y plane
0x012C (300) or 0x0258 (600)
Byte 22,23 - Y res for Y plane
0x012C (300) or 0x0258 (600)
Byte 24,25 - Y plane intensity levels
0x02 (1 bit/plane) or 0x04 (2 bits/plane)
Set Raster Configuration
Sets the configuration of the destination raster.
SATO D512 PCL Programming Manual Page 1-23
Loading...
+ 61 hidden pages