Class Series 2 Programmer’s Manual
169
Appendix B
Sample Programs
“C” Language Program
The following sample “C” program is included for reference. Figure B-1 shows the output
generated by this program.
/
DMX SERIES Sample C program
/
# include <stdio.h>
main
()
{
char
pcs
=
“590”;
char
desc
=
“10K OHM 1/4 WATT”;
fputs
(“DMX Printer Test Program\n”, stdout);
fputs
(“\x02L\n”, stdaux);
/
STX L – Enter Label
Formatting
/
fputs
(“H07\n” stdaux);
/
Enter Heat Setting of 7
/
fputs
(“D11\n”, stdaux);
/
Set Width and Height Dot
Size
/
fprintf
(stdaux, “191108010000025%s\n”,desc);
/
Select smooth Font
/
fprintf
(stdaux, “1a6210000000050%sPCS\n”, pcs);
/
Select Bar code
type ‘a’
/
fputs
(“E\n”, stdaux);
/
End Label format mode and
/
}
10K OHM 1/4 WATT
Figure B-1: Sample Label
Содержание A-Class
Страница 2: ......
Страница 3: ......
Страница 5: ......
Страница 6: ......
Страница 22: ...Overview 8 Class Series 2 Programmer s Manual ...
Страница 30: ...Immediate Command Functions 16 Class Series 2 Programmer s Manual ...
Страница 138: ...Extended System Level Command Functions 124 Class Series 2 Programmer s Manual ...
Страница 160: ...Label Formatting Command Functions 146 Class Series 2 Programmer s Manual ...
Страница 180: ...Generating Label Formats 166 Class Series 2 Programmer s Manual ...
Страница 192: ...Appendix B Sample Programs 178 Class Series 2 Programmer s Manual ...
Страница 200: ...Appendix D Reset Codes 186 Class Series 2 Programmer s Manual ...
Страница 212: ...Appendix E Single Byte Symbol Sets 198 Class Series 2 Programmer s Manual ...
Страница 264: ...Appendix G Bar Code Details 250 Class Series 2 Programmer s Manual ...
Страница 284: ...Appendix J General Purpose Input Output Port Applications 270 Class Series 2 Programmer s Manual ...
Страница 296: ...Appendix O UPC A and EAN 13 Variable Price Weight Bar Codes 282 Class Series 2 Programmer s Manual ...
Страница 308: ...Appendix Q Plug and Play IDs 294 Class Series 2 Programmer s Manual ...
Страница 312: ...Appendix R Line Mode 298 Class Series 2 Programmer s Manual ...
Страница 324: ...Appendix T WiFi Region Country Codes 310 Class Series 2 Programmer s Manual ...
Страница 328: ...Appendix U Display Icon Key and Control Panel Button Sequence Functions 314 Class Series 2 Programmer s Manual ...
Страница 334: ......