
Unit 1: PCL Emulation
Page 1-32
SATO D512 PCL Programming Manual
R
UN
-L
ENGTH
E
NCODED
D
ATA
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
|Move cursor to 1" x 2"
ESC
*b1M
|Set compression to Run-Length
ESC
*r1A
|Start raster graphics at current
position
ESC
*b2W '07FF'x
|Run-Length: 8x'FF'x
ESC
*b6W '0080 0500 0001'x
|1x'80'x, 6x'00'x, 1x'01'x
ESC
*b6W '0080 0500 0001'x
|1x'80'x, 6x'00'x, 1x'01'x
…
|...
ESC
*b6W '0080 0500 0001'x
|1x'80'x, 6x'00'x, 1x'01'x
ESC
*b2W '07FF'x
|8x'FF'x
ESC
*rB
|End graphics
Summary of Contents for D512
Page 1: ...D512 PCL PROGRAMMING MANUAL PN 9001180B...
Page 4: ...PN 9001180B SATO D512 PCL PROGRAMMING MANUAL...
Page 61: ...SATO D512 PCL Programming Manual Page3 1 1PCL SUPPORT...
Page 69: ...SATO D512 PCL Programming Manual Page 4 1 1PJL SUPPORT...
Page 74: ...Unit 4 Printer Job Language Support Page 4 6 SATO D512 PCL Programming Manual...
Page 75: ...SATO D512 PCL Programming Manual Page 5 1 1BARCODE COMMANDS...
Page 85: ...Unit 6 PRINTER LANGUAGE CHANGE COMMANDS SATO D512 PCL Programming Manual Page 6 3 ESC RN ESC Z...
Page 87: ...1SATO CONTACTS 2 3 4...