
EVOLIS CARD PRINTER
Evolis Printers Programming Guide Page 5
Part Number: A5013 Rev. E
4- Data compression
In order to optimize the downloading time, Evolis has added a new transmission mode with
compression of the data.
Definition of the compression:
Compression of the YMC Panels:
The (MSB) bit of each byte is reserved for the interpretation of a counter or not.
• If the bit is set to 1, the other 7 bits will indicate the weight of the bit to be applied. The following byte
indicates a value of repetitive counter. If the value of this counter is equal to zero, we consider the line
as blank. If the value of the counter is different to 0, we repeat the byte the number of time of the
counter. In the case of the modes with 6 bits or 5 bits, the bits 6 and 5 of the first bytes are used to
increase the counter value.
• If this bit is equal to 0, the other 7 bits will indicate the weight of the bit to be applied. This is an isolated
dot in the line.
Bit8 at zero
Writing 1 point Y, M or C.
0 Value on 5,6 or 7 bits
Bit8 at one
Writing counter point Y,M or C.
In 7 bits (128 levels) counter max= 255
1 Value to be repeated x counter
times
Counter
In 6 bits (64 levels) counter max= 256+255
1 If 1
ctp+256
Value to be repeated
x counter times
Counter
In 5 bits (32 levels) counter max= 256+256+255
1 If 1
ctp+256
If 1
ctp+256
Value to be
repeated x
counter
times
Counter
Writing of a white line for Y,M or C
1 Counter = 0 0x 00
Compression of K and O:
The compression is done line per line.
If the first byte describing a line is equal to 0, it means that the line is white.
If the first byte describing a line is equal to 255, it means that the line is black.
If the line is not white and not black, the first byte indicates the number of byte(s) useful of the line.
This counter is followed by the useful bytes. The counter corresponds to the index of the last byte of the
line.
Comentários a estes Manuais