str[i++] = 0x1b;
str[i++] = 0x27;
str[i++] = 0x5;//
打印
5
条曲线
str[i++] = 0x0;
str[i++] = 50+m_cur2;
str[i++] = 0;
str[i++] = 50-m_cur2;
str[i++] = 0;
str[i++] = 50;
str[i++] = 0;
str[i++] = 50+m_cur1;
str[i++] = 0;
str[i++] = 50-m_cur1;
str[i++] = 0;
str[i++] = 0x0D;
SendDataToPrinter(str,i);//
}
[Print results]
ESC v
[Name]
Send the printer’s status to the host
[Type]
ASCII
:
ESC v
Decimal:
27
118
Hex:
1B
76
[Explanation]
Send the printer’s status to the host
[Note]
It is only effective for the printer with serial interface
Bit
Function
Value
0
1
0
Paper detector
No paper
Have paper
1
Work status
Idle
Printing
2
Receiving buffer
No full
Full
3
printer’s status
Normal
Error
4
Undefined
――
――
5
Undefined
――
――
6
Undefined
――
――
7
Undefined
――
――
[Example]
unsigned char str[4];
str[0] = 0x1B;
Содержание RD-FH8C7
Страница 41: ...B character set 1 and 2 C International standard ASCII ...
Страница 43: ......