Esc [F0]+[03]+[N]+[D1] - Hengstler eXtendo X-56 Reference Manual

Firmware: v2.00 (usb and rs-232)
Hide thumbs Also See for eXtendo X-56:
Table of Contents

Advertisement

®
eXtendo
Emulation Command Set Reference
2.1.47
ESC [F0]+[03]+[n]+[d1]..[dn]
[Name]
Print RLE8 compressed graphics
[Function]
This command allows printout of a single graphic dot line that is RLE8
compressed.
16
[Code]
[1B]
10
[27]
[Description]
1.
The "ESC [F0]+[03]+[n]+[d1]..[dn]" command specifies a single RLE8 compressed dot line of 448
dots (for an X-56, 203 dpi printer) or 640 dots (for an X-80, 203 dpi printer).
2.
RLE8 is an 8-bit, run length encoded compression method, where the dot lines are compressed
into a repeated sequence of one header byte and one or more data bytes. The most significant bit
of the header byte indicates if the data byte(s) represent a run - multiple occurrence of the same
character - (bit raised), or a repeated sequence of characters (bit lowered). The lower 7 bits of the
header byte represents the number of characters in the run or sequence. "n" represents the total
number of bytes needed to encode the entire 56 or 80 byte dot line, including the header byte(s).
It is possible to have more than one header byte in a single command; if the first header byte and
the number of data bytes defined by it are fewer in total than "n", then the next byte will be
interpreted as a header byte.
Header Byte
Bit 7 (MSB)
Bits 6 – 0
Examples:
16
- Header [83]
, followed by a single data byte [44]
as run of 3 of the same bytes. ([83]
same character, and the lower seven bits equal "3".) The data byte [44]
associated with it three times in a row.
16
- Header [03]
, followed by three data bytes [44]
bytes are a 3 byte sequence. ([03]
the lower seven bits equal "3".) The data bytes [44]
associated with each once.
3.
The uncompressed dot line contains 56 or 80 bytes (X-56 or X-80, respectively), whereas the
leftmost dot is represented by the most significant bit of the first byte. The rightmost dot in a dot
line is represented by the least significant bit of the last byte.
4.
[n] represents the number of bytes that are required to RLE8 compress the 56 or 80 bytes dot
line, including header byte(s). If, for example, an RLE8 compressed dot line results in 10 bytes,
then the RLE8 compression command becomes: [1B]
5.
If the number of bytes required for RLE8 compression exceeds 56 or 80 (X-56 or X-80,
respectively), then it is faster to use the "Print uncompressed graphics" command "ESC
[F0]+[02]+[n]+[d1]..[dn]" instead.
6.
A dot is considered to be on (black) if its corresponding bit is 1 and off if the bit is 0.
7.
Any character settings like inverse, double width, etc. have no effect on this command.
Part No. D 684 112
16
16
+ [F0]
+ [03]
+ [n]
10
10
+ [240]
+ [03]
+ [n]
Bit 7 = 0
Data is a "sequence"; the
following series of data
characters are printed once
The number of characters that
make up the sequence
16
has the MSB high, indicating a multiple occurrence of the
16
has the MSB low, indicating a sequence of characters, and
Mod.Nr. 4 150813 LEV
Print RLE8 compressed
graphics
16
+ [d1]..[dn]
10
+ [d1]..[dn]
Bit 7 = 1
Data is a "run"; the same
character repeated "Y" times
The number of times the
character will be repeated;
"Y"
16
, indicates that the data byte is to interpreted
16
16
16
16
[45]
[46]
, indicates that the following data
16
16
16
[45]
[46]
will print the dot pattern
16
16
16
+[F0]
+[03]
+[0A]
will print the dot pattern
16
+[d1]..[d10].
Page 66 of 95

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Extendo x-80

Table of Contents