PD02-058 User Manual
·
23
·
5. Sample Programming
The following sample suggest that “putchar(ch)” send one byte ch to the
PD02.
Sample:
putchar(27); putchar(‘=’); putchar(1);
// set printer online
putchar(27); putchar(‘t’); putchar(0);
// code page PC 437
putchar(29); putchar(‘/’); putchar(65);
// print logo 1
putchar(27); putchar(‘!’); putchar(0);
// set print font
putchar(27); putchar(‘a’); putchar(0);
// set align left
putchar(27); putchar(‘a’); putchar(27);
// line height 27/8mm
……
// send print data
putchar(27); putchar(‘J’); putchar(120);
// Feed 15mm
putchar(27), putchar(‘0’); putchar(0); putchar(0); putchar(0);
// open drawer
putchar(27); putchar(‘=’); putchar(0);
// set printer offline
note:
9
Logo command is necessary.
9
Logo is used to printer the bitmap which is downloaded by LinkPd02 first.
9
Make sure the baudrate is the correct.
Summary of Contents for POS-58A
Page 2: ......
Page 11: ...PD02 058 User Manual 9 3 9 Tear off paper Tear off the paper as shown ...
Page 24: ... 22 PD02 058 User Manual 57 nL nH scription Set page width Hexadecimal 1D De ...
Page 28: ... 26 PD02 058 User Manual APPENDIXB International characters ...
Page 29: ...PD02 058 User Manual 27 APPENDIXC Arabic characters ...