EasyManua.ls Logo

Toshiba B-EP Series - Page 545

Toshiba B-EP Series
788 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER 8 ESC/POS MODE (INTERFACE COMMANDS)
B-EP Series
8-18
[Program example]
/* Data for registration of writable characters */
unsigned char gaiji1[3] = { 0x10, 0x00, 0x00 };
unsigned char gaiji2[15] = { 0x10, 0x00, 0x00, 0x28, 0x00, 0x00, 0x44, 0x00, 0x00,
0x28, 0x00, 0x00, 0x10, 0x00, 0x00 };
fprintf( stdprn, "\033&\003AB"); /* Registration of writable characters 41H,42H code */
fputc( 1, stdprn ); /* 1 dot in the horizontal direction */
for(i=0;i<3;i++)
fputc( gaiji1[i], stdprn );
fputc( 5, stdprn ); /* 5 dots in the horizontal direction */
for(i=0;i<15;i++)
fputc( gaiji2[i], stdprn );
fprintf( stdprn, "\033%%"); /* Canceling writable characters */
fputc( 0, stdprn );
fprintf( stdprn, "ABCD\n");
fprintf( stdprn, "\033%%"); /* Setting writable characters */
fputc( 1, stdprn );
fprintf( stdprn, "ABCD\n");
[Print example]
ABCD
CD

Table of Contents

Other manuals for Toshiba B-EP Series

Related product manuals