6-76
110 OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1
120 PRINT #1,"***** BARCODE TEST *****"
130 FOR I=0 TO 7
140 RESTORE 380
150 FOR J=0 TO I
160 READ CODE$
'Get Code Name
170 NEXT J
180 RESTORE 400
190 FOR J=0 TO I
200 READ DAT$ 'Get Bar Data
210 NEXT J
220 PRINT #1,CHR$(&H1D);"w";CHR$(I MOD 3);CHR$(I MOD 4);
'Narrow/Wide
230 PRINT #1,CHR$(&H1D);"P";CHR$(I MOD 3);
'Bar Position
240 PRINT #1,CHR$(&H1D);"h";CHR$(I*10+100); 'Bar
Height
250 PRINT #1,CHR$(&H1D);"H";CHR$(I MOD 4);
'Strings position
260 PRINT #1,CHR$(&H1D);"f";CHR$(I MOD 2);
'Storings Font Size
270 PRINT #1,"*****";CODE$;"*****"
280 IF I=7 THEN GOTO 300
290 PRINT #1,CHR$(&H1D);"k";CHR$(I);DAT$;CHR$(0);:GOTO 320'Barcode Print
300 PRINT #1,CHR$(&H1D);"k";CHR$(I);
'CODE128
310 PRINT #1,CHR$(104);
'Start Code
320 PRINT #1,CHR$(32);CHR$(33);CHR$(34);CHR$(35);CHR$(36);
330 PRINT #1,CHR$(106);
'Stop Code
340 PRINT #1,CHR$(&H0D);
350 NEXT I
360 CLOSE #1
370 END
380 'BARCODE TYPE
390 DATA UPC_A,UPC_E,JAN_13,JAN_8,CODE39,ITF,CODABAR,CODE128
400 'BARCODE DATA
410 DATA 12345678901,01245000002,490130101188,4940125,ABC,123456, A12345B,DUMY
Figure 6-23 Program Sample 12
Содержание 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 ...