6-51
100 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1
110 GJ$=CHR$(&H77)+CHR$(&H21)
120 PRINT #1,CHR$(&H12);"F0";
'16 dots font
130 PRINT #1,CHR$(&H1C);"2";GJ$;
'7721H
140 RESTORE 570 : N=32 : GOSUB 540
150 PRINT #1,CHR$(&H12);"F1";
'24 dots font
160 PRINT #1,CHR$(&H1C);"2";GJ$;
'7721H
170 RESTORE 600 : N=72 : GOSUB 540
180 FOR I=&H30 TO &H33
'2330
~
2333
190 K$=K$+CHR$(&H23)+CHR$(I)
200 NEXT I
210 FOR I=&H41 TO &H44
'2341
~
2344
220 K$=K$+CHR$(&H23)+CHR$(I)
230 NEXT I
240 FOR I=&H21 TO &H23
'3021
~
3023
250 K$=K$+CHR$(&H30)+CHR$(I)
260 NEXT I : K$=K$+GJ$
270 PRINT #1,CHR$(&H1C);"&";
280 FOR J=0 TO 1
290 PRINT #1,CHR$(&H12);"F";CHR$(J);
300 FOR I=0 TO 1
310 PRINT #1,CHR$(&H1C);"W";CHR$(I);
320 PRINT #1,CHR$(&H1C);"r";CHR$(I);K$
330 NEXT I : NEXT J
340 PRINT #1,CHR$(&H1C);"W0";
350 PRINT #1,CHR$(&H1C);"J";
360 FOR I=2 TO 0 STEP -1
370 PRINT #1,CHR$(&H1C);"-";CHR$(I);K$
380 NEXT I
390 PRINT #1,CHR$(&H1C);"K";
400 FOR I=2 TO 0 STEP -1
410 PRINT #1,CHR$(&H1C);"-";CHR$(I);K$
420 NEXT I
430 FOR I=2 TO 0 STEP -1
440 PRINT #1,CHR$(&H12);"Y";CHR$(I);K$
'Rotation
450 NEXT I
460 PRINT #1,CHR$(&H1C);"!";CHR$(&HBD);K$
470 PRINT #1,CHR$(&H1C);"!";CHR$(&H0);K$
480 FOR I=0 TO 18
490 PRINT #1,CHR$(&H1C);"S";CHR$(I);CHR$(I); 'Kanji
space
500 PRINT #1,CHR$(&H30);CHR$(&H21+I);
510 NEXT I : PRINT #1,CHR$(&H0D);CHR$(&H1C);".";
520 CLOSE #1
530 END
540 FOR I=0 TO N-1
550 READ D$ : PRINT #1,CHR$(VAL("&h"+D$));
560 NEXT I : RETURN
570 '16x16 Font
580 DATA 80,80,C0,C0,E0,E0,F0,F0,F8,F8,FC,FC,FE,FE,FF,FF
590 DATA 80,80,C0,C0,E0,E0,F0,F0,F8,F8,FC,FC,FE,FE,FF,FF
600 '24x24 Font
610 DATA 80,80,80,C0,C0,C0,E0,E0,E0,F0,F0,F0,F8,F8,F8,FC
620 DATA FC,FC,FE,FE,FE,FF,FF,FF,80,80,80,C0,C0,C0,E0,E0
630 DATA E0,F0,F0,F0,F8,F8,F8,FC,FC,FC,FE,FE,FE,FF,FF,FF
640 DATA 80,80,80,C0,C0,C0,E0,E0,E0,F0,F0,F0,F8,F8,F8,FC
650 DATA FC,FC,FE,FE,FE,FF,FF,FF
Figure 6-11 Program Sample 6
Содержание DPU-S245
Страница 1: ...DPU S245 SERIES THERMAL PRINTER TECHNICAL REFERENCE U00117152801 ...
Страница 12: ...2 2 Dimensions 83 130 45 1 3 63 5 75 2 9 7 38 Unit mm Figure 2 1 Dimensions Paper Outlet ...
Страница 87: ...6 42 Figure 6 10 Print Sample 5 ...
Страница 97: ...6 52 Figure 6 12 Print Sample 6 ...
Страница 122: ...6 77 Figure 6 24 Print Sample 12 ...
Страница 125: ...6 80 Figure 6 28 Print Sample 14 ...
Страница 168: ...A 3 A 2 INTERNATIONAL CHARACTER SETS The following codes differ depending on the international character set selected ...
Страница 170: ...A 5 A 4 KANJI QUARTER SIZE CHARACTER SET ...