Unit 1: PCL Emulation
Page 1-32 SATO D512 PCL Programming Manual
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 |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