Chapter 4 — ESim Commands
ESim for the PC4 and PF8 Printers Programmer’s Reference Manual 83
GW - Store Graphics In Image Buffer
Purpose: Use this command to store binary graphics files directly in the image
buffer.
Syntax: GW p
1
,p
2
,p
3
,p
4
,“DATA”
.
Remarks: Use this command instead of GM for temporarily used graphics, for
example images that change between each label. Not only is this
method faster, but it also prolongs the life of the flash memory as the
graphics are downloaded directly to SRAM.
The firmware calculates exactly how much data to expect based on
p
3
and
p
4
.
Example:
00 FF FF 00 3F FF FF FE 5F FF FF FE 6F FF FF FE
77 FF FF FE 7B FF FF FE 7D FF FF FE 7E FF FF FE
FF 7F FF FF FF BF FF FF FF DF FF FF FF EF FF FF
FF F7 FF FF FF FB FF FF FF FD FF FF FF FE FF FF
FF FF 7F FF FF FF BF FF FF FF DF FF FF FF EF FF
FF FF F7 FF FF FF FB FF FF FF FD FF 7F FF FE FE
7F FF FF 7E 7F FF FF BE 7F FF FF DE 7F FF FF EE
7F FF FF F6 7F FF FF FA 7F FF FF FC 00 00 00 00
GW Command Parameter Descriptions
Parameter Description
p
1
X-position in printer dots
p
2
Y-position in printer dots.
p
3
Number of bytes across the graphic
(8 dots = 1 byte).
p
4
Number of dot rows going down the graphic.
“DATA” The graphic data in 1-bit (black and white)
binary format. First data-byte represent dots
in upper left corner and next data-byte next to
the right. “1” bits are white dot-positions and
“0”-bits are black dot-positions. The total
amount of “DATA” bytes are p
3
* p
4
.