str[j++] = 0x0D;// Print out the current graphics
SendDataToPrinter(str,j);
[Example 4]
m =33 (24 dots, don’t enlarge
), d1,d2 and d3 represent the data to be printed in
the first, second and third column. And dk represents the data to be printed in the k
th
column. The bn represents the n
th
bit of the byte.
d4 d7
D d49
0 0
0
0 0 0 0 0 0 0 0 0
b7
0 0
0
0 0 0 0 0 0 0 0 0
b6
0 0
0
0 0 0 0 0 0 0 0 0
b5
1 1
1
1 1 1 1 1 1 0 0 0
b4
0 1
1
0 0 0 0 0 1 1 0 0
b3
0 1
1
0 0 0 0 0 0 1 1 0
b2
0 1
1
0 0 0 0 0 0 1 1 0
b1
0 1
1
0 0 0 0 0 0 1 1 0
b0
0 1
1
0 0 0 0 0 0 1 1 0
b7
0 1
1
0 0 0 0 0 1 1 0 0
b6
0 1
1
1 1 1 1 1 0 0 0 0
b5
0 1
1
0 0 1 1 0 0 0 0 0
b4
0 1
1
0 0 0 1 1 0 0 0 0
b3
0 1
1
0 0 0 1 1 0 0 0 0
b2
0 1
1
0 0 0 0 1 1 0 0 0
b1
0 1
1
0 0 0 0 1 1 0 0 0
b0
0 1
1
0 0 0 0 0 1 1 0 0
b7
0 1
1
0 0 0 0 0 1 1 0 0
b6
1 1
1
1 0 0 0 0 0 1 1 1
b5
0 0
0
0 0 0 0 0 0 0 0 0
b4
0 0
0
0 0 0 0 0 0 0 0 0
b3
0 0
0
0 0 0 0 0 0 0 0 0
b2
0 0
0
0 0 0 0 0 0 0 0 0
b1
0 0
0
0 0 0 0 0 0 0 0 0
b0
Program code is as follows:
unsigned char str[200];
j=0;
str[j++] = 0x1B;
str[j++] = 0x2A;
str[j++] = 32; //m=33
(
height is 24 dots, don’t enlarge)
str[j++] = 12; //
graphic width is
12dots
str[j++] = 0;
//
bit image data
str[j++] = 0x10;str[j++] = 0x00;str[j++] = 0x20;str[j++] = 0x1F;str[j++] = 0xFF;str[j++] =
0xE0;
str[j++] = 0x1F;str[j++] = 0xFF;str[j++] = 0xE0;str[j++] = 0x10;str[j++] = 0x20;str[j++] =
0x20;
Содержание RD-FH8C7
Страница 41: ...B character set 1 and 2 C International standard ASCII ...
Страница 43: ......