Dot Matrix PrinterSP2000 SeriesProgrammer’s Manual
8FUNCTIONSelects the character code tableCODE<ESC> <GS> "t" n1B 1D 74 nOUTLINESelects the character code tableThis function sele
9Value of nCharacter TableHex. Dec.00 0 Normal (Default)01 1 Code Page 437 (USA, Std. Europe)/IBM Character Set #202 2 Katakana03 3 IBM Character Set
10FUNCTIONSelects IBM character set #2CODE<ESC> "6"(1B)H (36)HOUTLINESelects IBM character set #2.Switches from IBM character set #1 t
11FUNCTIONSelects 5 X 9 (2 pulses per dot) fontCODE<ESC> "P"(1B)H (50)HOUTLINESelects 5 X 9 (2 pulses = 1 dot) font.The number of digi
12FUNCTIONSets the printing magnified double in character widthCODE<SO>(0E)HOUTLINEData following this code is printed in double-width character
13OUTLINESets the magnification rate in character heightPrints the subsequent data with a character height magnified by arate specified by the value o
14FUNCTIONCancels upperlining (Default)CODE<ESC> "_" "0" or <ESC> "_" <0>(1B)H (5F)H (30)H or (1B)H (5
15FUNCTIONCancels inverted printing (Default)CODE<DC2>(12)HOUTLINECancels the inverted character mode. This code is valid onlywhen input at the
16FUNCTIONSelects uni-directional print modeCODE<ESC> "U" "1" or <ESC> "U" <1>(1B)H (55)H (31)H or (1B
171-2-2. Ptint Position ControlFUNCTIONLine feedCODE<LF>(0A)HOUTLINEData in the line buffer is printed out and one line is fed. If datadoes not
TABLE OF CONTENTS1. Control Codes (Star Mode) ... 11-1. Control Codes List ...
18FUNCTIONCarriage returnCODE<CR>(0D)HOUTLINEThe <CR> code is valid when the memory switch 3-1 = 1 (set to 0at exfactory). When the <C
19FUNCTIONDefine n/72-inch line spacingCODE<ESC> "A" n(1B)H (41)H nDEFINITION RANGE0 <= n <= 85 (Default n = 12)OUTLINELine fee
20FUNCTIONSets line spacing to 7/72 inchCODE<ESC> "1"(1B)H (31)HOUTLINELine feed is set at 7/72-inch after this code is received.FUNCT
21FUNCTIONSets horizontal tab stopsCODE<ESC> "D" n1 n2 ...nk <0>(1B)H (44)H n1 n2 ...nk (00)HDEFINITION RANGE1 <= n1 <=
22FUNCTIONSets right marginCODE<ESC> "Q" n1B 51 nOUTLINESets the non-printable range with the current character pitch up tothe nth pos
23FUNCTIONAligns positionCODE<ESC> <GS> "a" n(1B)H (1D)H (61)H nSets the alignment of the positions.OUTLINEAligns all print data
24FUNCTIONSets vertical tab stopsCODE<ESC> "B" n1 n2 ...nk <0>(1B)H (42)H n1 n2 ...nk (00)HDEFINITION RANGE1 <= n1 <= n2
251-2-3. Dot Graphics ControlFUNCTION8 dot normal density graphicsCODE<ESC> "K" n1 <0> m1 m2 ...(1B)H (4B)H n1 (00)H m1 m2 ...DE
26First, since the volume of data is 30, n1 = (1E)H. If the data m1 tom30 is converted to hexadecimal, it appears as shown below.Print SampleFUNCTION8
27NOTEFor double density bit image printing, dots cannot be printedoverlapping each other in the horizontal direction.The following is an example of t
11-1. Control Codes ListThe following tables show the Star Mode commands that are supported bythis printer.1-1-1. Character SelectionControl Hexadecim
281-2-4. Download Graphics PrintingFUNCTIONDefines download charactersCODEWhen the 7 X 9 (half dot) font is set (default setting):<ESC> "&a
29m2 m4 m6m1m3 m5 m7D8D7D6D5D4D3D2D1m2 m4 m6m1m3 m5 m7D8D7D6D5D4D3D2D1Printing possible Printing not possibleOverlappinghorizontallyOverlappinghorizon
30(2) Define the download characters.When character codes where the download character is writtenare specified as (21)H, (22)H, (23)H, n1 = (21)H, n2
311-2-5. Peripheral Device ControlFUNCTIONDefines drive pulse width for peripheral device #1CODE<ESC> <BEL> n1 n2(1B)H (07)H n1 n2DEFINITI
32FUNCTIONControls peripheral device #1 immediatelyCODE<FS>(1C)HOUTLINEExecutes drive pulse for peripheral unit 1 (immediate).This code differs
331-2-6. Auto Cutter Control (SP2500 type printers only)FUNCTIONFull-cut command to the auto cutterCODE<ESC> "d" "0" or <
34FUNCTIONPartial-cut command to the auto cutter after paper feedCODE<ESC> “d” “3” or <ESC> “d” <3>(1B)H (64)H (33)H or (1B)H (64)H
351-2-7. Command to Set the Page FormatFUNCTIONSet page length in n linesCODE<ESC> “C” n(1B)H (43)H nDEFINITION RANGE1 <= n <= 255 (defa
361-2-8. Other CommandsFUNCTIONCancels printer buffer & Initialize printerCODE<CAN>(18)HOUTLINEClears the data buffer and line buffer and in
37FUNCTIONSets the memory switchCODE<ESC> “# N, n1 n2 n3 n4” <LF> <NUL>HEX1B 23 N 2C n1 n2 n3 n4 0A 00OUTLINEIn order to enable cha
2Control Hexadecimal Function PageCodes Codes<ESC> "W" "1" 1B 57 31 Selects double magnification in character12<ESC> &
382) N = 1 (Star mode only)n1: Always “0”n2: Always “0”Parameter Setting “0” (Default) “1”n3Zero style Normal Slashedn4International See belowcharacte
39*1: Comdex Dual Auto Cut Mechanism (STAR mode only)This mechanism automatically cuts when there is a consecu-tive paper feed exceedin 7/6 inch. Hos
40Value of nCharacter Tablen1 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” Kata
41N = 3 (ESC/POS mode)n1: Always “0”n2: Always “0”n3: Always “0”Parameter Setting “1” to “3”n4CR code See below5) N = 4 (Star mode)n3: Always “0”Para.
42N = 4 (ESC/POS mode)n3: Always “0”Para. Setting “0” “1” “2” “3”n1RTS signal condition Save as Save as Always AlwaysDTR DTR SPACE SPACEn2Receive buff
43n2 Treatment of missing data during reverse mode“0” to “7” Store“8” to “F” Delete*1: Valid only when using a parallel interface.Set DIP SW 1-2 if yo
44FUNCTIONTransmits EOT statusCODE<EOT>(04)HOUTLINETransmits the EOT status of the printer to the host in real-time.(Does not execute after taki
45FUNCTIONTransmits ENQ statusCODE<ENQ>(05)HOUTLINETransmits the ENQ status of the printer to the host in real-time.(Does not execute after taki
46FUNCTIONConfirms finish of printingCODE<ETB>(17)HOUTLINEThis command cause the printer to wait until all printing iscompleted (the printing mo
47FUNCTIONEnables/disables automatic statusCODE<ESC> <RS> “a” n(1B)H (1E)H (61)H nOUTLINEThis command sets the transmission conditions of
31-1-2. Print Position ControlControl Hexadecimal Function PageCodes Codes<LF> 0A Line feed 17<VT> 0B Vertical tab 17<FF> 0C Form fe
482. ESC/POS Mode CommandsThe following table lists the TM-U200 and TM-U300 emulation commands thatare supported by this printer.2-1. Control Codes Li
49Control Hexadecimal Function TM- TM-Codes Codes U200 U300<ESC> R 1B 52 Selects international character set OK OK<ESC> U 1B 55 Selects/ca
50Ignored CommandsControl Hexadecimal Function TM- TM-Codes Codes U200 U300<ESC> < 1B 3c Ignored (Returns home) OK<ESC> c 0 n1B 63 30
513-1. Auto StatusAuto status is a function that automatically relays any changes that occur inthe status of the printer from the printer to the host.
52Table 3-1 Header 1 (First Byte)Bit Content Status 0 Status 10 Always 112 Printer Status Byte Count34 Always 05 Printer Status Byte Count6 Reserved (
53Table 3-3 Header 2 (Second Byte)Bit Content Status 0 Status 10 Always 012 Automatic Status Ver. Number34 Always 05Automatic Status Ver. Number67 Not
54Printer StatusPrinter Status is the overall status transmitted in the third byte of the auto-matic status. Printer status is returned as transmissi
55Table 3-7 Printer Status 3 <Error Information> (Fifth Byte)Bit Content Status 0 Status 10 Always 01 Invalid2 Invalid3 Invalid4 Always 05 Inval
56(2) PrecautionsDo not use the <ENQ>, <EOT>, <ESC>, <ACK> or <SOH> commands whenthe automatic status is valid. You mus
57Star Mode(Character table: Normal)Note: The (7F)H code is a space when neither normal nor katakana.Appendix : Character Code Tables
41-1-3. Dot Graphics ControlControl Hexadecimal Function PageCodes Codes<ESC> "K" n <0> 1B 4B n 00 m1 m28 dot normal density gra
58Star Mode(Character table: Normal)
59Star Mode(Character table: IBM Character set #2 (Code page 437 ))Note: Other characters are the same as those for Character table: Normal.
60Star Mode(Character table: Katakana)Note: Other characters are the same as those for Character table: Normal.
61Star Mode(Character table: IBM Character set #1 )Note: Other characters are the same as those for IBM Character Set #2.
62Star ModeCode Page #858 Code Page #852Multi-lingual Latin-2Code Page #860 Code Page #861Portuguese IcelandicNote: Other characters are the same as t
63Star ModeCode Page #863 Code Page #865Canadian French NordicCode Page #866Cyrillic RussianNote: Other characters are the same as those for Character
64Star ModeCode Page #855 Code Page #857Cyrillic Bulgarian TurkishCode Page #862 Code Page #864Hebrew ArabicNote: Other characters are the same as tho
65Star ModeCode Page #737 Code Page #851Greek GreekCode Page #869 Code Page #928Greek GreekNote: Other characters are the same as those for Character
66Star ModeCode Page #772 Code Page #774Lithuanian LithuanianNote: Other characters are the same as those for Character table: Normal.
67Star ModeCode Page #874 Code Page #1250Thai Windows Latin-2Code Page #1251 Code Page #1252Windows Cyrillic Windows Latin-1Note: Other characters are
51-1-6. Auto Cutter Control (SP2500 type printers only)Control Hexadecimal Function PageCodes Codes<ESC> "d" "0" 1B 64 30Ful
68Star ModeCode Page #3840 Code Page #3841IBM-Russian GostCode Page #3843 Code Page #3844Polish CS2Note: Other characters are the same as those for Ch
69Star ModeCode Page #3845 Code Page #3846Hungarian TurkishCode Page #3847 Code Page #3848Brazil-ABNT Brazil-ABICOMPNote: Other characters are the sam
70Star ModeCode Page #1001 Code Page #2001Arabic Lithuanian-KBLCode Page #3001 Code Page #3002Estonian-1 Estonian-2Note: Other characters are the same
71Star ModeCode Page #3011 Code Page #3012Latvian-1 Latvian-2Note: Other characters are the same as those for Character table: Normal.Code Page #3021
72Star ModeInternational Character SetThe character codes shown in the table are hexadecimal.
73ESC/POS ModePage 0 (PC437)
74ESC/POS ModePage 0 (PC437)
75ESC/POS ModePage 1 (Katakana)Note: Other characters are the same as those for Page 0.
76ESC/POS ModePage 2 (PC858: Multilingual)Note: Other characters are the same as those for Page 0.
77ESC/POS ModePage 3 (PC860: Portuguese)Page 4 (PC863: Canadian-French) Page 5 (PC865: Nordic)Note: Other characters are the same as those for Page 0.
61-1-8. Other CommandsControl Hexadecimal Function PageCodes Codes<CAN> 18 Cancels printer buffer & Initialize printer 36<DC3> 13 Dese
78ESC/POS ModeInternational Character SetThe character codes shown in the table are hexadecimal.
HEAD OFFICESTAR MICRONICS CO., LTD.536 Nanatsushinnya, Shimizu, Shmizuoka424-0066 JapanTel: 0543-47-0112, Fax: 0543-48-5013Please access the following
71-2. Control Code DetailsThe following section explains the details of the printer control codes.1-2-1. Character SelectionFUNCTIONSelects the intern
Komentáře k této Příručce