SATO Printer D512 PCL User Guide

D512 PCL PROGRAMMING MANUAL  
PN: 9001180B  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
Download from Www.Somanuals.com. All Manuals Search And Download.  
PN: 9001180B  
PN: 9001180B  
SATO D512 PCL PROGRAMMING MANUAL  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
Download from Www.Somanuals.com. All Manuals Search And Download.  
 
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  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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
B
C
D
E
Portrait physical page width and landscape physical page length  
Portrait physical page length and landscape physical page width  
Portrait logical page width  
Landscape logical page width  
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
H
Distance between the top and bottom edge of the physical page and  
logical page  
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  
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  
I
SATO D512 PCL Programming Manual  
Page 1-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.  
STANDARD 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  
Spacing  
Style  
Weight  
Typeface  
4099  
0
1
1
1
0
0
0
0
0
0
0
0
0
4
0
1
0
1
0
0
0
0
3
3
0
0
3
3
0
0
Univers Medium  
4148  
Univers Bold  
4148  
CG Triumvirate Condensed Bold  
Roman Pillar Regular  
Roman Pillar Italic  
Roman Pillar Bold  
Roman Pillar Bold Italic  
OCR-A  
4100  
30211  
30211  
30211  
30211  
23584  
23590  
OCR-B  
Page 1-4  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.  
Indicates Typeface does not support the specified Symbol Set.  
SATO D512 PCL Programming Manual  
Page 1-5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
LF  
9
09  
Horizontal Tab  
Line Feed  
Moves the cursor to the next defined tab stop  
10  
0A  
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  
SP  
SI  
13  
32  
15  
14  
0D  
20  
0F  
0E  
Carriage Return  
Space  
Moves the cursor to the left margin  
Moves the cursor to the right one column  
Selects the primary font  
Primary Font  
Secondary Font  
SO  
Selects the secondary font  
COMMANDS  
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  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
&
a
Parameterized character from American National Standard Code for Information  
Interchange (ASCII) table (ranging from 33 to 47 decimal)  
Group character from ASCII table (ranging from 96 to 126 decimal) that specifies a  
group type of control  
#
Decimal character string value within specified numeric ranges; may be preceded by a +  
or - sign and contain a decimal point  
C
Termination character from ASCII table (ranging from 64 to 94 decimal)  
COMMAND 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  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
ESC&a+6C  
ESC&a-6C  
Move to horizontal cursor position, column six  
Move six columns to the right of the current position  
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 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  
ESC(s4099T  
Select 10 characters per inch  
Select Courier typeface  
To combine these two commands, use this form:  
ESC(s10h4099T  
which is 3 bytes shorter than the long form:  
ESC(s10HESC(s4099T  
You can combine more than two commands; for example, you can add Select Stroke Weight  
Bold (ESC(s3B) to the previous two commands:  
ESC(s10h3b4099T  
or in the long form:  
ESC(s10HESC(s3BESC(s4099T  
Page 1-8  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
ESCE  
Function / Result  
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 Collated Copies  
Turns collation of pages off or sets the number of collated copies.  
Number of Copies  
# = number of Copies (1 to 32767)  
Default = 1  
Affects the page currently in process and subsequent pages.  
ESC&l#S  
Simplex/Duplex Print  
This command is parsed and ignored.  
Long-Edge Offset Registration  
ESC&l#U  
# = number of Decipoints  
Also known as Left Offset.  
Range = -32767 to 32767  
(1 Decipoint = 1/720 inch)  
Default = 0  
Adjusts placement of logical page along the width of the physical page.  
ESC&l#Z  
Short-Edge Offset Registration  
# = number of Decipoints  
Range = -32767 to 32767  
(1 Decipoint = 1/720 inch)  
Default = 0  
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  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-5: Job Control (continued)  
Command / Parameters  
ESC&u#D  
Function / Result  
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:  
Horizontal Cursor Position by PCL Unit (ESC*p#X)  
Vertical Cursor Position by PCL Unit (ESC*p#Y)  
Horizontal Rectangle Size by PCL Unit (ESC*c#A)  
Vertical Rectangle Size by PCL Unit (ESC*c#B)  
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.  
ESC% – 12345X  
Universal Exit Language (UEL) / Start of PJL  
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.  
Table 1-6: Page Control  
Command / Parameters  
Function / Result  
ESC&l#A  
Set Page Size  
This command is parsed and ignored.  
Paper Source  
ESC&l#H  
ESC&f#G  
ESC&f#F  
ESC&f#O  
This command is parsed and ignored.  
Set Universal Width  
This command is parsed and ignored.  
Set Universal Height  
This command is parsed and ignored.  
Set Universal Feed Direction  
This command is parsed and ignored.  
Set Universal Custom Name  
This command is parsed and ignored.  
Select Orientation  
ESC&f#W [custom name]  
# = number of bytes in the custom name  
ESC&l#O  
0
1
2
3
Portrait (Default)  
Landscape  
Reverse Portrait  
Reverse Landscape  
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.  
ESC&a#P  
Print Direction  
# = Degrees (0, 90, 180, 270)  
Default = 0  
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  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-6: Page Control (continued)  
Command / Parameters  
Function / Result  
ESC&c#T  
Character Text Path Direction  
0
-1  
Horizontal Printing  
Vertical Rotated Printing  
Vertically rotates text for use in vertical writing, such as printing  
Japanese text.  
ESC&a#L  
Set Left Margin  
# = Column  
Default = 0  
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).  
ESC&a#M  
Set Right Margin  
# = Column  
Sets the right margin to the right edge of the designated column.  
Default = Logical Page Width  
Note: The column width is defined by the space character of the active  
font and the HMI.  
ESC9  
Clear Horizontal Margins  
Clears left and right margins.  
Set Top Margin  
ESC&l#E  
# = number of lines  
Default = 3 (1/2 inch)  
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.  
ESC&l1T  
Job Separation  
This command is parsed and ignored.  
Set Text Length  
ESC&l#F  
# = number of lines  
Default = 60 or 64 (Country specific)  
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).  
ESC&l#G  
Set Output Bin  
This command is parsed and ignored.  
Skip Perforation  
ESC&l#L  
0
1
Off  
On (Default)  
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.  
ESC&k#H  
Set Horizontal Motion Index (HMI)  
# = number of 1/120 inch increments  
(Valid to 4 decimal places)  
Sets the width of all characters for fixed-space fonts. Sets only the width  
of the space for proportional spaced fonts.  
ESC&l#C  
Set Vertical Motion Index (VMI)  
# = number of 1/48 inch increments  
(Valid to 4 decimal places)  
Default = 8  
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  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-6: Page Control (continued)  
Command / Parameters  
Function / Result  
ESC&l#D  
Set Line Spacing (Alternative Method)  
Specifies VMI in lines per inch.  
Notes:  
1
2
3
4
6
8
1 line/inch  
2 lines/inch  
3 lines/inch  
4 lines/inch  
6 lines/inch (Default)  
8 lines/inch  
Unsupported values are ignored.  
Use of this command alters any earlier VMI setting.  
12  
16  
24  
48  
12 lines/inch  
16 lines/inch  
24 lines/inch  
48 lines/inch  
E
SC&a#G  
Duplex Page Side Selection  
This command is parsed and ignored.  
Set Page Length  
ESC&l#P  
# = number from 0 to 14  
Sets the logical page length in number of lines.  
0 = default page length is used  
(1 to 14 = new page length is set)  
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.  
ESC&k#W  
Text Scale Mode  
This command is parsed and ignored.  
Page 1-12  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-7: Cursor Positioning  
Command / Parameters  
ESC&a#C  
Function / Result  
Horizontal Cursor Position (in Columns)  
Moves the cursor to a new position along the horizontal axis.  
# = number of Columns1  
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)  
# = number of Decipoints1  
(1 Decipoint = 1/720 inch)  
ESC*p#X  
Moves the cursor to a new position along the horizontal axis.  
Horizontal Cursor Position (in PCL Units)  
# = number of PCL Units1  
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)  
ESC&a#R  
# = number of Rows1  
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.  
ESC&a#V  
Vertical Cursor Position (in Decipoints)  
# = number of Decipoints1  
(1 Decipoint = 1/720 inch)  
ESC*p#Y  
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.  
Half Line-Feed  
# = number of PCL Units1  
ESC  
=
Moves the cursor down 1/2 line (1/2 of the current VMI).  
Set Line Termination  
ESC&k#G  
0
1
2
3
CR=CR, LF=LF, FF=FF (Default)  
CR=CR+LF, LF=LF, FF=FF  
CR=CR, LF=CR+LF, FF=CR+FF  
CR=CR+LF, LF=CR+LF,  
FF=CR+FF  
Controls how the printer responds to the Carriage Return (CR), Line Feed  
(LF), and Form Feed (FF) control codes.  
ESC&f#S  
Push / Pop Cursor Position  
0
1
Push  
Pop  
Sets up a cursor position stack for storing and recalling various cursor  
positions. The stack can store up to 20 cursor positions.  
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.  
SATO D512 PCL Programming Manual  
Page 1-13  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
ESC(# (primary)  
Function / Result  
Select Symbol Set  
ESC)# (secondary)  
# = symbol set ID  
ESC(s#P (primary)  
ESC)s#P (secondary)  
See Table 9-2 for the symbol sets which are supported.  
Select Spacing  
Selects a font with proportional or fixed spacing.  
0
1
Fixed (Default)  
Proportional  
ESC(s#H (primary)  
ESC)s#H (secondary)  
# = characters per inch  
Default = 10  
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.  
ESC(s#V (primary)  
ESC)s#V (secondary)  
# = height in points (.25 to 999.75)  
Default = 12  
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.  
ESC(s#S (primary)  
Select Style  
ESC)s#S (secondary)  
Identifies the physical traits of a character and the composition of the  
font symbols.  
0
Upright (Default)  
Italic  
1
Note: You can only use this command to select fonts currently available  
4
5
8
24  
32  
64  
Condensed  
Condensed Italic  
Compressed  
Expanded  
Outline  
in the printer. It cannot alter the appearance of the available fonts.  
Inline  
128 Shadowed  
160 Outline Shadowed  
Page 1-14  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-8: Font Selection (continued)  
Command / Parameters  
ESC(s#B (primary)  
Function / Result  
Select Stroke Weight  
ESC)s#B (secondary)  
Selects a font with a particular thickness.  
-7  
-6  
-5  
-4  
-3  
-2  
-1  
0
Ultra Thin  
Extra Thin  
Thin  
Extra Light  
Light  
Demi Light  
Semi Light  
Medium (Default)  
Semi Bold  
Demi Bold  
Bold  
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.  
1
2
3
4
5
Extra Bold  
Black  
6
7
Extra Black  
Ultra Black  
ESC(s#T (primary)  
Select Typeface  
ESC)s#T (secondary)  
Selects the best fit font design.  
# Typeface identifier (0 - 65535)  
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)  
Select Font by Font ID  
ESC)#X (secondary)  
Selects the font by the identification number.  
# = Font ID (0 - 32767)  
ESC(3@ (primary)  
Select Default Font  
ESC)3@ (secondary)  
Sets all font selection characteristics to the Default Font.  
Transparent Print Data  
ESC&p#X[data]  
# = number of data of bytes to print as text  
This command is only supported when used to enter data to be encoded  
in a Maxicode barcode.  
ESC&d#D  
Select Underline Type (Enable)  
Notes:  
0,1 Fixed  
2
3
4
Fixed - double  
Floating  
Floating - double  
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  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-8: Font Selection (continued)  
Command / Parameters  
Function / Result  
ESC&t#P  
Text Parsing Method  
0, 1  
21  
31  
38  
1008  
1 byte characters  
Communicates to the PCL parser whether character codes are interpreted  
as 1-byte or 2-byte character codes. This command is parsed and  
ignored.  
1 or 2 byte characters  
1 or 2 byte characters  
1 or 2 byte characters  
1, 2, or 3 byte characters (UTF-8)  
ESC&k#S  
Select Primary and Secondary Pitch  
0
2
4
10.00 cpi  
16.66 cpi  
12.00 cpi  
Selects the pitch for the primary and secondary font.  
Table 1-9: User-Defined Symbol Set  
Command / Parameters  
ESC*c#R  
Function / Result  
Symbol Set ID Code  
# = Symbol Set ID (0 - 32767)  
Default = 0  
Sets the symbol set identification for the symbol set downloaded.  
ESC(f#W[data]  
Define Symbol Set  
# = number of data bytes  
ESC*c#S  
Contains the data for the user-defined symbol sets.  
Symbol Set Control  
0
1
2
4
5
Delete all (temporary and permanent)  
Delete all temporary  
Delete current (ID)  
Make current temporary  
Make current permanent  
Manages user-defined symbol sets.  
Page 1-16  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-10: Font Creation  
Command / Parameters  
ESC*c#D  
Function / Result  
Set Font ID  
# = Font ID # (0 - 32767)  
Default = 0  
Sets the identification number for the font being downloaded.  
ESC)s#W[data]  
Load Font Header  
# = number of data bytes  
Downloads soft font header information.  
Note: Set Font ID before using this command.  
Font Control  
ESC*c#F  
0
1
2
3
4
5
6
Delete all (temporary and permanent)  
Delete all temporary  
Delete previous font ID  
Delete previous specified character  
Make previous font ID temporary  
Make previous font ID permanent  
Copy current font  
Manages soft fonts.  
ESC*c#E  
Set Character Code  
# = Code Point (0 - 65536)  
Default = 0  
Sets the decimal code point associated with the next character  
downloaded or deleted.  
ESC(s#W[data]  
Load Character  
# = number of data bytes  
Downloads character descriptor and data to the current character code.  
Table 1-11: Macros  
Command / Parameters  
ESC&f#Y  
Function / Result  
Set Macro ID  
# = Macro ID (0 - 32767)  
Default = 0  
Sets the ID for the macro you have created on flash.  
ESC&f#X  
Macro Control  
Manages use of macros.  
Notes:  
0
1
2
3
4
5
6
7
8
9
Start definition  
End definition  
Execute macro (previous macro ID)  
Call macro (previous macro ID)  
Enable overlay (previous macro ID)  
Disable overlay  
GL/2 commands are supported inside macros.  
Only call and execute macro commands are allowed within a macro.  
A macro may call or execu  
Delete all macros  
e another macro. This is called nesting. A maximum of two nesting  
levels are allowed, for a total of three levels.  
Delete all temporary macros  
Delete current macro ID  
Make last ID temporary  
See “Macros” later in this section for additional information.  
10 Make last ID permanent  
SATO D512 PCL Programming Manual  
Page 1-17  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-12: Print Model  
Command / Parameters  
ESC*c#G  
Function / Result  
Area Fill ID  
Gray Scale Fills  
Selects pattern used to fill a rectangular area.  
0
White (default)  
Note: This command is also used to set the user-defined pattern ID.  
1-2  
2% gray  
Cross-Hatch Fills are not supported.  
3-10  
11-20  
21-35  
36-55  
56-80  
81-99  
100  
10% gray  
15% gray  
30% gray  
45% gray  
70% gray  
90% gray  
100% gray (Black)  
Cross-Hatch Fills  
1
2
3
4
5
6
Horizontal line  
Vertical line  
Diagonal line  
Diagonal line  
Square grid  
Diagonal grid  
User-Defined Patterns  
# = User-Defined Pattern ID  
ESC*v#N  
Source Transparency Mode  
0
1
Transparent (Default)  
Opaque  
Affects copying of white pixels from the source onto the destination  
image.  
ESC*v#O  
Pattern Transparency Mode  
0
1
Transparent (Default)  
Opaque  
Affects copying of white pixels from the pattern onto the destination  
image.  
ESC*l#O  
ESC*l#R  
ESC*v#T  
Logical Operation  
This command is parsed and ignored.  
Pixel Placement  
This command is parsed and ignored.  
Select Current Pattern  
0
1
2
3
4
9
Solid Black (Default)  
Solid White  
Gray Shading Pattern  
Cross-Hatch Pattern  
User Defined Pattern  
True gray Level Fill  
Selects pattern used when printing text and raster images.  
Note: Cross-Hatch Patterns are not supported.  
Page 1-18  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-13: User-Defined Pattern  
Command / Parameters  
ESC*c#W[data]  
Function / Result  
User-Defined Pattern  
# = number of data bytes  
ESC*p#R  
Downloads binary pattern data.  
Set Pattern Reference Point  
0
1
Rotate with print (Default)  
Fixed  
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.  
ESC*c#Q  
0
Caution: Pattern Control  
Delete all patterns (temporary and  
permanent)  
Delete all temporary patterns  
Delete pattern (last ID specified)  
Make pattern of last ID # temporary  
Make pattern of last ID # permanent  
Manages the use of user-defined patterns.  
Note: Use the Area Fill ID command (ESC*c#G) to set the ID.  
1
2
4
5
Table 1-14: Rectangular Area Fill Graphics  
Command / Parameters  
ESC*c#H  
Function / Result  
Horizontal Rectangle Size (in Decipoints)  
Specifies the rectangle width in decipoints.  
# = Number of Decipoints (0 - 32767)  
(1 Decipoint = 1/720 inch)  
Default = 0, valid to 4 decimal places  
ESC*c#A  
Horizontal Rectangle Size (in PCL Units)  
Specifies the rectangle width in PCL units.  
# = Number of PCL Units (0 - 32767)  
Default = 0  
Note: The size of PCL Units is set by the Unit-of-Measure command.  
Vertical Rectangle Size (in Decipoints)  
ESC*c#V  
# = Number of Decipoints (0 - 32767)  
(1 Decipoint = 1/720 inch)  
Default = 0, valid to 4 decimal places  
ESC*c#B  
Specifies the rectangle height in decipoints.  
Vertical Rectangle Size (in PCL Units)  
# = Number of PCL Units (0 - 32767)  
Default = 0  
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  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-14: Rectangular Area Fill Graphics (continued)  
Command / Parameters  
ESC*c#G  
Function / Result  
Area Fill ID  
Gray Scale Fills  
Selects the pattern used to fill the rectangular area.  
0
White (default)  
Note: This command is also used to set the user-defined pattern ID.  
1-2  
2% Gray  
Cross-Hatch Patterns are not supported  
3-10  
11-20  
21-35  
36-55  
56-80  
81-99  
100  
10% Gray  
15% Gray  
30% Gray  
45% Gray  
70% Gray  
90% Gray  
100% Gray (Black)  
Cross-Hatch Fills  
1
2
3
4
5
6
Horizontal Line  
Vertical Line  
Diagonal Line  
Diagonal Line  
Square Grid  
Diagonal Grid  
User-Defined Patterns  
# = User-Defined Pattern ID  
ESC*c#P  
Fill Rectangular Area  
0
1
2
3
Black Fill (Default)  
White Fill  
Gray Fill  
Pre-Defined Cross-Hatch  
Pattern Fill  
Fills a rectangular area defined by Horizontal and Vertical Rectangle  
Sizes with the selected pattern.  
Note: Cross-Hatch Patterns are not supported.  
4
5
9
User-Defined Pattern  
Current Pattern Fill  
True gray Level Fill  
Page 1-20  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-15: Raster Graphics  
Command / Parameters  
Function / Result  
Raster Resolution  
ESC*t#R  
300  
300 dpi  
Note: Only 300 dpi is supported. All other values are parsed  
and ignored.  
ESC*r#F  
Raster Graphics Presentation  
0
3
Rotate with print  
Fixed (Default)  
Sets the Raster Image Orientation in relation to the logical page.  
ESC*r#S  
Raster Width (Source)  
# = Number of Input Pixels  
ESC*r#T  
# = Number of Raster Lines  
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  
ESC*r#A  
0
1
2
Left Graphics Margin at 0 (Default)  
Current Cursor Position  
At logical left page limit with scaling  
On  
Sets the left margin for raster graphics.  
3
At current cursor position with  
scaling On  
ESC*b#V[data]  
Transfer Raster Data by Plane  
# = Number of Data Bytes  
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.  
ESC*b#Y  
# = Number of Raster Lines  
Y Offset  
Moves the cursor position down by the specified number of raster lines.  
ESC*b#M  
Set Raster Compression Mode  
0
1
2
Uncoded (Default)  
Identifies the compression mode the host uses to transfer RIG data. For  
instance, this command can be run-length encoding or TIFF encoding.  
Run-Length Encoded  
Tagged Image File Format (TIFF)  
byte  
Note: For further information, see “Raster Compression Mode” in this  
section, and “Group 3 and Group 4 Raster Compression” in this section.  
3
Delta Row  
5
9
Adaptive Compression  
Replacement Delta Row  
Zlib  
999  
1002  
1003  
1004  
1005  
1006  
1007  
1008  
Group 4  
Group 3 one dimensional  
Group 3 two dimensional K=2  
Group 3 two dimensional K=4  
TIFF word (16 bit)  
TIFF double-word (32 bit)  
Adaptive compression (includes TIFF  
word and TIFF double-word)  
ESC*b#W[data]  
Transfer Raster Data by Row/Block  
# = Number of Data Bytes  
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  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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  
Download from Www.Somanuals.com. All Manuals Search And Download.  
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.  
Set Raster Configuration  
ESC*g#W[data]  
# - 8 (K-only) or 26 (KCMY)  
Data  
Sets the configuration of the destination raster.  
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)  
SATO D512 PCL Programming Manual  
Page 1-23  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-16: Status Readback  
Command / Parameters  
Function / Result  
ESC*s#T  
Set Status Readback Location Type  
Sets the status location type to the specified value.  
0
1
2
3
4
5
Invalid location (Default)  
Use currently selected location  
All locations  
Internal (resident)  
Downloaded entity  
Cartridge  
The 5 value for Cartridge may be specified, but since your printer does  
not support font cards or cartridges, the command is ignored.  
The 7 value for User-installable flash is only valid when flash memory is  
installed.  
7
200  
User-installable flash  
Disk  
The 200 value is only valid when a hard disk is installed.  
ESC*s#U  
Set Status Readback Location Unit  
0
1
All  
Sets the status location unit to the specified value.  
If download, temporary; otherwise,  
highest priority  
If download, permanent; otherwise,  
next higher priority  
The location unit is used along with the location type to identify a  
location for the Inquire Status Readback Entity command.  
2
Note: The unit value is interpreted differently, depending on the location  
type specified.  
ESC*s#I  
Inquire Status Readback Entity  
0
1
2
3
Font  
Macro  
Returns the requested information set by Set Status Readback Location  
Type and Set Status Readback Location Unit.  
User-defined pattern  
Symbol set (for unbound scalable  
fonts)  
4
Font extended  
ESC*s1M  
Free Space  
Returns the total available memory and the largest available block of  
memory.  
ESC&r#F  
Flush All Pages  
0
1
Flush all complete pages  
Flush all pages  
Holds print jobs in the print buffer until the current job finishes printing.  
ESC*s#X  
Echo  
-32767 to 32767  
Returns # back to host computer.  
Default = 0  
Page 1-24  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-17: Picture Frame  
Command / Parameters  
ESC*c#X  
Function / Result  
Picture Frame Horizontal Size (in Decipoints)  
# of Decipoints: 0 to 32767  
(1 Decipoint = 1/720 inch)  
ESC*c#Y  
Specifies the horizontal dimension of the picture frame used when  
printing a GL/2 plot.  
Picture Frame Vertical Size (in Decipoints)  
# of Decipoints: 0 to 32767  
(1 Decipoint = 1/720 inch)  
ESC*c0T  
Specifies the vertical dimension of the picture frame used when printing  
a GL/2 plot.  
Set Picture Frame Anchor Point  
0
Set Anchor Point to Cursor Position  
Sets the position of the picture frame anchor point to the cursor position.  
The picture frame anchor point defines the location of the upper left  
corner of the picture frame.  
ESC*c#K  
GL/2 Horizontal Plot Size  
Size in inches: 0 to 32767  
Specifies the horizontal scaling factor used when importing an image  
into the picture frame.  
ESC*c#L  
Size in inches: 0 to 32767  
GL/2 Vertical Plot Size  
Specifies the vertical scaling factor used when importing an image into  
the picture frame.  
ESC%#B  
Enter GL/2 Language  
0
1
Use Previous GL/2 Pen Position  
Use Current PCL Cursor Position  
Exits PCL emulation and uses GL/2 commands to print.  
ESC%#A  
Enter PCL Emulation  
0
1
Use Previous PCL Cursor Position  
Use Current GL/2 Pen Position  
Exits GL/2 mode and uses PCL emulation commands to print.  
Table 1-18: Miscellaneous Commands  
Command / Parameters  
Function / Result  
ESC&s#C  
End-Of-Line Text Wrap  
This command is parsed and ignored.  
Display Functions On  
ESCY  
ESCZ  
ESCz  
This command is parsed and ignored.  
Display Functions Off  
This command is parsed and ignored.  
Print Test Page  
This command is parsed and ignored.  
SATO D512 PCL Programming Manual  
Page 1-25  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-18: Miscellaneous Commands (continued)  
Command / Parameters  
Function / Result  
ESC*o#M(b)  
Print Quality  
This command is parsed and ignored.  
Paper Type  
ESC&l#M(b)  
This command is parsed and ignored.  
Page 1-26  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
GL/2 COMMANDS  
Note: GL/2 is not a stand-alone plotter emulation. It can only be entered from  
within PCL emulation and cannot be used with software without a unique  
printer driver written explicitly for GL/2.  
Table 1-19: Configuration Group  
Escape Sequence  
Function  
Support  
CO  
DF  
IN  
GL/2: Comment  
GL/2: Default Values  
GL/2: Initialize  
IP  
GL/2: Input P1 and P2  
GL/2: Input Relative P1 and P2  
GL/2: Input Window  
GL/2: Rotate Coordinate System  
GL/2: Scale  
IR  
IW  
RO  
SC  
Limited  
Limited  
Table 1-20: Vector Group  
Escape Sequence  
Function  
Support  
AA  
AR  
AT  
BR  
BZ  
CI  
GL/2: Arc Absolute  
GL/2: Arc Relative  
GL/2: Absolute Arc Three Point  
GL/2: Bezier Relative  
GL/2: Bezier Absolute  
GL/2: Circle  
Not supported  
Not supported  
Not supported  
Not supported  
Not supported  
Limited  
PA  
PC  
PD  
PE  
PR  
PU  
RT  
GL/2: Plot Absolute  
GL/2: Pen Color  
Not supported  
Limited  
GL/2: Pen Down  
GL/2: Polyline Encoded  
GL/2: Plot Relative  
GL/2: Pen Up  
Not supported  
Limited  
GL/2: Arc Relative Three Point  
Not supported  
SATO D512 PCL Programming Manual  
Page 1-27  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-21: Polygon Group  
Escape Sequence  
Function  
Support  
EA  
EP  
GL/2: Edge Rectangle Absolute  
GL/2: Edge Polygon  
Limited  
Not supported  
Limited  
ER  
EW  
FP  
GL/2: Edge Rectangle Relative  
GL/2: Edge Wedge  
Not supported  
Not supported  
Not supported  
Limited  
GL/2: Fill Polygon  
PM  
RA  
RR  
WG  
GL/2: Polygon Mode  
GL/2: Fill Rectangle Absolute  
GL/2: Fill Rectangle Relative  
GL/2: Fill Wedge  
Limited  
Not supported  
Table 1-22: Character Group  
Escape Sequence  
Function  
Support  
AD  
CF  
CP  
DI  
GL/2: Alternate Font Definition  
GL/2: Character Fill Mode  
GL/2: Character Plot  
GL/2: Absolute Direction  
Not supported  
Not supported  
Not supported  
Limited—only right angles  
supported (DI1,0, DI0, 1, DI-1,  
0, and DI0,-1  
DR  
DT  
DV  
GL/2: Relative Direction  
Not supported  
GL/2: Define Label Terminator  
GL/2: Define Variable Text Path  
Limited—only left to right  
(DV0) and right to left (DV2)  
supported  
ES  
FI  
GL/2: Extra Space  
GL/2: Primary Font  
GL/2: Secondary Font  
GL/2: Label  
Not supported  
Not supported  
FN  
LB  
LO  
GL/2: Label Origin  
Limited—only end points 1, 3,  
and 7 supported  
SA  
SB  
SD  
SI  
GL/2: Select Alternate Font  
GL/2: Scalable or Bitmap Fonts  
GL/2: Define Standard Font  
GL/2: Absolute Character Size  
GL/2: Character Slant  
Not supported  
Not supported  
Not supported  
Not supported  
Not supported  
SL  
SR  
GL/2: Relative Character Size  
Page 1-28  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
Table 1-22: Character Group (continued)  
Escape Sequence  
Function  
Support  
SS  
GL/2: Select Standard Font  
GL/2: Transparent Data  
TD  
Not supported  
Table 1-23: Line and Fill Attributes Group  
Escape Sequence  
Function  
Support  
AC  
FT  
GL/2: Anchor Corner  
GL/2: Fill Type  
Not supported  
Not supported  
Not supported  
Limited  
LA  
LT  
GL/2: Line Attributes  
GL/2: Line Type  
PW  
RF  
SM  
SP  
GL/2: Pen Width  
GL/2: Raster Fill Definition  
GL/2: Symbol Mode  
GL/2: Select Pen  
Not supported  
Limited  
Limited  
SV  
TR  
UL  
WU  
GL/2: Screened Vectors  
GL/2: Transparency Mode  
GL/2: User-Defined Line Type  
GL/2: Pen Width Unit Selection  
Not supported  
Not supported  
Not supported  
Limited  
Table 1-24: Miscellaneous Group  
Command / Parameter  
Command Name  
Support  
CR  
LM  
MC  
NP  
PP  
GL/2: Color Range  
Not supported  
Not supported  
Not supported  
Not supported  
Not supported  
Not supported  
GL/2: Language Model  
GL/2: Logical Operation  
GL/2: Number of Pens  
GL/2: Pixel Placement  
GL/2: Threshold Matrix  
TM  
SATO D512 PCL Programming Manual  
Page 1-29  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
RASTER IMAGE GRAPHICS  
These commands utilize the raster area. Before sending data, set the presentation mode, the  
resolution, the compression mode, the raster height and width, and start raster graphics. These  
parameters are in effect until you overwrite them with a different command or there is a printer  
reset. To ensure that the printed image appears in the expected area, set width and height  
parameters.  
RASTER COMPRESSION MODE  
The Raster Compression Mode command determines how raster data is coded. It affects the  
amount of code required to create an image, and the efficiency of image printing.  
Syntax:  
ESC*b#M  
Parameters:  
0
Uncoded (default)  
1
2
3
Run-Length Encoded  
Tagged Image File Format (TIFF) Byte  
Delta  
5
9
Adaptive Compression  
Replacement Delta Row  
Zlib  
999  
1002  
1003  
1004  
1005  
1006  
1007  
1008  
Group 4  
Group 3 one dimensional  
Group 3 two dimensional K=2  
Group 3 two dimensional K=4  
TIFF word (16 bit)  
TIFF double-word (32 bit)  
Adaptive Compression (includes TIFF word and TIFF double-  
word)  
Descriptions and examples of the different parameters appear on the  
following pages. Each example draws the same square outline 64 bits  
(8 bytes) wide by 64 scan lines long.  
Page 1-30  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
UNCODED DATA  
Uncoded Data is not compressed. Only those bytes needed to form the  
image are sent. Each bit represents a single dot. In the first byte, bit 7  
corresponds to the first dot in the raster row, bit 5 to the third dot, and so forth.  
Example:  
ESC*p300x300Y  
|Move the cursor to 1" x 1" (1 in. from  
top margin and 1 in. from left edge  
of logical page)  
ESC*t100R  
ESC*r0F  
|Set resolution to 100 dots per inch  
|Rotate image to match current  
orientation  
ESC*b0M  
ESC*r1A  
|Set compression mode to Uncoded  
|Start raster graphics at current  
position  
ESC*b8W 'FF FF FF FF FF FF FF FF'x |Raster data uncompressed  
ESC*b8W '80 00 00 00 00 00 00 01'x  
ESC*b8W '80 00 00 00 00 00 00 01'x  
|Repeat to provide 64 total scan lines  
ESC*b8W '80 00 00 00 00 00 00 01'x  
ESC*b8W 'FF FF FF FF FF FF FF FF'x  
ESC*rB  
|End graphics  
SATO D512 PCL Programming Manual  
Page 1-31  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
RUN-LENGTH ENCODED DATA  
Run-Length Encoded Data is interpreted in pairs of bytes. The first byte:  
• Acts as a counter, or control byte.  
• Indicates how many times to repeat the data in the second byte.  
• Can be from 0 (no repetition) to 255.  
• The second byte is the data byte.  
Example:  
ESC*p300x600Y  
ESC*b1M  
|Move cursor to 1" x 2"  
|Set compression to Run-Length  
ESC*r1A  
|Start raster graphics at current  
position  
ESC*b2W '07FF'x  
ESC*b6W '0080 0500 0001'x  
ESC*b6W '0080 0500 0001'x  
|Run-Length: 8x'FF'x  
|1x'80'x, 6x'00'x, 1x'01'x  
|1x'80'x, 6x'00'x, 1x'01'x  
|...  
ESC*b6W '0080 0500 0001'x  
ESC*b2W '07FF'x  
ESC*rB  
|1x'80'x, 6x'00'x, 1x'01'x  
|8x'FF'x  
|End graphics  
Page 1-32  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
TAGGED IMAGE FILE FORMAT  
TIFF “Packbits” contain a control byte (a signed number) that indicates  
whether the raster data bytes are to be repeated (up to 127 times) or printed  
as encoded data.  
• For control values of 0 through 127, the next (Control+1) byte(s)  
uncoded.  
• For control values of -1 through -127 (FF’x - ‘81’x), the next byte is  
repeated (Abs(Control)+1) times.  
Example:  
ESC*p300x900Y  
ESC*b2M  
|Move cursor to 1" x 3"  
|Set compression to TIFF  
ESC*r1A  
|Start Raster Graphics at current  
position  
ESC*b2W 'F9FF'x  
| TIFF: 8x'FF'x  
ESC*b6W '0080 FB00 0001'x  
ESC*b9W '078000000000000001'x  
|1:'80'x, 6x'00'x, 1: '01'x or  
|8: '8000000000000001'x  
|…  
ESC*b6W '0080 FB00 0001'x  
ESC*b2W 'F9FF'x  
|1:'80'x, 6x'00'x, 1: '01'x  
|8x'FF'x  
ESC*rB  
|End graphics  
SATO D512 PCL Programming Manual  
Page 1-33  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
DELTA ROW  
Delta Row is a compression mode that identifies and transmits only those  
bytes different from the ones in a preceding row. The control byte consists of  
two parts:  
• High 3 bits: Number of bytes to replace +1 (1 to 8).  
• Low 5 bits: Offset from last unmodified byte (0-30); if the offset is 31,  
the next byte(s) is added to the offset until the next byte is not 255.  
Example:  
ESC*p300x1200Y  
|Move cursor to 1" x 4"  
ESC*b3M  
ESC*r1A  
|Set compression to Delta Row  
|Start raster graphics at current  
position  
|Num Offset  
ESC*b9W 'E0FFFFFFFFFFFFFFFF'x  
|'111 00000'b=8 at 0:  
'FFFFFFFFFFFFFFFF'x  
ESC*b9W 'E08000000000000001'x  
ESC*b0W  
|8 at 0: '8000000000000001'x  
|No bytes change  
ESC*b0W  
|No bytes change  
ESC*b9W 'E0FFFFFFFFFFFFFFFF'x  
ESC*rB  
|8 at 0: '8FFFFFFFFFFFFFF'x  
|End graphics  
Page 1-34  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
ADAPTIVE COMPRESSION  
Adaptive compression allows the combined use of compression methods  
0 through 3 (Uncoded, Run-Length Encoded, TIFF, and Delta Row). It also  
allows the printing of empty rows (all zeros) or duplicate rows.  
• The Transfer Raster Data command size includes all rows (scan  
lines).  
• Scan Mode and SizeH,L are three-byte primary control strings:  
CountH and CountL.  
Table 1-25: Adaptive Compression Control Strings  
Scan Mode  
CountH,CountL  
Data sizeH,L  
Data  
0
Uncoded raster scan data  
1
2
3
4
5
Data sizeH,L  
Data sizeH,L  
Data SizeH,L  
Size of Run-length encoded data (high,low)  
Size of Tagged Image File Format (TIFF) data (high,low)  
Size of Delta Row data (high,low)  
NumberH,L of empty rows None  
NumberH,L of duplicate  
rows  
None  
254  
255  
Data SizeH,L  
Data SizeH,L  
TIFF word  
TIFF double-word  
Example:  
ESC*p300x1500Y  
ESC*b5M  
|Move cursor to 1" x 5"  
|Set the compression to Adaptive  
Compression  
ESC*b29W  
|Raster Data: 29 bytes follow  
'03 0009'x 'E0FFFFFFFFFFFFFFFF'x |Delta Row: 8 at 0:  
'FFFFFFFFFFFFFFFFh'x  
'01 0006'x '0080 FB00 0001'x  
|Run Length: 1:'80'x, 6x'00'x, 1:'01'x  
|Duplicate rows: 61 times'02 0002'x  
|TIFF: 8x'FF'x  
'05 0035'x  
'F9FF 'x  
ESC*rB  
|End graphics  
SATO D512 PCL Programming Manual  
Page 1-35  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
ZLIB  
Zlib is a generic compression method. It refers to a standard for compression  
as well as the library that implements the standard.  
The zlib compression method uses the deflate algorithm. This same algorithm  
is used by more widely known compression utilities such as PKZIP and GZIP.  
Compressed data is a series of variably-sized blocks. An encoder determines  
how to break the data into blocks and finds the best compression method to  
use for each block.  
An encoder works based on the following principles. The encoder creates a  
dictionary containing different characters in a set of data. Short strings of bits  
represent more commonly occurring characters, and long strings of bits  
represent less frequently used characters. A probability tree determines  
which characters are frequently used. Repeated patterns in a string of  
characters are identified and stored, so the string doesn’t have to be stored  
multiple times.  
A three-bit zlib header is added to the beginning of a block to describe the  
type of compression used and indicates whether the block is a final block.  
Other information in the header includes checksums, compression algorithm  
used, and the level of compression. In compression all checksums are set to  
zero and in decompression the checksums are ignored.  
The memory required for zlib compression and decompression is  
independent of the size of the data to be compressed or decompressed.  
The number 999 does not conflict with other compression types, so it is used  
to represent zlib compression. See “Raster Compression Mode” in this  
section for more information.  
Page 1-36  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
GROUP 3 AND GROUP 4 RASTER COMPRESSION  
Since Group 4 images do not use line endings, the width of the image must  
be specified using the Raster Width command (ESC*r#S).  
The compressed image data is sent to the printer using the Transfer Raster  
Data command (ESC*b#W). The maximum number of bytes that can be sent  
using the Transfer Raster Data command is 32K bytes. Images larger than  
32K bytes must be broken up and sent using multiple commands. It does not  
matter where the image is broken, or how many Transfer Raster Data  
commands are used. Once the image is started (with a Transfer Raster Data  
command), no other commands are allowed until the entire image has been  
sent.  
The following example prints a Group 4 image file that is 256 bits wide and  
9,645 bytes long:  
ESC*b1002M  
ESC*r256S  
ESC*r1A  
|Set Raster Compression to Group 4  
|Define width of image in input bits  
|Start Raster Graphics at current  
position  
ESC*b9645W  
|9,645 bytes of a Group 4 image  
…[Group 4 image data]…  
ESC*rB  
|End Raster Graphics  
All lines of data must be the same length. If they are not, zeroes (0) must be  
added to attain the same length.  
Note: If the uncompressed image extends beyond the logical page dimensions or  
beyond the raster width specified in the Raster Width command (ESC*r#S),  
the image is clipped at print time.  
SATO D512 PCL Programming Manual  
Page 1-37  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 1: PCL Emulation  
MACROS  
When creating a macro, first assign it an ID number. If this number is identical to an existing  
macro ID in RAM, the old macro is deleted when you specify the Macro Control Start Definition.  
Next, start the macro definition, send the contents of the macro, and stop the macro definition.  
Note: Although a macro may be called or executed from within another macro (nesting), a macro  
cannot be defined within another macro definition. Each macro must be defined separately.  
Example:  
This example creates a macro to print the Wigit Corp. logo, then calls the logo macro in the body  
of a letter.  
ESC&f1Y  
|Set the macro ID to 1  
ESC&f0X  
|Start the macro definition  
ESC&a+72H  
|Relative move right 1/10 inch  
(+72/720th)  
ESC(8U  
ESC(s1p18v0s3b4101T  
|Select Roman-8 symbol set  
|Select CG Times 18 point bold  
|Print W  
W
ESC&a-21.6H  
ESC(s12v1S  
|Relative move left 0.03 inch  
|Select (CG Times) 12 point (bold)  
italic  
igit  
|Print igit  
ESC&a+72H  
ESC(s18v0S  
C
|Relative move right 1/10 inch  
|Select 18 point and turn off italic  
|Print C  
ESC(s12v1S  
orp.  
|Select 12 point italic  
|Print orp.  
ESC&a+72H  
ESC&f1X  
ESC&f10X  
|Relative move right 1/10 inch  
|End of macro definition  
|Make Macro ID 1 permanent  
From:  
|Print the header From:  
ESC&f1y3X  
|Set the macro ID to 1 and call the  
macro  
|Print the letter  
Thank you for …  
ESC&f1y3X  
|Print the closing  
|Set the macro ID to 1 and call the  
macro  
Page 1-38  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
1PRINTER JOB  
LANGUAGE  
• PJL Command Notation  
• Kernel Commands  
• Job Separation Commands  
• Environment Commands and  
Variables  
• Status Readback Commands  
• Status Message Format  
SATO D512 PCL Programming Manual  
Page 2-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
PRINTER JOB LANGUAGE  
Your printer supports complete Printer Job Language (PJL) commands, including certain  
commands that cause the printer to enter PCL emulation.  
To determine which commands your printer supports, see Section, “PCL Support.”  
PJL COMMAND NOTATION  
The syntax for each supported PJL command is listed in this chapter. The following character  
codes are used throughout the chapter to illustrate the syntax of each PJL command.  
Table 2-1: PJL Command Notation  
Character Code Description  
Hex Code  
0x1B  
Decimal Code  
<ESC>  
<LF>  
Escape Character  
27  
10  
13  
12  
9
Line Feed Character  
Carriage Return Character  
Form Feed Character  
Horizontal Tab  
0x0A  
<CR>  
<FF>  
0x0D  
0x0C  
<HT>  
<UEL>  
0x09  
Universal Exit Language  
0x1B 25 2D 31  
32 33 34 35 58  
Note:  
• Parameters enclosed in square brackets ([ ]) are optional and not  
required for command execution.  
• The PJL interpreter requires uppercase for the @PJL prefix for all PJL  
commands except the Universal Exit Language (UEL) command. The  
rest of the PJL command is not case sensitive. The UEL command is  
case sensitive.  
• All PJL commands except UEL must be terminated with a line feed  
character (<LF>).  
Page 2-2  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
KERNEL COMMANDS  
UNIVERSAL EXIT LANGUAGE Command  
The Universal Exit Language (UEL) command terminates the current printer  
language and allows dynamic switching into PJL.  
Syntax:  
<ESC>%-12345X  
Notes:  
The PJL commands must immediately follow the UEL command (that is, the  
X in the UEL syntax must be immediately followed by the @PJL of the next  
PJL command).  
ENTER LANGUAGE Command  
This command causes the printer to enter PCL emulation.  
Syntax:  
@PJL ENTER LANGUAGE = pcl[<CR>]<LF>  
Note: You can use uppercase, lowercase, or mixed case. (@PJL must be uppercase;  
all others can be mixed or lowercase.)  
COMMENT Command  
This command lets you add descriptive comments to your PJL job.  
Syntax:  
@PJL COMMENT words[<CR>]<LF>  
Notes:  
• When the printer receives this command, it is ignored.  
• The words parameter can be any combination of printable characters,  
spaces, and horizontal tabs.  
• The COMMENT command is terminated by the line feed character  
(<LF>).  
SATO D512 PCL Programming Manual  
Page 2-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
JOB SEPARATION COMMANDS  
You printer supports the PJL JOB and EOJ commands.  
JOB Command  
The host computer can use the JOB command to separate print data into  
various parts or jobs. Specifically, the JOB command signifies to the printer  
the start of a print job. Use the EOJ command to signify the end of a job. In  
addition, use the JOB/EOJ pair to accomplish the following:  
• Provide a job name.  
• Indicate which pages of the job should be printed.  
• Monitor the job status as it prints.  
Syntax:  
@PJL JOB [NAME = "job name"] [START = first page]  
[END = last page] [PASSWORD = number][<CR>]<LF>  
Notes:  
• The JOB command should only be used in conjunction with the EOJ  
command.  
• After receiving a JOB command, the printer does not process a UEL  
command as a PJL job boundary until it receives the corresponding  
EOJ. Instead, UELs occurring within a JOB/EOJ pair are processed  
as printer language resets (for example, PCL ESCE).  
Page 2-4  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
Parameters:  
NAME = "job name"  
Use the NAME parameter to assign a character string name to a particular job.  
The name may be any combination of printable characters, spaces or horizontal  
tabs up to a maximum of 80 characters, spaces, or tabs. The job name must be  
enclosed in double quotes, as indicated by the command syntax.  
START = first page  
Use the START parameter in conjunction with the END parameter to skip the  
printing of a particular portion of the job. The emulator discards pages of a job  
until the page specified by this parameter is reached. The first page range is from  
1 to 2,147,483,647. Omission of the START parameter causes the printer to start  
printing with page 1 of the job.  
END = last page  
Use the END parameter in conjunction with the START parameter to skip the  
printing of a particular portion of the job. The emulator discards all pages of a  
job after the last page has been printed. The specification of last page is relative to  
page 1 of the print job and its range is from 1 to 2,147,483,647. Omission of the  
END parameter causes the printer to print all pages to the end of the job.  
SATO D512 PCL Programming Manual  
Page 2-5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
EOJ Command  
The EOJ command signifies the end of a print job.  
Syntax:  
@PJL EOJ [NAME = "job name"][<CR>]<LF>  
Note:  
Only use the EOJ command in conjunction with the JOB command.  
Parameter:  
NAME = "job name"  
Use the NAME parameter to assign a character string name to a particular job.  
The name may be any combination of printable characters, spaces, or horizontal  
tabs up to a maximum of 80 characters, spaces, or tabs. The NAME string may  
be different from the NAME string specified in the JOB command. The job name  
must be enclosed in double quotes.  
Page 2-6  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
ENVIRONMENT COMMANDS AND VARIABLES  
This section describes the printer environment variables and the PJL commands used to modify  
or query the variables.  
The following commands modify the environment variables, and are described in this section:  
• DEFAULT  
• SET  
• INITIALIZE  
• RESET  
The following commands query the environment variables, and are described in “Status  
Readback Commands” on page 2-12.  
• INQUIRE  
• DINQUIRE  
• INFO  
• ECHO  
SATO D512 PCL Programming Manual  
Page 2-7  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
DEFAULT Command  
This command modifies the default setting for the specified environment  
variable and stores the setting in the printer NVRAM. The new setting is  
activated with the occurrence of the next PJL reset condition.  
Syntax:  
@PJL DEFAULT [command modifier:value] variable=value[<CR>]<LF>  
[command modifier:value]  
The [command modifier:value] parameter specifies the type of PJL variables to be  
modified. The variables supported are listed in “Table 2-2: PJL Variables” on  
page 2-10.  
variable=value  
The supported variables and values are listed in “Table 2-2: PJL Variables” on  
page 2-10.  
Note: Variables may be modified by the DEFAULT command, except those marked  
Read Only. Some variables may only be modified using the PJL SET  
command. These variables cannot be modified using the DEFAULT  
command. They are marked Set Only.  
Page 2-8  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
SET Command  
This command modifies the current setting for the specified environment  
variable. The new setting is active immediately, and remains active until the  
next occurrence of a PJL reset condition.  
Use the SET command to modify any currently defined environment variable  
that cannot be set using the desired printer language. For example, use the  
PJL SET command to set Page Protect, which cannot be set within a printer  
language such as PCL emulation.  
Syntax:  
@PJL SET [command modifier:value] variable=value[<CR>]<LF>  
where  
[command modifier:value]  
The [command modifier:value] parameter specifies the type of PJL variables to be  
modified. The variables supported are listed in  
“Table 2-2: PJL Variables” on page 2-10.  
variable=value  
The supported variables and values are listed in “Table 2-2: PJL Variables” on  
page 2-10.  
Note: Variables may be modified by the DEFAULT command, except those marked  
Read Only. Some variables may only be modified using the PJL SET  
command. These variables cannot be modified using the DEFAULT  
command. They are marked Set Only.  
INITIALIZE Command  
This command restores both the current and default environment variables to  
their factory default values and updates the printer NVRAM. This command  
affects all of the variables listed in “Table 2-2: PJL Variables” on page 2-10,  
except all read-only variables.  
Syntax:  
@PJL INITIALIZE[<CR>]<LF>  
SATO D512 PCL Programming Manual  
Page 2-9  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
RESET Command  
This command resets the current environment variables to the settings stored  
in the printer NVRAM. Therefore, any variables modified by the PJL SET  
command are returned to their default value after execution of the PJL  
RESET command.  
Syntax:  
@PJL RESET[<CR>]<LF>  
To determine which variables your printer supports, see “Table 1: PJL Variables” in this section.  
Table 2-2: PJL Variables  
Variable  
Function  
Selections  
Factory Default  
COPIES  
Number of copies  
of each page  
1 to 999  
1
Note: If a value greater than 999 is specified by  
a SET or DEFAULT command, the value is  
changed to 999.  
FORMLINES  
Lines per page  
1 to 255  
60  
Note: If a value greater than 255 is specified by  
a SET or DEFAULT command, the value is  
changed to 255.  
JOBNAME  
(SET only)  
Print and Hold  
Jobname  
“jobname”  
NULL  
(No jobname)  
jobname is a text string truncated to 24  
characters.  
Note: A null (“ ”) string is an acceptable value  
and indicates no Print and Hold Jobname is  
specified.  
ORIENTATION  
RESOLUTION  
LAUTOCRLF  
LAUTOLFCR  
LBLANKPAGES  
Print orientation  
Print Resolution  
Auto CR after LF  
Auto LF after CR  
Blank Pages  
PORTRAIT, LANDSCAPE  
300  
PORTRAIT  
300  
ON, OFF  
OFF  
ON, OFF  
OFF  
DONOTPRINT, PRINT  
DONOTPRINT  
Note: Some printers have a fixed value of  
DONOTPRINT.  
LCUSTOMPAPERUNITS  
LCUSTOMPAPERWIDTH  
Universal Units of  
Measure  
INCHES, MILLIMETERS  
INCHES  
Universal Width  
3 to 36.01 in increments of 0.01 in.  
216, 305 mm  
8.5, 12 in.  
(Model and country  
specific)  
Note: Values are determined to be inches or  
millimeters based on the  
LCUSTOMPAPERUNITS setting.  
LCUSTOMPAPERHEIGHT Universal Height  
76 to 915 in increments of 1 mm  
3 to 36.01 in increments of 0.01 in.  
4.2  
LCUSTOMPAPERFEED  
Universal Feed  
Direction  
SHORTEDGE, LONGEDGE  
SHORTEDGE  
Page 2-10  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
Table 2-2: PJL Variables (continued)  
Variable  
Function  
Selections  
0–17  
Factory Default  
FONTNUMBER  
FONTSOURCE  
Font Number  
Font Source  
0
I
I, S  
I
Internal font source  
S
Permanent download fonts  
PITCH  
Default pitch  
(fixed-pitch fonts)  
0.08 to 100 (in increments of 0.01)  
10.00  
12.00  
Note: If an invalid pitch is requested, the printer  
selects the closest pitch.  
PTSIZE  
SYMSET  
Default point size  
(proportional  
spaced fonts)  
1 to 1008 (in increments of 0.25)  
Note: If an invalid point size is requested, the  
printer selects the closest point size.  
Symbol set for the  
default font  
If a symbol set is requested that is not resident in PC8  
the printer, the symbol set is not changed.  
SATO D512 PCL Programming Manual  
Page 2-11  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
STATUS READBACK COMMANDS  
Applications can request configuration and status information from the printer using the Status  
Readback commands. In addition, the printer can also be instructed to send unsolicited status  
information back to the host computer when asynchronous events occur, such as a memory error  
or a paper jam.  
To determine which commands your printer supports, see “Table 4: Status Readback  
Commands” in this section.  
DINQUIRE Command  
This command is used to query the default setting (NVRAM) of the specified  
environment variable.  
Syntax:  
@PJL DINQUIRE [command modifier:value] variable[<CR>]<LF>  
Response Syntax:  
@PJL DINQUIRE [command modifier:value] variable<CR><LF>  
value<CR><LF>  
<FF>  
where:  
[command modifier:value]  
The [command modifier:value] parameter specifies the type of PJL variable to be  
queried. The variables supported are listed in “Table 2-2: PJL Variables” on  
page 2-10.  
variable=value  
The supported variables are listed in “Table 2-2: PJL Variables” on page 2-10.  
This printer returns a ? for inquiries of an unsupported variable, or inquiries of a  
variable associated with an option that is not installed.  
Page 2-12  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
ECHO Command  
The ECHO command instructs the printer to return the specified words after  
the command is parsed. This command provides a method of capturing the  
status information returned by a specific print job.  
Syntax:  
@PJL ECHO [words][<CR>]<LF>  
Response Syntax:  
@PJL ECHO [words]<CR><LF>  
<FF>  
words parameter  
The words parameter must start with a printable character and can consist of a  
combination of printable characters, spaces, and horizontal tabs.  
Note: The ECHO command is terminated by the line feed character.  
SATO D512 PCL Programming Manual  
Page 2-13  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
INFO Command  
The INFO command is used to query status information from the printer.  
Table 2-3 lists the categories of information that can be queried.  
See “Status Message Format” on page 2-18 for additional information about  
the messages returned by the INFO STATUS, USTATUS DEVICE, and  
USTATUS TIMED commands.  
Syntax:  
@PJL INFO category[<CR>]<LF>  
Response Syntax:  
@PJL INFO category<CR><LF>  
[one or more lines of printable characters, spaces, or tabs]<CR><LF>  
<FF>  
category  
Table 2-3 lists the supported categories.  
Table 2-3: INFO Category Parameter Values  
Category Values  
ID  
Description  
Returns the model name or the model number stored in the printer NVRAM.  
CONFIG  
Returns the printer configuration, including paper sources, paper sizes, and  
installed options.  
MEMORY  
PAGECOUNT  
STATUS  
Returns the printer available memory.  
Returns the printer page count.  
Returns the printer current status.  
VARIABLES  
USTATUS  
Returns the printer environment variables and values.  
Returns the printer unsolicited status variables and values.  
INFO CONFIG Response Syntax (An Example):  
@PJL INFO CONFIG<CR><LF>  
USTATUS [4 ENUMERATED]<CR><LF>  
DEVICE<CR><LF>  
JOB<CR><LF>  
PAGE<CR><LF>  
TIMED<CR><LF>  
MEMORY=2097152<CR><LF>  
<FF>  
Page 2-14  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
INQUIRE Command  
This command is used to query the current setting of the specified  
environment variable.  
Syntax:  
@PJL INQUIRE [command modifier:value] variable[<CR>]<LF>  
Response Syntax:  
@PJL INQUIRE [command modifier:value] variable<CR><LF>  
value<CR><LF>  
<FF>  
[command modifier:value]  
The [command modifier:value] parameter specifies the type of PJL variables to be  
queried. The variables supported are listed in  
“Table 2-2: PJL Variables” on page 2-10.  
variable=value  
The supported variables are listed in “Table 2-2: PJL Variables” on  
page 2-10.  
This printer returns a ? for inquiries of an unsupported variable, or inquiries of a  
variable associated with an option that is not installed.  
SATO D512 PCL Programming Manual  
Page 2-15  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
USTATUS Command  
This command is used to enable and disable unsolicited status from the  
printer. Unsolicited status information is sent automatically when an  
asynchronous event occurs. Table 2-4 lists the asynchronous information that  
can be enabled and disabled.  
Syntax:  
@PJL USTATUS ustatus variable=value[<CR>]<LF>  
Response Syntax:  
@PJL USTATUS ustatus variable<CR><LF>  
[one or more lines of printable characters, spaces, or tabs]<CR><LF>  
<FF>  
To determine which variables your printer supports, see “Table 2-4:  
USTATUS Unsolicited Status Variables” on this page.  
See “Status Message Format” on page 2-18 for additional information about  
the messages returned by the INFO STATUS, USTATUS DEVICE, and  
USTATUS TIMED commands.  
ustatus variable=value  
The following values are supported for the ustatus variable=value parameter.  
Table 2-4: USTATUS Unsolicited Status Variable Values  
Ustatus Variable  
Value  
Description  
DEVICE  
ON  
Enables unsolicited status for device changes.  
VERBOSE  
Enables unsolicited status for all device changes. Also  
enables warnings from the PJL parser.  
OFF  
ON  
Disables unsolicited status for device changes.  
JOB  
Enables unsolicited status for job changes. The printer  
sends a status message when a job begins and ends.  
OFF  
ON  
Disables unsolicited status for job changes.  
PAGE  
Enables unsolicited status for page changes. The printer  
sends a status message when a printed sheet reaches the  
standard output bin.  
OFF  
Disables unsolicited status for page changes.  
TIMED  
5 to 300 in  
seconds  
Enables timed unsolicited status. The printer automatically  
sends status at a specified time interval.  
0
Disables timed unsolicited status.  
Page 2-16  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
USTATUSOFF Command  
This command turns off unsolicited status. Unsolicited status may also be  
turned off by using the USTATUS command on each variable.  
Syntax:  
@PJL USTATUSOFF[<CR>]<LF>  
SATO D512 PCL Programming Manual  
Page 2-17  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 2: Printer Job Language  
STATUS MESSAGE FORMAT  
The format of the returned information from the INFO STATUS, USTATUS DEVICE, and  
USTATUS TIMED commands is described in this section.  
INFORMATION MESSAGES  
Information messages are returned in this form:  
CODE=status code  
DISPLAY=display string (in double quotes)  
ONLINE=online status  
Table 2-5: PJL Information Messages  
Printer State  
Ready  
Status Code  
10001  
Display String  
Ready  
Online Status  
TRUE  
Ready  
10001  
RDYMSG  
Not Ready  
TRUE  
Not Ready  
10002  
FALSE  
Page 2-18  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
1PCL SUPPORT  
SATO D512 PCL Programming Manual  
Page3-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 3: PCL Emulation Support  
PCL SUPPORT  
Table 3-1 lists PCL emulation commands and identifies printers that support them.  
For detailed information about PCL emulation commands and how to select them, see  
“PCL Emulation” on page 1-2.  
The section, “GL/2 Commands” on page 1-27 identifies printer support for the GL/2  
commands.  
Table 3-1: PCL Emulation Commands  
Supported  
Page numbers reference command descriptions  
Printer Model  
D512  
Not Supported  
Command  
Function  
Page  
1-9  
ESCE  
Printer Reset  
ESCY  
Display Functions-On  
Display Functions-Off  
Print Test Page  
1-25  
1-25  
1-25  
1-13  
1-12  
1-13  
1-11  
1-11  
1-11  
1-13  
1-13  
1-11  
1-15  
1-9  
ESCZ  
ESCz  
ESC&a#C  
ESC&a#G  
ESC&a#H  
ESC&a#L  
ESC&a#M  
ESC&a#P  
ESC&a#R  
ESC&a#V  
ESC&c#T  
ESC&d@  
ESC&d#A  
ESC&d#D  
ESC&f#F  
ESC&f#G  
ESC&f#O  
ESC&f#W  
ESC&f#S  
ESC&f#X  
ESC&f#Y  
ESC&k#G  
ESC&k#H  
Horizontal Cursor Position (in Columns)  
Duplex Page Side Selection  
Horizontal Cursor Position (in Decipoints)  
Set Left Margin  
Set Right Margin  
Print Direction  
Vertical Cursor Position (in Rows)  
Vertical Cursor Position (in Decipoints)  
Character Text Path Direction  
Underline-Disable  
Number of Collated Copies  
Underline-Enable  
1-15  
1-10  
1-10  
1-10  
1-10  
1-13  
1-17  
1-17  
1-13  
1-11  
Set Universal Height  
Set Universal Width  
Set Universal Feed Direction  
Set Universal Custom Name  
Push / Pop Cursor Position  
Macro Control  
Set Macro ID  
Set Line Termination  
Set Horizontal Motion Index  
Page 3-2  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 3: PCL Emulation Support  
Table 3-1: PCL Emulation Commands (continued)  
Supported  
Page numbers reference command descriptions  
Printer Model  
D512  
Not Supported  
Command  
Function  
Page  
1-16  
1-12  
1-10  
1-12  
1-12  
1-11  
1-11  
1-11  
1-10  
1-11  
1-10  
1-26  
1-12  
1-9  
ESC&k#S  
Select Primary and Secondary Pitch  
Text Scale Mode  
ESC&k#W  
ESC&l#A  
ESC&l#C  
ESC&l#D  
ESC&l#E  
ESC&l#F  
ESC&l#G  
ESC&l#H  
ESC&l#L  
ESC&l#O  
ESC&l#M(b)  
ESC&l#P  
ESC&l#S  
ESC&l1T  
ESC&l#U  
ESC&l#X  
ESC&l#Z  
Page Size  
Set Vertical Motion Index  
Set Line Spacing  
Set Top Margin  
Set Text Length  
Set Output Bin  
Paper Source  
Skip Perforation  
Select Orientation  
Paper Type  
Set Page Length  
Simplex/Duplex Print  
Job Separation  
1-11  
1-9  
Long-Edge Offset Registration  
Number of Copies  
Short-Edge Offset Registration  
Alphanumeric ID  
1-9  
1-9  
ESC&n#W [operation]  
[string id]  
ESC&p#C  
ESC&p#I  
ESC&p#S  
ESC&p#X[data]  
ESC&r#F  
ESC&s#C  
ESC&t#P  
ESC&u#D  
ESC(#  
Palette Control  
Palette Control ID  
Select Palette  
Transparent Print Data  
Flush All Pages  
1-15  
1-21  
1-25  
1-16  
1-10  
1-14  
1-15  
1-15  
1-16  
1-15  
1-14  
End-Of-Line Text Wrap  
Text Parsing Method  
Unit of Measure  
Primary Font Symbol Set  
Select Primary Download Font (by Font ID)  
Select Default Primary Font  
Define Symbol Set  
ESC(#X  
ESC(3@  
ESC(f#W[data]  
ESC(s#B  
Primary Font Stroke Weight  
Primary Font Pitch  
ESC(s#H  
SATO D512 PCL Programming Manual  
Page 3-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 3: PCL Emulation Support  
Table 3-1: PCL Emulation Commands (continued)  
Supported  
Page numbers reference command descriptions  
Printer Model  
D512  
Not Supported  
Command  
Function  
Page  
1-14  
1-14  
1-15  
1-14  
1-17  
1-14  
1-15  
1-15  
1-15  
1-14  
1-14  
1-14  
1-15  
1-14  
1-17  
1-21  
1-21  
1-22  
1-21  
1-19  
1-19  
1-17  
1-17  
1-17  
ESC(s#P  
Primary Font Spacing  
ESC(s#S  
Primary Font Style  
ESC(s#T  
Primary Font Typeface Selection  
Primary Font Height (Point Size)  
Load Character  
ESC(s#V  
ESC(s#W[data]  
ESC)#  
Secondary Font Symbol Set  
Select Secondary Download Font (by Font ID)  
Select Default Secondary Font  
Secondary Font Stroke Weight  
Secondary Font Pitch  
ESC)#X  
ESC)3@  
ESC)s#B  
ESC)s#H  
ESC)s#P  
Secondary Font Spacing  
Secondary Font Style  
ESC)s#S  
ESC)s#T  
Secondary Font Typeface Selection  
Secondary Font Height (Point Size)  
Load Font Header  
ESC)s#V  
ESC)s#W[data]  
ESC*b#M  
ESC*b#V[data]  
ESC*b#W[data]  
ESC*b#Y  
ESC*c#A  
ESC*c#B  
ESC*c#D  
ESC*c#E  
ESC*c#F  
Set Raster Compression Mode  
Transfer Raster Data (by Plane)  
Transfer Raster Data (by Row / Block)  
Y Offset  
Horizontal Rectangle Size (in PCL Units)  
Vertical Rectangle Size (in PCL Units)  
Set Font ID  
Set Character Code  
Font Control  
ESC*c#G  
Area Fill ID  
1-18,  
1-20  
ESC*c#H  
ESC*c#K  
ESC*c#L  
ESC*c#P  
ESC*c#Q  
ESC*c#R  
ESC*c#S  
ESC*c0T  
Horizontal Rectangle Size (in Decipoints)  
GL/2 Horizontal Plot Size (in Inches)  
GL/2 Vertical Plot Size (in Inches)  
Fill Rectangular Area  
1-19  
1-25  
1-25  
1-20  
1-19  
1-16  
1-16  
1-25  
Pattern Control  
Symbol Set ID Code  
Symbol Set Control  
Set Picture Frame Anchor Point  
Page 3-4  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 3: PCL Emulation Support  
Table 3-1: PCL Emulation Commands (continued)  
Supported  
Page numbers reference command descriptions  
Printer Model  
D512  
Not Supported  
Command  
Function  
Page  
1-19  
1-19  
1-25  
1-25  
1-18  
1-18  
ESC*c#V  
ESC*c#W[data]  
ESC*c#X  
ESC*c#Y  
ESC*l#O  
ESC*l#R  
ESC*l#W[data]  
ESC*m#W[data]  
ESC*o#M(b)  
ESC*o#W[data]  
ESC*p#P  
Vertical Rectangle Size (in Decipoints)  
User-Defined Pattern  
Picture Frame Horizontal Size (in Decipoints)  
Picture Frame Vertical Size (in Decipoints)  
Logical Operation  
Pixel Placement  
Color Lookup Tables  
Download Dither Matrix  
Print Quality  
1-26  
Driver Configuration Command  
Push / Pop Palette  
ESC*p#R  
ESC*p#X  
ESC*p#Y  
ESC*r#A  
Set Pattern Reference Point  
Horizontal Cursor Position (in PCL Units)  
Vertical Cursor Position (in PCL Units)  
Start Raster Graphics  
1-19  
1-13  
1-13  
1-21  
1-21  
1-21  
1-21  
ESC*r#F  
Raster Graphics Presentation Mode  
Raster Width (Source)  
ESC*r#S  
ESC*r#T  
Raster Height (Source)  
ESC*r#U  
Simple Color  
ESC*rB  
End Raster Graphics (Version B)  
End Raster Graphics (Version C)  
Inquire Status Readback Entity  
Free Space  
1-22  
1-22  
1-24  
1-24  
1-24  
1-24  
1-24  
1-22  
ESC*rC  
ESC*s#I  
ESC*s1M  
ESC*s#T  
Set Status Readback Location Type  
Set Status Readback Location Unit  
Echo  
ESC*s#U  
ESC*s#X  
ESC*t#H  
Raster Width Destination  
Gamma Correction  
ESC*t#I  
ESC*t#J  
Render Algorithm  
ESC*t#R  
Raster Resolution  
1-21  
1-23  
1-23  
ESC*t#V  
Raster Height Destination  
Set Raster Configuration  
Color Component One  
ESC*g#W  
ESC*v#A  
ESC*v#B  
Color Component Two  
SATO D512 PCL Programming Manual  
Page 3-5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 3: PCL Emulation Support  
Table 3-1: PCL Emulation Commands (continued)  
Supported  
Page numbers reference command descriptions  
Printer Model  
D512  
Not Supported  
Command  
Function  
Page  
ESC*v#C  
ESC*v#I  
Color Component Three  
Assign Color Index  
ESC*v#N  
ESC*v#O  
ESC*v#S  
Source Transparency Mode  
Pattern Transparency Mode  
Foreground Color  
1-18  
1-18  
ESC*v#T  
Select Current Pattern  
Configure Image Data  
Viewing Illuminant  
1-18  
ESC*v#W[data]  
ESC*i#W[data]  
ESC9  
Clear Horizontal Margins  
Half Line-Feed  
1-11  
1-13  
1-25  
1-25  
1-10  
ESC  
=
ESC%#A  
Enter PCL Emulation  
Enter GL/2 Language  
Universal Exit Language (UEL) / Start of PJL  
ESC%#B  
ESC%–12345X  
Table 2 lists GL/2 commands and identifies the printers that support them.  
Table 3-2: GL/2 Commands  
Supported  
Page numbers reference command descriptions.  
Printer Model  
Not Supported  
Command  
AA  
AC  
AD  
AR  
AT  
Function  
Page  
1-27  
1-29  
1-28  
1-27  
1-27  
1-27  
1-27  
1-28  
1-27  
1-27  
1-28  
1-29  
1-27  
1-28  
D512  
Arc Absolute  
Anchor Corner  
Define Alternate Font  
Arc Relative  
Arc Absolute Three Point  
Bezier Relative  
Bezier Absolute  
Character Fill  
Circle  
BR  
BZ  
CF  
CI  
CO  
CP  
Comment  
Character Plot  
Color Range  
CR  
DF  
Default  
DI  
Absolute Direction  
Page 3-6  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 3: PCL Emulation Support  
Table 3-2: GL/2 Commands (continued)  
Supported  
Page numbers reference command descriptions.  
Printer Model  
D512  
Not Supported  
Command  
Function  
Page  
1-28  
1-28  
1-28  
1-28  
1-28  
1-28  
1-28  
1-28  
1-28  
1-28  
1-28  
1-28  
1-29  
1-29  
1-29  
1-27  
1-27  
1-27  
1-27  
1-29  
1-28  
1-28  
1-28  
1-29  
1-29  
1-29  
1-29  
1-27  
1-27  
1-27  
1-27  
1-28  
1-29  
1-27  
DR  
DT  
DV  
EA  
EP  
ER  
ES  
EW  
FI  
Relative Direction  
Define Label Terminator  
Define Variable Text Path  
Edge Rectangle Absolute  
Edge Polygon  
Edge Rectangle Relative  
Extra Space  
Edge Wedge  
Primary Font  
FN  
FP  
Secondary Font  
Fill Polygon, Odd/Even  
Fill Polygon, Non-Zero Winding  
Fill Type  
FP  
FT  
FT  
FT  
IN  
Fill Type - 22  
Fill Type - 9  
Initialize  
IP  
Input P1 and P2  
Input Relative P1 and P2  
Input Window  
IR  
IW  
LA  
LB  
LO  
LO  
LT  
LM  
MC  
NP  
PA  
PC  
PD  
PE  
PM  
PP  
Line Attributes  
Label, Default Terminator = ‘03’x  
Label Origin  
Uses PCL Label Origin  
Line Type  
Label Mode  
Logical Operation  
Number of Pens  
Plot Absolute  
Pen Color  
Pen Down  
Polyline Encoded  
Polygon Mode  
Pixel Placement  
Plot Relative  
PR  
SATO D512 PCL Programming Manual  
Page 3-7  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 3: PCL Emulation Support  
Table 3-2: GL/2 Commands (continued)  
Supported  
Page numbers reference command descriptions.  
Printer Model  
D512  
Not Supported  
Command  
Function  
Page  
1-27  
1-29  
1-28  
1-29  
1-27  
1-28  
1-27  
1-28  
1-28  
1-27  
1-28  
1-28  
1-28  
1-29  
1-29  
1-28  
1-29  
1-29  
1-29  
1-29  
1-29  
1-29  
1-29  
1-28  
1-29  
PU  
PW  
RA  
RF  
RO  
RR  
RT  
SA  
SB  
SC  
SD  
SI  
Pen Up  
Pen Width  
Fill Rectangle Absolute  
Define Raster Fill  
Rotate Coordinate System  
Fill Rectangle Relative  
Arc Relative Three Point  
Select Alternate Font  
Scalable/Bitmapped Fonts  
Scale  
Define Standard Font  
Absolute Character Size  
Character Slant  
SL  
SM  
SP  
Symbol Mode  
Select Pen  
SR  
SS  
Relative Character Size  
Select Standard Font  
Screened Vectors  
Screened Vectors - 9, level  
Transparent Data  
Threshold Matrix  
Transparency Mode  
User Defined Line  
Fill Wedge  
SV  
SV  
TD  
TM  
TR  
UL  
WG  
WU  
Pen Width Units  
Page 3-8  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
1PJL SUPPORT  
SATO D512 PCL Programming Manual  
Page 4-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 4: Printer Job Language Support  
PRINTER JOB LANGUAGE SUPPORT  
The following tables list PJL commands and identify printers that support them.  
For detailed information about PJL commands, see Section 2, the Printer Job  
Language section, in this manual. All commands may not have a full description.  
Table 4-1: PJL Variables  
Supported  
Not Supported  
Page numbers reference variable descriptions and are listed for supported  
variables only.  
Default values are listed for exceptions only.  
Variable Name  
AUTOCONT  
Printer Model  
D512  
Page  
2-10  
2-10  
AUTOSELECT  
BINDING  
BITSPERPIXEL  
CLEARABLEWARNINGS  
CONTEXTSWITCH  
COPIES  
CPLOCK  
DENSITY  
DISKLOCK  
DUPLEX  
ECONOMODE  
FORMATTERNUMBER  
FORMLINES  
HOLD  
HOLDKEY  
HOLDTYPE  
IMAGEADAPT  
INTRAY1  
INTRAY2  
INTRAY3  
INTRAY4  
INTRAY5  
INTRAY1SIZE  
INTRAY2SIZE  
Page 4-2  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 4: Printer Job Language Support  
Table 4-1: PJL Variables (continued)  
Supported  
Not Supported  
Page numbers reference variable descriptions and are listed for supported  
variables only.  
Default values are listed for exceptions only.  
Printer Model  
D512  
Variable Name  
INTRAY3SIZE  
INTRAY4SIZE  
INTRAY5SIZE  
IOBUFFER  
Page  
IOSIZE  
JOBATTR  
JOBNAME  
2-10  
JOBOFFSET  
LANG  
LOWTONER  
MANUALFEED  
MEDIASOURCE  
MEDIATYPE  
MPTRAY  
ORIENTATION  
OUTBIN  
2-10  
PAGEPROTECT  
PAPER  
PARALLEL  
PASSWORD  
PERSONALITY  
POWERSAVE  
POWERSAVETIME  
PRINTQUALITY  
QTY  
RENDERMODE  
REPRINT  
RESOLUTION  
RESOURCESAVE  
RESOURCESAVESIZE  
RET  
2-10  
TIMEOUT  
SATO D512 PCL Programming Manual  
Page 4-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 4: Printer Job Language Support  
Table 4-1: PJL Variables (continued)  
Supported  
Not Supported  
Page numbers reference variable descriptions and are listed for supported  
variables only.  
Default values are listed for exceptions only.  
Printer Model  
D512  
Variable Name  
USERNAME  
WIDEA4  
Page  
Table 4-2: Common Variables for PCL Emulation  
Supported  
Not Supported  
Page numbers reference variable descriptions.  
Printer Model  
D512  
Variable Name  
FONTNUMBER  
FONTSOURCE  
PITCH  
Page  
PTSIZE  
SYMSET  
Table 4-3: Common Variables for PostScript Emulation  
Supported  
Not Supported  
Page numbers reference variable descriptions.  
Printer Model  
D512  
Variable Name  
JAMRECOVERY  
PRTPSERRS  
Page  
ADOBEMBT  
Page 4-4  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 4: Printer Job Language Support  
Table 4-4: Status Readback Commands  
Supported  
Not Supported  
Page numbers reference command descriptions.  
Printer Model  
D512  
Command Name  
Dinquire  
Echo  
Page  
2-12  
2-13  
2-14  
2-15  
2-16  
2-17  
Info  
Inquire  
Ustatus  
Ustatusoff  
Table 4-5: USTATUS Unsolicited Status Variables  
Supported  
Not Supported  
Page numbers reference variable descriptions.  
Printer Model  
D512  
Variable Name  
DEVICE  
JOB  
Page  
2-16  
2-16  
2-16  
2-16  
PAGE  
TIMED  
Table 4-6: Device Attendance Messages  
Supported  
Not Supported  
Page numbers reference message descriptions.  
Printer Model  
D512  
Message  
RDYMSG  
OPMSG  
STMSG  
Page  
SATO D512 PCL Programming Manual  
Page 4-5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 4: Printer Job Language Support  
Page 4-6  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
1BARCODE COMMANDS  
SATO D512 PCL Programming Manual  
Page 5-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 5: Bar Code Commands  
BAR CODE COMMANDS  
Table 5-1: PCL Emulation Escape Sequences  
Command / Parameters  
Function / Result  
ESC(s#P  
Determines the location of human-readable text printed with the bar  
code.  
or  
0
1
4
5
Use default value  
Do not print text  
Print text under bar code  
Print text above bar code  
ESC)s#P  
ESC  
Example:  
(s4p24670T  
Select Code 3 of 9 with human-readable text under the barcode. Because  
the v and h parameters are not specified, their values default to:  
v
h
0.4 inch  
automatically sized Roman Pillar bold  
ESC(s#H  
or  
Selects the font used for human-readable text. The numeric value of # is  
of the form CBA, where:  
A = typeface  
0–5  
ESC)s#H  
Note: The valid range is 0 to 5,  
regardless of the selection, the human-  
readable is printed with Roman Pillar  
Bold.  
B = size  
C = style  
0
0
1
2
3
4
Automatic font size (default)  
Default (bold)  
Bold  
Bold Italic  
Bold  
Bold Italic  
ESC  
Example:  
(5p504h24671T  
Selects Code 3 of 9 with check digit with automatically sized Roman  
Pillar Bold Italic text above the bar code. Because the v parameter is not  
specified, it value defaults to:  
v
0.7 inch  
ESC(s#V  
or  
Selects the height of the bar in points (1/72 inch).  
Except in symbologies where #V is a fixed value, the bar height can be  
varied from a minimum of 3 points (0.04 inch, 1 mm) to a maximum of  
960 points (13.33 inch, 33 cm).  
ESC)s#V  
ESC  
Example:  
(s36v24750T  
Selects the Codabar symbology with a bar height of 0.5 inch. Because  
the p and h parameters are not specified, their values default to:  
p
h
Do not print text  
Not applicable because of #p parameter value  
Page 5-2  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 5: Bar Code Commands  
Table 5-2: PCL Emulation Parameter List  
Command  
Function / Parameter (#v units are in 1/72”  
Select the bar code symbology.  
ESC(s#T  
or  
ESC)s#T  
Default Parameters1  
#v #p  
74.4  
Typeface #  
24600  
24601  
24602  
24610  
24611  
24612  
24620  
24621  
24622  
24630  
24631  
24632  
24640  
24641  
24650  
24651  
24660  
24661  
24670  
24671  
24672  
24673  
24680  
24681  
24690  
24691  
Bar Code Symbology  
UPC-A  
4
4
4
4
4
4
4
4
4
4
4
4
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
N
N
N
N
N
N
N
N
N
N
N
N
N
N
N
N
N
N
M
M
M
M
M
M
M
M
M
11  
13  
16  
6
Yes3  
Yes3  
Yes3  
Yes3  
Yes3  
Yes3  
Yes3  
Yes3  
Yes3  
Yes3  
Yes3  
Yes3  
No  
UPC-A + 2-digit supplemental  
UPC-A + 5-digit supplemental  
UPC-E  
74.4  
74.4  
28.8  
28.8  
28.8  
50.4  
50.4  
50.4  
74.4  
74.4  
74.4  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
UPC-E + 2-digit supplemental  
UPC-E + 5-digit supplemental  
EAN/JAN-8  
8
11  
7
EAN/JAN-8 + 2-digit supplemental  
EAN/JAN-8 + 5-digit supplemental  
EAN/JAN-13  
9
12  
12  
14  
17  
Even  
Odd  
---  
---  
---  
---  
---  
---  
---  
---  
---  
---  
---  
---  
---  
EAN/JAN-13 + 2-digit supplemental  
EAN/JAN-13 + 5-digit supplemental  
Interleaved 2 of 5  
Interleaved 2 of 5 + check digit  
Industrial 2 of 5  
Yes  
No  
Industrial 2 of 5 + check digit  
Matrix 2 of 5  
Yes  
No  
Matrix 2 of 5 + check digit  
Code 3 of 9  
Yes  
No  
Code 3 of 9 + check digit  
Code 3 of 9 space encoding  
Code 3 of 9 space encode +check digit  
Code 3 of 9 extended  
Yes  
No  
Yes  
No  
Code 3 of 9 extended + check digit  
Code 93  
Yes  
Yes  
Yes  
Yes  
Code 93 extended  
24700  
Code 128 autoswitch  
1
For bar code symbologies, the default value of the #H text font parameter is CBA = * = Fixed value, cannot be changed  
000 (automatically sized Roman Pillar bold).  
N = Numeric  
M = Mixed  
2
3
Does not include checksum character.  
Checksum character is always printed if human-readable text is specified.  
SATO D512 PCL Programming Manual  
Page 5-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 5: Bar Code Commands  
Table 5-2: PCL Emulation Parameter List (continued)  
Command  
Function / Parameter (#v units are in 1/72”  
Select the bar code symbology.  
ESC(s#T  
or  
ESC)s#T  
Default Parameters1  
#v #p  
28.8  
Typeface #  
24701  
24702  
24704  
24710  
24720  
24750  
24751  
24760  
24761  
24762  
24763  
24770  
24771  
24772  
24880  
Bar Code Symbology  
Code 128 A  
1
M
M
M
M
M
M
M
N
---  
Yes  
Yes  
Yes  
Code 128 B  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
28.8  
9*  
1
---  
Code 128 C  
1
---  
UCC 128  
5
---  
EAN 128  
1
---  
Yes  
No  
Codabar  
1
---  
Codabar +MOD 16 check digit  
MSI  
1
---  
Yes  
No  
1
---  
MSI + mod10 + mod10 check digits  
MSI + mod10 + mod10 check digits  
MSI + mod11 + mod10 check digits  
POSTNET 5-digit ZIP code  
POSTNET 9-digit ZIP code  
POSTNET 11-digit Delivery Point Code  
MaxiCode  
1
N
---  
Yes  
Yes  
Yes  
Yes  
Yes  
Yes  
Yes  
Yes  
1
N
---  
1
N
---  
1*  
1*  
1*  
1
N
5
9*  
N
9
9*  
N
11  
---  
Y
1’ square  
---  
24850  
PDF417  
---  
1
Y
1
For bar code symbologies, the default value of the #H text font parameter is CBA = * = Fixed value, cannot be changed  
000 (automatically sized Roman Pillar bold).  
N = Numeric  
M = Mixed  
2
3
Does not include checksum character.  
Checksum character is always printed if human-readable text is specified.  
CURSOR POSITIONING  
Cursor positioning is set as follows when printing with the Sato Bar Code Option:  
• From the current cursor position, bar code printing begins at the bottom left corner of the  
left bar.  
• The cursor is located at the bottom right corner of the right bar when printing is complete.  
• This cursor positioning applies both with and without accompanying human-readable text.  
Page 5-4  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 5: Bar Code Commands  
TWO-DIMENSIONAL BAR CODES  
MAXICODE PCL 5 COMMANDS TO SUPPORT MAXICODE BAR CODES  
Sato provides two methods to print MaxiCode bar codes. The final method uses two Sato unique  
commands ESC&x#W and ESC&y#W.  
BAR CODE DESCRIPTOR ESC&X#W[DESCRIPTOR DATA]  
This escape sequence is used to describe not only what bar code to print, but also all of the  
parameter settings required to build the bar code. The first two bytes of this command always  
designate the symbology. The remaining byte is then interpreted to specify the mode. # is the  
number of bytes of descriptor data. The descriptor data for MaxiCode would be the binary string  
00 02 01 (for mode 1), 00 02 02 (for mode 2), and so on.  
TRANSFER BAR CODE DATA ESC&Y#W[BAR CODE DATA]  
This new PCL 5 command is used to transfer a raw block of bar code data to be encoded. The  
bar code data is encoded according to what was specified in the last valid Bar Code Descriptor  
command received. If no valid Descriptor is sent, then this command is ignored and the data is  
flushed. # is the number of bytes of bar code data.  
BAR CODE DESCRIPTOR FOR MAXICODE  
Below is the header definition of the bar code descriptor for MaxiCode:  
Table 5-3: MaxiCode Descriptor Header Definition  
Bytes  
0–1  
MSB  
LSB  
Symbology ID byte (00x)  
Mode  
Symbology ID byte 2 (02x)  
Reserved  
2–3  
Symbology ID bytes 0 and 1: (Required = 00 02x)  
These two bytes signify the symbology. For MaxiCode, these two bytes must  
be 00x and 02x.  
Mode: (Default = 02x)  
This field designates what mode to use when interpreting the input data. Valid  
modes are (in hex).  
Table 5-4: MaxiCode Mode Values  
Bytes  
02x  
03x  
04x  
05x  
06x  
MSB  
Structured carrier message with numeric postal code  
Structured carrier message with alphanumeric postal code  
Standard symbol with standard error correction  
Full symbol with enhanced error correction  
Reader Program with standard error correction  
SATO D512 PCL Programming Manual  
Page 5-5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 5: Bar Code Commands  
MaxiCode Notes  
Depending on the mode, the input data sent with the Transfer Bar Code Data  
command must follow the following rules:  
Rule 1: For all modes the input data must start with a label-number field and  
number-of-labels field. Both fields are one digit in length and are  
terminated with either a comma or Group Separator (GS, ASCII 29,  
hexadecimal 1D).  
Rule 2: For modes 2 and 3 there are 3 extra fields that must follow the label  
fields. These include the postal code, country code, and class of  
service. Each field must be terminated with either a comma or GS.  
Rule 3: A mode 2 postal code can be 0 to 9 digits.  
Rule 4: A mode 3 postal code can be 0 to 6 alphanumeric characters (any  
printable character in code set A as defined in AIM spec).  
Rule 5: The country code must be 3 digits in length and thus padded with  
leading zeros if necessary.  
Rule 6: The class of service must be 3 digits in length and thus padded with  
leading in zeros if necessary.  
Rule 7: For modes 2 and 3 an optional ANSI Message Header (for example  
[)>RS01GSyy) can be inserted prior to the postal code. (RS = record  
separator, ASCII 30, hexadecimal 1D;yy is a two digit year). This  
message is automatically moved to the secondary message. Neither  
a group separator nor a comma should terminate this message.  
An optional secondary message follow the class of service for modes 2  
and 3. For modes 4, 5, and 6 the message follows the number-of-labels field.  
Page 5-6  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 5: Bar Code Commands  
MAXICODE EXAMPLES USING TRANSFER BAR CODE DATA COMMAND  
Here are some MaxiCode examples of the ASCII data that would be sent with the Transfer Bar  
Code Data Command:  
Mode 2, separated with commas:  
ESC&y48W1,1,40361,840,001,This is the secondary message.  
Mode 3, separated with commas:  
ESC&y48W1,1,ABC01,840,001,This is the secondary message.  
Mode 3, separated with GS and commas plus optional ANSI Message  
Header (yy=99):  
ESC&y45W1,1,[)RS01GS99ABC01GS840GS022GSsecondary message  
Mode 4, separated with commas:  
ESC&y28W1,1, Here is a mode 4 message  
HUMAN-READABLE TEXT  
Because two-dimensional bar codes are capable of encoding thousands of characters, human-  
readable interpretation of the data may not be practical. Alternatively, descriptive text rather than  
literal text may be printed with the symbol. If printed, any character size and font available may  
be selected, and the text may be printed anywhere desired near the symbol. The text must not  
interfere with the bar code symbol or the quiet zones.  
FUNCTIONAL PARAMETERS FOR MAXICODE (TYPEFACE SELECTION METHOD)  
The data sent when using this second technique of printing MaxiCode symbols will follow the  
same rules that exist for data sent using the Transfer Bar Code Data Command to print  
MaxiCode symbols, with the following change to rule 1. (See “Rule 1” on page 2-6.) The input  
data must start with a label-number field, a number-of-labels field, and a mode field. All three of  
these fields are one digit in length and are terminated with either a comma or Group Separator  
(GS, ASCII 29).  
Example of MaxiCode commands using typeface selection:  
ESC(s24800TESC&p105X1,1,3,152382802,840,001,[)  
RS01GS961Z00004951GSUPSNGS06X610GS159GS1234567GS  
1/1GS10GSYGS634 ALPHA  
DRGSGSPITTBURGHGSPARS  
Where:  
ESC=escape character decimal 27, hexadecimal 1B  
RS=record separator decimal 30, hexadecimal 1E  
GS=group separator decimal 29, hexadecimal 1D  
SATO D512 PCL Programming Manual  
Page 5-7  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 5: Bar Code Commands  
FUNCTIONAL PARAMETERS FOR PDF417  
The #p parameter specifies the level of error correction to use: 0–8. In relation to the fields of the  
Sato Bar Code Descriptor for PDF417, the following correspondences exist when using this  
technique:  
ECC Level  
Specified by #p parameter  
Examples of PDF 417 commands:  
ESC(s0p24850TABCDEFG  
Encodes the string “ABCDEFG” in a PDF417 symbol with error correction  
level 0.  
Page 5-8  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
1PRINTER LANGUAGE  
CHANGE COMMANDS  
• Setting the printer to SBPL  
• Setting the printer to PCL  
SATO D512 PCL Programming Manual  
Page 6-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 6: PRINTER LANGUAGE CHANGE COMMANDS  
SETTING THE PRINTER TO SBPL LANGUAGE  
This chapter discusses setting the printer to the SBPL language, and setting the printer to PCL  
language.  
Command to set SBPL Language  
The SBPL command sets the printer to SBPL mode and causes all  
subsequent data to be processed as SBPL data. The change is retained  
even if the printer is turned off.  
Syntax:  
@PJL ENTER LANGUAGE=SBPL<CR><LF>  
Response:  
None  
SETTING THE PRINTER TO PCL LANGUAGE  
Command to set PCL Language  
PCL Language Set Command  
ESC+R  
N
The PCL command sets the printer to PCL mode. The change is retained  
even if the printer is turned off.  
Command Function:  
To set the printer language to PCL.  
Command Structure:  
<ESC>A  
Page 6-2  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 6: PRINTER LANGUAGE CHANGE COMMANDS  
<ESC>RN  
<ESC>Z  
SATO D512 PCL Programming Manual  
Page 6-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Unit 6: PRINTER LANGUAGE CHANGE COMMANDS  
This page intentionally left blank.  
Page 6-4  
SATO D512 PCL Programming Manual  
Download from Www.Somanuals.com. All Manuals Search And Download.  
1SATO CONTACTS  
2
3
4
Download from Www.Somanuals.com. All Manuals Search And Download.  
5
6
SATO GROUP OF COMPANIES  
International Headquarters  
American Region  
SATO INTERNATIONAL PTE. LTD.  
438A Alexandra Road #05-01/04,  
SATO INTERNATIONAL AMERICA, INC.  
(Regional Headquarters)  
Alexandra Technopark, Singapore 119967  
10350-A Nations Ford Road, Charlotte, NC 28273, U.S.A.  
Phone: 65-6271-2122 Fax: 65-6271-2151  
Phone: 1-704-644-1650  
Fax: 1-704-644-1662  
SATO AMERICA, INC.  
10350-A Nations Ford Road, Charlotte, NC 28273, U.S.A.  
Asia Pacific & Oceania Region  
Phone: 1-704-644-1650  
Fax: 1-704-644-1662  
SATO INTERNATIONAL ASIA PACIFIC PTE. LTD.  
(Regional Headquarters)  
438A Alexandra Road #05-01/04,  
Alexandra Technopark, Singapore 119967  
SATO LABELING SOLUTIONS AMERICA, INC.  
Romeoville Division  
1140 Windham Parkway, Romeoville, IL 60446, U.S.A.  
Phone: 1-630-771-4200  
Phone: 65-6271-5300  
Fax: 65-6273-6011  
Fax: 1-630-771-4210  
Horticulture Division  
SATO ASIA PACIFIC PTE. LTD.  
438A Alexandra Road #05-01/04,  
Alexandra Technopark, Singapore 119967  
930 Jimmy Ann Drive, Daytona Beach, FL 32117, U.S.A.  
Phone: 1-386-274-5566  
Fax: 1-386-274-5599  
Phone: 65-6271-5300  
Fax: 65-6273-6011  
European Region  
SATO SHANGHAI CO., LTD.  
SATO INTERNATIONAL EUROPE N.V.  
(Regional Headquarters)  
307 Haining Road, ACE Bldg., 10th Floor, Hongkou Area,  
Shanghai 200080, China  
Phone: 86-21-6306-8899 Fax: 86-21-6309-1318  
Leuvensesteenweg 369, 1932 Sint-Stevens-Woluwe, Belgium  
Phone: 32-2-788-80-00  
Fax: 32-2-788-80-80  
SATO AUTO-ID MALAYSIA SDN. BHD.  
No.25, Jalan Pemberita U1/49, Temasya Industrial Park,  
Section U1, 40150 Shah Alam, Selangor Darul Ehsan,  
Malaysia  
Phone: 60-3-7620-8901 Fax: 60-3-5569-4977  
SATO UK LTD.  
Valley Road, Harwich, Essex CO12 4RR, United Kingdom  
Phone: 49-6272-9201-0  
Fax: 49-6272-9201-399  
SATO AUTO-ID (THAILAND) CO., LTD.  
292/1 Moo 1 Theparak Road, Tumbol Theparak,  
Amphur Muang, Samutprakarn 10270, Thailand  
SATO LABELLING SOLUTIONS EUROPE GmbH  
Ersheimer Straße 71, 69434 Hirschhorn, Germany  
Phone: 44-1255-240000  
Fax: 44-1255-240111  
Phone: 662-736-4460  
Fax: 662-736-4461  
SATO FRANCE S.A.S.  
SATO AUSTRALIA PTY LTD.  
Parc d'Activités, Rue Jacques Messager,  
59 175 Templemars, France  
1/1 Nursery Avenue, Clayton Business Park, Clayton,  
VIC 3168, Melbourne, Australia  
Phone: 33-3-20-62-96-4  
Fax: 33-3-20-62-96-55  
Phone: 61-3-8814-5330 Fax: 61-3-8814-5335  
SATO POLSKA SP. Z O.O.  
SATO NEW ZEALAND LTD.  
ul. Wrocꢀawska 123, Radwanice, 55-015 ꢁw. Katarzyna,  
Poland  
30 Apollo Drive, Mairangi Bay, Auckland , New Zealand  
Phone: 64-9-477-2222  
Fax: 64-9-477-2228  
Phone: 48-71-381-03-60  
Fax: 48-71-381-03-68  
SATO IBERIA S.A.  
• Extensive contact information of worldwide SATO  
operations can be found on the Internet at  
Dels Corrals Nous, 35-39, Pol. Can Roqueta,  
08202 Sabadell, Barcelona, Spain  
Phone: 34-902-333-341  
Fax: 34-902-333-349  
Download from Www.Somanuals.com. All Manuals Search And Download.  

PYLE Audio Stereo Amplifier PT 1100 PT3300 User Guide
Pyramid Technologies Power Supply PS 52K User Guide
RCA Electric Grill DRC630N User Guide
Samsung Camcorder VP MX10 User Guide
Samsung CRT Television TXP1430F, TXP1634F, TXP2022 User Guide
Samsung MP3 Player YP 910GS User Guide
Samsung Telephone SCH i760 User Guide
Sanyo Digital Camera VCC 5884EA User Guide
Sanyo DVD VCR Combo HV DX1E User Guide
Seagate Computer Drive ST160LT007 9ZV14D User Guide