Printek MtP300 Printer User Manual


 
Printek Emulation
Variable Value Description
h 1 h 255 Number of graphic lines in the data to follow.
w MtP300: 0 w 72
MtP400: 0 w 104
Number of bytes per graphic line in the data to
follow. Each byte contains 8 bits.
data A line of graphic data
bytes where the value of
each byte is 0-255
h x w bytes per line are required.
Example 1: The following escape sequence will print a horizontal line 2mm long starting 2mm from the left
margin.
Escape Sequence: ESC # 1 4 0 0 255 255
Hexadecimal: 1B 23 01 04 00 00 FF FF
Example 2: The following escape sequence will print a square box 2mm x 1mm starting 2mm from the left
margin, and then move the paper forward an additional 5mm.
Escape Sequence: ESC # 8 4 0 0 255 255
Hexadecimal 1B 23 08 04 00 00 FF FF
Escape Sequence: 0 0 128 1
Hexadecimal 00 00 80 01
Escape Sequence: 0 0 128 1
Hexadecimal 00 00 80 01
Escape Sequence: 0 0 128 1
Hexadecimal 00 00 80 01
Escape Sequence: 0 0 128 1
Hexadecimal 00 00 80 01
Escape Sequence: 0 0 128 1
Hexadecimal 00 00 80 01
Escape Sequence: 0 0 128 1
Hexadecimal 00 00 80 01
Escape Sequence: 0 0 255 255
Hexadecimal 00 00 FF FF
Escape Sequence: ESC J 40
Hexadecimal: 1B 4A 28
8 Bit Compressed Graphics ESC v h w c data [c data] [c data] …
This command differs from the 8 Bit Graphics command described above by reducing the number of bits
(bytes) that have to be sent to the printer. This allows for faster data transfer between the host computer and the
printer.
Variable Value Description
h 1 h 255 Number of graphic lines in the image.
w MtP300: 0 w 72
MtP400: 0 w 104
Number of bytes in each graphic line of the image.
c 0 c 255 Counter(s) describing how following bytes are to be
interpreted. A description of how counter values
and the following data are interpreted follows this
table.
data Graphic data bytes where
the value of each b
y
te is
Graphic data bytes to be interpreted as specified by
the preceding counter, c.
17