74 ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual
Chapter 7—Commands
GRP – Reply Graphics from Printer Buffer
Description is command is used 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
]
Parameters 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 invesed
h Hexadecinmal, inversed
Remarks is command is the reverse of GW 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
.
Note: ere is no flow control or handshaking when sending
this data to the host, so use this command only for small areas.
Example e command
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