Star Micronics XR-1520 Printer User Manual


 
3 .
-
Hexadecimal dump
This feature is useful for programmers who am debugging printing programs
and want to see the actual codes the printer is receiving. (Some computers
change the codes the programmer intended.)
In this mode, all data received will be printed in a hexadecimal dump format,
rather than the control codes being acted on as command codes.
-
This mode is accessed with the following procedure:
1. While holdingboththe 1 PAPER FEED 1 and Iak&ZzT buttons down,
turn power ON. A beep tone will be heard.
2. Begin printing. In place of the usual printout you will get a formatted
dump showing exactly what data the printer receives. Each line presents
sixteen characters, their hexadecimal codes to the left and printable
characters printed on the right.
3. At the end of the hexadecimal dump, set the printer off-line with the
1
ON LINE 1 button. This is necessary to print the last line.
The following BASIC program is a simple test you can nm in hexadecimal
-
-
__
mode:
10 WIDTH “LPT1:“,255
20 FOR I=0 TO 255
30 LPRINT CHRB(I):
40 NEXT I
50 LPRINT
60 END
If your system passes the codes directly to the printer without changing them,
you will get a printout like Figure 5-5.
Figurn 5-S Sample hexadecimal dump.
48
-