Class Series 2 Programmer’s Manual
167
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
Summary of Contents for A-Class
Page 2: ......
Page 4: ......
Page 20: ...Overview 8 Class Series 2 Programmer s Manual ...
Page 28: ...Immediate Command Functions 16 Class Series 2 Programmer s Manual ...
Page 136: ...Extended System Level Command Functions 124 Class Series 2 Programmer s Manual ...
Page 156: ...Label Formatting Command Functions 144 Class Series 2 Programmer s Manual ...
Page 176: ...Generating Label Formats 164 Class Series 2 Programmer s Manual ...
Page 188: ...Appendix B Sample Programs 176 Class Series 2 Programmer s Manual ...
Page 196: ...Appendix D Reset Codes 184 Class Series 2 Programmer s Manual ...
Page 208: ...Appendix E Single Byte Symbol Sets 196 Class Series 2 Programmer s Manual ...
Page 260: ...Appendix G Bar Code Details 248 Class Series 2 Programmer s Manual ...
Page 304: ...Appendix Q Plug and Play IDs 292 Class Series 2 Programmer s Manual ...
Page 308: ...Appendix R Line Mode 296 Class Series 2 Programmer s Manual ...
Page 320: ...Appendix T WiFi Region Country Codes 308 Class Series 2 Programmer s Manual ...
Page 330: ......