没有合适的资源?快使用搜索试试~ 我知道了~
爱普生(EPSON)ESC/POS打印机标准化指令集
需积分: 0 0 下载量 184 浏览量
2023-11-13
14:30:24
上传
评论
收藏 1015KB PDF 举报
温馨提示
试读
64页
ESC/POS通用打印机指令集
资源推荐
资源详情
资源评论
ESC/POS Command Manual
No.
Command
Function
1
HT
Horizontal tab
2
LF
Print and line feed
3
CR
Print and carriage return
4
FF
Print end position label to start printing
5
CAN
Cancel print data in page mode
6
DLE EOT
Real-time status transmission
7
DLE ENQ
Real-time request to printer
8
DLE DC4
Generate pulse at real-time
9
ESC FF
Print data in page mode
10
ESC SP
Set character right-side spacing
11
ESC !
Set print mode
12
ESC $
Set absolute print position
13
ESC %
Select/cancel user-defined character set
14
ESC &
Define user-defined characters
15
ESC *
Set bit image mode
16
ESC -
Turn underline mode on/off
17
ESC 2
Set 1/6 inch line spacing
18
ESC 3
Set line spacing using minimum units
19
ESC =
Select peripheral device
20
ESC ?
Cancel user-defined characters
21
ESC @
Initialize printer
22
ESC D
Set horizontal tab positions
23
ESC E
Select emphasized mode
24
ESC G
Select double-strike mode
25
ESC J
Print end feed paper using minimum units
26
ESC L
Select page mode
27
ESC M
Select character font
28
ESC R
Select international character set
29
ESC S
Select standard mode
30
ESC T
Select print direction in page mode
31
ESC V
Set/cancel 90 cw rotated character
32
ESC W
Set printing area in page mode
33
ESC \
Set relative position
34
ESC a
Align position
35
ESC c 3
Select paper sensor(s) to output paper-end signals
36
ESC c 4
Select paper sensor(s) to stop printing
37
ESC c 5
Enable/disable panel buttons
38
ESC d
Print and feed paper n lines
39
ESC p
General pulse
40
ESC t
Select character code table
41
ESC {
Set/cancel upside-down character printing
42
FS p
Print NV bit image
43
FS q
Define NV bit image
44
GS !
Select character size
45
GS $
Set absolute vertical print position in page mode
46
GS *
Define downloaded bit image
47
GS /
Print down-loaded bit image
48
GS :
Start/end macro definition
Not avalible
49
GS B
Turn white/black reverse printing mode on/off
50
GS H
Select printing position of HRI characters
51
GS I
Transmit printer ID
ESC/POS Command Manual
2
52
GS L
Set left margin
53
GS P
Set horizontal and vertical motion units
54
GS V
Cut paper
55
GS W
Set printing area width
56
GS \
Set relative vertical print position in page mode
57
GS ^
Execute macro
Not avalible
58
GS a
Enable/disable Automatic Status Back(ASB)
59
GS b
Turn smooting mode on/off
Not avalible
60
GS f
Select font for HRI characters
61
GS h
Set bar code height
62
GS k
Print bar code
63
GS r
Transmit status
64
GS v 0
Print raster bit image
65
GS w
Set bar code width
< Add >
1
ESC i
Full cut
2
ESC m
Partial cut
3
GS ( k pL pH cn fn n1
n2(fn=65)
Select the QR Code model.
4
GS ( k pL pH cn fn n(fn=67)
Set the QR Code size of module
5
GS ( k pL pH cn fn n(fn=69)
Select the QR Code error correction level
6
GS ( k pL pH cn fn m
d1…dk(fn=80)
Store the QR Code data in the symbol storage area
7
GS ( k pL pH cn fn m (fn=81)
Print the QR Code symbol data in the symbol storage area
8
GS ( k pL pH cn fn n (fn=65)
Sets the number of columns of the data area for PDF417
9
GS ( k pL pH cn fn n (fn=66)
Sets the number of rows of data area for PDF417
10
GS ( k pL pH cn fn n (fn=67)
Sets the module width of one PDF417 symbol to n dots
11
GS ( k pL pH cn fn n (fn=68)
Sets the PDF417 module height
12
GS ( k pL pH cn fn n (fn=69)
Sets the error correction level for PDF417 symbols
13
GS ( k pL pH cn fn n (fn=80)
Stores symbol data in the PDF417 symbol storage area.
14
GS ( k pL pH cn fn n (fn=81)
Prints the PDF417 symbol data in the symbol storage area.
ESC/POS Command Manual
3
Command Descriptions
Command Notation
[Name] The name of the control command.
[Format] The code sequence.
In this description, < > H denotes hexadecimal numbers, < >denotes
decimal numbers and < > B denotes binary numbers.
[ ] k indicates the contents of the [ ] should be repeated k times.
[Range] The allowable range for the arguments.
[Description] Description of the command function.
[Details] If necessary provides important information on setting and using the printer command.
[Default] The default values for the commands.
[Reference] List related commands.
[Example] Example of using the commands.
The numbers denoted by <>H is hexadecimal.
The numbers denoted by <>B is binary.
Print Commands
The WTP series supports the following commands for printing characters and advancing
paper.
HT
[Name] Horizontal tab
[Format] ASCII HT
Hex 09
Decimal 9
[Description] Moves the print position to the next tab position.
ESC/POS Command Manual
4
[Details] ·This command is ignored unless the next tab position has been set.
·If the next horizontal tab position exceeds the printing area, the printer
sets the printing position to [Printing area width + 1].
·Horizontal tab positions are set using “ESC D”.
·If this command is received when the printing position is at [printing area width +1], the printer
executes print buffer-full printing of the current line and horizontal tab processing from the
beginning of the next line.
·The default setting of the horizontal tab position for the paper roll is font A
(12 x 24) every 8th character (9th, 17th, 25th, … column).
[Reference] ESC D
LF
[Name] Print and line feed
[Format] ASCII LF
Hex 0A
Decimal 10
[Description] ·Prints the data in the print buffer and feeds one line based on the current
line spacing.
[Details] ·This command sets the print position to the beginning of the line.
[Reference] ESC 2, ESC 3
CR
[Name] Print and carriage return.
[Format] ASCII CR
Hex 0D
Decimal 13
[Description] When automatic line feed is enabled, this command functions the same as LF; when automatic
line feed is disabled, this command is ignored.
[Details] ·Sets the print starting position to the beginning of the line.
·The automatic line feed is ignored.
[Reference] LF
FF
[Name] Print and return to standard mode in page mode.
[Format] ASCII FF
Hex 0C
Decimal 12
[Description] Prints the data in the print buffer and returns to standard mode.
ESC/POS Command Manual
5
[Details] ·The buffer data is deleted after being printed.
·The printing area set by ESC W is reset to the default setting.
·The printer does not execute paper cutting.
·This command sets the print position to the beginning of the line.
·This command is enabled only in page mode.
[Reference] ESC FF, ESC L, ESC S
CAN
[Name] Cancel print data in page mode
[Format] ASCII CAN
Hex 18
Decimal 24
[Description] In page mode, delete all the print data in the current printable area.
[Details] ·This command is enabled only in page mode.
·If data that existed in the previously specified printable area also exists in
the currently specified printable area, it is deleted.
[Reference] ESC L, ESC W
DLE EOT n
[Name] Real-time status transmission.
[Format] ASCII DLE EOT n
Hex 10 04 n
Decimal 16 4 n
[Range] 1≤n≤4
[Description] Transmits the selected printer status specified by n in real-time,
according to the following parameters:
n=1 : Transmit printer status
n=2 : Transmit off-line status
n=3 : Transmit error status
n=4 : Transmit paper roll sensor status
[Details] ·The printer transmits the current status. Each status is represented by
one-byte data.
·The printer transmits the status without confirming whether the host
computer can receive data.
·The printer executes this command upon receiving it.
·This command is executed even when the printer is offline, the receive
buffer is full, or there is an error status.
·When Auto Status Back (ASB) is enabled using the GS a command, the
status transmitted by the DLE EOT command and the ASB status must
be differentiated.
剩余63页未读,继续阅读
资源评论
amzLooSu
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功