Class Series Programmer’s Manual
149
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 print /
}
10K OHM 1/4 WATT
Figure B-1: Sample Label
Summary of Contents for A-Class A-4310
Page 2: ......
Page 4: ......
Page 15: ...xi Appendix V 281 Bar Code Symbology Information Resources 281 Glossary 283...
Page 16: ...xii...
Page 30: ...Immediate Command Functions 14 Class Series Programmer s Manual...
Page 52: ...System Level Command Functions 36 Class Series Programmer s Manual...
Page 144: ...Label Formatting Command Functions 128 Class Series Programmer s Manual...
Page 162: ...Generating Label Formats 146 Class Series Programmer s Manual...
Page 182: ...Appendix D Reset Codes 166 Class Series Programmer s Manual...
Page 192: ...Appendix E Single Byte Symbol Sets 176 Class Series Programmer s Manual...
Page 236: ...Appendix G Barcode Details 220 Class Series Programmer s Manual...
Page 242: ...Appendix I Symbol Sets and Character Maps 226 Class Series Programmer s Manual...
Page 272: ...Appendix P UPC A and EAN 13 256 Class Series Programmer s Manual...
Page 282: ...Appendix R Plug and Play IDs 266 Class Series Programmer s Manual...
Page 296: ...Appendix U WiFi Region Country Codes 280 Class Series Programmer s Manual...
Page 302: ...Glossary 286 Class Series Programmer s Manual...