Chapter —Commands
GRP – Reply Graphics from Printer Buffer
This command is used to dump part of the printer buffer back to
Description
the host via the serial port.
Syntax
GRPp
Parameters
p
1
p
2
p
3
p
4
p
5
This command is the reverse of GW and can be used to verify
Remarks
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
-p
1
Note: There is no flow control or handshaking when sending
this data to the host, so use this command only for small areas.
The command
Example
GRP20,10,4,32,h↵
will give a reply in hexadecimal format like the one shown below.
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
4
ESim v5.12 for EasyCoder PD4—Programmer's Reference Manual
,p
,p
,p
[,p
]
1
2
3
4
5
X-position in printer dots.
Y-position in printer dots.
Number of bytes across the graphic (8 dots = 1 byte).
Number of dot rows going down the graphic.
Parameter setting the format of the data. Allowed values are:
B Binary, not inversed
b Binary, inversed (default)
H Hexadecimal, not invesed
h Hexadecinmal, inversed
above, and the format of this data by p
4
.
5