Using The Run Length Encoding Method - Avery Dennison ADTP1 Reference Manual

Monarch tabletop printer 1
Hide thumbs Also See for ADTP1:
Table of Contents

Advertisement

Using the Run Length Encoding Method

The following steps explain how to derive a run length character string from a bitmapped graphic.
Each square on the grid represents a dot. A black square indicates the dot is ON, and a white
square indicates the dot is OFF.
Note:
The following example shows "1" to indicate when a square is ON, and "0" to indicate
when a square is OFF. Dots do not have to be converted when using the run length
method.
00000000 00000000 00000000 00000000 00000000 00000000 00111111 11111111 11111111 11110000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000001 11111111 11000000 00000000 00000000 00001111 11111000 00000000 00000000
00000000 00000000 00000000 00000000 00111110 00000000 00000000 00000000 00000000 00000000 00001111 11000000 00000000
00000000 00000000 00000000 00000011 11000000 00000000 00111111 11111111 11111111 11110000 00000000 00011110 00000000
00000000 00000000 00000000 01111100 00111111 11111111 11111111 11111111 11111111 11111111 11111111 11100001 11110000
00000000 00000000 00000001 10000011 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111110 00001100
00000000 00000000 00000001 10001111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111110
00000000 00000000 00000001 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111110
00000000 00000000 00000001 11111111 11111111 11111111 11111000 00000000 00000000 11111111 11111111 11111111 11111110
00000000 00000000 00000001 11111111 11111111 11110000 00000000 00000000 00000000 00000000 01111111 11111111 11111100
00000000 00000000 00000000 01111111 10000000 00000000 00000111 11111111 11111111 00000000 00000000 00111111 11110000
00000000 00000000 00000000 00011111 11000000 00000000 00000111 11111111 11111111 00000000 00000000 00011111 11000000
00000000 00000000 00000000 00011100 00000011 11111111 11111111 11111111 11111111 11111111 11111110 00000001 11000000
00000000 00000000 00000000 00000000 00111111 11111111 11111111 11111111 11111111 11111111 11111111 11100001 11000000
00000000 00000000 00000000 00000011 11111111 11110000 00000000 00000000 00000000 00000000 01111111 11111110 00000000
00000000 00000000 00000000 00011111 11000000 00000000 00000111 11111111 11111111 00000000 00000000 00011111 11000000
00000000 00000000 00000000 00011100 00000011 11111111 11111111 11111111 11111111 11111111 11111110 00000001 11000000
00000000 00000000 00000000 00000000 00111111 11111111 11111111 11111111 11111111 11111111 11111111 11100001 11000000
00000000 00000000 00000000 00000011 11111111 11110000 00000000 00000000 00000000 00000000 01111111 11111110 00000000
00000000 00000000 00000000 00011111 11000000 00000000 00000111 11111111 11111111 00000000 00000000 00011111 11000000
00000000 00000000 00000000 00011100 00000011 11111111 11111111 11111111 11111111 11111111 11111110 00000001 11000000
00000000 00000000 00000000 00000000 00111111 11111111 11111111 11111111 11111111 11111111 11111111 11100001 11000000
00000000 00000000 00000000 00000011 11111111 11110000 00000000 00000000 00000000 00000000 01111111 11111110 00000000
00000000 00000000 00000000 00011111 11000000 00000000 00000111 11111111 11111111 00000000 00000000 00011111 11000000
00000000 00000000 00000000 00011100 00000011 11111111 11111111 11111111 11111111 11111111 11111110 00000001 11000000
00000000 00000000 00000000 00000000 00111111 11111111 11111111 11111111 11111111 11111111 11111111 11100001 11000000
00000000 00000000 00000000 00000011 11111111 11110000 00000000 00000000 00000000 00000000 01111111 11111110 00000000
00000000 00000000 00000000 00011111 11000000 00000000 00000111 11111111 11111111 00000000 00000000 00011111 11000000
00000000 00000000 00000000 00011100 00000011 11111111 11111111 11111111 11111111 11111111 11111110 00000001 11000000
00000000 00000000 00000000 00000000 00111111 11111111 11111111 11111111 11111111 11111111 11111111 11100001 11000000
00000000 00000000 00000000 00000011 11111111 11110000 00000000 00000000 00000000 00000000 01111111 11111110 00000000
00000010 00000000 00000000 00011111 11000000 00000000 00000111 11111111 11111111 00000000 00000000 00011111 11000000
00000011 00000000 00000000 00011100 00000011 11111111 11111111 11111111 11111111 11111111 11111110 00000001 11000000
00000001 11100000 00000000 00000000 00111111 11111111 11111111 11111111 11111111 11111111 11111111 11100001 11000000
00000000 11100000 00000000 00000011 11111111 11110000 00000000 00000000 00000000 00000000 01111111 11111110 00000000
00000000 11111100 00000000 00011100 00000011 11111111 11111111 11111111 11111111 11111111 11111110 00000011 11000000
00000000 11111110 00000000 00000000 00111111 11111111 11111111 11111111 11111111 11111111 11111111 11100011 11000000
1. Count the number of consecutive OFF or ON dots in a row. Write the number of consecutive
dots in sequence for the first row on the grid. Write "ON" or "OFF" after each number to
indicate ON or OFF dots.
(row 1, position 50) 26 on
(row 2, position 39) 11 on, 26 off, 9 on
(row 3, position 34) 5 on, 45 off, 6 on
2. Replace each number with its corresponding code from the Dot to Run Length Encoding Chart
provided in Appendix C, "Symbol Sets/Code Pages." Be sure to use CAPITAL letters for black
dots and lower-case letters for white dots.
26 on (Z)11 on (K), 26 off (z), 9 on (I)..
If the number is greater than 26, write z, followed by the letter corresponding to the
amount over 26. For example, to represent 45 off dots, write zs.
5 on (E), 45 off (zs), 6 on (F)..
3. Write the letter codes in sequence, uninterrupted, for each row.
(row 1,position 50) Z
(row 2,position 39) KzI
(row 3,position 34) EzsF
(row 4,position 30) DpZoD..
Note:
If the end of the line specifies OFF dots (lower-case letters), the ending lower-case
letters can be omitted. For example, uZFu can be written as uZF.
4. Repeat steps 1 through 5 for each row on the grid.
5. Insert the code values in syntax format.
5-4 Packet Reference Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents