Detailed instructions for use are in the User's Guide.
[. . . ] D512 PCL PROGRAMMING MANUAL
PN: 9001180B
SATO America, Inc.
10350A Nations Ford Road Charlotte, NC 28273 Main Phone: (704) 644. 1650 Technical Support: (704) 644. 1660 Technical Support Fax: (704) 644. 1661 E-Mail: satosales@satoamerica. com techsupport@satoamerica. com www. satoamerica. com Copyright 2008 SATO America, Inc. All rights reserved
WARNING
THE EQUIPMENT REFERENCED IN THIS DOCUMENT COMPLIES WITH THE REQUIREMENTS IN PART 15 OF FCC RULES FOR A CLASS B COMPUTING DEVICE. OPERATION OF THIS EQUIPMENT IN A RESIDENTIAL AREA MAY CAUSE UNACCEPTABLE INTERFERENCE TO RADIO AND TV RECEPTION.
Table of Contents
PCL Emulation PCL Emulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
Selecting PCL Emulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [. . . ] · 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 ESC
*p300x1200Y *b3M ESC *r1A
ESC*b9W ESC*b9W ESC*b0W
'E0FFFFFFFFFFFFFFFF'x 'E08000000000000001'x
|Move cursor to 1" x 4" |Set compression to Delta Row |Start raster graphics at current position |Num Offset |'111 00000'b=8 at 0: 'FFFFFFFFFFFFFFFF'x |8 at 0: '8000000000000001'x |No bytes change |No bytes change |8 at 0: '8FFFFFFFFFFFFFF'x |End graphics
. . .
ESC*b0W ESC*b9W ESC*rB
'E0FFFFFFFFFFFFFFFF'x
Page 1-34
SATO D512 PCL Programming Manual
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 0 1 2 3 4 5 254 255 CountH, CountL Data sizeH, L Data sizeH, L Data sizeH, L Data SizeH, L NumberH, L of empty rows NumberH, L of duplicate rows Data SizeH, L Data SizeH, L Data Uncoded raster scan data 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) None None 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 '05 0035'x |Duplicate rows: 61 times'02 0002'x 'F9FF 'x |TIFF: 8x'FF'x ESC *rB |End graphics
SATO D512 PCL Programming Manual
Page 1-35
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. This same algorithm is used by more widely known compression utilities such as PKZIP and GZIP. An encoder determines how to break the data into blocks and finds the best compression method to use for each block. 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. 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
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. [. . . ] (RS = record separator, ASCII 30, hexadecimal 1D;yy is a two digit year). 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
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: &y48W1, 1, 40361, 840, 001, This is the secondary message. Mode 3, separated with commas: &y48W1, 1, ABC01, 840, 001, This is the secondary message.
ESC
ESC
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, humanreadable interpretation of the data may not be practical. [. . . ]