6-60
100 Open "COM1:9600,N,8,1" For Random As #1
110 S$ = String$(20, Chr$(&HFF)) + String$(6, Chr$(0)) + String$(20, Chr$(&H55))
120 Print #1, Chr$(&H12); "T"; Chr$(10); Chr$(20); Chr$(160); Chr$(0);
130 For i = 1 To 20: For j = 0 To 7
140 Print #1, Mid$(S$, i + j, 20);
150 Next j, i
160 Print #1, Chr$(&H12); "S"; Chr$(10); Chr$(0);
170 Print #1, " WELCOME to"
180 Print #1, Chr$(&H1B); "w1"; Chr$(&HE); " STAMP"
190 Print #1, Chr$(&H1B); "w0"; Chr$(&HE); " World"
200 Print #1, Chr$(&H12); "V";
210 Print #1, Chr$(&H12); "S"; Chr$(10); Chr$(24);
220 Print #1, "WELCOME to"
230 Print #1, Chr$(&H1B); "w1"; Chr$(&HE); "STAMP"
240 Print #1, Chr$(&H1B); "w0"; Chr$(&HE); "World"
250 Print #1, Chr$(&H12); "V";
260 Print #1, Chr$(&H12); "S"; Chr$(10); Chr$(1);
270 Print #1, " STAMP PRINT"
280 Print #1, Chr$(&H12); "W";
290 Print #1, " STOP STAMP"
300 Print #1, Chr$(&H12); "U"; Chr$(10);
310 Print #1, "STAMP DELETED"
320 Print #1, Chr$(&H12); "S"; Chr$(10); Chr$(0);
330 Print #1, Chr$(&H12); "V"
340 Close #1
350 End
Figure 6-15 Program Sample 8
Figure 6-16 Print Sample 8
Summary of Contents for DPU-S245
Page 1: ...DPU S245 SERIES THERMAL PRINTER TECHNICAL REFERENCE U00117152801 ...
Page 12: ...2 2 Dimensions 83 130 45 1 3 63 5 75 2 9 7 38 Unit mm Figure 2 1 Dimensions Paper Outlet ...
Page 87: ...6 42 Figure 6 10 Print Sample 5 ...
Page 97: ...6 52 Figure 6 12 Print Sample 6 ...
Page 122: ...6 77 Figure 6 24 Print Sample 12 ...
Page 125: ...6 80 Figure 6 28 Print Sample 14 ...