Instruction/ maintenance manual of the product SP2000 Star Micronics
Go to page of 81
Dot Matrix Printer SP2000 Series Programmer’ s Manual.
T ABLE OF CONTENTS 1. Control Codes (Star Mode) ......................................................................... 1 1-1. Control Codes List .............................................................................. 1 1-1-1. Character Selection .
1 1-1. Contr ol Codes List The following tables show the Star Mode commands that are supported by this printer . 1-1-1. Character Selection Control Hexadecimal Function Page Codes Codes <ESC> &q.
2 Control Hexadecimal Function Page Codes Codes <ESC> "W" "1" 1B 57 31 Selects double magnification in character 12 <ESC> "W" <1> 1B 57 01 width <ESC.
3 1-1-2. Print Position Contr ol Control Hexadecimal Function Page Codes Codes <LF> 0A Line feed 17 <VT> 0B V er tical tab 17 <FF> 0C Form feed 17 <CR> 0D Carriage Return 18 &l.
4 1-1-3. Dot Graphics Control Control Hexadecimal Function Page Codes Codes <ESC> "K" n <0> 1B 4B n 00 m1 m2 8 dot normal density graphics 25 m1 m2 ... . .. <ESC> "L" n 1 n 2 1B 4C n 1 n 2 m1 m2 8 dot high density graphics 26 m1 m2 .
5 1-1-6. A uto Cutter Control (SP2500 type pr inters only) Control Hexadecimal Function Page Codes Codes <ESC> "d" "0" 1B 64 30 Full-cut command to the auto cutter 33 <ESC.
6 1-1-8. Other Commands Control Hexadecimal Function Page Codes Codes <CAN> 18 Cancels pr inter b uff er & Initialize printer 36 <DC3> 13 Deselects printer 36 <DC1> 1 1 Sets sele.
7 1-2. Contr ol Code Details The following section explains the details of the printer control codes. 1-2-1. Character Selection FUNCTION Selects the international character set CODE <ESC> ".
8 FUNCTION Selects the character code table CODE <ESC> <GS> "t" n 1B 1D 74 n OUTLINE Selects the character code table This function selects a character code table (as shown below). The default settings follow the settings of the memory switches 3- 8 to 3-5.
9 V alue of n Character T able Hex. Dec. 00 0 Normal (Default) 01 1 Code Page 437 (USA, Std. Europe)/IBM Character Set #2 02 2 Katakana 03 3 IBM Character Set #1 04 4 Codepage 858 (Multilingual) 05 5 .
10 FUNCTION Selects IBM character set #2 CODE <ESC> "6" (1B)H (36)H OUTLINE Selects IBM character set #2. Switches from IBM character set #1 to character set #2. Subsequent 80H to 9FH codes are handled as character data. This command is invalid when the character code table settings are other than #1.
11 FUNCTION Selects 5 X 9 (2 pulses per dot) font CODE <ESC> "P" (1B)H (50)H OUTLINE Selects 5 X 9 (2 pulses = 1 dot) font. The number of digits per line is set by the DIP switches in the f ollowing w ay . DSW 1 - 5 Digits Per Line ON 35 OFF 33 (When right space of character is 0.
12 FUNCTION Sets the printing magnified double in character width CODE <SO> (0E)H OUTLINE Data follo wing this code is printed in double-width char acters.
13 OUTLINE Sets the magnification rate in character height Prints the subsequent data with a character height magnified by a rate specified by the value of n .
14 FUNCTION Cancels upperlining (Default) CODE <ESC> "_" "0" or <ESC> "_" <0> (1B)H (5F)H (30)H or (1B)H (5F)H (00)H OUTLINE Cancels upperline mode.
15 FUNCTION Cancels inverted printing (Default) CODE <DC2> (12)H OUTLINE Cancels the inv er ted character mode. This code is valid only when input at the beginning of a line.
16 FUNCTION Selects uni-directional print mode CODE <ESC> "U" "1" or <ESC> "U" <1> (1B)H (55)H (31)H or (1B)H (55)H (01)H OUTLINE Prints only when the print head moves from left to right.
17 1-2-2. Ptint Position Contr ol FUNCTION Line feed CODE <LF> (0A)H OUTLINE Data in the line buff er is pr inted out and one line is fed. If data does not exist before this code is received, the printer only feeds one line. FUNCTION V ertical tab CODE <VT> (0B)H OUTLINE Feeds the paper to the next vertical tab set position.
18 FUNCTION Carriage return CODE <CR> (0D)H OUTLINE The <CR> code is valid when the memory switch 3-1 = 1 (set to 0 at exfactory). When the <CR> code is valid, setting the memory switch 3-0 will cause the <CR> to function as shown in the table below .
19 FUNCTION Define n /72-inch line spacing CODE <ESC> "A" n (1B)H (41)H n DEFINITION RANGE 0 < = n < = 85 (Default n = 12) OUTLINE Line feed is defined at n /72-inch after this code is received. This code sets the feed at n /72-inch with the <ESC> "2" code.
20 FUNCTION Sets line spacing to 7/72 inch CODE <ESC> "1" (1B)H (31)H OUTLINE Line feed is set at 7/72-inch after this code is received. FUNCTION One time n /72-inch feed CODE <ESC> "J" n (1B)H (4A)H n DEFINITION RANGE 1 < = n < = 255 OUTLINE This code activates the n /72-inch paper feed once.
21 FUNCTION Sets horizontal tab stops CODE <ESC> "D" n1 n2 ...nk <0> (1B)H (44)H n1 n2 ...nk (00)H DEFINITION RANGE 1 < = n1 < = n2 < = n3 ... < nk < = (Maximum print columns -1), 1 < = k < = 16 OUTLINE Cancels all horizontal tab stops and sets new tab stops within the character pitch at n1 , n2 , etc.
22 FUNCTION Sets right margin CODE <ESC> "Q" n 1B 51 n OUTLINE Sets the non-printable range with the current character pitch up to the n th postion with the left edge as the reference, after printing the data in the line buff er. Settings changed par tway through a line tak e eff ect from the subsequent line.
23 FUNCTION Aligns position CODE <ESC> <GS> "a" n (1B)H (1D)H (61)H n Sets the alignment of the positions. OUTLINE Aligns all print data of one line to the specified position.
24 FUNCTION Sets vertical tab stops CODE <ESC> "B" n1 n2 ...nk <0> (1B)H (42)H n1 n2 ...nk (00)H DEFINITION RANGE 1 < = n1 < = n2 < = n3 ... < nk < = 255 < = 1 < = k < = 16 OUTLINE Cancels all current vertical tab stops and sets new vertical tab stops at lines n1 , n2 , etc.
25 1-2-3. Dot Graphics Control FUNCTION 8 dot normal density graphics CODE <ESC> "K" n1 <0> m1 m2 ... (1B)H (4B)H n1 (00)H m1 m2 ... DEFINITION RANGE 1 < = n1 < = 200 (DIP SW 1 - 5 = ON) or 1 < = n1 < = 210 (DIP SW = OFF) OUTLINE Executes 8 dot bit image print determined by " n1 .
26 First, since the volume of data is 30, n1 = (1E)H. If the data m1 to m30 is conv er ted to hexadecimal, it appears as sho wn below . Print Sample FUNCTION 8 dot high density graphics CODE <ESC> "L" n1 n2 m1 m2... (1B)H (4C)H n1 n2 m1 m2.
27 NO TE For double density bit image printing, dots cannot be printed overlapping each other in the horizontal direction. The following is an example of this.
28 1-2-4. Download Graphics Printing FUNCTION Defines download characters CODE When the 7 X 9 (half dot) font is set (default setting): <ESC> "&" <0> n1 n2 [m0 m1 m2 m3 m4 m5.
29 m2 m4 m6 m1 m3 m5 m7 D8 D7 D6 D5 D4 D3 D2 D1 m2 m4 m6 m1 m3 m5 m7 D8 D7 D6 D5 D4 D3 D2 D1 Printing possible Printing not possible Overlapping horizontally Overlapping horizontally FUNCTION Enables .
30 (2) Define the do wnload characters. When character codes where the download character is written are specified as (21)H, (22)H, (23)H, n1 = (21)H, n2 = (23)H are obtained. If the relationship between the character pattern data and printing head is specified to "not use pin 9", m0 = (80)H is obtained.
31 1-2-5. Peripheral De vice Control FUNCTION Defines drive pulse width for peripheral device #1 CODE <ESC> <BEL> n1 n2 (1B)H (07)H n1 n2 DEFINITION RANGE 1 < = n1 < = 127, 1 < = .
32 FUNCTION Controls peripheral device #1 immediately CODE <FS> (1C)H OUTLINE Executes drive pulse for peripheral unit 1 (immediate). This code diff ers from the <BEL> code as follo ws: When the printer receives an <FS> code, the command is ex ecuted immediately .
33 1-2-6. A uto Cutter Control (SP2500 type pr inters only) FUNCTION Full-cut command to the auto cutter CODE <ESC> "d" "0" or <ESC> "d" <0> (1B)H (64)H (30)H or (1B)H (64)H (00)H OUTLINE Full cut command.
34 FUNCTION Partial-cut command to the auto cutter after paper feed CODE <ESC> “d” “3” or <ESC> “d” <3> (1B)H (64)H (33)H or (1B)H (64)H (03)H OUTLINE Paper feed + full cut command Executes the following actions after printing the data in the line buff er .
35 1-2-7. Command to Set the Page Format FUNCTION Set page length in n lines CODE <ESC> “C” n (1B)H (43)H n DEFINITION RANGE 1 < = n < = 255 (default: n =42) OUTLINE Sets page length in n lines.
36 1-2-8. Other Commands FUNCTION Cancels printer buff er & Initialize printer CODE <CAN> (18)H OUTLINE Clears the data buff er and line buff er and initializes all commands that have already been set. <CAN> is executed not when taking data from the reception buff er, b ut when it is received from the host.
37 FUNCTION Sets the memory switch CODE <ESC> “# N, n1 n2 n3 n4 ” <LF> <NUL> HEX 1B 23 N 2C n1 n2 n3 n4 0A 00 OUTLINE In order to enable changed memory switch settings, turn the printer OFF and ON again or send the printer reset command (<ESC> “?” <LF> <NUL>) to the printer .
38 2) N = 1 (Star mode only) n1 : Always “0” n2 : Always “0” Parameter Setting “0” (Default) “1” n3 Zero style Normal Slashed n4 International See below character set When memory switch N = 0, n3 = “0” (Destination is standard), this setting is valid.
39 *1: Comdex Dual A uto Cut Mechanism (ST AR mode only) This mechanism automatically cuts when there is a consecu- tive paper feed exceedin 7/6 inch. Hosts that cannot send an escape sequence such as <ESC> “d” and 0, can cut the paper if a line feed code <LF> of 1/6 inch is sent 7 times consecutively .
40 V alue of n Character T able n1 n2 “0” or “8” “0 ” Normal (Default) “0” or “8” “1 ” Code Page 437 (USA, Std. Europe)/IBM Character Set #2 “0” or “8” “2 ” Katakan.
41 N = 3 (ESC/POS mode) n1 : Always “0” n2 : Always “0” n3 : Always “0” Parameter Setting “1” to “3” n4 CR code See below 5) N = 4 (Star mode) n3 : Always “0” Para.
42 N = 4 (ESC/POS mode) n3 : Always “0” Para. Setting “0” “1” “2” “3” n1 R TS signal condition Save as Save as Always Always DTR DTR SP ACE SP ACE n2 Receiv e buff er size 4 k byte.
43 n2 T reatment of missing data during rev erse mode “0” to “7” Store “8” to “F” Delete *1: V alid only when using a parallel interface. Set DIP SW 1-2 if you are using a serial interface. Also, the conditions for BUSY and the automatic status are disregarded.
44 FUNCTION T ransmits EO T status CODE <EOT> (04)H OUTLINE T ransmits the EO T status of the printer to the host in real-time. (Does not ex ecute after taking fro reception buff er , but immedi- ately upon receiving from the host.) It is in a “Data ready” state when using a bi-directional parallel interface.
45 FUNCTION T ransmits ENQ status CODE <ENQ> (05)H OUTLINE T ransmits the ENQ status of the printer to the host in real-time. (Does not e x ecute after taking fro reception buff er , b ut immedi- ately upon receiving from the host.) It is in a “Data ready” state when using a bi-directional parallel interface.
46 FUNCTION Confirms finish of printing CODE <ETB> (17)H OUTLINE This command cause the printer to wait until all printing is completed (the printing motor stops) and sets the printer status 1- 1 of the automatic status (<ETB> command) to “1” (only execute ETB).
47 FUNCTION Enables/disables automatic status CODE <ESC> <RS> “a” n (1B)H (1E)H (61)H n OUTLINE This command sets the transmission conditions of the automatic status. Initial values are according to DIP switch 1-6. See Chapter 2 A utomatic Status Specifications for details on the contents of the automatic status.
48 2. ESC/POS Mode Commands The f ollowing tab le lists the TM-U200 and TM-U300 emulation commands that are suppor ted by this printer . 2-1. Contr ol Codes List Control Hexadecimal Function TM- TM- C.
49 Control Hexadecimal Function TM- TM- Codes Codes U200 U300 <ESC> R 1B 52 Selects international character set OK OK <ESC> U 1B 55 Selects/cancels unidirectional OK OK printing mode <E.
50 Ignored Commands Control Hexadecimal Function TM- TM- Codes Codes U200 U300 <ESC> < 1B 3c Ignored (Returns home) OK <ESC> c 0 n 1B 63 30 n Ignored (Selects paper type(s) for printing.
51 3-1. Auto Status Auto status is a function that automatically relays any changes that occur in the status of the printer from the printer to the host. It is composed of the “Header -1,” “Header - 2” and “a plurality of bytes of printer states.
52 T able 3-1 Header 1 (First Byte) Bit Content Status 0 Status 1 0 Always 1 1 2 Printer Status Byte Count 3 4 Always 0 5 Printer Status Byte Count 6 Reserved (Fixed at 0) 7 Not Used (Fixed at 0) T ab.
53 T able 3-3 Header 2 (Second Byte) Bit Content Status 0 Status 1 0 Always 0 1 2 Automatic Status V er . Number 3 4 Always 0 5 A utomatic Status V er .
54 Printer Status Printer Status is the overall status transmitted in the third byte of the auto- matic status. Printer status is returned as transmission byte count -2 added by the Header 1. It always updates with new information. (There is no historical record existing.
55 T able 3-7 Printer Status 3 <Error Inf ormation> (Fifth Byte) Bit Content Status 0 Status 1 0 Always 0 1 Invalid 2 Invalid 3 Invalid 4 Always 0 5 Invalid 6 Reception Buff er Ov erflow Error (*) Does not occur Occurs 7 Not Used (Fixed at 0) * Bit 6 is cleared to 0 when returned to the host.
56 (2) Precautions Do not use the <ENQ>, <EOT>, <ESC>, <ACK> or <SOH> commands when the automatic status is v alid. Y ou must first inv alidate the use of the automatic status function using the DIP switches or the <ESC> <RS> “a” n command to use these inquiry commands.
57 Star Mode (Character table: Normal) Note: The (7F)H code is a space when neither normal nor katakana. Appendix : Character Code T ables.
58 Star Mode (Character table: Normal).
59 Star Mode (Character table: IBM Character set #2 (Code page 437 )) Note: Other characters are the same as those for Character table: Normal..
60 Star Mode (Character table: Katakana) Note: Other characters are the same as those for Character table: Normal..
61 Star Mode (Character table: IBM Character set #1 ) Note: Other characters are the same as those for IBM Character Set #2..
62 Star Mode Code Page #858 Code Page #852 Multi-lingual Latin-2 Code Page #860 Code Page #861 Portuguese Icelandic Note: Other characters are the same as those for Character table: Normal.
63 Star Mode Code Page #863 Code Page #865 Canadian French Nordic Code Page #866 Cyrillic Russian Note: Other characters are the same as those for Character table: Normal.
64 Star Mode Code Page #855 Code Page #857 Cyrillic Bulgarian T urkish Code Page #862 Code Page #864 Hebrew Arabic Note: Other characters are the same as those for Character table: Normal.
65 Star Mode Code Page #737 Code Page #851 Greek Greek Code Page #869 Code Page #928 Greek Greek Note: Other characters are the same as those for Character table: Normal.
66 Star Mode Code Page #772 Code Page #774 Lithuanian Lithuanian Note: Other characters are the same as those for Character table: Normal..
67 Star Mode Code Page #874 Code Page #1250 Thai Windows Latin-2 Code Page #1251 Code Page #1252 Windows Cyrillic Windows Latin-1 Note: Other characters are the same as those for Character table: Normal.
68 Star Mode Code Page #3840 Code Page #3841 IBM-Russian Gost Code Page #3843 Code Page #3844 Polish CS2 Note: Other characters are the same as those for Character table: Normal.
69 Star Mode Code Page #3845 Code Page #3846 Hungarian T urkish Code Page #3847 Code Page #3848 Brazil-ABNT Brazil-ABICOMP Note: Other characters are the same as those for Character table: Normal.
70 Star Mode Code Page #1001 Code Page #2001 Arabic Lithuanian-KBL Code Page #3001 Code Page #3002 Estonian-1 Estonian-2 Note: Other characters are the same as those for Character table: Normal.
71 Star Mode Code Page #301 1 Code Page #3012 Latvian-1 Latvian-2 Note: Other characters are the same as those for Character table: Normal. Code Page #3021 Code Page #3041 Bulgarian Maltese Note: Other characters are the same as those for Charac- ter table: Normal.
72 Star Mode International Character Set The character codes shown in the table are hexadecimal..
73 ESC/POS Mode Page 0 (PC437).
74 ESC/POS Mode Page 0 (PC437).
75 ESC/POS Mode Page 1 (Katakana) Note: Other characters are the same as those for Page 0..
76 ESC/POS Mode Page 2 (PC858: Multilingual) Note: Other characters are the same as those for Page 0..
77 ESC/POS Mode Page 3 (PC860: Portuguese) Page 4 (PC863: Canadian-French) Page 5 (PC865: Nordic) Note: Other characters are the same as those for Page 0.
78 ESC/POS Mode International Character Set The character codes shown in the table are hexadecimal..
HEAD OFFICE STAR MICRONICS CO., LTD. 536 Nanatsushinnya, Shimizu, Shmizuoka 42 4-0066 Japan T el: 0543-47-01 12, Fax: 0543-48-5013 Please access the following URL http://www .star-micronics.co.jp/service/ sp_sup _e.htm for the lastest revision of the manual.
An important point after buying a device Star Micronics SP2000 (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought Star Micronics SP2000 yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data Star Micronics SP2000 - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, Star Micronics SP2000 you will learn all the available features of the product, as well as information on its operation. The information that you get Star Micronics SP2000 will certainly help you make a decision on the purchase.
If you already are a holder of Star Micronics SP2000, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime Star Micronics SP2000.
However, one of the most important roles played by the user manual is to help in solving problems with Star Micronics SP2000. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device Star Micronics SP2000 along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center