2013年6月25日 星期二

EPSON FX-80 Impact Printer ESC/P 命令語言


EPSON FX-80 Impact Printer ESC/P 命令語言 

ESC/P (Epson Standard Code for Printers) 是由 EPSON 開發的一種命令語言來控制打印機,它主要用於在點陣打印機和一些噴墨打印機,在點陣打印機的時代,這種命令語言也可用於其他製造商(例如NEC),在以前它是一種流行的格式印刷文本的機制,並在軟件中得到了廣泛支持,以下是 FX-80ESC/P 命令語言。


ESC/P 命令語言的發展和擴充
Print Size and Character Width
Decimal 
ASCII 
Description
14 
SO 
Select double width for one line
15
SI 
Select condensed mode
18 
DC2 
Cancel condensed mode
20
DC4
Cancel one line double width mode
27 14 
ESC SO 
Double width for one line (duplicate)
27 15 
ESC SI 
Select condensed mode (duplicate)
27 52
ESC 4
Select Alternative mode
27 53
ESC 5
Deselect Alternative mode
27 33
ESC !
Select print mode
27 45
ESC -
Sets or cancels Underlined mode
27 69 
ESC E
Sets Emphasized mode
27 70 
ESC F
Cancels Emphasized mode
27 71 
ESC G
Set Double-strike mode
27 72
ESC H
Cancels Double-strike mode
27 77 
ESC M 
Select Elite width (12 cpi)
27 80 
ESC P 
Select Mormal (Pica sized 10 cpi) mode
27 83 48 
ESC S 0 
Select Superscript mode
27 83 49 
ESC S 1 
Select Subscript mode
27 84 
ESC T 
Cancel Superscript/Subscript mode
27 87
ESC W
Sets or cancels Enlarged mode
27 112 
ESC p 
Select or cancel Proportional mode

Bit image and User Defined haracters
Decimal 
ASCII 
Description
27 42  
ESC *  
Select 8-pin bit image mode
27 94
ESC ^
Select 9-pin bit image mode
27 75
ESC K 
Ssrs Normal-density bit image mode (480 dot 8-pin)
27 76 
ESC L
Sets Double-density bit image mode (960 dot 8-pin)
27 89
ESC Y
Sets Double-speed dual-density bit image mode (960 dot 8-pin)
27 90
ESC Z
Sets Quadruple-density bit image mode (1,920 dot 8-pin)
27 38
ESC &
Defined Download CG
27 37 0
ESC % 0
Selects Internal ROM CG
27 37 1
ESC % 1
Selects Download CG
27 58 48
ESC : 0
Copies the fonts in ROM CG into Download CG

Vertical/Horizontal Motion
Decimal
ASCII
Description
8
BS
Backspace
9
HT
Horizontal tab
10
LF
Line Feed
11
VT
Vertical Tab
12
FF
Form Feed
27 47
ESC /
Select VFU chanel
27 48
ESC 0
Select 8 lines per inch
27 49
ESC 1
Select 7/72 inch line spacing
27 50
ESC 2
Select 6 lines per inch
27 51  
ESC 3
Select n/216 inch line spacing (n=0..255)
27 65
ESC A
Select n/72 inch line spacing (n=0..85)
27 66
ESC B
Clear Vertical tabs up to 16 positions
27 67
ESC C
Select page length in lines (n=1..127)
27 67 48
ESC C 0
Select page length in inches (n=1..22)
27 68
ESC D
Sets HT up to 32 positions
27 81
ESC Q
Sets the column width
27 98
ESC b
Set VFU positions
27 108
ESC l
Sets the Left margin
27 74
ESC J
Executes paper feed
27 78 n
ESC N
Select skip over perforation (n=1..127)
27 79
ESC O
Cancel skip over perforation
27 106
ESC j
Reverse feed

Input Data Control
Decimal 
ASCII 
Description
152
CAN
Cancels all the data stored in the print buffer
17
DC1
Selects the printer
19
DC3
Deselects the printer
255
DEL
Clears the last byte in the print buffer
27 54
ESC 6
Printable code area expansion
27 55
ESC 7
Control code area selection
27 61 
ESC = 
MSB = 0
27 62 
ESC > 
MSB = 1
27 36
ESC #
Cancels theMSB control sequence
27 73
ESC I
Selects undefined codes as control codes or printable codes

Others
Decimal 
ASCII 
Description
7
BEL
Beeper
13
CR 
Carriage Return
27 56
Esc 8
Disable paper out sensor
27 57
Esc 9
Enable paper out sensor
27 60
Esc <
Select unidirectional mode for one line
27 64
Esc @
Initialize printer
27 82
ESC R
Select International character set
27 85
ESC U
Starts or ends unidirectional printing
27 105
ESC i
Sets Incremental mode
27 115
ESC s
Sets or cancels Half speed mode

相關網址:
※ EPSON FX-80 Impact Printer 點陣式打印機介紹
※ EPSON FX-80 Impact Printer 擊打點陣式打印機拆解
※ EPSON(精工愛普生)FX-80 點陣式打印機 FMBD板拆解(三)
※ EPSON(精工愛普生)FX-80 點陣式打印頭拆解(四)

2013625 天氣報告
氣溫:28.7 @ 23:00
相對濕度:百分之82%
天氣:大致多雲

沒有留言:

張貼留言