
Printek Emulation
The counter may be considered as either a signed 7 bit value or an unsigned 8 bit value.
For signed 7 bit values: 0 ≤ c ≤ 127 Process the next (c + 1) bytes as simple 8 bit graphic patterns.
-128 ≤ c ≤ –1 Repeat the next byte (-c + 1) times.
For unsigned 8 bit values: 0 ≤ c ≤ 127 Process the next (c+1) bytes as simple 8 bit graphic patterns.
128 ≤ c ≤ 255 Repeat the next byte (256 - c + 1) times.
Example: The following escape sequence will print a graphic image that is two lines long and six bytes (48
bits) wide as shown below. Note that the outlines for each bit are shown only to explain this example and that
only the image represented by the black “bits” will actually be printed.
In the following escape sequence the data bytes are shown in binary. The hexadecimal values for each byte are
shown on the second line.
ESC v 2 6 255 01010101 255 10101010 3 00010001 00100010 00110011 01000100 253 10011001
1B 76 02 06 FF 55 FF AA 03 11 22 33 44 FD 99
Vector Graphics ESC > id lines size data
ESC > id p data t
Note: This feature is only available in units with firmware version 2.8 or later.
Vector graphics may be used to print images of straight lines, curved lines, or even more complex shapes such
as a person’s signature. Each shape is defined as one or more “line segments”. A curved line is simply several
shorter, straight lines connected together. To define such a line, the data sent to the printer contains the
endpoints, or nodes, of each line segment and the printer will draw the entire line by drawing line segments
between the nodes.
Note that the image will be automatically scaled, up or down, to fit between the currently defined left and right
margins.
Vector graphic data may be sent in two different formats as specified by id and as described below.
id lines size data
0 lines = Eight bit value indicating the number of lines to be drawn. This is the number of distinct
lines, not line segments.
size = wmsb wlsb hmsb hlsb = 16 bit width and 16 bit height of the grid that the image will be
specified in. The image does not have to be this large, but nodes may not be specified
outside of the grid size. Maximum values: w = 65,535, h = 32,767.
data = xmsb xlsb ymsb ylsb = 16 bit X position and 16 bit Y position of each node. Multiple
lines are drawn in a single graphic image by setting the most significant bit of ymsb = 1
(0x80). This indicates the
end of the current line and will cause no line segment to be
drawn between this node and the next.
20
Kommentare zu diesen Handbüchern