User manual
35
PRINT DOWNLOADED LOGOS - To print a downloaded logo #2 starting at row/column position 50,120 send:
<SP50,120><LD2>
The following sample Basic program illustrates one way to send a downloaded logo to the printer (use the figure
for reference).
10 CLS
20 OPEN "COM1:9600,N,8,1,RS,DS60000" AS #1
30 PRINT#1,CHR$(27);
40 PRINT#1,"<RC0,0><G21>";
50 FOR X=1 TO 21:READ A:PRINT#1,CHR$(A);:NEXT X
60 DATA 3,12,24,48,96,70,70,64,64,64,64,64,67,65,64,64,64,72,85,85,34
70 PRINT#1,CHR$(13);
80 PRINT#1,"<G21>";
90 FOR X=1 TO 21:READ A:PRINT#1,CHR$(A);:NEXT X
100 DATA 224,24,12,6,3,49,49,1,1,1,1,1,97,193,1,1,1,137,85,85,34
110 PRINT#1,CHR$(27);
120 END
Lines 30 and 110 send the ESC character that must bracket the transmission. Line 40 sends the initial
reference point of row 0,column 0 and signals the printer that there are 21 graphics bytes coming. The first byte
sent is a value of 3. Refer to the figure to see how this is determined. Note that semicolons are used to
suppress spaces and carriage returns being sent between bytes and commands. Any extraneous data sent will
cause unwanted results. Also note that in this example a return character chr$(13) is sent in place of the
row/column command in line 70. Therefore, you could double the size of this logo by sending a <HW2,2>
command before the print logo command.
DOWNLOADING IN ASCII FORMAT - Downloading of logos can be done in ASCII format just like ASCII
graphics. It follows all of the above rules except that a small g is used instead of a capital G and the bytes of
data are represented as ASCII characters not decimal. The Basic program above would be re-written for ASCII
downloading mode as follows:
10 CLS
20 OPEN "COM1:9600,N,8,1,RS,DS60000" AS #1
30 PRINT#1,CHR$(27);
40 PRINT#1,"<RC0,0><g42>";
45 PRINT#1,"030C18306046464040404040434140404048555522";
50 PRINT#1,CHR$(13);
55 PRINT#1,"<g42>";
60 PRINT#1,"E0180C06033131010101010161C101010189555522";
65 PRINT#1,CHR$(27);
70 END