Detailed instructions for use are in the User's Guide.
[. . . ] 1-2 Page Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 Font and Symbol Set Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4 Command Structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6 Command Structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [. . . ] ESC*b6W '0080 FB00 0001'x ESC*b2W 'F9FF'x ESC*rB
ESC*b6W ESC*b2W
|Move cursor to 1" x 3" |Set compression to TIFF |Start Raster Graphics at current position | TIFF: 8x'FF'x |1:'80'x, 6x'00'x, 1: '01'x or |8: '8000000000000001'x |. . . |1:'80'x, 6x'00'x, 1: '01'x |8x'FF'x |End graphics
SATO TF-5S CHASSIS KIT PCL Programming Manual
Page 1-33
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 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 TF-5S CHASSIS KIT 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 TF-5S CHASSIS KIT 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. The zlib compression method uses the deflate algorithm. 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 TF-5S CHASSIS KIT PCL Programming Manual
Page 1-37
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. 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 ESC&f0X ESC&a+72H ESC(8U ESC(s1p18v0s3b4101T
W
ESC&a-21. 6H ESC(s12v1S
|Set the macro ID to 1 |Start the macro definition |Relative move right 1/10 inch (+72/720th) |Select Roman-8 symbol set |Select CG Times 18 point bold |Print W |Relative move left 0. 03 inch |Select (CG Times) 12 point (bold) |Print igit |Relative move right 1/10 inch |Select 18 point and turn off italic |Print C |Select 12 point italic |Print orp. |Relative move right 1/10 inch |End of macro definition |Make Macro ID 1 permanent
italic igit ESC&a+72H ESC(s18v0S C ESC(s12v1S orp. ESC &a+72H ESC&f1X ESC&f10X . . . ESC&f1y3X . . .
|Print the header From: |Set the macro ID to 1 and call the macro |Print the letter |Print the closing |Set the macro ID to 1 and call the macro
Page 1-38
SATO TF-5S CHASSIS KIT PCL Programming Manual
1PRINTER JOB LANGUAGE
· · · · · · PJL Command Notation Kernel Commands Job Separation Commands Environment Commands and Variables Status Readback Commands Status Message Format
SATO TF-5S CHASSIS KIT PCL Programming Manual
Page 2-1
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. [. . . ] 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 TF-5S CHASSIS KIT 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. [. . . ]