Brother QL-700 Verweisanleitung

Seite von 37
 
Description 
This selects the compression mode. Data compression is only enabled with raster 
graphic transfer data. 
Definition of {n} 
No-compression mode    (Enabled) 
Reserved                                (Disabled) 
TIFF 
                (QL-580N/650TD/1050/1060N) 
    In case QL-650TD, only enabled with serial 
interface 
  In case QL-580N/1060N, serial and LAN 
interface should set TIFF option. 
【TIFF(Pack Bits)】 
1. 1-byte unit 
When the same data is repeated, the number of repetitions and the one-byte 
data are specified. 
When the data is different, the number of data items and all data are specified. 
.When the same data is repeated, the number of data units is specified as the 
actual number minus 1, expressed as a negative number. 
When the number of different data units is specified, that number of bytes minus 
1 is expressed as a positive number.   
.If the above process results in more than 90 bytes of compressed data, the data 
is treated as being all different. As a result, there are 91 bytes, including the 1 
byte specifying the data length. 
 
Example:  Compression example 
Without compression   
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 22 22 23 BA BF A2 22 2B ……
 
 
With compression   
ED 00 FF 22 05 23 BA BF A2 22 2B … 
a      b        c                           
a.  00H continues for 20 bytes, so 20 Dec -> 19 Dec -> 13 Hex, made into a 
negative number ED Hex. 
Therefore, ED 00 
b.  22H continues for 2 bytes, so 2 Dec -> 1 Dec -> 1 Hex, made into a negative 
number FF Hex. 
Therefore, FF 22 
c.  The following 6 bytes remain unchanged. 6 Dec-> 5 Dec ->5 Hex.   
Therefore, 05 23 BA BF A2 22 2B 
This continues for up to 90 bytes. Even if the remainder of the 90 bytes consists 
only of 00 Hex, it cannot be omitted. (In case QL-1050, 162 bytes) 
 
Brother QL-500/550/560/570/580N/650TD/700/1050/1060N Command Reference   
22