Chapter 4 — ESim Commands
82 ESim for the PC4 and PF8 Printers Programmer’s Reference Manual
GRP - Reply Graphics From Print Buffer
Purpose: Use this command to dump part of the printer buffer back to the host
via the serial port.
Syntax: GRPp
1
,p
2
,p
3
,p
4
[,p
5
]
.
Remarks: This command is the reverse of the GW command and can be used to
verify that data has been rendered correctly. What part of the print
buffer is sent back to the host is specified by the the parameters p
1
-p
4
above, and the format of this data by p
5
.
Example:
GRP20,10,4,32,h
The command above replies in hexadecimal format like the example
shown below.
GRP 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.
p
5
Parameter setting the format of the data.
Allowed values are:
B = Binary, not inversed.
b = Binary, inversed (default).
H = Hexadecimal, not inversed.
h = Hexadecimal, inversed.
Note: There is no flow control or handshaking when sending
this data to the host, so use this command only for small
areas.