logo资料库

star 4679打印机编程手册.pdf

第1页 / 共122页
第2页 / 共122页
第3页 / 共122页
第4页 / 共122页
第5页 / 共122页
第6页 / 共122页
第7页 / 共122页
第8页 / 共122页
资料共122页,剩余部分请下载后查看
GENERAL DESCRIPTION
COMMAND FUNCTION LIST
COMMAND DETAILS
3-1) Explanation of Terms
3-2) Exception Processing
3-3) Standard Command Details
3-3-1) Font style and character set
ESC GS t n
ESC R n
ESC / n
ESC 6
ESC 7
ESC M
ESC P
ESC :
ESC SP n
3-3-2) Character expansion settings
SO
DC4
ESC W n
ESC h n
3-3-3) Print mode
ESC E
ESC F
ESC – n
ESC _ n
ESC 4
ESC 5
SI
DC2
ESC RS i n
3-3-4) Line spacing
LF
CR
ESC a n
ESC 0
ESC 1
ESC z 0
ESC z 1
ESC A n
ESC 2
ESC 3 n
ESC y n
ESC J n
ESC I n
3-3-5) Page control commands
FF
ESC C n
ESC C NUL n
VT
ESC B n1 n2…nk NUL
ESC N n
ESC O
3-3-6) Horizontal direction printing position
ESC l n
ESC Q n
HT
ESC D n1 n2…nk NUL
ESC GS a n
ESC GS A n1 n2
ESC GS R n1 n2
3-3-7) Download
ESC & NUL n1 n2 [m d1 d2 d3 d4 d5 (d6 d7)]n2-n1+1
ESC % n
3-3-8) Bit image graphics
ESC K n NUL d1 d2…dn
ESC L n1 n2 d1 d2…dk
3-3-9) Cutter control
ESC d n
3-3-10) External device drive
ESC BEL n1 n2
BEL
FS
SUB
EM
3-3-11) Status
ENQ
EOT
ESC ACK SOH
ESC RS a n
ETB
ESC RS E n
3-3-12) Chinese characters (only on models that carry Chinese characters)
ESC s n1 n2
ESC r c1 c2 d1…dk
ESC u 1
ESC u 0
ESC x 1
ESC x 0
ESC w 1
ESC w 0
3-3-13) Others
RS
CAN
DC3
DC1
ESC @
ESC U n
ESC GS # m N n1 n2 n3 n4 LF NUL
ESC # N m n1 n2 n3 n4 LF NUL
ESC ? LF NUL
3-4) Star Black Mark Related Command Details
ESC d n
FF
ESC FF n1 n2
ESC GS ( F p1 p2 a m n1 n2
CHARACTER CODE TABLES
4-1) ANK Codes
4-1-1) Standard (SBCS)
4-1-2) Kanji Specification (DBCS)
4-1-3) International Character sets
4-2) Japanese Character Codes
4-2-1) JIS Code Type (Conforming to JIS x0208-1983)
4-2-2) Shift-JIS Code Type
4-3) Chinese Character Codes (Conforming to GB2312)
4-4) Taiwanese Character Codes
APPENDIX
5-1) Status Specification
5-1-1) ENQ command status
5-1-2) EOT command status
5-1-3) Auto status
5-2) Expanding Position
5-2-1) 7 ( 9 Fonts
5-2-2) 5 ( 9 (2P - 1) Fonts
5-2-3) Chinese Character Fonts
SPECIAL APPENDIX COMMAND LIST BY MODEL
Dot Impact Printer Command Specifications STAR Rev 0.21
CONTENTS 1. GENERAL DESCRIPTION.................................................................................................................................1-1 COMMAND FUNCTION LIST.............................................................................................................................2-1 2. 3. COMMAND DETAILS.........................................................................................................................................3-1 3-1) Explanation of Terms ......................................................................................................................................3-1 3-2) Exception Processing......................................................................................................................................3-2 3-3) Standard Command Details............................................................................................................................3-3 3-3-1) Font style and character set....................................................................................................................3-3 ESC GS t n.......................................................................................................................................................3-3 ESC R n ...........................................................................................................................................................3-4 ESC / n.............................................................................................................................................................3-4 ESC 6...............................................................................................................................................................3-5 ESC 7...............................................................................................................................................................3-5 ESC M..............................................................................................................................................................3-6 ESC P ..............................................................................................................................................................3-6 ESC :................................................................................................................................................................3-7 ESC SP n.........................................................................................................................................................3-7 3-3-2) Character expansion settings..................................................................................................................3-8 SO....................................................................................................................................................................3-8 DC4..................................................................................................................................................................3-8 ESC W n ..........................................................................................................................................................3-9 ESC h n............................................................................................................................................................3-9 3-3-3) Print mode.............................................................................................................................................3-10 ESC E ............................................................................................................................................................3-10 ESC F.............................................................................................................................................................3-10 ESC – n..........................................................................................................................................................3-11 ESC _ n..........................................................................................................................................................3-11 ESC 4.............................................................................................................................................................3-12 ESC 5.............................................................................................................................................................3-12 SI....................................................................................................................................................................3-13 DC2................................................................................................................................................................3-13 ESC RS i n.....................................................................................................................................................3-14 3-3-4) Line spacing..........................................................................................................................................3-15 LF...................................................................................................................................................................3-15 CR..................................................................................................................................................................3-15 ESC a n..........................................................................................................................................................3-16 ESC 0.............................................................................................................................................................3-16 ESC 1.............................................................................................................................................................3-16 ESC z 0..........................................................................................................................................................3-17 ESC z 1..........................................................................................................................................................3-17 ESC A n .........................................................................................................................................................3-18 ESC 2.............................................................................................................................................................3-18 ESC 3 n..........................................................................................................................................................3-19 ESC y n..........................................................................................................................................................3-19 ESC J n..........................................................................................................................................................3-20 ESC I n...........................................................................................................................................................3-20 3-3-5) Page control commands .......................................................................................................................3-21 FF...................................................................................................................................................................3-21 ESC C n .........................................................................................................................................................3-22 ESC C NUL n .................................................................................................................................................3-22 VT ..................................................................................................................................................................3-23 ESC B n1 n2…nk NUL...................................................................................................................................3-23 ESC N n .........................................................................................................................................................3-24 ESC O............................................................................................................................................................3-24 3-3-6) Horizontal direction printing position .....................................................................................................3-25 ESC l n...........................................................................................................................................................3-25 ESC Q n.........................................................................................................................................................3-26 HT ..................................................................................................................................................................3-27 ESC D n1 n2…nk NUL...................................................................................................................................3-27 ESC GS a n....................................................................................................................................................3-28 ESC GS A n1 n2 ............................................................................................................................................3-29 ESC GS R n1 n2 ............................................................................................................................................3-29
3-3-7) Download ..............................................................................................................................................3-30 ESC & NUL n1 n2 [m d1 d2 d3 d4 d5 (d6 d7)]n2-n1+1..................................................................................3-30 ESC % n.........................................................................................................................................................3-33 3-3-8) Bit image graphics.................................................................................................................................3-34 ESC K n NUL d1 d2…dn................................................................................................................................3-34 ESC L n1 n2 d1 d2…dk..................................................................................................................................3-35 3-3-9) Cutter control ........................................................................................................................................3-36 ESC d n..........................................................................................................................................................3-36 3-3-10) External device drive...........................................................................................................................3-37 ESC BEL n1 n2 ..............................................................................................................................................3-37 BEL ................................................................................................................................................................3-38 FS ..................................................................................................................................................................3-38 SUB................................................................................................................................................................3-39 EM..................................................................................................................................................................3-39 3-3-11) Status ..................................................................................................................................................3-40 ENQ ...............................................................................................................................................................3-40 EOT................................................................................................................................................................3-40 ESC ACK SOH...............................................................................................................................................3-41 ESC RS a n....................................................................................................................................................3-41 ETB ................................................................................................................................................................3-42 ESC RS E n ...................................................................................................................................................3-43 3-3-12) Chinese characters (only on models that carry Chinese characters) ..................................................3-44 ESC s n1 n2 ...................................................................................................................................................3-44 ESC r c1 c2 d1…dk........................................................................................................................................3-45 ESC u 1..........................................................................................................................................................3-46 ESC u 0..........................................................................................................................................................3-46 ESC x 1..........................................................................................................................................................3-47 ESC x 0..........................................................................................................................................................3-47 ESC w 1 .........................................................................................................................................................3-48 ESC w 0 .........................................................................................................................................................3-48 3-3-13) Others .................................................................................................................................................3-50 RS ..................................................................................................................................................................3-50 CAN................................................................................................................................................................3-50 DC3................................................................................................................................................................3-51 DC1................................................................................................................................................................3-51 ESC @ ...........................................................................................................................................................3-52 ESC U n .........................................................................................................................................................3-52 ESC GS # m N n1 n2 n3 n4 LF NUL..............................................................................................................3-53 ESC # N m n1 n2 n3 n4 LF NUL ....................................................................................................................3-54 ESC ? LF NUL ...............................................................................................................................................3-55 3-4) Star Black Mark Related Command Details..................................................................................................3-56 ESC d n..........................................................................................................................................................3-58 FF...................................................................................................................................................................3-59 ESC FF n1 n2 ................................................................................................................................................3-60 ESC GS ( F p1 p2 a m n1 n2 .........................................................................................................................3-61 CHARACTER CODE TABLES ...........................................................................................................................4-1 4-1) ANK Codes .....................................................................................................................................................4-1 4-1-1) Standard (SBCS) ....................................................................................................................................4-1 4-1-2) Kanji Specification (DBCS) .....................................................................................................................4-9 4-1-3) International Character sets ....................................................................................................................4-9 4-2) Japanese Character Codes ..........................................................................................................................4-10 4-2-1) JIS Code Type (Conforming to JIS x0208-1983)...................................................................................4-10 4-2-2) Shift-JIS Code Type ..............................................................................................................................4-17 4-3) Chinese Character Codes (Conforming to GB2312).....................................................................................4-23 4-4) Taiwanese Character Codes .........................................................................................................................4-31 APPENDIX .........................................................................................................................................................5-1 5-1) Status Specification.........................................................................................................................................5-1 5-1-1) ENQ command status.............................................................................................................................5-1 5-1-2) EOT command status .............................................................................................................................5-1 5-1-3) Auto status ..............................................................................................................................................5-2 5-2) Expanding Position .........................................................................................................................................5-7 5-2-1) 7 × 9 Fonts ..............................................................................................................................................5-7 5-2-2) 5 × 9 (2P - 1) Fonts .................................................................................................................................5-7 5-2-3) Chinese Character Fonts ........................................................................................................................5-8 SPECIAL APPENDIX COMMAND LIST BY MODEL .......................................................................................6-1 4. 5. 6.
1. GENERAL DESCRIPTION This specifications document describes the command specifications for the STAR MODE on dot impact printers. Information contained herein applies to models with the following conditions. • Dot impact printers • Printer head: • Interfaces: • Paper width: • Paper feed minimum pitch: • Board unit: • Completed printer product: 72 DPI (vertical direction) Parallel/RS-232C 3 inch/2.25 inch/1.75 inch 1/144 inch (0.176 mm) BD100, BD500 SP2000, SP500 ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Command Specifications 1-1
2. COMMAND FUNCTION LIST Standard commands Class Commands Name Font style and character set Character expansion settings Print modes Line spacing Page control commands ESC GS t ESC R ESC / ESC 6 ESC 7 ESC M ESC P ESC : ESC SP SO DC4 ESC W ESC h ESC E ESC F ESC - ESC _ ESC 4 ESC 5 SI DC2 ESC RS i LF CR ESC a ESC 0 ESC 1 ESC z 0("0") ESC z 1("1") ESC J ESC A ESC 2 ESC 3 ESC y ESC I FF ESC C ESC C 0 VT ESC B ESC N ESC O Specify code page Specify international character set Specify/cancel slash zero Switch to IBM character set #2 Switch to IBM character set #1 Specify 7×9 font (half dots) Specify 5×9 font (2P-1) Specify 5×9 font (3P-1) Specify character space Specify double-wide expanded characters Cancel double wide printing Specify/cancel double-wide printing Specify/cancel double-high printing Select emphasized printing Cancel emphasized printing Select/cancels underline mode Select/cancels upperline mode Specify white/black inversion and red color printing Cancel white/black inversion and specify black color printing Select upside-down printing Cancel upside-down printing Specify/cancel rotating print mode Line feed Line feed (according to memory switch settings) Feed paper n lines Set line feed to 1/8 inch Set line feed to 7/72 inch Set line feed to 1/12 inch Set line feed to 1/6 inch Execute n/72 inch paper feed one time Define n/72 inch pitch line feed Set ESC A line feed pitch Set line feed to n/216 inch line feed pitch (approximate value) Set line feed to n/144 inch line feed pitch Execute n/144 inch paper feed one time Form feed Set page length to n lines Set page length to n inches Feed paper to vertical table position Set vertical tab position Set bottom margin to n lines Cancel bottom margin ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Command Specifications 2-1
Class Commands Name Horizontal Download Bit image graphics Cutter control External device Drive Status Chinese Characters (*1) Others ESC l ESC Q HT ESC D ESC GS a ESC GS A ESC GS R ESC & ESC % ESC K ESC L ESC d ESC BEL BEL FS SUB EM ENQ EOT ESC ACK SOH ESC RS a ETB ESC RS E ESC s ESC r ESC u 1 ESC u 0 ESC x 1 ESC x 0 ESC w 1 ESC w 0 RS CAN DC3 DC1 ESC @ ESC U ESC GS # ESC # ESC ? LF NUL Set left margin Set right margin Move print position to horizontal tab position Set/cancel horizontal tab position Specify position alignment Specify absolute position Specify relative position Register/delete download characters Set/cancel download characters Standard density bit image Double density bit image Paper cut instruction Set pulse width for external device drive External device 1 drive instruction External device 1 drive instruction (real time) External device 2 drive instruction (real time) External device 2 drive instruction (real time) Inquire ENQ status Inquire EOT status Inquire status Set status transmission conditions Update ETB status (check after printing) Clear the ETB counter and ETB status Set two byte Chinese characters left/right spaces Register Chinese download characters Specify 8×16 dot Chinese characters Specify 16×16 dot Chinese characters Specify two byte Chinese characters (cancel expanded Chinese characters) Specify expanded Chinese characters (Double high/Double high & wide) Specify two byte 8 × 16 dot Chinese characters (default) Specify double high & wide Chinese characters Buzzer Cancel print data and initialize commands Printer deselect Printer select Command initialization Select printing direction Set memory switch Set memory switch Reset printer and test print ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Command Specifications 2-2
(*1) Chinese character commands intended for overseas). • Chinese character control commands are ignored on printers not installed with Chinese character fonts (those • All Chinese character control commands are ignored if the specification for the location of use is specified as SBCS (single byte countries) by the memory switch. Black mark related commands Class Commands Name Black mark related ESC d (*2) FF(*2) ESC FF ESC GS ( F Paper cut instruction Top of form operation Set top of form amount after detecting black mark Set top of form amount in black mark control (*2) Black mark related commands memory switch. • These are commands whose operation specifications vary when the black mark function is enabled by the ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Command Specifications 2-3
3. COMMAND DETAILS 3-1) Explanation of Terms • Reception buffer The buffer for storing data (reception data) received from the host. Reception data is temporarily stored in the reception buffer, then processed sequentially. • Line buffer The buffer for storing image data for printing is called the line buffer. • Line buffer full The state in which the buffer has no more space available is called line buffer full. When the buffer is full in standard mode, data in the line buffer is printed and a line feed is performed when new print data is processed. This is the same as a LF. When the line buffer is full in the page mode, the printer move the print position to the head of the next line then starts with the new print data. • Top of line The top of line is a state that satisfies the following conditions. 1. There is currently no print data in the line buffer. 2. The position is not specified with the horizontal direction position command. • Printable region This is the maximum printable area with the printer’s specifications. • Print region This is the printing area specified by a command. (Print region ≤ printable region) • SBCS This is an abbreviation of Single Byte Character Set. These are characters in languages that can be displayed using the information in one byte. In this specifications manual, it refers to the standard specifications (destination: single byte countries). • DBCS This is an abbreviation of Double Byte Character Set. These are characters in languages that are displayed using the information in two byte. In this specifications manual, it refers to the Chinese character specifications such as Japan, China and Taiwan (destination: double byte countries). • Inches Units of length; One inch = 25.4 mm • MSB/LSB Most significant bit/Least significant bit ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― STAR Command Specifications 3-1
分享到:
收藏