18
Hexadecimal:
1B
40
Explanation:
ESC @ command is to initialize the following contents of the printer:
·
Clear the data in the print buffer;
·
Restore the default of each print command
·
Select character print mode;
·
Delete user-defined characters.
ESC p
Cash Drawer control
Format: ASCII
:
ESC
p
m
nl n2
Decimal:
27
112
m
nl n2
Hexadecimal: 1B
70 m nl n2
Explanation:
This command is to generate a pulse to trigger the opening and closing of
the cash drawer, n1, n2 define the duration of the trigger pulse.
m=0,0
<
nl
≤
n2
≤
255
。
Opening time is nl
×
2ms, closing time is n2
×
2ms.
ESC v
Transmit Status of Printer
Format: ASCII
:
ESC v
Decimal:
27 118
Hexadecimal:
1B
76
Explanation:
Send printer status to the host.
When printer received the command, it transfers one byte through TXD
serial interface. Definition of said byte is shown as below:
Bit
Function
Value 0
Value 1
0
Undefined
---
---
1
Undefined
---
---
2
Paper tester
With paper
Without paper
3
Undefined
---
---
4
Not in use
0
0
5
Undefined
---
---
6
Undefined
---
---
7
Undefined
---
---
ESC u
Transmit Status of Equipment
Format: ASCII
:
ESC
u
n
SPRT
Компания АВИОР
www.avior.ru