Sp700 Printer Codes Manual

104
Dot Impact Printer STAR Command Specifications Rev. 0.70 Star Micronics Co., Ltd. Special Products Operating Division

Transcript of Sp700 Printer Codes Manual

Page 1: Sp700 Printer Codes Manual

Dot Impact Printer

STARCommand Specifications

Rev. 0.70

Star Micronics Co., Ltd. Special Products Operating Division

Page 2: Sp700 Printer Codes Manual

Contents1. GENERAL DESCRIPTION 1-12. COMMAND FUNCTION LIST 2-13. COMMAND DETAILS 3-13-1 Explanation of Terms 3-13-2 Exception processing 3-23-3 Standard Command Details 3-33-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-73-3-2 Character Expansion Settings 3-8 SO 3-8 DC4 3-8 ESC W n 3-9 ESC h n 3-93-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 ESC GS 4 m n 3-13 SI 3-15 DC2 3-15 ESC RS i n 3-163-3-4 Line Spacing 3-17 LF 3-17 CR 3-17 ESC a n 3-18 ESC 0 3-18 ESC 1 3-18 ESC z 0 3-19 ESC z 1 3-19 ESC A n 3-20 ESC 2 3-20 ESC 3 n 3-21 ESC y n 3-21 ESC J n 3-22 ESC I n 3-223-3-5 Page Control Commands 3-23 FF 3-23 ESC C n 3-24 ESC C NUL n 3-24 VT 3-25 ESC B n1 n2 … nk NUL 3-25 ESC N n 3-26 ESC O 3-263-3-6 Horizontal Direction Printing Position 3-27 ESC RS A n 3-27 ESC l n 3-28 ESC Q n 3-29 HT 3-30 ESC D n1 n2 … nk NUL 3-30 ESC GS a n 3-31 ESC GS A n1 n2 3-32

Page 3: Sp700 Printer Codes Manual

ESC GS R n1 n2 3-323-3-7 Download 3-33 ESC & NUL n1 n2 [m d1 d2 d3 d4 d5 (d6 d7)] n2 - n1 + 1 3-33 ESC & m n1 n2 [d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 .... ak dk] n2 - n1 + 1 3-36 ESC % N 3-393-3-8 Bit Image Graphics 3-40 ESC K n NUL d1 d2 … dn 3-40 ESC L n1 n2 d1 d2 … dk 3-41 ESC ^ m n1 n2 d1 d2 … dk 3-423-3-9 Logo 3-45 ESC FS q n [x11 x12 y11 y12 d1…dk]1…[xn1 xn2 yn1 yn2 d1…dk] n 3-45 ESC FS p n m 3-473-3-11 Cutter Control 3-48 ESC d n 3-483-3-12 External Device Drive 3-49 ESC BEL n1 n2 3-49 BEL 3-50 FS 3-50 SUB 3-51 EM 3-51 ESC GS EM DC1 m n1 n2 3-52 ESC GS EM DC2 m n1 n2 3-533-3-13 Status 3-54 ENQ 3-54 EOT 3-54 ESC ACK SOH 3-55 ESC RS a n 3-55 ETB 3-56 ESC RS E n 3-573-3-14 Kanji Characters (only on models that carry Kanji characters) 3-58 ESC p 3-58 ESC q 3-58 ESC $ n 3-59 ESC s n1 n2 3-60 ESC t n1 n2 3-60 ESC r c1 c2 d1...dk 3-61 ESC u 1 3-63 ESC u 0 3-63 ESC x 1 3-64 ESC x 0 3-64 ESC w 1 3-65 ESC w 0 3-653-3-15 Others 3-67 RS 3-67 CAN 3-67 DC3 3-68 DC1 3-68 ESC @ 3-69 ESC U n 3-69 ESC GS # m N n1 n2 n3 n4 LF NUL 3-70 ESC # N m n1 n2 n3 n4 LF NUL 3-71 ESC ? LF NUL 3-723-4 Black Mark Related Commands 3-73 ESC d n 3-74 FF 3-75 ESC FF n1 n2 3-76 ESC GS ( F p1 p2 a m n1 n2 3-77 ESC RS m n 3-783-5 USB Related Commands 3-793-6 2-Color Printing Command Details 3-80 ESC RS C n 3-80 ESC 4 3-81 ESC 5 3-81

Page 4: Sp700 Printer Codes Manual

4. CHARACTER CODE TABLE 4-15. APPENDIX 5-15-1 StatusSpecifications 5-15-1-1 ENQ Command Status 5-15-1-2 EOT Command Status 5-15-1-3 Automatic Status 5-25-1-4 PrinterStatusTransmissionSpecificationwhenusingEthernetandWirelessLANInterfaces 5-75-2 Expansion Position 5-95-2-1 7 x 9 Fonts 5-95-2-2 5 x 9 (2P-1) Fonts 5-95-2-2 Japanese Character Fonts 5-106. SPECIAL APPENDIX COMMAND LIST BY MODEL 6-1

Page 5: Sp700 Printer Codes Manual

1-1STARCommandSpecifications

Rev. 0.70

1. GENERAL DESCRIPTION ThisspecificationsdocumentdescribesthecommandspecificationsfortheSTARMODEondotimpactprinters.Information contained herein applies to models with the following conditions.

• Dot impact printers• Printer head: 72 DPI (vertical direction)• Interfaces: Parallel/RS-232C/USB/Ethernet/Wireless LAN• Paper width: 3 inch/2.25 inch/1.75 inch• Paper feed minimum pitch: 1/144 inch (0.176 mm)

<ApplicableModels:>•Individualboards: BD100,BD500• Complete printer product: SP2000, SP500, SP700

Page 6: Sp700 Printer Codes Manual

2-1STARCommandSpecifications

Rev. 0.70

2. COMMAND FUNCTION LIST• Standard Commands

Class Commands Name

Font Style and Character Set

ESC GS t Specify code pageESC R Specify international character setESC / Specify/cancel slash zeroESC 6 SwitchtoIBMcharacterset#2(onlywithstandardspecifications)ESC 7 SwitchtoIBMcharacterset#1(onlywithstandardspecifications)ESC M Specify 7 x 9 font (half dots)ESC P Specify 5 x 9 font (2P-1)ESC : Specify 5 x 9 font (3P-1)ESC SP Set character space

Character ExpansionSettings

SO Specifydouble-wideexpandedcharactersDC4 CanceldoublewideprintingESC W Specify/canceldouble-wideprintingESC h Specify/canceldouble-tallprinting

Print Modes ESC E Select emphasized printingESC F Cancel emphasized printingESC - Select/cancel underline modeESC _ Select/cancel upperline modeESC 4 Specifywhite/blackinversionandredcolorprintingESC 5 Cancelwhite/blackinversion/specifyblackcolorprintingESC GS 4 Selectred/blacksubstitutefunction[ESC4/5setting]SI Select upside-down printingDC2 Cancel upside-down printingESC RS i Specify/cancel rotating print mode

Line Spacing LF Line feedCR Line feed (according to memory switch settings)ESC a Feed paper n linesESC 0 Set line feed to 1/8 inchESC 1 Set line feed to 7/72 inchESC z 0 Set line feed to 1/12 inchESC z 1 Set line feed to 1/6 inchESC A Definen/72inchpitchlinefeedESC 2 Set ESC A line feed pitchESC 3 Set line feed to n/216 inch line feed pitch (approximate value)ESC y Set line feed to n/144 inch line feed pitchESC J Execute n/72 inch paper feed one timeESC I Execute n/144 inch paper feed one timeFF Form feed

Page Control ESC C Set page length to n linesESC C 0 Set page length to n inchesVT FeedpapertoverticaltabpositionESC B SetverticaltabpositionESC N SetbottommargintonlinesESC O Cancelbottommargin

Page 7: Sp700 Printer Codes Manual

2-2STARCommandSpecifications

Rev. 0.70

Class Commands Name

Horizontal ESC RS A Set print regionDirection ESC I Set left marginPosition ESC Q Set right margin

HT MoveprintpositiontohorizontaltabpositionESC D Set/cancelhorizontaltabpositionESC GS a Specify position alignmentESC GS A SpecifyabsolutepositionESC GS R Specify relative position

Download ESC & Register download charactersESC % Specify/cancel download characters

Bit Image ESC K StandarddensitybitimageGraphics ESC L Doubledensitybitimage

ESC ^ 9DotbitimageLogos ESC FS q Register logo

ESC FS p Print logoCutter Control ESC d Paper cut instructionExternal ESC BEL Set pulse width for external device driveDevice Drive BEL External device 1 drive instruction

FS External device 1 drive instruction (real time)SUB External device 2 drive instruction (real time)EM External device 2 drive instruction (real time)ESC GS EM DC1 SetexternalbuzzerdrivepulseconditionESC GS EM DC2 Executeexternalbuzzerdrive

Status ENQ Inquire ENQ statusEOT Inquire EOT statusESC ACK SOH Inquire automatic statusESC RS a Set automatic status transmission conditionsETB Update ETB status (check after printing)ESC RS E Clear ETB counter, ETB status

Kanji characters (Note 1)

ESC p SettoJISChinesecharactermode(Japanesespecificationsonly)

ESC q CancelJISJapanesecharactermode(Japanesespecificationsonly)ESC $ Set/cancelJISJapanesecharactermode(Japanesespecificationsonly)ESC s SettwobyteKanjicharactersleft/rightspaces

ESC t Set1byteKanjicharactersleft/rightspaces(Japanesespecificationsonly)

ESC r Register Chinese download charactersESC u 1 Specify 16 x 16 dot [single density] Kanji characters.ESC u 0 Specify16x16dot[DoubleDensity]KanjicharactersESC x 1 SpecifytwobyteKanjicharacters(cancelexpandedKanjicharacters)

ESC x 0SpecifyexpandedKanjicharacters(Doubletall/Doublehigh/Doublehigh& wide)

ESC w 1 Specify2-byte16x16dot[SingleDensity]Kanjicharacters (Default)ESC w 0 Specifydoublehigh&wideKanjicharacters

Page 8: Sp700 Printer Codes Manual

2-3STARCommandSpecifications

Rev. 0.70

Class Commands Name

Others RS RingbuzzerCAN Cancel print data and initialize commandsDC3 Printer deselectDC1 Select printerESC @ Command initializationESC U Select printing directionESC GS # Set memory switchESC # Set memory switchESC ? LF NUL Reset printer and execute self print

Note 1 Kanji characters • Japanese character control commands are ignored on models not installed with Japa-

nese character fonts. • All Japanese 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 markRelatedcommands

ESC d (Note 2) Paper cut instructionFF (Note 2) Performs TOF operationESC FF SettopofformamountafterdetectingblackmarkESC GS ( F SettopofformamountinblackmarkcontrolESC RS m Enable,disableblackmarkdetection

Note 2 These are commands whose operation specifications vary when the black mark func-tion is enabled by the memory switch.

• USB Related Commands

Class Commands Name

USBRelated com-mands

• 2-Color Printing Related Commands

Class Commands Name

2-Color Printing ESC RS C Select/cancel 2-color printing modeRelated ESC 4 Specify red printingCommands ESC 5 Specifyblackprinting

Page 9: Sp700 Printer Codes Manual

3-1STARCommandSpecifications

Rev. 0.70

3. COMMAND DETAILS3-1 Explanation of Terms

•ReceptionbufferThebufferforstoringdata(receptiondata)receivedfromthehost,asitiscalledthereceptionbuffer.Receptiondataistemporarilystoredinthereceptionbuffer,thenprocessedsequentially.

•LinebufferThebufferforstoringimagedataforprintingiscalledthelinebuffer.

•LinebufferfullThestateinwhichthebufferhasnomorespaceavailableiscalledlinebufferfull.Whenthebufferisfull,datainthelinebufferisprintedandalinefeedisperformedwhennewprintdataisprocessed.ThisisthesameasaLineFeed.

• Top of lineThetopoflineisastatethatsatisfiesthefollowingconditions.A.Thereiscurrentlynoprintdatainthelinebuffer.B.Thepositionisnotspecifiedwiththehorizontaldirectionpositioncommand.

•PrintableregionThisisthemaximumprintableareawiththeprinter’sspecifications.

• Print regionThisistheprintingareaspecifiedbyacommand.(PrintRegion≤PrintableRegion)

• SBCSThisisanabbreviationofSingleByteCharacterSet.Thesearecharactersinlanguagesthataredisplayedusingtheinformationinonebyte.Inthisspecificationsmanual,itreferstothestandardspecifications(destination:singlebytecountries).

• DBCSThisisanabbreviationofDoubleByteCharacterSet.Thesearecharactersinlanguagesthataredisplayedusingtheinformationintwobytes.Inthisspecificationsmanual,itreferstotheChinesecharacterspecificationssuchasJapan,ChinaandTaiwan(destina-tion:doublebytecountries).

• Inch This is a unit of length. 1 inch = 25.4 mm

• MSBThisisanabbreviationofMostSignificantBit.

• LSBThisisanabbreviationofLeastSignificantBit.

Page 10: Sp700 Printer Codes Manual

3-2STARCommandSpecifications

Rev. 0.70

3-2 Exception processing

1)UndefinedcodesCodesfrom<00>Hto<1F>Haretargeted.Whencodesnotdefinedascommandsinthisregionarereceived,theyarediscarded.

(Ex.) Ifprocessing thedatastringof<30>H<31>H<03>H<32>H<0A>H<33>H, theprinterwilldiscard<03>Hasanundefinedcode.

2)UndefinedcommandsWhendatacontinuingthecodesofESCandFSarecodesnotdefinedascommands,ESCandFSandsubsequentcodes are discarded.

(Ex.)Ifprocessingthedatastringof<30>H<1B>H<22>H<31>H<32>H,theprinterwillreadanddiscard<1B>H<22>Hasanundefinedcommand.

3)SettingsoutsideofthedefinedareaProcessingvaluesoutsideofthedefinedareaincommandsaccompanyingarguments,thosecommandsareignoredand the preset values are unchanged.The processing of commands is terminated at the point values outside of the de-finedregionareprocessedinargumentshavingapluralityofcommands.

(Ex.)Ifprocessingthedatastringof<1B>H<52>H<15>H,theprinterwilldiscardthedatastringof<1B>H<52>H<15>Hbecausealthough<1B>H<52>Hisdefinedasacommands(ESCR),theargument<15>Hisoutsideofthedefinition.Therefore, the international character set that is already set experiences no change.

Page 11: Sp700 Printer Codes Manual

3-3STARCommandSpecifications

Rev. 0.70

3-3 Standard Command Details3-3-1 Font style and character set

ESC GS t n[Name] Select code page[Code] ASCII ESC GS t n

Hexadecimal 1B 1D 74 nDecimal 27 29 116 n

[DefinedArea] ndiffersdependingonthespecifications.(Seethetablebelow.)[Initial Value] Memory switch setting

[Function] Specifiesthecodepageaccordingtothevalueofn. When installed with Japanese, Chinese and Taiwanese language charaters and DBCS setting, this

commandis ignored.

Specifications nSpec. 1 0 ≤ n ≤ 21 32 ≤ n ≤ 34 64 ≤ n ≤ 79Spec. 2 0 ≤ n ≤ 21 32 ≤ n ≤ 34 64 ≤ n ≤ 79 96 ≤ n ≤ 102

n Code Page n Code Page0 Normal* 32 Codepage 1252 (Windows Latin-1)1 CodePage437 (USA,Std. Europe) 33 Codepage 1250 (Windows Latin-2)

/ IBM Character Set #2 34 Codepage 1251 (Windows Cyrillic)2 Katakana 64 Codepage 3840 (IBM-Russian)3 IBM Character Set #1 65 Codepage 3841 (Gost)4 Codepage 858 (Multilingual) 66 Codepage 3843 (Polish)5 Codepage 852 (Latin-2) 67 Codepage 3844 (CS2)6 Codepage 860 (Portuguese) 68 Codepage 3845 (Hungarian)7 Codepage 861 (Icelandic) 69 Codepgae 3846 (Turkish)8 Codepage 863 (Canadian French) 70 Codepage 3847 (Brazil-ABNT)9 Codepage 865 (Nordic) 71 Codepage 3848 (Brazil-ABICOMP)10 Codepage 866 (Cyrillic Russian) 72 Codepage1001(Arabic)11 Codepage 855 (Cyrillic Bulgarian) 73 Codepage 2001 (Lithuanian-KBL)12 Codepage 857 (Turkish) 74 Codepage 3001 (Estonian-1)13 Codepage862(Israel(Hebrew)) 75 Codepage 3002 (Estonian-2)14 Codepage864(Arabic) 76 Codepage 3011 (Latvian-1)15 Codepage 737 (Greek) 77 Codepage 3012 (Latvian-2)16 Codepage 851 (Greek) 78 Codepage 3021 (Bulgarian)17 Codepage 869 (Greek) 79 Codepage 3041 (Maltese)18 Codepage 928 (Greek) 96 Thai Character Code 42 (Thai)19 Codepage 772 (Lithuanian) 97 Thai Character Code 11 (Thai)20 Codepage 774 (Lithuanian) 98 Thai Character Code 13 (Thai)21 Codepage 874 (Thai) 99 Thai Character Code 14 (Thai)

100 Thai Character Code 16 (Thai)101 Thai Character Code 17 (Thai)102 Thai Character Code 18 (Thai)

Seeeachprinter’sproductspecificationsmanualfordetailsonthememoryswitchsettings.

Page 12: Sp700 Printer Codes Manual

3-4STARCommandSpecifications

Rev. 0.70

ESC R n[Name] Specify international character set[Code] ASCII ESC R n

Hexadecimal 1B 52 nDecimal 27 82 n

[DefinedArea] 0≤ n ≤ 14 n = 64[Initial Value] Memory switch setting

[Function] Specifiesinternationalcharactersaccordingtothevalueofn.

n International Characters0 USA1 France2 Germany3 UK4 Denmark5 Sweden6 Italy7 Spain8 Japan9 Norway10 Denmark II 11 Spain II12 Latin America13 Korea14 Ireland64 Legal

Seeeachprinter’sproductspecificationsmanualfordetailsonthememoryswitchsettings.Notethatifthecodepage3041(Maltese)isselectedforthecodepage,internationalcharactersaredisabledandthespecifiedcharactersofcodepage3041areprinted.

ESC / N[Name] Specify/cancel slash zero[Code] ASCII ESC / n

Hexadecimal 1B 2F nDecimal 27 47 n

[DefinedArea] n=0,1,48,49[Initial Value] Memory switch setting

[Function] Specifies/cancelsslashzeroaccordingtothevalueofn.

n Setting0, 48 Cancels slash zero1, 49 Specifiesslashzero

Seeeachprinter’sproductspecificationsmanualfordetailsonthememoryswitchsettings.

Page 13: Sp700 Printer Codes Manual

3-5STARCommandSpecifications

Rev. 0.70

ESC 6[Name] Switch to IBM character set #2[Code] ASCII ESC 6

Hexadecimal 1B 36Decimal 27 54

[DefinedArea] ---[Initial Value] ---

[Function] Switches from IBM character set #1 to #2. Thesubsequent<80>Hto<9F>Hcodesarehandledascharacterdata. WhenthecharactercodetablesettingsarefortheIBMcharacterset#1,thiscommandisignored. This command is only effective in the standard mode.

ESC 7[Name] Switch to IBM character set #1[Code] ASCII ESC 7

Hexadecimal 1B 37Decimal 27 55

[DefinedArea] ---[Initial Value] ---

[Function] Switches from IBM character set #2 to #1. Thesubsequent<80>Hto<9F>Hcodesarehandledascontrolcodes. WhenthecharactercodetablesettingsarefortheIBMcharacterset#2,thiscommandisignored. This command is only effective in the standard mode.

Page 14: Sp700 Printer Codes Manual

3-6STARCommandSpecifications

Rev. 0.70

ESC M[Name] Specify 7 x 9 font (half dots) (default)[Code] ASCII ESC M

Hexadecimal 1B 4DDecimal 27 77

[DefinedArea] ---[Initial Value] ---

[Function] Specifies7x9(half)dotfont. Setsthenumberofprintabledigitsinonelineto[totalhalfdotcount/(10+characterrightspaceamount).

ESC P[Name] Specify 5 x 9 font (2P-1)[Code] ASCII ESC P

Hexadecimal 1B 50Decimal 27 80

[DefinedArea] ---[Initial Value] ---

[Function] Specifies5x9(2pulse=1)dotfonts. Setsthenumberofprintabledigitsinonelineto[totalhalfdotcount/(12+characterrightspaceamount).

Page 15: Sp700 Printer Codes Manual

3-7STARCommandSpecifications

Rev. 0.70

ESC :[Name] Specify 5 x 9 font (3P-1)[Code] ASCII ESC :

Hexadecimal 1B 3ADecimal 27 58

[DefinedArea] ---[Initial Value] ---

[Function] Specifies5x9(3pulse=1)dotfonts. Setsthenumberofprintabledigitsinonelineto[totalhalfdotcount/(18+characterrightspaceamount).

ESC SP n[Name] Specify character space[Code] ASCII ESC SP n

Hexadecimal 1B 20 nDecimal 27 32 n

[DefinedArea] 0≤ n ≤ 15[Initial Value] n = 0

[Function] Sets right space of characters with n half dots. Wheninhorizontaldouble-wideprinting,therightspaceisalsodouble.

Page 16: Sp700 Printer Codes Manual

3-8STARCommandSpecifications

Rev. 0.70

3-3-2 Character Expansion Settings

SO[Name] Specifydouble-wideexpandedcharacters[Code] ASCII SO

Hexadecimal 0EDecimal 14

[DefinedArea] ---[InitialValue] Canceldouble-wideexpandedcharacters

[Function] Prints ANK characters and Kanji characters with characters expanded twice the normal width. This command is equivalent to ESC W n (n = 1).

DC4[Name] Canceldoublewideprinting[Code] ASCII DC4

Hexadecimal 14Decimal 20

[DefinedArea] ---[InitialValue] Canceldouble-wideexpandedcharacters

[Function] Cancelshorizontaldouble-wideprintingifthefollowingcommandsspecifyhorizontaldouble-wideprinting. •Doublehorizontaldouble-wideprintingspecifyingcommand(SO) •Specify/cancelthehorizontaldouble-wideprinting(ESCW) This command is equivalent to ESC W n (n = 0).

Page 17: Sp700 Printer Codes Manual

3-9STARCommandSpecifications

Rev. 0.70

ESC W n[Name] Specify/cancelexpandeddouble-wideprinting[Code] ASCII ESC W n

Hexadecimal 1B 57 nDecimal 27 87 n

[DefinedArea] n=0,1,48,49[InitialValue] n=0(Horizontaldouble-wideprintingcancelled)

[Function] Specifies/cancelshorizontaldouble-wideprintingforANKcharactersandKanjicharacters,accordingtoannvalue.

n Function0, 48 Canceldoublewideprinting1, 49 Specifydouble-wideexpandedprinting

ESC h n[Name] Specify/cancelexpandeddouble-tallprinting[Code] ASCII ESC h n

Hexadecimal 1B 68 nDecimal 27 104 n

[DefinedArea] n=0,1,48,49[InitialValue] n=0(verticaldouble-tallprintingcancelled)

[Function] Specifies/cancelsverticaldouble-tallprintingforANKcharacters,accordingtoannvalue.

n Function0, 48 Cancelprintingdoublehighexpandedcharacterheight1, 49 Specifydouble-tallexpandedprinting

Doublehigh&wideexpandedcharacterprintingispossiblebycombiningthedouble-wideanddouble-tallexpandedcharacter commands.Thelinefeedamountincludingtheexpandeddouble-tallcharactersistwicethenormalamount.However,instandardspecifications,onlythelinefeedamountisdoubledforfontconfigurationsof6x12IBMblockgraphiccharacters.Whendouble-tallexpandedcharactersandnormalprintingaremixedinthesameline,theyarealignedatthebottom.Double-tallexpandediseffectiveonlyforANKcharacters,andnoteffectiveforKanjicharacters.

Page 18: Sp700 Printer Codes Manual

3-10STARCommandSpecifications

Rev. 0.70

3-3-3 Print mode

ESC E[Name] Select emphasized printing[Code] ASCII ESC E

Hexadecimal 1B 45Decimal 27 69

[DefinedArea] ---[Initial Value] Emphasized printing cancelled.

[Function] Specifiesemphasizedprintingforsubsequentdata. When in emphasized printing, data is printed in two passes. ThiscommandiseffectiveforbothANKcharactersandKanjicharacters(printswithfourpassesfor2pass

Kanji characters, and with 8 passes for 4 pass Kanji characters).

ESC F[Name] Cancel emphasized printing[Code] ASCII ESC F

Hexadecimal 1B 46Decimal 27 70

[DefinedArea] ---[Initial Value] Emphasized printing cancelled.

[Function] Cancelsemphasizedprintingforsubsequentdata.

Page 19: Sp700 Printer Codes Manual

3-11STARCommandSpecifications

Rev. 0.70

ESC – n [Name] Specify/cancel underling mode[Code] ASCII ESC - n

Hexadecimal 1B 2D nDecimal 27 45 n

[DefinedArea] n=0,1,48,49[Initial Value] n = 0 (Underline cancelled)

[Function] Specifiesunderlineaccordingtothevalueofn.

n Function0, 48 Cancels underline1, 49 Specifiesunderline

Underlines are applied to the 9th dot of the character.Underlinesarenotappliedtohorizontaltabsandtospecifiedhorizontaldirectionpositions.Whendouble-wideexpandedcharactershavebeenspecified,theunderlineisalsoexpanded,butifdouble-tallexpand-edcharactershavebeenselected,theunderlinedoesnotexpandintheverticaldirection.Itremainsaone-dotline.ThiscommandisenabledforANKcharactersandKanjicharactersandisineffectiveforblockgraphiccharacters.

ESC n[Name] Specify/cancel upperline [Code] ASCII ESC _ n

Hexadecimal 1B 5F nDecimal 27 95 n

[DefinedArea] n=0,1,48,49[Initial Value] n = 0 (Upperline cancelled)

[Function] Specifiesupperlineaccordingtothevalueofn.

n Function0, 48 Cancels upperline1, 49 Specifiesupperline

Upperlines are applied to the 1st dot of the character.Upperlinesarenotappliedtohorizontaltabsandtospecifiedhorizontaldirectionpositions.Whendouble-wideexpandedcharactershavebeenspecified,theupperlineisalsoexpanded,butifdouble-tallexpand-edcharactershavebeenselected,theupperlinedoesnotexpandintheverticaldirection.Itremainsaone-dotline.ThiscommandisenabledforANKcharactersandKanjicharactersandisineffectiveforblockgraphiccharacters.

Page 20: Sp700 Printer Codes Manual

3-12STARCommandSpecifications

Rev. 0.70

ESC 4[Name] Specifywhite/blackinversionandredcolorprinting[Code] ASCII ESC 4

Hexadecimal 1B 34Decimal 27 52

[DefinedArea] ---[InitialValue] White/blackinversioncancelled/blackcolorprintingspecified

[Function] The following shows the details of this command. They vary according to the model. Spec. 1 •Specifieswhite/blackinvertedprinting(onlyonmodelsthatdonothandletwocolorprinting) Subsequentcharactersareprinted,includingthecharacterpitch,withwhiteandblackinverted. Printing is uni-directional. (SP2000, BD100) Precautions for Use of This Command (1)ThiscommandisenabledforANKcharactersonly.White/blackisnotinvertedforKanjicharactersand

blockgraphiccharacters. (2) Do not use this command when ANK fonts are set to 5 x 9 (3P=1) (Print quality is not guaranteed.) (3)WhentheANKfontsettingis5x9(2P=1),andcharacterspacingissettoanoddnumber,thegap

betweencharacterswillopen,sosetthecharacterspacetoanevenvalue. •Specifiesredcolorprinting(onlyonmodelsthathandletwocolorprinting) Subsequentcharactersareprintedinred.Redandblackcharacterscanbemixedonthesameline. Thiscommandisenabledforallprintdata(ANKcharacters,Kanjicharactersandbitimages). When switched to red colored, printing is uni-directional. Spec. 2 Thiscommandfunctionisbasedontheselectionofred/blacksubstitutefunction. Thered/blacksubstitutefunctionisselectedbythememoryswitchorthecommand<ESC><GS>“4”mn. Fordetailsonselectingthered/blacksubstitutefunctionusingacommand,seetheexplanationof<ESC>

<GS>“4”mnbelow,andfordetailsonselectingthered/blacksubstitutefunctionusingthememoryswitch,seetheprinterspecificationsmanual.

ESC 5[Name] Cancelwhite/blackinversion/specifyblackcolorprinting[Code] ASCII ESC 5

Hexadecimal 1B 35Decimal 27 53

[DefinedArea] ---[InitialValue] Cancelwhite/blackinvertedprinting/specifyblackprinting

[Function] The following shows the details of this command. They vary according to the model. Spec. 1 Cancelswhite/blackinvertedprinting(onlyonmodelsthatdonothandletwocolorprinting) Cancelswhite/blackinvertedprinting Specifiesblackprinting(onlyonmodelsthathandletwocolorprinting) Cancelsredcolorprintingandprintssubsequentdatainblack. Spec. 2 Thiscommandfunctionisbasedontheselectionofred/blacksubstitutefunction. Thered/blacksubstitutefunctionisselectedbythememoryswitchorthecommand<ESC><GS>“4”mn. Fordetailsonselectingthered/blacksubstitutefunctionusingacommand,seetheexplanationof<ESC>

<GS>“4”mnbelow,andfordetailsonselectingthered/blacksubstitutefunctionusingthememoryswitch,seetheprinterspecificationsmanual.

Page 21: Sp700 Printer Codes Manual

3-13STARCommandSpecifications

Rev. 0.70

ESC GS 4 m n[Name] Selectred/blacksubstitutefunction[ESC4/5setting][Code] ASCII ESC GS 4 m n

Hexadecimal 1B 1D 34 m nDecimal 27 29 52 m n

[DefinedArea] m=1,2,49,50 When m = 1, 49 n = 0 to 3, 255 When m = 2, 50 n = 0, 2 to 5 When m = 83 n = 0, 1 [Initial Value] Memory switch setting

[Function] Selectsred/blacksubstitutefunction Selects characters targeted for adornment with m = 1 (ANK) or m = 2 (Kanji characters), and selects the

<ESC>"4”/<ESC>“5”commandfunctionswithn. Setsthehandlingofadornmenttospacecharacters(ASCII20Hex)withm=83(“S”). Thiscommandisenabledonlywheninastatewhereadornmentiscancelledby<ESC>“4”(when<ESC>“5”

wasspecified).

Whenm=1,48(“1”)Targetedcharacters=ANK

m n <ESC>“4”/<ESC>“5”CommandFunctions(ANK)

1 , 49 0 White/blackinvertedprinting(1Pass)1 , 49 1 <Option1>White/blackinversin(5x9fontprint)+enhancing(2passes)1 , 49 2 <Option2>Upperline+Underline+enhancing(2passes)1 , 49 3 <Option3>Upperline+Underline+doubletallexpanded+enhancing(4passes)1 , 49 255 No adornment

Whenm=2,50(“2”)Targetedcharacters=Kanjicharacters

m n <ESC>“4”/<ESC>“5”CommandFunctions(Kanjicharacters)

2 , 50 0 No adornment 2 , 50 2 <Option2>Upperline+Underline+enhancing(4passes)2 , 50 3 <Option3>Upperline+Underline+doubletallexpanded+enhancing(4passes)2 , 50 4 <Option4>White/BlackInverted+Double-Tall(2passes)2 , 50 5 <Option5>White/BlackInverted+4XExpanded(2passes)

Whenusing<ESC>“5“tocanceladornments,itreturnstothepreviouslysetadornments.(Adornmentssuchasunder-line,upperline,double-tallexpandedandenhancingarecancelledifthereisnocommandtosetthem(forexamplethe<ESC>“-“1specificationforunderlines).

Precautions for selecting <Option 1> 1. Prints white/black inverted characters using 5 x 9 fonts regardless of the current font size

setting.2. Inserts a one dot string of black printing to the head of the white/black inverted charac-

ters.3. Printing data created on a conventional red/black printer, using 1 and 2 above, there are

cases in which the printing position will shift to the right and a line of printable characters reduced.

4. Download registered characters defined with 5 x9 fonts are printed regardless of the cur-rent font setting (7x9/5x9).

5. Must not set “ANK default dot count = many” with the memory switch. (This will cause a white line to appear between characters.)

Precautions for selecting <Option 2> and <Option 3> 1. Do not apply an upper line or an underline when rotating 90 or 270 degrees.

Page 22: Sp700 Printer Codes Manual

3-14STARCommandSpecifications

Rev. 0.70

Whenm=83(“S”)Red/blackadornmentofANKspacecharacters(20H).

m n Red adornment of ANK space characters (20H).

83 0 Adorn83 1 Do not adorn

Thisparameterspecifieswhether toadornred/black forANKspacecharacters inredprintingmode(black/white in-verted). TheANKspacecharactersarelimitedtoASCIIcode20Hinthissetting.Inthecharactercodetable,if7FHexisaspacecharacter, 7FHex is a target for this setting. Thefollowingisanexampleofeachsetting.Itispossibletoavoidunnecessaryadornmentinprintingpatternsthatpro-videspacingofprintingpositionswithANKspacecharacters(20H)whenredisspecified.

(Print Example) Printdata:<ESC>“4”“TOTAL”20H20H20H20H20H20H20H20H20H“$1234”<LF>

<Condition1>ANKadornment=“black/whiteinvertedprinting,”ANKspacecharacters=“red/blackadornment”

TOTAL $1234

<Condition1>ANKadornment=“black/whiteinvertedprinting,”ANKspacecharacters=“nored/blackadornment”

TOTAL $1234

Page 23: Sp700 Printer Codes Manual

3-15STARCommandSpecifications

Rev. 0.70

SI[Name] Select upside-down printing[Code] ASCII SI

Hexadecimal 0FDecimal 15

[DefinedArea] ---[Initial Value] Upside-down printing cancelled

[Function] Specifiesupside-downprinting Thiscommandisenabledonlywhenatthetopoftheline.Therefore,upsidedownandright-sideup

characterscannotbothexistinthesameline. Thiscommandisenabledforfollowing. • ANK characters • Kanji characters • Bit images

DC2[Name] Cancel upside-down printing[Code] ASCII DC2

Hexadecimal 12Decimal 18

[DefinedArea] ---[Initial Value] Upside-down printing cancelled

[Function] Cancels upside-down printing Thiscommandisenabledonlywhenatthetopoftheline.

Page 24: Sp700 Printer Codes Manual

3-16STARCommandSpecifications

Rev. 0.70

ESC RS i n[Name] Specify/cancel character rotated mode[Code] ASCII ESC RS i n

Hexadecimal 1B 1E 69 nDecimal 27 30 105 n

[DefinedArea] 0≤ n ≤ 2 48 ≤ n ≤50(“0”≤ n ≤“2”)[Initial Value] Character rotation cancelled (n = 0)

[Function] Specifiesdirectiontorotateprint(clockwise)ortocancelrotationforsubsequentdata,accordingtothenvalue.

n Set rotation0, 48 Cancelled (0° rotation)1, 49 270° rotation2, 50 270° rotation

Rotatedcharacterscannotbeappliedwithunderlinesorupperlines.Therelationshipbetweendouble-tallanddouble-wideisreversetowhencancelledwhenrotating.WheninJapanesecharactermode,rotationiseffectiveforbothANKcharactersandKanjicharacters.Chinesecharacterspacingisalwaysappliedwiththetwo-byteChinesecharacterspacingvalue.Instandardspecifications,rotatingIBMblockgraphiccharactersischangedtovertical8dotfonts.Thefollowingareprecautionsfor7x9fontcharacterfontspecification.• Characters are printed with 5 x 9 fonts (2P=1). • Download characters registered with 5 x 9 fonts are printed. •Whenrotationiscancelled,thecharactersreturnto7x9fonts.(Whenthereisnot5x9specificationwhilerotationisspecified.)ThiscommandiseffectiveonlyafontotherthantheThaifontisselectedasthecharactercodetable.(Rotation is automatically cancelled when the Thai character code is selected while this command is selected.)

Page 25: Sp700 Printer Codes Manual

3-17STARCommandSpecifications

Rev. 0.70

3-3-4 Line Spacing

LF[Name] Line feed[Code] ASCII LF

Hexadecimal 0ADecimal 10

[DefinedArea] ---[Initial Value] Set line feed to 1/6 inch

[Function] Afterprintingdatainthelinebuffer,paperisfedaccordingtothecurrentlysetlinefeedamount.

CR[Name] Carriage return (Print line feed) [Code] ASCII CR

Hexadecimal 0DDecimal 13

[DefinedArea] ---[Initial Value] Set line feed to 1/6 inch

[Function] Specifiesthefunctionaccordingtothememoryswitchvalue.

Memory SW FunctionCondition (1) IgnoredCondition (2) Sameasthe<LF>code.Condition (3) Executes only printing, with no paper feed.

Seeeachprinter’sproductspecificationsmanualfordetailsonthememoryswitchsettings.

Page 26: Sp700 Printer Codes Manual

3-18STARCommandSpecifications

Rev. 0.70

ESC a n[Name] Feed paper n lines[Code] ASCII ESC a n

Hexadecimal 1B 61 nDecimal 27 97 n

[DefinedArea] 1≤ n ≤ 127[Initial Value] ---

[Function] Afterprintingdatainthelinebuffer,paperisfedaccordingto(currentlysetlinefeedamountxn). Thispaperfeedamountisunaffectedevenifthereareverticalexpandedcharactersanddoublehighand

wide expanded characters in one line.

ESC 0[Name] Set line feed to 1/8 inch[Code] ASCII ESC 0

Hexadecimal 1B 30Decimal 27 48

[DefinedArea] ---[Initial Value] 1/6 inch

[Function] Setssubsequentlinefeedamountsto1/8inch.

ESC 1[Name] Set line feed to 7/72 inch[Code] ASCII ESC 1

Hexadecimal 1B 31Decimal 27 49

[DefinedArea] ---[Initial Value] 1/6 inch

[Function] Setssubsequentlinefeedamountsto7/72inch.

Page 27: Sp700 Printer Codes Manual

3-19STARCommandSpecifications

Rev. 0.70

ESC z 0[Name] Set line feed to 1/12 inch[Code] ASCII ESC z 0 Or ESC z “0”

Hexadecimal 1B 7A 00 1B 7A 30Decimal 27 122 0 27 122 48

[DefinedArea] ---[Initial Value] 1/6 inch

[Function] Setssubsequentlinefeedamountsto1/12inch.

ESC z 1[Name] Set line feed to 1/6 inch[Code] ASCII ESC z 1 Or ESC z “1”

Hexadecimal 1B 7A 01 1B 7A 31Decimal 27 122 1 27 122 49

[DefinedArea] ---[Initial Value] 1/6 inch

[Function] Setssubsequentlinefeedamountsto1/6inch.

Page 28: Sp700 Printer Codes Manual

3-20STARCommandSpecifications

Rev. 0.70

ESC A n[Name] Definen/72inchpitchlinefeed[Code] ASCII ESC A n

Hexadecimal 1B 41 nDecimal 27 65 n

[DefinedArea] 0≤ n ≤ 85[Initial Value] n = 12 (1/6 inch line feed)

[Function] Defineslinefeedamountforonelineasn/72inch. Toenablethiscode,ESC2(linefeedpitchsetting)mustbesent.

ESC 2[Name] Set ESC A line feed pitch[Code] ASCII ESC 2

Hexadecimal 1B 32Decimal 27 50

[DefinedArea] ---[Initial Value] ---

[Function] SetsonelinefeedamounttothevaluedefinedbyESCA(n/72inchpitchlinefeeddefinition). Line feed amount is set to 1/6 inch if executing this command when ESC A (n/72 inch pitch line feed

definition)isnotset.

Page 29: Sp700 Printer Codes Manual

3-21STARCommandSpecifications

Rev. 0.70

ESC 3 n[Name] Set line feed to n/216 inch line feed pitch (approximate value)[Code] ASCII ESC 3 n

Hexadecimal 1B 33 nDecimal 27 51 n

[DefinedArea] 0≤ n ≤ 255[Initial Value] n = 36 (1/6 inch)

[Function] Setssubsequentlinefeedamountstoavalueapproximateton/216inch. Becausetheminimumpitchforthepaperfeedmechanismis1/144ofaninch,thesettingvaluewillbe

approximated according to the following equation.

INT (n x 2/3 + 0.5)/144 of an inch

ESC y n[Name] Set line feed to n/144 inch line feed pitch[Code] ASCII ESC y n

Hexadecimal 1B 79 nDecimal 27 121 n

[DefinedArea] 0≤ n ≤ 255[Initial Value] n = 24 (1/6 inch)

[Function] Setssubsequentlinefeedamountston/144inch.

Page 30: Sp700 Printer Codes Manual

3-22STARCommandSpecifications

Rev. 0.70

ESC J n[Name] Execute n/72 inch paper feed one time[Code] ASCII ESC J n

Hexadecimal 1B 4A nDecimal 27 74 n

[DefinedArea] 1≤ n ≤ 255[Initial Value] ---

[Function] Afterprintingdatainthelinebuffer,paperisfedn/72ofaninchintheforwardpaperfeeddirection. Thispaperfeedamountisunaffectedevenifthereareverticalexpandedcharactersanddoublehighand

wide expanded characters in one line. Thesinglelinefeedamountsettingvalueisnotchangedbythiscommand.

ESC I n[Name] Execute n/144 inch paper feed one time[Code] ASCII ESC I n

Hexadecimal 1B 49 nDecimal 27 73 n

[DefinedArea] 1≤ n ≤ 255[Initial Value] ---

[Function] Afterprintingdatainthelinebuffer,paperisfedn/144ofaninchintheforwardpaperfeeddirection. Thispaperfeedamountisunaffectedevenifthereareverticalexpandedcharactersanddoublehighand

wide expanded characters in one line. Thesinglelinefeedamountsettingvalueisnotchangedbythiscommand.

Page 31: Sp700 Printer Codes Manual

3-23STARCommandSpecifications

Rev. 0.70

3-3-5 Page Control Commands

FF[Name] Form feed[Code] ASCII FF

Hexadecimal 0CDecimal 12

[DefinedArea] ---[Initial Value] ---

[Function] Thiscommandperformsthefollowingoperationsaftertheprinterprintstheprintingdatainthelinebuffer.

Operationsaresetbythememoryswitch.

Memory SW Cutter Model Tear Bar ModelCondition (1) Executes a form feed Executes a form feed.Condition (2) Feeds paper to the cutting position and performs a full cut. (*1) Paperisfedtothetear-barposition.(*2)Condition (3) Executes a form feed. Executes a form feed.Condition (4) Feeds paper to the cutting position and performs a partial cut. (*1) Paperisfedtothetear-barposition.(*2)

(*1) Paper feed to cutting position: Executes a 1 inch paper feed.(*2)Paperfeedtotear-barposition: Executesa7/6inchpaperfeed.

Seeeachprinter'sproductspecificationsmanualfordetailsonthememoryswitchsettings.

Page 32: Sp700 Printer Codes Manual

3-24STARCommandSpecifications

Rev. 0.70

ESC C n[Name] Set page length to n lines[Code] ASCII ESC C n

Hexadecimal 1B 43 nDecimal 27 67 n

[DefinedArea] 1≤ n ≤ 255[Initial Value] 1/6 inch x 42

[Function] This command sets the length of one page to [currently set line feed amount x n] lines The current position is the top position of the page. Thepagelengthsetusingthiscommandisunaffectedbychangingtheformfeedamountlater. Moving to the top of the page is performed using the FF (form feed) command. Ifapagelengthissetlessthanthebottommarginsettingvaluethatiscurrentlyset,thepagelengthsetting

valueisvalidandthebottommarginsettingvalueiscleared.

ESC C NUL n[Name] Set page length to n inches [Code] ASCII ESC C NUL n

Hexadecimal 1B 43 00 nDecimal 27 67 0 n

[DefinedArea] 1≤ n ≤ 127[Initial Value] n = 7

[Function] This command sets the length of one page to n inches.The current position is the top position of the page. Thepagelengthsetusingthiscommandisunaffectedbychangingtheformfeedamountlater. Moving to the top of the page is performed using the FF (form feed) command. Ifapagelengthissetlessthanthebottommarginsettingvaluethatiscurrentlyset,thepagelengthsetting

valueisvalidandthebottommarginsettingvalueiscleared.

Page 33: Sp700 Printer Codes Manual

3-25STARCommandSpecifications

Rev. 0.70

VT[Name] Feedpapertoverticaltabposition[Code] ASCII VT

Hexadecimal 0BDecimal 11

[DefinedArea] ---[Initial Value] ---

[Function] Thiscommandperformspaperfeedsuptothenextverticaltabpositionaftertheprinterprintsthedatainthelinebuffer.

Thiscommandisignorediftherearenotabsset. Ifaverticaltabisset,andthecurrentpositionisthesameastheverticaltabposition,orifitisbelowthat

position, it feeds paper to the top of the next page.

ESC B n1 n2 … nk NUL[Name] Setverticaltab[Code] ASCII ESC B n1 n2 .. nk NUL

Hexadecimal 1B 42 n1 n2 .. nk 00Decimal 27 66 n1 n2 .. nk 0

[DefinedArea] 1≤ n ≤ 255 1 ≤ k ≤ 16 [Initial Value] (Not set)

[Function] Setstheverticaltabto(currentformfeedamountxn)position. Allotherverticaltabssetbeforesettingtheverticaltabusingthiscommandarecancelled Amaximumof16verticaltabscanbeset.However,thetabpositionmustsatisfytheconditionof1≤ n1 ≤ n2

... ≤nk.Whenreceivingtheillegalcodesthatdonotsatisfythecondition,tabsuptotheillegalcodeareset,butthoseaftertheillegalcodearediscardeduptotheNULcodesoillegalcodetabarenotset.

Theverticaltabsetusingthiscommandisunaffectedbychangingtheformfeedamountlater. AllverticaltabsareclearedbyinputtingESCBNUL. Doublehighanddoublehigh&widecharacterspecificationsareunaffectedwhenusingthissetting.

Page 34: Sp700 Printer Codes Manual

3-26STARCommandSpecifications

Rev. 0.70

ESC N n[Name] Setbottommargintonlines[Code] ASCII ESC N n

Hexadecimal 1B 4E nDecimal 27 78 n

[DefinedArea] 0≤ n ≤ 255 (Not full page length)[Initial Value] n = 0

[Function] Thiscommandsetsthebottommarginpositionto(currentlinefeedamountxn).

Thecurrentpositionwhensettingiseffectivefromthenextpagewhenwithinthebottommargin.Thebottommarginsetusingthiscommandisunaffectedbychangingtheformfeedamountlater.Thesetbottommarginisclearedusingthe“ESCNNUL”orthe“ESCO”commands.Thebottommarginsettingvaluemustbeavaluesmallerthanthelengthofonepage.Ifavaluehigherthelengthofthepageisspecified,thissettingisignored.

ESC O[Name] Cancelbottommargin[Code] ASCII ESC O

Hexadecimal 1B 4FDecimal 27 79

[DefinedArea] ---[Initial Value] Not set

[Function] ThiscommandclearsthebottommarginsetusingtheESCN(setbottommargintonlines).

Portion of Paper

Automatically Fed

Bottom Margin

of Line n

Page Length

Page 35: Sp700 Printer Codes Manual

3-27STARCommandSpecifications

Rev. 0.70

3-3-6 Horizontal Direction Printing Position

ESC RS A n[Name] Set print region[Code] ASCII ESC RS A n

Hexadecimal 1B 1E 41 nDecimal 27 30 65 n

[DefinedArea] Specification1 0≤ n ≤ 3 Specification2 0≤ n ≤ 5

[Initial Value] MSW Setting

[Function] Afterprintingdatainthelinebuffer,thissetstheprintableregioninthehorizontaldirectionaccordingtothenvalue.

Settingthiscommandpartwaywillprintthedatainthelinebufferatthattime,performalinefeedandthentake affect from the next line.

n PrintRegion(NumberofDots) Spec. 1 Spec. 20 210 Dots ○ ○1 160 Dots ○ ○2 200 Dots ○ ○3 150 Dots ○ ○4 190 Dots - ○5 180 Dots - ○

The next horizontal position settings are all initialized. • Left margin • Right margin • Current horizontal position •Horizontaltabposition Thesettingofthiscommandisnotinitializedby<ESC>“@”,<CAN>. Thehorizontalpositionparametersareinitializedbythiscommand.Executethecommandsrelatedto

position settings in the horizontal position after sending this command. Sendingexample:<ESC>“@”→<ESC><RS>“A”n→eachcommandsetting→printdata Thefollowingillustratestherelationshipbetweentheprintableregion,andtheleftandrightmargins.

Printable Region (ESC GS A n)

Print RegionLeft Margin

Right Margin

Page 36: Sp700 Printer Codes Manual

3-28STARCommandSpecifications

Rev. 0.70

ESC l n[Name] Set left margin[Code] ASCII ESC l n

Hexadecimal 1B 6C nDecimal 27 108 n

[DefinedArea] 0≤ n ≤ (right margin -2) ≤ 255 [Initial Setting] n = 0

[Function] This command sets the left margin (current ANK character pitch x n) using the left edge as a reference after printingdatainthelinebuffer.Theleftedgeisalsothereferenceforupside-downprinting.

Settingthiscommandpartwaywillprintthedatainthelinebufferatthattime,performalinefeedandthentake affect from the next line.

Characterspacingisincludedinthecharacterpitchbutisunaffectedbyexpansionsettings.

Theleftmarginsetusingthiscommandisunaffectedbychangingthecharacterpitchafterbeingset.

Theleftmarginmustbeatleastaminimumof18dots.(*1)

Iftheprintableregionassetbytheleftandrightmarginsissmallerthanonecharacter,includingthespacebetweencharacters,printingisnotpossible.Aquestionmark(?)isprintedinsteadofthecharacter.

(*1) More than four characters of 7 x 9 fonts; more than three characters of 5 x 9 fonts (2P=1) (when character spacing = 0)

Printable Region

Print RegionLeft Margin

Right Margin

Page 37: Sp700 Printer Codes Manual

3-29STARCommandSpecifications

Rev. 0.70

ESC Q n[Name] Set right margin[Code] ASCII ESC Q n

Hexadecimal 1B 51 nDecimal 27 81 n

[DefinedArea] 2≤ n ≤maximumprintabledigits≤ 255[InitialValue] Maximumprintabledigits

[Function] Thiscommandsetstheprintableregion(currentANKcharacterpitchxn)usingtheleftedgeasareferenceafterprintingdatainthelinebuffer.Theleftedgeisalsothereferenceforupside-downprinting.

Settingthiscommandpartwaywillprintthedatainthelinebufferatthattime,performalinefeedandthentake affect from the next line.

Characterspacingisincludedinthecharacterpitchbutisunaffectedbyexpansionsettings.

Therightmarginsetusingthiscommandisunaffectedbychangingthecharacterpitch.

Theprintregionwithinthedefinedrangemustbeatleastaminimumof18dotsfortherightmargin.

Iftheprintableregionassetbytheleftandrightmarginsissmallerthanonecharacter,includingthespacebetweencharacters,printingisnotpossible.Aquestionmark(“?”)isprintedinsteadofthecharacter.

(*1) More than four characters of 7 x 9 fonts; more than three characters of 5 x 9 fonts (2P=1) (when

character spacing = 0)

Printable Region

Print RegionLeft Margin

Right Margin

Page 38: Sp700 Printer Codes Manual

3-30STARCommandSpecifications

Rev. 0.70

HT[Name] Movehorizontaltab[Code] ASCII HT

Hexadecimal 09Decimal 9

[DefinedArea] ---[Initial Value] ---

[Function] Moveprintpositiontonexthorizontaltabposition. Thecurrentpositionmovestothenexttabpositionwhenatthehorizontaltabposition.

This command is ignored with under the following conditions. •Whenthereisnohorizontaltabset. •Whenthecurrentpositionisthesameasthefurthestrighthorizontaltabpositionortotherightofit. Intheunderline/upperlinemodes,underlinesandupperlinesarenotprintedinthespacescreatedbya

horizontaltab.

ESC D n1 n2 … nk NUL[Name] Sethorizontaltab[Code] ASCII ESC D n1 n2 .. nk NUL

Hexadecimal 1B 44 n1 n2 .. nk 00Decimal 27 68 n1 n2 .. nk 0

[DefinedArea] 1≤ n ≤maximumprintabledigits≤ 255 0 ≤ k ≤ 32 [Initial Value] Not set

[Function] Usestheleftedgeasastandardtosetthehorizontaltabtothepositionof(currentANKcharacterpitchxn). Thehorizontaltabreferencepointistheleftedge,regardlessoftheleftandrightmarginsettings.

The right edge is also the reference for upside-down printing.

ANKcharacterpitches,includingrightspaces,areunaffectedbyexpansionsettings. Allotherhorizontaltabssetbeforesettingthehorizontaltabusingthiscommandarecancelled Amaximumof32horizontaltabscanbeset,butthetabpositionmustsatisfythefollowingconditions. Ifthefollowingconditionsarenotmet,datauptotheNULcodeisdiscarded.Normaltabsthatmeetthe

conditionsbelowaresetandtabsaftererrorsoccurarenotset. • 1 < n1 < n2 … < nk • nk ≤Printableregion Thehorizontaltabsetusingthiscommandisunaffectedbychangingthecharacterpitch. AllhorizontaltabsareclearedbyinputtingESCDNUL.

Page 39: Sp700 Printer Codes Manual

3-31STARCommandSpecifications

Rev. 0.70

ESC GS a n[Name] Specify position alignment[Code] ASCII ESC GS a n

Hexadecimal 1B 1D 61 nDecimal 27 29 97 n

[DefinedArea] 0≤ n ≤ 2 48 ≤ n ≤50(“0”≤ n ≤“2”)[Initial Value] n = 0

[Function] Thisspecifiespositionalignmentforalldatainoneline,inthesetprintregion.

n Position alignment0, 48 Left alignment1, 49 Center alignment2, 50 Right alignment

ABC ABCD <ESC><GS> “a” 0

ABCDE

ABC

<ESC><GS> “a” 1 ABCD

ABCDE

ABC

<ESC><GS> “a” 2

ABCD

ABCDE

Page 40: Sp700 Printer Codes Manual

3-32STARCommandSpecifications

Rev. 0.70

ESC GS A n1 n2 [Name] Specifyabsoluteposition[Code] ASCII ESC GS A n1 n2

Hexadecimal 1B 1D 41 n1 n2Decimal 27 29 65 n1 n2

[DefinedArea] 0≤ n1 ≤ 255 0 ≤ n2 ≤ 255[Initial Value] ---[Function] Movestheprintingpositiontothe(n1+n2x256)positionbasedontheleftmargin. The right margin is also the reference for upside-down printing. This command is ignored if the print region is exceeded. Whenprintdataisduplicated,thenewprintdataisoverwrittenbytheoldprintdata.(theportionduplicatedin

thenewdataisdeleted.)However,bitimagedataisORprocessedfortheoldprintdata.

ESC GS R n1 n2 [Name] Specify relative position[Code] ASCII ESC GS R n1 n2

Hexadecimal 1B 1D 52 n1 n2Decimal 27 29 82 n1 n2

[DefinedArea] 0≤ n1 ≤ 255 0 ≤ n2 ≤ 255[Initial Value] ---[Function] Moves the printing position from the current position to the (n1 + n2 x 256) position. This command is ignored if the print region is exceeded. When (n1 + n2 x 256) ≥ 32768, it moves {65536 – (n1 + n2 x 256)} dots in the left direction. When (n1 + n2 x 256) < 32768, it moves (n1 + n2 x 256)} dots in the right direction.

When print data is duplicated, thenewprintdataisoverwrittenbytheoldprintdata. (the portion duplicated in thenewdataisdeleted.)However,bitimagedataisORprocessedfortheoldprintdata.

Page 41: Sp700 Printer Codes Manual

3-33STARCommandSpecifications

Rev. 0.70

3-3-7 Download

ESC & NUL n1 n2 [m d1 d2 d3 d4 d5 (d6 d7)] n2 - n1 + 1[Name] Registerdownloadcharacters(vertical1bytefont)[Code] ASCII ESC & NUL n1 n2 [m d1 d2 d3 d4 d5 (d6 d7)] n2 - n1 + 1

Hexadecimal 1B 26 00 n1 n2 [m d1 d2 d3 d4 d5 (d6 d7)] n2 - n1 + 1Decimal 27 38 0 n1 n2 [m d1 d2 d3 d4 d5 (d6 d7)] n2 - n1 + 1

[DefinedArea] 33 3333 ≤ n1 ≤ n2 ≤ 127 (21h ≤ n1 ≤ n2 ≤ 7Fh) m = 0, 128 (00h, 80h) 00 ≤ d1 to d7 ≤ 255[Initial Value] ---[Function] Registersdownloadcharacterstothespecifiedcharactercode. Amaximumof10downloadcharacterscanberegisteredfor7x9and5x9fonts. Therangeofthelocationtowritedownloadcharactersisspecifiedbyn1andn2.Whentheregistered

character is 1 character, n1 = n2. Ifonehasbeenalreadyregisteredtoanaddress,itisoverwritten. This command registers download characters independent to each font. mindicatestherelationshipofthecharacterpatternandtheprinthead(seefigurebelow). Definitiondata(d1tod7)setthebitsthatcorrespondtothedotstoprintto“1,”andthebitsthatcorrespondto

thedotsthatarenotprintedto“0.” Even if ESC @ (command initialization) is executed, the registered download character is not cleared. ThiscommandiseffectiveonlyafontotherthantheThaifontisselectedasthecharactercodetable.

(Composedofvertical1byteexceptfortheThaifont.)

Relationship of character pattern data and print head. 1. When m = 0 (00h):

2. When m = 128 (80h):

Note • When registering 7 x 9 fonts, dots adjacent in the horizontal direction do not print. • When character rotation is specified, 7 x 9 font registered characters cannot be printed. 5

x 9 font characters are always printed.

1

9

2345678

Pin Used

Unused

D8 D7 D6 D5 D4 D3 D2 D1

Upper Lower

1

9

2345678

Pin Used

Unused

D8 D7 D6 D5 D4 D3 D2 D1

Upper Lower

Page 42: Sp700 Printer Codes Manual

3-34STARCommandSpecifications

Rev. 0.70

[Ex.] Whenselecting7x9fonts,anddefiningthecharacterto21H:

ESC & NUL n1 n2 m d1 d2 d3 d4 d5 d6 d7 Code (Hexadecimal) 1B 26 00 21 21 80 3E 40 88 00 88 40 3E

(1whenprintingcorrespondingbits,and0fornoprint)

d1 d2 d3 d4 d5 d6 d7

7 Dots MSB

LSB

8 D

ots

Page 43: Sp700 Printer Codes Manual

3-35STARCommandSpecifications

Rev. 0.70

[Ex.] Whenselecting5x9fonts,anddefiningthecharacterto21H:

ESC & NUL n1 n2 m d1 d2 d3 d4 d5 Code (Hexadecimal) 1B 26 00 21 21 00 38 45 45 45 7E

(1whenprintingcorrespondingbits,and0fornoprint)

MSB

LSB

d1 d2 d3 d4 d5

5 Dots

8 D

ots

Page 44: Sp700 Printer Codes Manual

3-36STARCommandSpecifications

Rev. 0.70

ESC & m n1 n2 [d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 .... ak dk] n2 - n1 + 1[Name] Definedownloadcharacters(vertical2bytefont)[Code] ASCII ESC & m n1 n2 [d1 d2 d3 d4.........dk-1 dk..] n2 - n1 + 1

Hexadecimal 1B 26 m n1 n2 [d1 d2 d3 d4 .........dk-1 dk] n2 - n1 + 1

Decimal 27 38 m n1 n2 [d1 d2 d3 d4 .........dk-1 dk] n2 - n1 + 1

[DefinedArea] • 7 x 9 Mode • 7 x 9 Mode• 7 x 9 Mode m = 1 33 ≤ n1 ≤ n2 ≤ 127 (21h ≤ n1 ≤ n2 ≤ 7Fh) 0 ≤ 1 to 8 pins (d1 d3 d5 d7 … dk -1) ≤ 255 9 pin (d2 d4 d6 … dk) = 0, 128 (00h, 80h) k = 14 • 9 x 9 Mode• 9 x 9 Mode m = 2 33 ≤ n1 ≤ n2 ≤ 127 (21h ≤ n1 ≤ n2 ≤ 7Fh) 0 ≤ 1 to 8 pins (d1 d3 d5 d7 … dk -1) ≤ 255 9 pin (d2 d4 d6 … dk) = 0, 128 (00h, 80h) k = 18

[Initial Value] --- ---[Function] Registersdownloadcharacterstothespecifiedcharactercode. Specify1rowofdatawith1byteof1to8pins,and1byteof9pin. ItispossibletospecifytheONdotupto1to9pinsintheverticaldirection.However,itisprohibitedtospecify

the ON dot continuously in the horizontal direction. Amaximumof10downloadcharacterscanberegisteredfor7x9and9x9fonts. Therangeofthelocationtowritedownloadcharactersisspecifiedbyn1andn2.Whentheregistered

character is 1 character, n1 = n2. Ifonehasbeenalreadyregisteredtoanaddress,itisoverwritten. This command registers download characters independent to each font. Indicatestherelationshipofthecharacterpatternandtheprinthead(seefigurebelow). Definitiondata(d1tod7)setthebitsthatcorrespondtothedotstoprintto“1,”andthebitsthatcorrespondto

thedotsthatarenotprintedto“0.” Even if ESC @ (command initialization) is executed, the registered download character is not cleared. ThiscommandiseffectiveonlyafontotherthantheThaifontisselectedasthecharactercodetable.

(Composedofvertical2bytewhenusingtheThaifont.)

Page 45: Sp700 Printer Codes Manual

3-37STARCommandSpecifications

Rev. 0.70

Relationship of character pattern data and print head.

[Ex.] Whenselecting7x9fonts,anddefiningthecharacterto21H:

ESC & m c1 c2 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 Code (Hexadecimal) 1B 26 02 21 21 1F 00 20 00 44 00 00 00 44 00 20 00 1F 00

(1whenprintingcorrespondingbits,and0fornoprint)

d1

d2

d3

d4

d13

d14

7 Dots

MSB

LSB9 D

ots

Page 46: Sp700 Printer Codes Manual

3-38STARCommandSpecifications

Rev. 0.70

[Ex.:] Whenselecting9x9fonts,anddefiningthecharacterto21H:

ESC & m c1 c2 x d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 Code (Hex.) 1B 26 02 21 21 1C 00 00 80 22 00 00 80 22 00 00 80 22 00 00 80 3F 00

(1whenprintingcorrespondingbits,and0fornoprint)

MSB

LSB

d1 d3

d2 d4

d13

d14

7 Dots

9 D

ots

Page 47: Sp700 Printer Codes Manual

3-39STARCommandSpecifications

Rev. 0.70

ESC % N[Name] Specify/cancel download characters[Code] ASCII ESC % n

Hexadecimal 1B 25 nDecimal 27 37 n

[DefinedArea] n=0,1,48,49[Initial Value] Cancel download character

[Function] Specifies/cancelsdownloadcharacteraccordingtonvalue.

n0, 48 Cancel download characters1, 49 Specify download characters

<Printexampleofdownloadcharacters> 1. Register download character (ESC & NUL n1 n2 m0 m1 m2…) 2. Specify download characters (ESC % n (n = 1)) 3. Print download characters

Page 48: Sp700 Printer Codes Manual

3-40STARCommandSpecifications

Rev. 0.70

3-3-8 Bit Image Graphics

ESC K n NUL d1 d2 … dn[Name] Standarddensitybitimage[Code] ASCII ESC K n NUL d1 d2 .. dn

Hexadecimal 1B 4B n 00 d1 d2 .. dnDecimal 27 75 n 0 d1 d2 .. dn

[DefinedArea] 1≤n≤totaldotcount 0 ≤ d ≤ 255[Initial Value] ---

[Function] Thiscommandprintsbitimageswithonlythedatacountdeterminedbyn. Theamountofdatathatcanbeprintedinonelineislimitedtothetotaldotcount.Datathatexceedsthetotal

dot count or the right margin is ignored. Seeeachprinter’sproductspecificationsmanualfordetailsregardingthetotaldotcount. The printing of this command is a uni-directional print (SP2000, BD100). Afterprintingthebitimage,theprinterautomaticallyreturnstothecharactermode.

The following drawing shows the relationship of the print head needle wires and the data.

1

9

2345678

Pin Used

Unused

b8 b7 b6 b5 b4 b3 b2 b1

Upper Lower

Page 49: Sp700 Printer Codes Manual

3-41STARCommandSpecifications

Rev. 0.70

ESC L n1 n2 d1 d2 … dk[Name] Doubledensitybitimage[Code] ASCII ESC L n1 n2 d1 d2 .. dk

Hexadecimal 1B 4C n1 n2 d1 d2 .. dkDecimal 27 76 n1 n2 d1 d2 .. dk

[DefinedArea] 1≤ (n1 + n2 x 256) ≤ total half dot count k = n1 + n2 x 256 0 ≤ d ≤ 255[Initial Value] ---

[Function] Thiscommandexecutesthebitimageofadensitydoubled(halfdotprinting)forjustthedatacountdeterminedbyn1andn2.

Theamountofdatathatcanbeprintedinonelineisonlythetotalhalf-dotcount.Datathatexceedsthetotalhalf-dotcountortherightmarginisignored.Seeeachprinter’sproductspecificationsmanualfordetailsregarding the total half-dot count.

TherelationshipoftheprintheadneedlewiresandthedataisthesameasESCK(standarddensitybitimage).

Whenprintingdouble-densitybitimages,dotsadjacentinthehorizontaldirectiondonotprint. The printing of this command is a uni-directional print (SP2000, BD100). Afterprintingthebitimage,theprinterautomaticallyreturnstothecharactermode.

Page 50: Sp700 Printer Codes Manual

3-42STARCommandSpecifications

Rev. 0.70

ESC �� m n1 n2 d1 d2 … dk�� m n1 n2 d1 d2 … dk m n1 n2 d1 d2 … dk[Name] 9/16/18bitimagegraphics[Code] ASCII ESC ^ m n1 n2 d1 d2 .. dk

Hexadecimal 1B 5E m n1 n2 d1 d2 .. dkDecimal 27 94 m n1 n2 d1 d2 .. dk

[DefinedArea] Spec.1 0 ≤ m ≤1(“0”≤ m ≤“1”)

Spec. 2 [9W Printer] 0 ≤ m ≤1(“0”≤ m ≤“1”) [18W Printer] 0 ≤ m ≤5(“0”≤ m ≤“5”)

1 ≤(n1+n2x256)=printableregion 0 ≤ d ≤ 255

[Initial Value] ---

[Function] Thiscommandprintsbitimageswithonlythedatacountdeterminedbyn1,andn2atstandardordoubledensity.

Specify the horizontal print dot count (row) using n1 + n2 x 256 dots.

•m=0: Printstandarddensity9dotbitimages. Themaximumnumberofdotsinthehorizontaldirectionisthetotalnumberofdots. •m=1: Printdoubledensity9dotbitimages. Themaximumnumberofdotsinthehorizontaldirectionisthetotalnumberofhalfdots. Dots adjacent in the horizontal direction do not print.

•m=2: Printstandarddensity16dotbitimages. Themaximumnumberofdotsinthehorizontaldirectionisthetotalnumberofdots. •m=3: Printdoubledensity16dotbitimages. Themaximumnumberofdotsinthehorizontaldirectionisthetotalnumberofhalfdots. Dots adjacent in the horizontal direction do not print.

•m=4: Printstandarddensity18dotbitimages. Themaximumnumberofdotsinthehorizontaldirectionisthetotalnumberofdots. •m=5: Printdoubledensity18dotbitimages. Themaximumnumberofdotsinthehorizontaldirectionisthetotalnumberofhalfdots. Dots adjacent in the horizontal direction do not print.

Note • Data exceeding the maximum number of dots or the right margin is ignored. • Total number of dots and total number of half-dots follows the memory switch setting.

(See the specifications manual) • When m is outside the defined area, the following process occurs. Spec. 1 • Data after n1 is processed as normal data. Spec. 2 • The dots for the horizontal print dot count (row) n1 + n2 x 256 are discarded. • When printing of the bit image is ended, the system returns to normal data processing.

Page 51: Sp700 Printer Codes Manual

3-43STARCommandSpecifications

Rev. 0.70

The following drawing shows the relationship of the print head needle wires and the data.1.Whenm=0,1(9-dotbitimage) dn: 1 to 8 pin data

dn + 1: 9 pin data

2.Whenm=2,3(16-dotbitimage) dn: 1 to 8 pin data

dn + 1: 9 to 16 pin data

1

9

2345678

Pin Usedb7 b6 b5 b4 b3 b2 b1 b0

MSB LSB

b7 b6 b5 b4 b3 b2 b1 b0

MSB LSB

1

9

23

45

67

11

13

15

8

10

12

14

16

Pin Numberb7 b6 b5 b4 b3 b2 b1 b0

MSB LSB

b7 b6 b5 b4 b3 b2 b1 b0

MSB LSB

Page 52: Sp700 Printer Codes Manual

3-44STARCommandSpecifications

Rev. 0.70

3.Whenm=4,5(18-dotbitimage) dn: 1 to 8 pin data

dn + 1: 9 to 16 pin data

dn +2: 17 to 18 pin data

1

9

23

45

67

11

13

15

8

10

12

14

16

Pin Numberb7 b6 b5 b4 b3 b2 b1 b0

MSB LSB

b7 b6 b5 b4 b3 b2 b1 b0

MSB LSB

1718

b7 b6 b5 b4 b3 b2 b1 b0

MSB LSB

Page 53: Sp700 Printer Codes Manual

3-45STARCommandSpecifications

Rev. 0.70

3-3-9 Logo

ESC FS q n [x11 x12 y11 y12 d1…dk]1…[xn1 xn2 yn1 yn2 d1…dk] n[Name] Register logo[Code] ASCII ESC FS q n [x11 x12 y11 y12 d1 .. dk]1 .. [xn1 xn2 yn1 yn2 d1 .. dk]n

Hexadecimal 1B 1C 71 n [x11 x12 y11 y12 d1 .. dk]1 .. [xn1 xn2 yn1 yn2 d1 .. dk]nDecimal 27 28 113 n [x11 x12 y11 y12 d1 .. dk]1 .. [xn1 xn2 yn1 yn2 d1 .. dk]n

[DefinedArea] 1≤ n ≤ 255 0 ≤ xn1 ≤ 255, 0 ≤ xn2 ≤ 3 1 ≤ (xn1 + xn2 x 256) ≤ 1023 0 ≤ yn1 ≤ 255, 0 ≤ yn2 ≤ 1 1 ≤ (yn1 + yn2 x 256) ≤ 288 0 ≤ d ≤ 255 k = {(xn1 + xn2 x 256) x (yn1 + yn2 x 256) x 8}

[Initial Value] ---

[Function] Parameter details •n: Specifiesregisteredlogocount • xn1, xn2: Horizontal size of registered logo {(xn1 + xn2 x 256) x 8} dots • yn1, yn2: Vertical size of registered logo {(yn1 + yn2 x 256) x 8} dots • d: Registered logo data • k: Logo data count

•Thiscommandshouldbespecifiedatthetopoftheline. Ifthereisunprinteddatainthelinebuffer,thiscommandisexecutedafterprintingthatdataatthepointupto

where ESC FS q is procssed. •Whenthefirstparameterisdeterminedtobefreeoferror,theprinterstartsprocessingthiscommand. •Whenlogoregisterprocessingstarts,allpreviouslydefineddataisdeleted. (Itisnotpossibletoreregisteraportionofapluralityofdefinedlogodata.) •Logoregistrationnumbersaredefinedinrisingorderfrom1.

•Ifthedefinedareaspecifiedbytheparameterisnotempty,orifthereisanerrorintheparameterspecification,registerprocessingisexited.(Thepre-registeredandcompletedataiseffective.)

•Theprintershouldberesetiflogoregistrationiscompletedorregisterprocessingisaborted. •Ifanerroroccurswhileperformingregisterprocessing(thetimefromwhenthefirstparameterisOKuntil

the printer initialization is completed after registering a logo), error processing, mechanical operation and statusprocessingcannotbeperformed.Also,datamustnotbesentfromthehostduringthattime.

• This command is executed only for logo registration and does not accompany the printing operation. Logos are printed using the ESC FS p (print NV logo) command.

•TheNVmemorycapacityis2Mbits(256Kbytes=262,144bytes).However,4Kbytes(4,096bytes)arekept as parameter information separate to the data so the data region memory capacity is 258,048 Bytes.

Ex.: Whentheregistereddatasizepereachoneis6Kbytes(6,144bytes),itispossibletoregister258,048/6144 = 42.

Note • If this command is used frequently, there is the possibility of damaging the non-volatile memory. Write to the non-volatile memory less than 10 times in one day.

The relationships between input data and the actual print are shown on the next page.

Page 54: Sp700 Printer Codes Manual

3-46STARCommandSpecifications

Rev. 0.70

Relationships of logo and registered data xn = xn1 + xn2 x 256, yn = yn1 + yn2 x 256

Dataspecificationorder(exampleoftheabove)d[11] d[12] • • • • d[x1] d[21] d[22] • • • • d[x2] • • • • • • • • • • • d[n1] d[n2] • • • • d[xn]

Data

MSB

d[11] d[21] d[n1]

(yn1 + yn2 x 256) bytes (yn1 + yn2 x 256) x 8 dots

d[12] d[22] d[n2]

LSB

d[x1] d[x2] d[xn]

{(xn1 + xn2 x 256) x 8} dots

Page 55: Sp700 Printer Codes Manual

3-47STARCommandSpecifications

Rev. 0.70

ESC FS p n m [Name] Print logo[Code] ASCII ESC FS p n m

Hexadecimal 1B 1C 70 n mDecimal 27 28 112 n m

[DefinedArea] 1 ≤ n ≤ 255 (When printing normally) 0 ≤ m ≤ 3 48 ≤ m ≤51(“0”≤ m ≤“3”)[Initial Value] ---[Function] Printsthelogoofthenumbernregisteredusingthelogoregistrationcommandaccordingtotheprintmode

m.

n:LogoSpecification

n Function Remarks

1 to 255 Specifiedlogonumber

m: Print Mode

m Print Size Horizontal Direction Dot Density (DPI) *1

Vertical Direction Dot Density (DPI)

Remarks

0, 48 Normal Doubledensity(169.3) Doubledensity(144)1, 49 Horizontaldoublesize Standard density (84.7) Doubledensity(144)2, 50 Verticaldoublesize Doubledensity(169.3) Standard density (72)3, 51 Doublehigh/wide Standard density (84.7) Standard density (72)

*1: The actual value of the dot pitch in the horizontal direction is 0.30 mm for standard density and 0.15 mm fordoubledensity.

•Iftheparameteriswithinthedefinedregion,executethiscommandafterprintingtheunprinteddatainthelinebuffer.

(Unprinteddataisprintedregardlessofwhetherthespecifiedlogowasregisteredbyn.) Therefore,itisnotpossibletoprintwithotherdatainthesameline(characters,bitimages,barcodes). •Forhorizontaldoubledensity,logodatathatiscontinuouslyONinthehorizontaldirection,theprinter

automatically thins out the data. In such cases, right side data of the data that is continuously ON is forced OFF. •Printmodes,excludingupside-downprinting(enhanced,double,underline,charactersize,black/white

inverted,and90˚rightrotation)areunaffected. • If the logo horizontal print size exceeds the print region, the portion exceeding the area is not printed. •Thiscommandisaffectedbythefollowingcommandsettings. • Left margin (ESC I n) • Right margin (ESC Q n) • Position alignment (ESC GS a n) •Absolutepositionmovement(ESCGSAn1n2) •Absolutepositionmovement(ESCGSRn1n2) • Print region setting (ESC RS A n) •Horizontaltab(HT) • Upside-down printing (SI)

Page 56: Sp700 Printer Codes Manual

3-48STARCommandSpecifications

Rev. 0.70

3-3-11 Cutter Control

ESC d n[Name] Paper cut instruction[Code] ASCII ESC d n

Hexadecimal 1B 64 nDecimal 27 100 n

[DefinedArea] 0≤ n ≤ 3 48 ≤ n ≤51(“0”≤ n ≤“3”)[Initial Value] ---

[Function] Thiscommandexecutestheauto-cutaccordingtothenspecification,afterprintingdatainthelinebuffer. Afterauto-cutterisexecuted,theprinterconsidersthatpositiontobethetopofthepage.

n Auto-cutter0, 48 Full cut at the current position.

Thiscommandisignoredontear-barmodels.1, 49 Partial cut at the current position.

Thiscommandisignoredontear-barmodels.2, 50 Paper is fed to cutting position, then a full cut is executed. (*!)

Ontear-barmodels,paperisfedtothetear-barposition.(*2)3, 51 Paper is fed to cutting position, then a partial cut is executed. (*1)

Ontear-barmodels,paperisfedtothetear-barposition.(*2)

(*1) Paper feed to cutting position: Executes a 1 inch paper feed. (*2)Paperfeedtotear-barposition: Executesa7/6inchpaperfeed. The auto-cutter function operates in the following ways on models that only have a full cut or a partial cut. • Models that perform only a full cut. Executes a full cut when for instructions calling

for a partial cut. • Models that perform only a partial cut. Executes a partial cut when for instructions calling

for a full cut.

Page 57: Sp700 Printer Codes Manual

3-49STARCommandSpecifications

Rev. 0.70

3-3-12 External Device Drive

ESC BEL n1 n2[Name] Set external drive device 1 pulse width[Code] ASCII ESC BEL n1 n2

Hexadecimal 1B 07 n1 n2Decimal 27 7 n1 n2

[DefinedArea] 1≤ n1 ≤ 127 1 ≤ n2 ≤ 127[Initial Value] n1 = 20 (Energizing time: 200 msec) n2 = 20 (Delay time: 200 msec)

[Function] Sets the energizing and delay times for drive of the external device (such as cash drawers). • Energizing time = 10 x n1 (ms) • Delay time = 10 x n2 (ms)

Afterprinting,thisisexecutedbyBEL(Externaldevice1driveinstruction)orFS(Externaldevice1driveinstruction (real time)).

Handled in the following way when n1 and n2 are out of range. • When n1 = 0, or n2 = 0, this command is ingored. •Whenn1>128,n=128,whenn2>128,n=128.

10 x n2 (msec) 10 x n1 (msec)

ProhibitPrinting,PaperFeed

(Energize Time) (Delay Time)

OFF

ON Drive Pulse

Print Operation

Page 58: Sp700 Printer Codes Manual

3-50STARCommandSpecifications

Rev. 0.70

BEL[Name] External device 1 drive instruction[Code] ASCII BEL

Hexadecimal 07Decimal 7

[DefinedArea] ---[Initial Value] ---

[Function] Executes the external device drive conditions set according to the ESC BEL (external device drive pulse width setting command).

Aswithothercommands,thiscommandtemporarilystoresdatainthedatabuffer,thenexecutesintheorderreceived.

Note External device 1 and external device 2 cannot be executed simultaneously.

FS[Name] External device 1 drive instruction (real time)[Code] ASCII FS

Hexadecimal 1CDecimal 28

[DefinedArea] ---[Initial Value] ---

[Function] Executes the external device drive conditions set according to the ESC BEL (external device drive pulse width setting command).

The printer executes this command immediately upon reception.

Note External device 1 and external device 2 cannot be executed simultaneously.

Page 59: Sp700 Printer Codes Manual

3-51STARCommandSpecifications

Rev. 0.70

SUB[Name] External device 2 drive instruction (real time)[Code] ASCII SUB

Hexadecimal 1ADecimal 26

[DefinedArea] ---[Initial Value] ---

[Function] Drivesexternaldevice2.Theenergizingtimeanddelaytimearefixedat200mseach. The printer executes this command immediately upon reception. This command is the same as the EM command.

Note External device 1 and external device 2 cannot be executed simultaneously. This command is executed in real time only, so even if executed continuously, the drive

occurs only once.

EM[Name] External device 2 drive instruction (real time)[Code] ASCII EM

Hexadecimal 19Decimal 25

[DefinedArea] ---[Initial Value] ---

[Function] Drivesexternaldevice2.Theenergizingtimeanddelaytimearefixedat200mseach. The printer executes this command immediately upon reception. This command is the same as the SUB command.

Note External device 1 and external device 2 cannot be executed simultaneously. This command is executed in real time only, so even if executed continuously, the drive

occurs only once.

Page 60: Sp700 Printer Codes Manual

3-52STARCommandSpecifications

Rev. 0.70

ESC GS EM DC1 m n1 n2[Name] Setexternalbuzzerdrivepulsecondition[Code] ASCII ESC GS EM DC1 m n1 n2

Hexadecimal 1B 1D 19 11 m n1 n2Decimal 27 29 25 17 m n1 n2

[DefinedArea] 1≤ m ≤ 2 49 ≤ m ≤ 50 0 ≤ n1 ≤ 255 0 ≤ n2 ≤ 255[Initial Value] n1 = 0, n2 = 0 [Function] Setexternalbuzzerdrivepulsecondition. mspecifiesthebuzzerdriveterminalthatsetsthecondition.

m Buzzer Drive Terminals 1, 49 Buzzer drive terminal 1 2, 50 Buzzer drive terminal 2

n1specifiestheenergizingtime;n2specifiesthedelaytime. • Energizing time = 20 msec x n1 • Delay time = 20 msec x n2

Thedriveoftheexternalbuzzersetbythiscommandisperformedby<ESC><GS><EM><DC2>mn1n2. Thesetvalueisnotinitializedby<ESC>“@”,or<CAN>.

20 x n2 (msec) 20 x n1 (msec)

ProhibitPrinting,PaperFeed

(Energize Time) (Delay Time)

OFF

ON

Drive Pulse

Print Operation

Page 61: Sp700 Printer Codes Manual

3-53STARCommandSpecifications

Rev. 0.70

ESC GS EM DC2 m n1 n2[Name] Executeexternalbuzzerdrive[Code] ASCII ESC GS EM DC2 m n1 n2

Hexadecimal 1B 1D 19 12 m n1 n2Decimal 27 29 25 18 m n1 n2

[DefinedArea] 1≤ m ≤ 2 49 ≤ m ≤ 50 1 ≤ n1 ≤ 20 n2 = 0 [Initial Value] ---[Function] RepeatedlydrivesthebuzzeraccordingtotheON/OFFconditionssetbytheexternalbuzzerdrivepulse

conditioncommand<ESC><GS><EM><DC1>mt1t2.

mspecifiesthebuzzerdriveterminaltodrive.

m Buzzer Drive Terminals 1, 49 Buzzer drive terminal 1 2, 50 Buzzer drive terminal 2

Specifiesthenumberoftimestorepeatbuzzerdrivewith(n2x256+n1). Buzzer cannot ring whle printer is printing. Thiscommandisprohibitedforuseforanythingotherthanringingthebuzzer. (When this command is used for the drawer drive on models equipped with an external device terminal, it will

bedamaged,soitisabsolutelyprohibited.) Thebuzzercanbestoppedbypressingthepaperfeedswitchwhileitisringing.

Ex.

ProhibitPrinting,PaperFeed

(Note) When off time = 0, it is possibletoringthebuzzercontinuouslyforonlytheamountofn1. For example, if on = 5 seconds, and off = 0, n1 = 20times,thebuzzerwillringfor100seconds.

OFF

ON

Drive Pulse

Print Operation

on off

n1 = 8

Page 62: Sp700 Printer Codes Manual

3-54STARCommandSpecifications

Rev. 0.70

3-3-13 Status

ENQ[Name] Inquire ENQ status[Code] ASCII ENQ

Hexadecimal 05Decimal 5

[DefinedArea] ---[Initial Value] ---

[Function] Thiscommandiseffectiveonlywhenusinganinterfacecapableofbi-directionaldatacommunications. Whenthiscommandisreceived,theprintersendsthe1-byteofENQstatusinrealtimetothehost(nottaking

itfromthereceptionbuffer,butexecutingitimmediatelyuponreceptionfromthehost). Bi-directionalparallelinterfacesentera“datapresent”state. See Appendix ENQ Command Status for details regarding status. When this command is sent once to the printer, do not send the next ENQ command until the ENQ status has

beenreceived. This command is not used when auto-status is valid.

EOT[Name] Inquire EOT status[Code] ASCII EOT

Hexadecimal 04Decimal 4

[DefinedArea] ---[Initial Value] ---

[Function] Thiscommandiseffectiveonlywhenusinganinterfacecapableofbi-directionaldatacommunications. Whenthiscommandisreceived,theprintersendsthe1-byteofEOTstatusinrealtimetothehost(nottaking

itfromthereceptionbuffer,butexecutingitimmediatelyuponreceptionfromthehost). Bi-directionalparallelinterfacesentera“datapresent”state. See Appendix EOT Command Status for details regarding status. When this command is sent once to the printer, do not send the next EOT command until the EOT status has

beenreceived. This command is not used when auto-status is valid.

Page 63: Sp700 Printer Codes Manual

3-55STARCommandSpecifications

Rev. 0.70

ESC ACK SOH[Name] Inquire status[Code] ASCII ESC ACK SOH

Hexadecimal 1B 06 01Decimal 27 6 1

[DefinedArea] ---[Initial Value] ---

[Function] Thiscommandiseffectiveonlywhenusinganinterfacecapableofbi-directionaldatacommunications. When this command is received, the printer sends the status in real time to the host (not taking it from the

receptionbuffer,butexecutingitimmediatelyuponreceptionfromthehost). Bi-directionalparallelinterfacesentera“datapresent”state. See the Appendix Auto Status for details regarding status. WhenintheserialinterfaceDTRmode,andusingaparallelinterface,setsothatthestatuscanbeinquired

evenwhenofflineforerrors,etc. This command is not used when auto-status is valid. Whenthiscommandissentoncetotheprinter,donotsendthenextESCACKSOHcommanduntilthefinal

autostatushasbeenreceived.

ESC RS a n[Name] Set automatic status transmission conditions[Code] ASCII ESC RS a n

Hexadecimal 1B 1E 61 nDecimal 27 30 97 n

[DefinedArea] 0≤ n ≤ 3 48 ≤ n ≤51(“0”≤ n ≤“3”)[Initial Value] DIP switch or memory switch setting

[Function] Thiscommandiseffectiveonlyonprintersthathaveaninterfacecapableofbi-directionaldatacommunications.

Whenusingserial,parallelorUSB(vendorclass),useispossible. Thecommandisignored(settoenableauto-status)whenusingEthernetorwirelessLAN. The command is ignored when using USB (printer class).

Spec. 1 Settheautomaticstatustransmissionconditionsofthetablebelow.Sendstheautomaticstatusonetime.

Spec. 2 Thefunctionofthiscommandobeysthesettingofthememoryswitch,asshownbelow. Memoryswitchcondition(1):Settheautomaticstatustransmissionconditionsofthetablebelow. Memory switch condition (2): Sends the automatic status one time. Automatic Status Transmission Conditions

n Status transmission conditions0, 48 Automatic status invalid 1, 49 Automatic status valid

See Appendix 2 for details regarding auto-status. SettingsofthiscommandareunaffectedbytheESC@(commandinitialization)command. Seeeachprinter'sproductspecificationsmanualfordetailsonthememoryswitchsettings.

Page 64: Sp700 Printer Codes Manual

3-56STARCommandSpecifications

Rev. 0.70

ETB[Name] Update ETB status (check after printing)[Code] ASCII ETB

Hexadecimal 17Decimal 23

[DefinedArea] ---[Initial Value] Spec. 1 --- Spec. 2 ETB countr = 0 [Function] Thiscommandiseffectiveonlywhenusinganinterfacecapableofbi-directionaldatacommunications.

Spec. 1 This command waits until all printing is completed (the print motor is stopped), and after printing is completed,

theautostatusprinterstatus1-1(ETBcommand)becomes1(ETBexecutioncompleted). Notethatwhenexecutingthiscommand,andprintdataremainsthelinebuffer,thiscommandisexecuted

after printing the remaining data. Thehosechecksthatthisbithaschangedto“1”therebymakingitpossibletoascertainthattheprintingof

the sent data is completed. ThisETBstatusbitisclearedto“0”whenreturnedtohost.

The following shows the details of the processing in the printer with this command. (1) ReadsouttheETBcommandfromthereceptionbuffer.. (2) WaitsfortheprintingofdatatobecompletedbeforetheETBcommand (3) After checking the end of printing, the auto status ETB status is set (4) Auto status transmission (only when auto status is valid) See Appendix for details regarding the auto status.

Spec. 2 This command waits until all printing is completed (the print motor is stopped), and after printing is completed,

theautostatusprinterstatus1-1(ETBcommand)becomes1(ETBexecutioncompleted),andtheETBcounter is updated (incremented).

Notethatwhenexecutingthiscommand,andprintdataremainsthelinebuffer,thiscommandisexecutedafter printing the remaining data.

Thehosechecksthatthisbithaschangedto“1”therebymakingitpossibletoascertainthattheprintingofthe sent data is completed.

ThisETBstatusbitisclearedto“0”whenreturnedtohost. Also,ETBisappendedtotheendof1datablockandseveralblocksaresentatonce.BygettingtheETB

countersequentially,itispossibletoconfirmtheendofprintingtheseveralblocks. NotethattheETBcounterisclearedtozerobytheESCRSEcommand.

The following shows the details of the processing in the printer with this command. (1) ReadsouttheETBcommandfromthereceptionbuffer.. (2) WaitsfortheprintingofdatatobecompletedbeforetheETBcommand (3) After checking the end of printing, the auto status ETB status is set, and the ETB counter is

incremented. (4) Auto status transmission (only when auto status is valid) See Appendix for details regarding the auto status.

Page 65: Sp700 Printer Codes Manual

3-57STARCommandSpecifications

Rev. 0.70

ESC RS E n [Name] Initialize ASB ETB counter, and ETB status. [Code] ASCII ESC RS E n

Hexadecimal 1B 1E 45 nDecimal 27 30 69 n

[DefinedArea] n=0 n=48(“0”)[Initial Value] ---[Function] Clears the ASB ETB counter to zero and clears the ETB status of the auto-status 1-1.

Page 66: Sp700 Printer Codes Manual

3-58STARCommandSpecifications

Rev. 0.70

3-3-14 Kanji Characters (only on models that carry Kanji characters)

ESC p[Name] SpecifyJISJapanesecharactermode(Japanesespecificationsonly)[Code] ASCII ESC p

Hexadecimal 1B 70Decimal 27 112

[DefinedArea] ---[Initial Value] Select JIS Japanese character mode

[Function] SpecifiesJISJapanesecharactermode WheninJISJapanesecharactermode,allcharactercodesarehandledas2byteKanjicharacters(First

byte:uppercode;secondbyte:lowercode).EvenwhensettingtheJISKanjimode,thecontrolcodeisvalid. ThiscommandisignoredformodelsnotequippedwithJapanesecharactersandwhenthespecificationfor

thelocationofuseisspecifiedasSBCS(singlebytecountries)bythememoryswitch.

Spec. 1 When the lower code is 20h, 7Fh, it is handled as a space code. Spec. 2 Whenthelowercodeis20h,7Fh,2bytesareignored.

ESC q[Name] CancelJISJapanesecharactermode(Japanesespecificationsonly)[Code] ASCII ESC q

Hexadecimal 1B 71Decimal 27 113

[DefinedArea] ---[Initial Value] Cancel JIS Japanese character mode

[Function] Cancel JIS Japanese character mode ThiscommandisignoredformodelsnotequippedwithJapanesecharactersandwhenthespecificationfor

thelocationofuseisspecifiedasSBCS(singlebytecountries)bythememoryswitch.

Page 67: Sp700 Printer Codes Manual

3-59STARCommandSpecifications

Rev. 0.70

ESC $ n [Name] Specify/cancelJISJapanesecharactermode(Japanesespecificationsonly)[Code] ASCII ESC $ n

Hexadecimal 1B 24 nDecimal 27 36 n

[DefinedArea] n=0,1,48,49[Initial Value] Memory switch setting

[Function] SpecifiesandcancelstheshiftJISJapanesecharactermode.

n JIS Japanese Character Mode0, 48 CancelstheshiftJISJapanesecharactermode(Selectionofblockgraphicsmode)1, 49 Specify shift JIS Japanese character mode

WheninshiftJISJapanesecharactermode,ifthedatais<80>Hto<9F>Hor<E0>Hto<FF>H,thisishandledas2byteKanjicharacters(Firstbyte:uppercode;secondbyte:lowercode).Evenwhensettingtheshift JIS Japanese character mode, the control code is valid.

WhentheshiftJISChinesecharactermodeiscanceled,theblockgraphicsmodeisselected.Atthattime,ifthedatais<80>Hto<9F>Hor<E0>Hto<FF>H,thisishandledas1byteofblockgraphiccharacters.

ThiscommandisignoredformodelsnotequippedwithJapanesecharactersandwhenthespecificationforthelocationofuseisspecifiedasSBCS(singlebytecountries)bythememoryswitch.

Seeeachprinter'sproductspecificationsmanualfordetailsonthememoryswitchsettings.

Spec. 1 When the lower code is 7Fh, it is handled as a space code.

Spec. 2 Whenthelowercodeis7Fh,2bytesareignored.

Page 68: Sp700 Printer Codes Manual

3-60STARCommandSpecifications

Rev. 0.70

ESC s n1 n2[Name] SettwobyteKanjicharactersleft/rightspaces[Code] ASCII ESC s n1 n2

Hexadecimal 1B 73 n1 n2Decimal 27 115 n1 n2

[DefinedArea] 0≤ n1 ≤ 255 0 ≤ n2 ≤ 255 (However, n1 + n2 + character width ≤printableregion)[Initial Value] •Japanesespecifications Memoryswitchsetting

Memory SW n1 n2Condition (1) 0 2Condition (2) 0 4

•ForChinaandTaiwanspecifications Spec. 1: n = 0, n2 = 4 Spec. 2: Memory switch setting

Memory SW n1 n2Condition (1) 0 4Condition (2) 0 2

[Function] n1,n2specifiedspacesareJapanesecharacterspaces.n1istheleftsidecharacter;n2istherightsidecharacter.

Thevaluesofn1andn2whenusingtwo-byte8x16,two-byte16x16anddouble-tall8x16characterscorrespondto1/2dots;then1andn2valueswhenusingdoublehighandwide16x16characterscorrespond to 1 dot.

If the Japanese character size including the right and left spaces (n1 + character width + n2) exceeds the printregion,printingwillnotbepossibleandaquestionmark(“?”)willbeprintedinstead.

This command is ignored for models not equipped with Chinese fonts (for overseas) and when the specificationforthelocationofuseisspecifiedasSBCS(singlebytecountries)bythememoryswitch.Seeeachprinter'sproductspecificationsmanualfordetailsonthememoryswitchsettings.

ESC t n1 n2[Name] Set1byteKanjicharactersleft/rightspaces(Japanesespecificationsonly)[Code] ASCII ESC t n1 n2

Hexadecimal 1B 74 n1 n2Decimal 27 116 n1 n2

[DefinedArea] 0≤ n1 ≤ 255 0 ≤ n2 ≤ 255 (However, n1 + n2 + character width ≤printableregion)[Initial Value] Memory switch setting

Memory SW n1 n2Condition (1) 0 1Condition (2) 0 2

[Function] n1,n2specifiedspacesareJapanesecharacterspaces.n1istheleftsidecharacter;n2istherightsidecharacter.

Thevaluesofn1andn2whenusingtwo-byte8x16,two-byte16x16anddouble-tall8x16characterscorrespondto1/2dots;then1andn2valueswhenusingdoublehighandwide16x16characterscorrespond to 1 dot.

If the Japanese character size including the right and left spaces (n1 + character width + n2) exceeds the printregion,printingwillnotbepossibleandaquestionmark(“?”)willbeprintedinstead.

ThiscommandisignoredformodelsnotequippedwithJapanesecharactersandwhenthespecificationforthelocationofuseisspecifiedasSBCS(singlebytecountries)bythememoryswitch.Seeeachprinter'sproductspecificationsmanualfordetailsonthememoryswitchsettings.

Page 69: Sp700 Printer Codes Manual

3-61STARCommandSpecifications

Rev. 0.70

ESC r c1 c2 d1...dk[Name] Register Chinese download characters[Code] ASCII ESC r c1 c2 d1 .. dk

Hexadecimal 1B 72 c1 c2 d1 .. dkDecimal 27 114 c1 c2 d1 .. dk

[DefinedArea] 0≤ d ≤ 255 k = 32 c1andc2differaccordingtospecificationsandcodetype(seetablebelow).[Initial Value] All spaces

[Function] RegistersJapanesedownloadcharacterstoc1andc2addresses,butthefollowingshowsthepossiblecoderange.

Ifonehasbeenalreadyregisteredtoanaddress,itisoverwritten. ChinesedownloadcharactersoncedefinedarevaliduntilredefinedorthepoweristurnedOFF. Thedefinitionrangevariesaccordingtomodel.(Below:Specs.1,2,and3)

Spec. 1

Specifications c1 c2 Registration countJapanese Language Characters c1 = 77h 20h ≤ c2 ≤ 29h 10 CharactersKanji Characters c1 = F8h 21h ≤ c2 ≤ 2Ah 10 CharactersTaiwan Characters c1 = FEh F0h ≤ c2 ≤ F9h 10 Characters

Spec. 2

Specifications c1 c2 Registration countJapanese Language Characters c1 = 77h 20h ≤ c2 ≤ 29h 10 CharactersKanji Characters c1 = FAh 21h ≤ c2 ≤ 2Ah 10 CharactersTaiwan Characters c1 = FEh F0h ≤ c2 ≤ F9h 10 Characters

Spec. 3

Specifications c1 c2 Registration countJapanese Language Characters c1 = 77h 20h ≤ c2 ≤ 7Dh 94 CharactersKanji Characters FEh ≤ c1 ≤ FFh A1h ≤ c2 ≤ FEh 94 CharactersTaiwan Characters FEh ≤ c1 ≤ FFh A1h ≤ c2 ≤ FEh 94 Characters

DefinedJapanesedownloadcharactersareaccessedwithtwo-bytes,inthesamewayasotherKanjicharacters.Atthattime,c1isthefirstbyte,c2isthesecondbyte.

d1, d2 • • • d32 are character data.

Page 70: Sp700 Printer Codes Manual

3-62STARCommandSpecifications

Rev. 0.70

Theyaredesignedasshownbelowanddataissentsequentially.

The font of Chinese download characters is composed of 16 x 16 dot patterns. Bitsthatcorrespondtothedotstoprintare“1,”andthebitsthatcorrespondtothedotsthatarenotprinted

are“0.”

d1 d3 d5 d7 d9 d11 d13 d15 d17 d19 d21 d23 d25 d27 d29 d31 MSB

LSB d2 d4 d6 d8 d10 d12 d14 d16 d18 d20 d22 d24 d26 d28 d30 d32

MSB

LSB

Vertical 16 Dots

Horizontal 16 Dots

Page 71: Sp700 Printer Codes Manual

3-63STARCommandSpecifications

Rev. 0.70

ESC u 1[Name] Specify 16 x 16 dot [single density] Kanji characters.[Code] ASCII ESC u 1 Or ESC u “1”

Hexadecimal 1B 75 01 1B 75 31Decimal 27 117 1 27 117 149

[DefinedArea] ---[InitialValue] Specifytwo-byte16x16dot(singledensity)Kanjicharacters.

[Function] Specify 16 x 16 dot [single density] Kanji characters. Whentwo-bytesisselected,theybecometwo-passcharacters(state(B)tostate(A))Dotscontinuous

horizontally are thinned for printing. Thiscommandsetstothedouble-tallexpandedcharactermodebycombiningwithESCx0(Specify

expandedKanjicharacters)(state(B)→state(C)) See“RelationshipofKanjiCharacterSizeSelection.”

ESC u 0[Name] Specify16x16dot[DoubleDensity]Kanjicharacters[Code] ASCII ESC u 0 Or ESC u “0”

Hexadecimal 1B 75 00 1B 75 30Decimal 27 117 0 27 117 148

[DefinedArea] ---[InitialValue] Specifytwo-byte16x16dot(singledensity)Kanjicharacters.

[Function] Specify16x16dot[doubledensity]Kanjicharacters. Whentwo-bytesisselected,theybecomefour-passcharacters(state(A)tostate(B))Dotscontinuous

horizontally are printing. Thiscommandsetstothe4xexpandedcharactermodebycombiningwithESCx0(SpecifyexpandedKanji

characters)(state(A)→state(D)) See“RelationshipofKanjiCharacterSizeSelection.”

Page 72: Sp700 Printer Codes Manual

3-64STARCommandSpecifications

Rev. 0.70

ESC x 1[Name] SpecifytwobyteKanjicharacters(cancelexpandedKanjicharacters)[Code] ASCII ESC x 1 Or ESC x “1”

Hexadecimal 1B 78 01 1B 78 31Decimal 27 120 1 27 120 49

[DefinedArea] ---[InitialValue] Specifytwo-byte16x16dot(singledensity)Kanjicharacters.

[Function] CancelsspecifyChinesecharacterexpansion,andsetstotwo-byteKanjicharacters When16x16dotKanjicharacters[singledensity]areselected,theybecometwo-passcharacters(state(C)

to state (A)) When16x16dotKanjicharacters[doubledensity]areselected,theybecomefour-passcharacters(state(D)

to state (B)) See“RelationshipofKanjiCharacterSizeSelection.”

ESC x 0[Name] SpecifyexpandedKanjicharacters(Doublehigh/doublehigh&wide)[Code] ASCII ESC x 0 Or ESC x “0”

Hexadecimal 1B 78 00 1B 78 30Decimal 27 120 0 27 120 48

[DefinedArea] ---[InitialValue] Specifytwo-byte16x16dot(singledensity)Kanjicharacters.

[Function] Sets Chinese character expansion. When16x16dotKanjicharacters[doubledensity]areselected,theybecometwo-passcharacters(double-

tall size: state (A) to state (C)) When16x16dotKanjicharacters[doubledensity]areselected,theybecomehorizontallyandvertically

expandedcharacters(doublehigh&widesize:state(B)tostate(D)) See“RelationshipofKanjiCharacterSizeSelection.”

Page 73: Sp700 Printer Codes Manual

3-65STARCommandSpecifications

Rev. 0.70

ESC w 1[Name] Specifytwo-byte16x16dotKanjicharacters[SingleDensity] (Default)[Code] ASCII ESC w 1 Or ESC w “1”

Hexadecimal 1B 77 01 1B 77 31Decimal 27 119 1 27 119 49

[DefinedArea] ---[InitialValue] Specifytwo-byte16x16dot(singledensity)Kanjicharacters.

[Function] CancelsspecifyJapanesecharacterexpansion,andsetstotwo-byte16x16dotKanjicharacters[singledensity]

Kanjicharactersbecometwo-passcharacters(tostate(A)) When the power is turned off, this is set. See“RelationshipofKanjiCharacterSizeSelection.”

ESC w 0[Name] Specifydoublehigh&wideKanjicharacters[Code] ASCII ESC w 0 Or ESC w “0”

Hexadecimal 1B 77 00 1B 77 30Decimal 27 119 0 27 119 48

[DefinedArea] ---[InitialValue] Specifytwo-byte16x16dot(singledensity)Kanjicharacters.

[Function] Setsdoublehigh&wide(double-wide/double-high)16x16Kanjicharacters.(tostate(D)) See“RelationshipofKanjiCharacterSizeSelection.”

Page 74: Sp700 Printer Codes Manual

3-66STARCommandSpecifications

Rev. 0.70

<RelationshipofChineseCharacterSizeSelection>

*See5.Appendix5-2ExpansionPosition fordetailson thedifferencesofdotconfigurationsof [singledensity]and[doubledensity]intwo-byte16x16dotKanjicharacters.ThissectionusesaJapanesecharactertoillustratethediffer-ence.

State (A)

Two-byte 16 x 16 Dot Kanji [Single Density]

(2-pass Print)

State (C)

Double high Kanji

(Double-high size, 2-pass Print)

State (B)

Two-byte 16 x 16 Dot Kanji [Double Density]

(4-pass Print)

State (D)

Double high & wide Kanji(Double wide x double high size, 2-pass Print)

ESC x 0

ESC x 1

ESC x 0

ESC x 1

ESC u 0 ESC u 1 ESC u 0 ESC u 1ESC w 1ESC w 0

Page 75: Sp700 Printer Codes Manual

3-67STARCommandSpecifications

Rev. 0.70

3-3-15 Others

RS[Name] Ringbuzzer[Code] ASCII RS

Hexadecimal 1EDecimal 30

[DefinedArea] ---[Initial Value] ---

[Function] Issuesashortbuzzersoundfromtheprinter.

CAN[Name] Cancel print data and initialize commands[Code] ASCII CAN

Hexadecimal 18Decimal 24

[DefinedArea] ---[Initial Value] ---

[Function] Whenthereceptionbufferandlinebufferarecleared,thesetcommandsareinitialized. Immediatelyexecutednotwhentakingoutfromthereceptionbuffer,butwhenreceivedfromthehost. DIPSW and memory switch re-read is not performed. Thefollowingshowsthespecificationsthatarenotinitializedbythiscommand. • DC1 and DC3 select/deselect status • ESC BEL external device drive conditions • Auto status valid/invalid conditions

Page 76: Sp700 Printer Codes Manual

3-68STARCommandSpecifications

Rev. 0.70

DC3[Name] Printer deselect[Code] ASCII DC3

Hexadecimal 13Decimal 19

[DefinedArea] ---[Initial Value] Select printer

[Function] Deselects printer. All received data is discarded until the next DC1 (printer select) is received.

DC1[Name] Select printer[Code] ASCII DC1

Hexadecimal 11Decimal 17

[DefinedArea] ---[Initial Value] Select printer

[Function] This cancels the deselect state of the DC3 (printer deselect) and selects the printer.

Page 77: Sp700 Printer Codes Manual

3-69STARCommandSpecifications

Rev. 0.70

ESC @[Name] Command initialization[Code] ASCII ESC @

Hexadecimal 1B 40Decimal 27 64

[DefinedArea] ---[Initial Value] ---

[Function] Initializeseachcommandafterprintingdatainthelinebuffer. DIPSW and memory switch re-read is not performed. Thefollowingshowsthespecificationsthatarenotinitializedbythiscommand. • DC1 and DC3 select/deselect status • ESC BEL external device drive conditions • Auto status valid/invalid conditions •Setstoenable,disableblackmarkdetection

ESC U n[Name] Select printing direction[Code] ASCII ESC U n

Hexadecimal 1B 55 nDecimal 27 85 n

[DefinedArea] 0≤ n ≤ 2 48 ≤ n ≤50(“0”≤ n ≤“2”)[InitialValue] StandardSpecifications(Memoryswitch:SetsSBCS):n=0 JapaneseCharacterSpecifications(Memoryswitch:SetsDBCS):n=2orn=0(*1Dependsonthemodel)

[Function] Executesprintdirectionspecifiedbythiscommandafterprintingdatainthelinebuffer.

n Printing Direction0, 48 Specifybi-directionalprinting1, 49 Specify uni-directional printing

2, 50SpecifyANKbi-directional,Japanesecharactersingledirection(onlyonmodelsin-stalled with Kanji characters)

Bi-directional printing is faster than uni-directional printing. With uni-directional printing, printing is performed only when the print head moves from left to right. Whenn=2,theprinterprintsANKcontinuousprintingbi-directionally.ContinuousprintingincludingKanji

charactersisdoneinmultiplepassesonthefirstlineonlywhentheheadmovesfromthelefttotheright.Onthe next line, it prints in a multiple of passes only when the head moves from the right to the left.However, if there are ruled lines in one line of print, or if the paper feed amount after printing exceeds 1/6 of an inch, printing is uni-directional from the left to the right.

Regardingn=1,dependingonthemodel,settingscanbemadevalidorinvalidusingthememoryswitch. Seeeachprinter’sproductspecificationsmanualfordetailsonthememoryswitchsettings.

(*1) Depends on the model n = 2: Models that use a DC motor for the carriage motor. n = 0: Models that use a stepping motor (logical seeking) for the carriage motor.

Page 78: Sp700 Printer Codes Manual

3-70STARCommandSpecifications

Rev. 0.70

ESC GS # m N n1 n2 n3 n4 LF NUL[Name] Set memory switch[Code] ASCII ESC GS # m N n1 n2 n3 n4 LF NUL

Hexadecimal 1B 1D 23 m N n1 n2 n3 n4 0A 00Decimal 27 29 35 m N n1 n2 n3 n4 10 0

[DefinedArea] m=87,84,44,43,45(m=“W”,“T”,“,”,“+”,“-”) 48 ≤ N ≤57(”0”≤ N ≤“9”),65≤ N ≤70(”A”≤ N ≤“F”) 48 ≤ n1 ≤57(”0”≤ n1 ≤“9”),65≤ n1 ≤70(”A”≤ n1 ≤“F”) 48 ≤ n2 ≤57(”0”≤ n2 ≤“9”),65≤ n2 ≤70(”A”≤ n2 ≤“F”) 48 ≤ n3 ≤57(”0”≤ n3 ≤“9”),65≤ n3 ≤70(”A”≤ n3 ≤“F”) 48 ≤ n4 ≤57(”0”≤ n4 ≤“9”),65≤ n4 ≤70(”A”≤ n4 ≤“F”)[Initial Value] ---

[Function] Sendscommandtowriteafterdefiningmemoryswitchusingthedefinitioncommandspecifiedbythefollowingclassestosetthememoryswitch.Theprinterisautomaticallyresetafterwritingthesettingdefinedbythatcommandtothenon-volatilememory.

Do not turn off the power to the printer while sending commands to the non - volatile memory.Doing so will destroythememoryswitchsetting.Itisalsopossibleforallmemoryswitchsettingstobecomeoffsettotheirinitial, default settings.

Consider the life of the non-volatile memory and avoid over-sue of this command.

Function Class m N n1 n2 n3 n4DataDefinition(DataSpecification) Definition “,” N n1 n2 n3 n4Datadefinition(setspecifiedbit) Definition “+” N n1 n2 n3 n4Datadefinition(clearspecifiedbit) Definition “-” N n1 n2 n3 n4Definitiondatawriteandreset Write “W” Fixedat“0” Fixedat“0000”Definitiondatawriteandresetandtestprint Write “T” Fixedat“0” Fixedat“0000”

• m: Mode Selection •N: Memoryswitchnumbertospecify •n1n2n3n4: Specifieddatam=“,”→Specifieddata m=“+”→Bitnumbertoset m=“-”→Bitnumbertoclear

Note The status of this command varies according to the model, so check the special appendix.

Page 79: Sp700 Printer Codes Manual

3-71STARCommandSpecifications

Rev. 0.70

ESC # N m n1 n2 n3 n4 LF NUL[Name] Set memory switch[Code] ASCII ESC # N m n1 n2 n3 n4 LF NUL

Hexadecimal 1B 23 N m n1 n2 n3 n4 0A 00Decimal 27 35 N m n1 n2 n3 n4 10 0

[DefinedArea] m=44,43,45(m=“,”,“+”,“-“) 48 ≤ N ≤57(”0”≤ N ≤“9”),65≤ N ≤70(”A”≤ N ≤“F”) 48 ≤ n1 ≤57(”0”≤ n1 ≤“9”),65≤ n1 ≤70(”A”≤ n1 ≤“F”) 48 ≤ n2 ≤57(”0”≤ n2 ≤“9”),65≤ n2 ≤70(”A”≤ n2 ≤“F”) 48 ≤ n3 ≤57(”0”≤ n3 ≤“9”),65≤ n3 ≤70(”A”≤ n3 ≤“F”) 48 ≤ n4 ≤57(”0”≤ n4 ≤“9”),65≤ n4 ≤70(”A”≤ n4 ≤“F”)[Initial Value] ---

[Function] Sendscommandtowriteafterdefiningmemoryswitchusingthedefinitioncommandspecifiedbythefollowing classes.

This command is set only and not changed for the current operating environment. Changed settings are valid after the power is turned on again, or when the printer is reset. Consider the life of the non-volatile memory and avoid over-sue of this command.

Function Class m N n1 n2 n3 n4DataDefinition(DataSpecification) Definition “,” N n1 n2 n3 n4Datadefinition(setspecifiedbit) Definition “+” N n1 n2 n3 n4Datadefinition(clearspecifiedbit) Definition “-” N n1 n2 n3 n4

• m: Mode Selection •N: Memoryswitchnumbertospecify •n1n2n3n4: SettingData m=“,”→Specifieddata m=“+”→Bitnumbertoset m=“-”→Bitnumbertoclear

Note The status of this command varies according to the model, so check the special appendix.

Page 80: Sp700 Printer Codes Manual

3-72STARCommandSpecifications

Rev. 0.70

ESC ? LF NUL[Name] Reset printer and execute self print[Code] ASCII ESC ? LF NUL

Hexadecimal 1B 3F 0A 00Decimal 27 63 10 0

[DefinedArea] ---[Initial Value] ---

[Function] Hardware resets the printer and executes on self print. After sending this command, the next data is not sent until the printer is online (in a state wherein it can

receive data).

Page 81: Sp700 Printer Codes Manual

3-73STARCommandSpecifications

Rev. 0.70

3-4 Black Mark Related Commands

TheStarblackmarkrelatedcommandsaretocontrolthetopofform(blackmark)functions.Thiscommandsareeffectiveonlywhenblackmarkfunctionisvalid.

<Blackmarkspecifications>1. Top of form (black mark detection) operationA. Selectablewhenpoweristurnedon(resetsignalisinput),whenself-printtestiscompletedandbythememoryswitch.Memory switch setting When power is turned on (reset signal is input), when self-print ends Condition (1) MaintainCondition (2) Topofform(blackmarkdetection)toprintingstartposition

B. Press FEED.Executestopofform(blackmark)toprintingstartposition

C. Command See the following command details.

D. Other Errors, Detailed SettingsRefertoeachprinter’sspecificationmanual.

2 Black Mark Error A. Enterblackmarkerror•Whenwhiteisdetectedwhenfeedingpaper(*dependsonthemodel)beyondapredeterminedlength.Enterblackmarkerror•Whenblackisdetectedwhenfeedingpaper(*dependsonthemodel)beyondapredeterminedlength.BM/PEdualusemodel→enterpaperouterrorBMindependentmodel→enterblackmarkerror* Depends upon the model SeetheProductSpecificationsManualforeachprinterfordetailsonthepredeterminedlengthandtheBMsensorspeci-fications(dualuseanddedicated).

B. Operationduringablackmarkerror•Offline•Onlythefollowingcommandsarevalid.Othercommandsarestoredinthereceptionbuffer. • ENQ: Inquire ENQ status • EOT: Inquire EOT status • ESC ACK SOH: Inquire automatic status • Auto status is valid.

C. Black mark error canceling method Refertoeachprinter’sspecificationmanual.

3. Ignore CommandsWhenblackmarkisvalid,thefollowingpagelengthcontrolcommandsareinvalid.

Class Commands FunctionPage control ESC C 3bytesignored(Setlinepagelengthtonlines)

ESC C 0 4bytesignored(Setlinepagelengthtoninches)VT 1byteignored(Feedpapertoverticaltabposition)ESC B IgnoreduntilNUL(Setverticaltabposition)ESC N 3bytesignored(Setbottommargintonlines)ESC O 2bytesignored(Cancelbottommargin)

Page 82: Sp700 Printer Codes Manual

3-74STARCommandSpecifications

Rev. 0.70

ESC d n[Name] Paper cut instruction[Code] ASCII ESC d n

Hexadecimal 1B 64 nDecimal 27 100 n

[DefinedArea] 0≤ n ≤ 3 48 ≤ n ≤51(“0”≤ n ≤“3”)[Initial Value] ---

[Function] Thiscommandexecutestheauto-cutaccordingtothenspecification,afterprintingdatainthelinebuffer. Afterauto-cutterisexecuted,theprinterconsidersthatpositiontobethetopofthepage.

n Auto-cutter0, 48 Full cut at the current position.

Thiscommandisignoredontear-barmodels.1, 49 Partial cut at the current position.

Thiscommandisignoredontear-barmodels.2, 50 Paper is fed to cutting position, then a full cut.

Ontear-barmodels,paperisfedtothecuttingposition.3, 51 Paper is fed to cutting position, then a partial cut.

Ontear-barmodels,paperisfedtothecuttingposition.

The auto-cutter function operates in the following ways on models that only have a full cut or a partial cut. • Models that perform only a full cut: Executes a full cut when for instructions calling for a partial cut. • Models that perform only a partial cut: Executes a partial cut when for instructions calling for a full cut.

Thecuttingpositionistheposition(afterdetectionoftheblackmark)setbytheESCGS(F(Settopofformamountinblackmarkcontrol).

Ifnotsetbythesecommands,paperisfedtotheinitialpositionsetbythememoryswitch. •Thecuttingposition(blackmark)variesaccordingtothepaperusedandtocustomerspecifications. •Refertotheprinterproductspecificationsyouusefordetailsregardingthedistancetothecuttingposition

(thephysicalvaluefromtheblackmarktotheprintheadtothecutterposition).

Page 83: Sp700 Printer Codes Manual

3-75STARCommandSpecifications

Rev. 0.70

FF[Name] Performs TOF operation[Code] ASCII FF

Hexadecimal 0CDecimal 12

[DefinedArea] ---[Initial Value] ---

[Function] Thiscommandperformsthefollowingoperationsaftertheprinterprintstheprintingdatainthelinebuffer.

Operationsaresetbythememoryswitch.

Memory SW Cutter Model Tear Bar ModelCondition (1) Paper feed to printing start position Paper feed to printing start positionCondition (2) Feeds paper to the cutting position and performs a full cut. (*) Paper feed to cutting positionCondition (3) Paper feed to printing start position Paper feed to printing start positionCondition (4) Feeds paper to the cutting position and performs a partial cut. (*) Paper feed to cutting position

(*) The auto-cutter function operates in the following ways on models that only have a full cut or a partial cut. • Models that perform only a full cut: Executes a full cut when for instructions calling for a partial cut. • Models that perform only a partial cut: Executes a partial cut when for instructions calling for a full cut.

Theprintingstartpositionistheposition(afterdetectionoftheblackmark)setbytheESCFF(Settopofformamountafterdetectingblackmark)andESCGS(F(Settopofformamountinblackmarkcontrol)commands.

Thecuttingpositionistheposition(afterdetectionoftheblackmark)setbytheESCGS(F(Settopofformamountinblackmarkcontrol).

Ifnotsetbythesecommands,paperisfedtotheinitialpositionsetbythememoryswitch. •Theprintstartingposition(blackmark)variesaccordingtothepaperusedandtocustomerspecifications. •Refertotheprinterproductspecificationsyouusefordetailsregardingthedistancetotheprintstarting

position(thephysicalvaluefromtheblackmarktotheprintheadtothecutterposition).

Page 84: Sp700 Printer Codes Manual

3-76STARCommandSpecifications

Rev. 0.70

ESC FF n1 n2[Name] Settopofformamountafterdetectingblackmark[Code] ASCII ESC FF n1 n2

Hexadecimal 1B 0C n1 n2Decimal 27 12 n1 n2

[DefinedArea] 0≤ n1 x 256 + n2 ≤2047(however,lessthatthelengthbetweenmarks)[Initial Value] Memory switch setting

[Function] Thiscommandsetstheamountfortopofformafterblackmarkdetection(n1x256+n2)tosteps. (1 step = 1/144 of an inch) The setting value of this command affects the printer initialization command (ESC @). Iftheparameterisoutsideofthedefinedrange,thiscommandisreceivedanddiscarded. ThesettingsoftopofformbythiscommandarevalidinexecutingthetopofformoperationusingtheFF(top

offormoperation)andpressingtheFeedswitch.Tomakethesettingvaluevalid,setthiscommandbeforetheexecution command.

The paper position varies according to the printer type. Seeeachprinter’sproductspecificationsmanualfordetailsonthememoryswitchsettings.

Page 85: Sp700 Printer Codes Manual

3-77STARCommandSpecifications

Rev. 0.70

ESC GS ( F p1 p2 a m n1 n2[Name] Settopofformamountinblackmarkcontrol[Code] ASCII ESC GS ( F p1 p2 a m n1 n2

Hexadecimal 1B 1D 28 46 p1 p2 a m n1 n2Decimal 27 29 40 70 p1 p2 a m n1 n2

[DefinedArea] p1=4,p2=0 a = 1, 2 m = 0, 48 0 ≤ n1 + n2 x 256 ≤1700(however,lessthatthelengthbetweenmarks)[Initial Value] Memory switch setting

[Function] Settopofformposition(printingstartpositionandcuttingposition)whenusingblackmarkcontrol. (p1+p2x256)specifiesthesubsequentreceptionbytecount. a selects the target to set. a=1:Amountofmovementoftheprintingstartposition(FF,Feedswitch)correspondingtotheblackmark

position. a=2:Amountofmovementofthecuttingposition(ESCd)correspondingtotheblackmarkposition. mspecifiesthedirectionofpositionmovement.m=specifiesthedirectionofpaperfeedwith0,48. n1, n2 specify the actual amount of movement((n1 + n2 x 256) x 1/144 of an inch) The setting value of this command affects the printer initialization command (ESC @). Iftheparameterisoutsideofthedefinedrange,thiscommandisreceivedanddiscarded. The setting (a = 1) of movement to the printing starting position is valid in executing the top of form operation

using the FF (top of form operation) and pressing the Feed switch.To make the setting value valid, set this commandbeforetheexecutioncommand.

The settings of the movement of the cutting position (a = 2) are valid when executing ESC d (paper cut).To makethesettingvaluevalid,setthiscommandbeforetheexecutioncommand.

Theinitialvalueofthesetmovementamountsabidethememoryswitchsettings.Thepaperpositionvariesaccording to the printer type.

Seeeachprinter’sproductspecificationsmanualfordetailsonthememoryswitchsettings.

Page 86: Sp700 Printer Codes Manual

3-78STARCommandSpecifications

Rev. 0.70

ESC RS m n [Name] Enable,disableblackmarkdetection[Code] ASCII ESC RS m n

Hexadecimal 1B 1E 6D nDecimal 27 30 109 n

[DefinedArea] n=0,1,2,48,49,50[Initial Value] Memory SW

[Function] Switchesttoenable/disableblackmark(BM)detectioncontrol

Whenswitchingthesetting,operationsarethesameaswhenswitchingtoenable/disableusingthememoryswitch. (However, that excludes the TOF operation that occurs when the power is turned ON.)

n Black mark detection settings 0, 48 Invalid1, 49 Valid 2, 50 Executes validate + TOP to the BM cutting position + paper full cut (SP542)

This command executes a BM TOF + paper full cut only when the current setting is specifiedfrominvalidtovalidusingthiscommand.(*)

(*) Precautions when specifying n = 2 Normally,whenspecifedfromastatewhereBMisvalidtobecomeinvalid,theTOFtotheBMcuttingposition

+paperfullcutisnotexecuted.However,ifthiscommand(n=2)isspecifiedwhentheBMTOFhasnotbeenexecuted once, the same operation is executed after replacing paper.

Forreference,seethefunctionsandcommandsbelowthatareaffectedwhenthissettingisswitched.

Affected Functions

Function When BM is Valid (n = 1, 2, 49, 50) When BM is Invalid (n = 0, 48) Press FEED Top of form to printing start position Feed one line BM Error Supported InvalidMemory switch (for BM) Supported InvalidEOT status (for BM) Supported InvalidASB status (for BM) Supported Invalid

Affected Commands

Class Commands When BM is Valid (n = 1, 2, 49, 50) When BM is Invalid (n = 0, 48) BM Command FF Top of form to printing start position Form feed

ESC d 2 TOF to cutting position + full cut Paper fed to cutting position + full cut ESC d 3 TOF to cutting position + partial cut Paper fed to cutting position + partial cut

Page control ESC C Ignored Set page length to n linesESC C 0 Ignored Set page length to n inchesVT Ignored FeedpapertoverticaltabpositionESC B Ignored SetverticaltabpositionESC N Ignored SetbottommargintonlinesESC O Ignored Cancelbottommargin

Note that at the point that this setting is switched, the current position is cleared to its default value in the same way as turning the power ON.

Also, the auto-status BM sensor detection is also initialized to white. Thiscommandisnormallyusedwithblackmarkdetectionsetto“valid”bythememoryswitch,anditis

recommendedtoswitchto“invalid”justonceifnecessary.Donotdynamicallyswitchbetweenvalidandinvalid for each receipt.

Page 87: Sp700 Printer Codes Manual

3-79STARCommandSpecifications

Rev. 0.70

3-5 USB Related Commands

The following commands control USB interface functions.

Page 88: Sp700 Printer Codes Manual

3-80STARCommandSpecifications

Rev. 0.70

3-6 2-Color Printing Command Details

ESC RS C n [Name] Select/cancel 2-color printing mode[Code] ASCII ESC RS C n

Hexadecimal 1B 1E 43 nDecimal 27 30 67 n

[DefinedArea] 0≤ n ≤ 1 48 ≤ n ≤49(“0”≤ n ≤“1”)[Initial Value] DIP switch [Function]

n Select/cancel 2-color printing mode0, 48 Cancel 2-color printing mode

When in two-color print mode, this command cancels 2-color printing mode. This command is ignored when the 2-color print mode is already cancelled.ThespecificationofthiscommandisnotclearedbyESC@CAN.Thefollowingprocessesareexecutedbycancelingthe2-colorprintmodeusingthiscommand.•Printsdatainlinebufferin2-colorprintmode,ifunprinteddataexistsinthelinebuffer.• Waits to stop printing when printing in 2-color print mode.

1, 49 Select 2-color printing modeThis command selects 2-color print mode, when in single color print mode.This command is ignored already in the 2-color print mode.ThespecificationofthiscommandisnotclearedbyESC@CAN.Thefollowingprocessesareexecutedbyselectingthe2-colorprintmodeusingthiscommand.•Printsdatainlinebufferinthesingle-colorprintmode,ifunprinteddataexistsinthelinebuffer.• Waits to stop printing when printing in single-color print mode. • Initializes print color setting (2-color print mode setting)

Page 89: Sp700 Printer Codes Manual

3-81STARCommandSpecifications

Rev. 0.70

ESC 4[Name] Specifywhite/blackinversionandredcolorprinting[Code] ASCII ESC 4

Hexadecimal 1B 34Decimal 27 52

[DefinedArea] ---[InitialValue] White/blackinversioncancelled/blackcolorprintingspecified

[Function] The following shows the details of this command. They vary according to the model. Spec. 1 •Specifieswhite/blackinvertedprinting(onlyonmodelsthatdonothandletwocolorprinting) Subsequentcharactersareprinted,includingthecharacterpitch,withwhiteandblackinverted. Printing is uni-directional. (SP2000, BD100) Precautions for Use of This Command (1)ThiscommandisenabledforANKcharactersonly.White/blackisnotinvertedforKanjicharactersand

blockgraphiccharacters. (2) Do not use this command when ANK fonts are set to 5 x 9 (3P=1) (Print quality is not guaranteed.) (3)WhentheANKfontsettingis5x9(2P=1),andcharacterspacingissettoanoddnumber,thegap

betweencharacterswillopen,sosetthecharacterspacetoanevenvalue. •Specifiesredcolorprinting(onlyonmodelsthathandletwocolorprinting) Subsequentcharactersareprintedinred.Redandblackcharacterscanbemixedonthesameline. Thiscommandisenabledforallprintdata(ANKcharacters,Kanjicharactersandbitimages). When switched to red colored, printing is uni-directional. Spec. 2 Thiscommandfunctionisbasedontheselectionofred/blacksubstitutefunction. Thered/blacksubstitutefunctionisselectedbythememoryswitchorthecommand<ESC><GS>“4”mn. Fordetailsonselectingthered/blacksubstitutefunctionusingacommand,seetheexplanationof<ESC>

<GS>“4”mnbelow,andfordetailsonselectingthered/blacksubstitutefunctionusingthememoryswitch,seetheprinterspecificationsmanual.

ESC 5[Name] Cancelwhite/blackinversion/specifyblackcolorprinting[Code] ASCII ESC 5

Hexadecimal 1B 35Decimal 27 53

[DefinedArea] ---[InitialValue] Cancelwhite/blackinvertedprinting/specifyblackprinting

[Function] The following shows the details of this command. They vary according to the model. Spec. 1 Cancelswhite/blackinvertedprinting(onlyonmodelsthatdonothandletwocolorprinting) Cancelswhite/blackinvertedprinting Specifiesblackprinting(onlyonmodelsthathandletwocolorprinting) Cancelsredcolorprintingandprintssubsequentdatainblack. Spec. 2 Thiscommandfunctionisbasedontheselectionofred/blacksubstitutefunction. Thered/blacksubstitutefunctionisselectedbythememoryswitchorthecommand<ESC><GS>“4”mn. Fordetailsonselectingthered/blacksubstitutefunctionusingacommand,seetheexplanationof<ESC>

<GS>“4”mnbelow,andfordetailsonselectingthered/blacksubstitutefunctionusingthememoryswitch,seetheprinterspecificationsmanual.

Page 90: Sp700 Printer Codes Manual

4-1STARCommandSpecifications

Rev. 0.70

4. CHARACTER CODE TABLE

Seethecharactercodespecifications

Page 91: Sp700 Printer Codes Manual

5-1STARCommandSpecifications

Rev. 0.70

5. APPENDIX5-1 Status Specifications Thisfunctioniseffectiveonlywhenusinganinterfacecapableofbi-directionaldatacommunications.Refertoyourprinter’sproductspecificationmanualtoverifyiftheinterfacecableontheprinteryouuseiscapableofbi-directionaldatacommunications.5-1-1 ENQ Command StatusThis s ta tus is the one the pr in ter t ransmi ts us ing the ENQ command.

Bit Contents Status By model“0” “1” BD100 SP2000 BD500 SP500 SP700

7 Compulsion SW Open Closed ○ ○ ○ ○ ○6 Bufferoverflow No error Overflow ○ ○ ○ ○ ○

5Reception Buffer Empty

Has Data Empty ○ ○ ○ ○ ○

4 Fixedat“0” - - - - - -3 Paper end Paper No paper ○ ○ ○ ○ ○2 Mechanical Error No Error Error ○ ○ ○ ○ ○1 Framing Error No Error Error ○ ○ ○ ○ ○0 Parity Error No Error Error ○ ○ ○ ○ ○

• Framing error/parity errorThese errors occur when using a serial I/F.(For anything other than a serial interface, always Bit 0 = Bit 1 = 0.) With these errors, the information at that time is held and the error status is sent when there is an inquiry of the status bythiscommand.• Compulsion SWWhen the conversion switch is ON, Bit 7 = 1.

5-1-2 EOT Command StatusThis status is the one the printer transmits using the EOT command.

Bit Contents Status By model“0” “1” BD100 SP2000 BD500 SP500 SP700

7 - - - - -6 - - - - -5 - - - - -4 Fixedat“1” - - - - - -3 Paper end Paper No paper ○ ○ ○ ○ ○2 Paper near-end Paper No paper x ○ x ○ ○

1Black mark detection error

No Error Error x x ○ ○ ○

0 Fixedat“0” - - - - - -

• Paper end Same as the ENQ status Bit 3• Bit 5 to 7 states are unknown

Page 92: Sp700 Printer Codes Manual

5-2STARCommandSpecifications

Rev. 0.70

5-1-3 Automatic StatusAutostatusisagroupofstatesthatareautomaticallyreturnedfromtheprintertothehostwhentheprinter’sstatushaschanged.Automaticstatusiscomposedof“Header1,”“Header2”and“pluralityofbytesoftheprinterstatusandiscon-tinuouslyreturnedtothehost.Thehostalwaysusesanidentifyingmethodtoidentifythedataforeverybytereceived.(ItispossiblethatXon/XoffcodesareexceptionallymixedintheautostatusintheXon/Xoffmode(whenusingaserialI/F),soitisnecessarytoconsiderthatonthereceivingside.)Thevalid/invalidconditionsoftheautostatusabidebytheDIPSW or the memory switch settings for the initial values.ItispossibletochangetheconditionsusingtheESCRSancommandafterturningONthepower.Also,itispossibletogettheautostatususingtheESCACKSOHcommand,regardlessofthevalid/invalidconditions.

1. Header 1Header1isthe1bytelengthinformationtransmittedattheheadoftheautomaticstatus.ThetablebelowshowsthecompositionoftheHeader1.Header1representstheentirestatustransmissionbytecount,includingHeader1,usingbit1tobit3andbit5.Thehostgetsthetransmissionbyteinformationandalwaysreceivesthestatusdataforthatamounttransmissionbytes.Forreference,thetablebelowshowstherelationshipofactualtransmis-sionbytesandtheHeader1.Becausethebit0thatindicatesthatthisistheHeader1isnormally1(thesecondbyteandbeyondis0),todetecttheHeader1,itisacceptabletoverifythatbit0is1andbit4=0forthisdata.Notethatbit6isfor future expansion and is ignored in host-side processes.

<Header1(FirstByte)>

Bit Contents Status By model“0” “1” BD100 SP2000 BD500 SP500 SP700

7 Fixedat“0” - - - - - -6 Reserved (Fixed at 0) - - - - - -5 Numberofprinterstatusbytes ○ ○ ○ ○ ○4 Fixedat“0” - - - - - -3 Numberofprinterstatusbytes ○ ○ ○ ○ ○2 Numberofprinterstatusbytes ○ ○ ○ ○ ○1 Numberofprinterstatusbytes ○ ○ ○ ○ ○0 Fixedat“1” - - - - - -

Actualtransmissionbytecountandheader1tableTransmission Byte Count n

(7 ≤ n ≤ 15)Header 1

7 00001111B (0F Hex)8 00100001B (21 Hex)9 00100011B (23 Hex)

10 00100101B (25 Hex)11 00100111B (27 Hex)12 00101001B (29 Hex)13 00101011B (2B Hex)14 00101101B (2D Hex)15 00101111B (2F Hex)

Page 93: Sp700 Printer Codes Manual

5-3STARCommandSpecifications

Rev. 0.70

2. Header 2Header2isthe1bytelengthinformationtransmittedfromthesecondbyteoftheautostatus.Thetablebelowshowsthe composition of the Header 2.Header2representstheautostatusversion(calledautomaticstatusversionbelow)usingbit1tobit3andbit5.Forreference,thetablebelowshowstherelationshipofactualversionbytesandtheHeader2.Theautostatusversionwillbeusedasnewinformationisaddedtotheprinterstatusbitpositionsthatwereempty,byaddingnewfunctionsinthe future.Whenthehostdoesnotcontroltheautostatusversion,itisacceptabletoignoreHeader2received.

<Header2(SecondByte)>

Bit Contents Status By model“0” “1” BD100 SP2000 BD500 SP500 SP700

7 ASB status expansionNo

ExpansionExpansion - - - - -

6 VersionNumber - ○ ○ ○ ○ ○5 VersionNumber ○ ○ ○ ○ ○4 Fixedat“0” - - - - - -3 VersionNumber ○ ○ ○ ○ ○2 VersionNumber ○ ○ ○ ○ ○1 VersionNumber ○ ○ ○ ○ ○0 Fixedat“0” - - - - - -

Actualautomaticstatusversionandheader2tableVersionNumbern Header 2 Contents

1 00000010B (02 Hex) Up to printer status 5 (7thbyte)loaded2 00000100B (04 Hex)3 00000110B (06 Hex) Up to printer status 7 (9thbyte)loaded4 00001000B (08 Hex)5 00001010B (0A Hex)6 00001100B (0C Hex)7 00001110B (0E Hex)8 00100000B (20 Hex)9 00100010B (22 Hex)

--

---

30 01101100B (6C Hex)31 01101110B (6E Hex)

Page 94: Sp700 Printer Codes Manual

5-4STARCommandSpecifications

Rev. 0.70

3. Printer StatusPrinter status is the status of the printer sent from the 3rdbyteoftheautomaticstatus.Fortheprinterstatus,(thenumberofbytesaddedinHeader1minustwo)isreturned.Printer status is always updated or new information. (No log exists.)The following shows the composition of the status.

<Printerstatus1Printerstatus(ThirdByte)>

Bit Contents Status By model“0” “1” BD100 SP2000 BD500 SP500 SP700

7 Fixedat“0” - - - - - -6 OFFLINE By Switch Input No Occurs ○ ○ ○ x ○5 Cover Status Closed Open x x x x ○4 Fixedat“0” - - - - - -3 ON-LINE/OFF-LINE Status ON-LINE OFF-LINE ○ ○ ○ ○ ○2 Compulsion SW Open Closed ○ ○ ○ ○ ○1 <ETB>Command Not Executed Executed ○ ○ ○ ○ ○0 Fixedat“0” - - - - - -

(*)Bit1clearedtozero(0)whenreceivedatthehost(byclearingbit1to0,autostatusisnottargetedtooccur).

<Printerstatus2ErrorInformation(FourthByte)>

Bit Contents Status By model“0” “1” BD100 SP2000 BD500 SP500 SP700

7 Fixedat“0” - - - - - -

6Stoppedbyhighheadtem-perature

Not stopped Stopped ○ ○ ○ ○ ○

5 Non-recoverableError No Error Error x x ○ ○ ○4 Fixedat“0” - - - - - -3 Auto-cutter Error No Error Error ○ ○ ○ ○ ○2 Mechanical Error No Error Error ○ ○ ○ ○ ○1 NotUsed(Fixedat“0”) - - - - -0 Fixedat“0” - - - - - -

<Printerstatus3ErrorInformation(FifthByte)>

Bit Contents Status By model“0” “1” BD100 SP2000 BD500 SP500 SP700

7 Fixedat“0” - - - - - -6 Bufferoverflow No Error Error ○ ○ ○ ○ ○5 NotUsed(Fixedat“0”) - - - - -4 Fixedat“0” - - - - - -3 Black mark detection error No Error Error x x ○ ○ ○2 NotUsed(Fixedat“0”) - - - - -1 NotUsed(Fixedat“0”) - - - - -0 Fixedat“0” - - - - - -

(*) Bit 6 is cleared to 0 when sent to the host.

Page 95: Sp700 Printer Codes Manual

5-5STARCommandSpecifications

Rev. 0.70

<Printerstatus4SensorInformation(SixthByte)>

Bit Contents Status By model“0” “1” BD100 SP2000 BD500 SP500 SP700

7 Fixedat“0” - - - - - -6 NotUsed(Fixedat“0”) - - - - - -

5 Black Mark Detection StatusWhite

detectionBlack

detection- - ○ ○ ○

4 Fixedat“0” - - - - - -3 Paper end Paper No paper ○ ○ ○ ○ ○2 Paper near-end Paper No paper x ○ x ○ ○1 NotUsed(Fixedat“0”) - - - - -0 Fixedat“0” - - - - - -

<Printerstatus5SensorInformation(SeventhByte)>

Bit Contents Status By model“0” “1” BD100 SP2000 BD500 SP500 SP700

7 Fixedat“0” - - - - - -6 NotUsed(Fixedat“0”) - - - - -5 NotUsed(Fixedat“0”) - - - - -4 Fixedat“0” - - - - - -3 NotUsed(Fixedat“0”) - - - - -2 NotUsed(Fixedat“0”) - - - - -1 NotUsed(Fixedat“0”) - - - - -0 Fixedat“0” - - - - - -

<Printerstatus6ETBInformation(EighthByte)>

Bit Contents Status By model“0” “1” BD100 SP2000 BD500 SP500 SP700

7 Fixedat“0” - - - - - -6 ETB Counter (Bit 4) - - - ○ ○5 ETB Counter (Bit 3) - - - ○ ○4 Fixedat“0” - - - - - -3 ETB Counter (Bit 2) - - - ○ ○2 ETB Counter (Bit 1) - - - ○ ○1 ETB Counter (Bit 0) - - - ○ ○0 Fixedat“0” - - - - - -

<Printerstatus7SensorInformation(NinthByte)>

Bit Contents Status By model“0” “1” BD100 SP2000 BD500 SP500 SP700

7 Fixedat“0” - - - - - -6 NotUsed(Fixedat“0”) - - - - -5 NotUsed(Fixedat“0”) - - - - -4 Fixedat“0” - - - - - -3 NotUsed(Fixedat“0”) - - - - -2 NotUsed(Fixedat“0”) - - - - -1 NotUsed(Fixedat“0”) - - - - -0 Fixedat“0” - - - - - -

Page 96: Sp700 Printer Codes Manual

5-6STARCommandSpecifications

Rev. 0.70

4. CautionsDo not use ENQ, EOT, ESC, ACK and SOH when auto status is valid.Invalidate the automatic status in advance using the DIPSW (memory switch) or the ESC RS a n command to query these.

5. How to Identify Statuses

Command/Functions Statusbit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0

XON 0 0 0 1 0 0 0 1XOFF 0 0 0 1 0 0 1 1ENQ * * * 0 * * * *EOT * * * 1 * * * 0

Auto Status (Header 1) 0 * * 0 * * * 1Auto Status (Other than

Header 1) 0 * * 0 * * * 0

0=fixedat“0”bits/1=fixedat“1”bits/*=variablebits.

Page 97: Sp700 Printer Codes Manual

5-7STARCommandSpecifications

Rev. 0.70

5-1-4 Printer Status Transmission Specification when using Ethernet and Wireless LAN Interfaces

ThefollowingexplainstheprinterstatustransmissionspecificationwhenusingEthernetandwirelessLANinterfaces.

1) Transmission Format:

• When transmitting only STAR ASB:

STARASB(SecondbyteBit-7=1)+Length(Length=0x0000)

• When transmitting printer status other than STAR ASB:

STARASB(SecondbyteBit-7=1)+Length+StatusData

<LengthDetails>•2bytevalueindicatingstatusdatabytecount(0x0000≤ Length ≤ 0x0200)•Whenthestatusdatais10bytes:Length=0x000a• When transmitting only STAR ASB: Add Length = 0x0000•WhenSTARASBSecondbyteBit-7,andLengthisadded,Bit-7=1isset.

Forstatusanalysis, thetotalbytecountofASBisdetectedusingthefirstbyteofSTARASB,andwhether lengthisaddedwiththesecondbyteBit-7ofSTARASBisdetected.Bygettingthebytecountofsubsequentstatusdatausingthelength,thestatuscanbeanalyzed.

2) Status Data Transmission format

Status Type + Break Character 1 + Data Type + Status Length + Printer Status + Break Character 2

A.StatusType(2byteor4byte)•FirstandsecondbytesIndicate a factor of printer status occurring. •”00”: Reserved•“01”to”09”: Starreal-timestatusrequestcommand•”10”to”49”: Starstatusrequestcommand•“50”: Reserved•“51”to”59”: Reserved•“60”to”99”: Reserved•“A0”to“FF”: Reserved•ThirdandfourthbytesIf the factor is the command, indicates the n parameter of the command. Ifthereisnonparameter,thethirdandfourthbytescanbeomitted.

Page 98: Sp700 Printer Codes Manual

5-8STARCommandSpecifications

Rev. 0.70B. Classificationcharacter1(1Byte) Sends“:”(3AH).

C. DataType(1byte) Indicatesthedatatypeoftheprinterstatus,andsends“B”(binarytype,42H). D. Statuslength(2bytes) 2bytevalueindicatingbytecountofprinterstatus

E. Printerstatus(variable) Statussentbyprinter The content of the status differs according to the cause. Refer to Commands That are Factors, and Automatic Status for details on the content of the status.

F. Classificationcharacter2(1byte) Send“;”(3BH).

3) StatusTransmissionSpecificationsList

Status Factors STAR

ASBLength Status Data

Status Type Break Data Status Printer Break1st and

2nd BytesFactors

3rd and 4th Bytes

n Parameter

Character 1 (3AH)

Type(42H)

Length Status Character 2 (3BH)

Automatic Status ASB 0x0000 -- -- -- -- -- -- --

ESC ACK SOHAutomatic Status Request

ASB 0x0000 -- -- -- -- -- -- --

ENQENQ Status Request

ASB 0x0008 “01” Omitted “:” “B” 0x0001 Status “;”

EOTEOT Status Request

ASB 0x0008 “02” Omitted “:” “B” 0x0001 Status “;”

Page 99: Sp700 Printer Codes Manual

5-9STARCommandSpecifications

Rev. 0.70

5-2 Expansion Position

5-2-1 7 x 9 Fonts

5-2-2 5 x 9 (2P-1) Fonts

Head Pin No.

Head Pin No.

Normal Dot

Normal 7 x 9 Double high 7 x 9 Bit Image

Half Dot

#1#2#3#4#5#6#7#8#9

#1#2#3#4#5#6#7#8#9#1#2#3#4#5#6#7#8#9

Head Pin No.

Head Pin No.

Normal Dot

Normal 5 x 9 Double high 5 x 9 Bit Image

#1#2#3#4#5#6#7#8#9

#1#2#3#4#5#6#7#8#9#1#2#3#4#5#6#7#8#9

Page 100: Sp700 Printer Codes Manual

5-10STARCommandSpecifications

Rev. 0.70

5-2-2 Japanese Character Fonts

#2 #3 #4 #5 #6 #7 #8 #9

#1

Normal Dot

Half Dot

Head Pin No.

#2 #3 #4 #5 #6 #7 #8 #9

#1 #2 #3 #4 #5 #6 #7 #8 #9

#1

Head Pin No.

ANK 7 x 9

First Pass First Pass

Second Pass

Third Pass

Fourth Pass

1/14

4 In

ch1/

72 In

ch

Two-byte Kanji 16 x 16 (Double-density)

Normal Dot

Half Dot

Head Pin No.

Head Pin No.

ANK 7 x 9

First Pass First Pass

Two-byte Kanji 16 x 16 [Single Density]

Second Pass

1/14

4 In

ch1/

72 In

ch

#1#2#3#4#5

#6#7#8

#9

#1#2#3#4#5

#6#7#8

#9

#1#2#3#4#5

#6#7#8

#9

Page 101: Sp700 Printer Codes Manual

6-1STARCommandSpecifications

Rev. 0.70

6. SPECIAL APPENDIX COMMAND LIST BY MODEL

• Standard Commands

Class Commands Model NameBD100 SP2000 BD500 SP500 SP700

Font Styleand Character Set

ESC GS t ○Spec.1 ○Spec.1 ○Spec.1 ○Spec.1 ○Spec.2

ESC R ○ ○ ○ ○ ○ESC / ○ ○ ○ ○ ○ESC 6 ○ ○ ○ ○ ○ESC 7 ○ ○ ○ ○ ○ESC M ○ ○ ○ ○ ○ESC P ○ ○ ○ ○ ○ESC : ○ ○ ○ ○ ○ESC SP ○ ○ ○ ○ ○

Character SO ○ ○ ○ ○ ○Expansion DC4 ○ ○ ○ ○ ○Settings ESC W ○ ○ ○ ○ ○

ESC h ○ ○ ○ ○ ○Print Modes ESC E ○ ○ ○ ○ ○

ESC F ○ ○ ○ ○ ○ESC - ○ ○ ○ ○ ○ESC _ ○ ○ ○ ○ ○ESC 4 ○ ○ ○ ○(*2) ○ESC 5 ○ ○ ○ ○(*2) ○ESC GS 4 - - - ○ ○SI ○ ○ ○ ○ ○DC2 ○ ○ ○ ○ ○ESC RS i ○ ○ ○ ○ ○

Line Spacing LF ○ ○ ○ ○ ○CR ○ ○ ○ ○ ○ESC a ○ ○ ○ ○ ○ESC 0 ○ ○ ○ ○ ○ESC 1 ○ ○ ○ ○ ○ESC z 0 ○ ○ ○ ○ ○ESC z 1 ○ ○ ○ ○ ○ESC A ○ ○ ○ ○ ○ESC 2 ○ ○ ○ ○ ○ESC 3 ○ ○ ○ ○ ○ESC y ○ ○ ○ ○ ○ESC J ○ ○ ○ ○ ○ESC I - - - ○ ○

Page Control FF ○ ○ ○ ○ ○ESC C ○ ○ ○ ○ ○ESC C 0 ○ ○ ○ ○ ○VT ○ ○ ○ ○ ○ESC B ○ ○ ○ ○ ○ESC N ○ ○ ○ ○ ○ESC O ○ ○ ○ ○ ○

Page 102: Sp700 Printer Codes Manual

6-2STARCommandSpecifications

Rev. 0.70

Class Commands Model NameBD100 SP2000 BD500 SP500 SP700

Horizontal ESC RS A - - - ○Spec.1 ○Spec.2Direction ESC I ○ ○ ○ ○ ○Position ESC Q ○ ○ ○ ○ ○

HT ○ ○ ○ ○ ○ESC D ○ ○ ○ ○ ○ESC GS a ○ ○ ○ ○ ○ESC GS A - - - ○ ○ESC GS R - - - ○ ○

Download ESC & ○ ○ ○ ○ ○ESC % ○ ○ ○ ○ ○

Bit Image ESC K ○ ○ ○ ○ ○Graphics ESC L ○ ○ ○ ○ ○

ESC ^ ○ ○ ○ ○ ○Logos ESC FS q - - - - ○

ESC FS p - - - - ○Cutter Control ESC d ○ ○ ○ ○ ○External ESC BEL ○ ○ ○ ○ ○Device BEL ○ ○ ○ ○ ○Drive FS ○ ○ ○ ○ ○

SUB Ignored ○ Ignored ○ ○EM Ignored ○ Ignored ○ ○ESC GS EM DC1 - - - - ○ESC GS EM DC2 - - - - ○

Status ENQ ○ ○ ○ ○ ○EOT ○ ○ ○ ○ ○ESC ACK SOH ○ ○ ○ ○ ○ESC RS a (*9) ○Spec.1 ○Spec.1 ○Spec.1 ○Spec.2 ○Spec.2ETB ○Spec.1 ○Spec.1 ○Spec.1 ○Spec.2 ○Spec.2ESC RS E - - - ○ ○

Kanji Characters (*1)

ESC p Δ Δ Δ Δ Δ

ESC q Δ Δ Δ Δ ΔESC $ Δ Δ Δ Δ ΔESC s ○Spec.1 ○Spec.1 ○Spec.1 ○Spec.2 ○Spec.2ESC t Δ Δ Δ Δ ΔESC r ○Spec.1 ○Spec.1 ○Spec.1 ○Spec.2 ○Spec.3ESC u 1 ○ ○ ○ ○ ○ESC u 0 ○ ○ ○ ○ ○ESC x 1 ○ ○ ○ ○ ○ESC x 0 ○ ○ ○ ○ ○ESC w 1 ○ ○ ○ ○ ○ESC w 0 ○ ○ ○ ○ ○

Page 103: Sp700 Printer Codes Manual

6-3STARCommandSpecifications

Rev. 0.70

Class Commands Model NameBD100 SP2000 BD500 SP500 SP700

Others RS ○ ○ ○ ○ ○CAN ○ ○ ○ ○ ○DC3 ○ ○ ○ ○ ○DC1 ○ ○ ○ ○ ○ESC @ ○ ○ ○ ○ ○ESC U ○ ○ ○ ○ ○ESC GS # - - ○ ○ ○ESC # ○ ○ Ignored Ignored IgnoredESC ? ○ ○ ○ ○ ○

• Black Mark Related Commands

Class Commands Model NameBD100 SP2000 BD500 SP500 SP700

Black markRelated Commands

ESC d (Note 3) - - ○ ○ ○

FF (Note 3) - - ○ ○ ○

ESC FF - - ○ ○ ○ESC GS ( F - - ○ ○ ○ESC RS m - - - ○ ○

• USB Related Commands

Class Commands Model NameBD100 SP2000 BD500 SP500 SP700

USBRelated Commands

• 2-Color Printing Related Commands

Class Commands Model NameBD100 SP2000 BD500 SP500 SP700

2-Color PrintingRelated Commands

ESC RS C - - - - ○ESC 4 - - - - ○

ESC 5 - - - - ○

(Note 1) Kanji characters • Δ: Enabled only on printer models equipped with Kanji characters. • Japanese character control commands are ignored on models not installed with Japa-

nese character fonts. • Japanese character control commands are ignored if the specification for the location of

use is specified as SBCS (single byte countries) by the memory switch.(Note 2) Red/black substitute function can be selected by the memory switch. Refer to each print-

er’s specification manual. Red/black substitute function can be selected by the command ESC GS 4. (Note 3) These are commands whose operation specifications vary when the black mark function

is enabled.(Note 9) Ignored command when using Ethernet or wireless LAN.

Page 104: Sp700 Printer Codes Manual

2008.01.10 Printed in Japan, 80874545

ELECTRONIC PRODUCTS DIVISIONSTAR MICRONICS CO., LTD.536 Nanatsushinya, Shimizu-ku, Shizuoka, 424-0066 JapanTel: (int+81)-54-347-0112, Fax: (int+81)-54-347-0709

Please access the following URLhttp://www.star-m.jp/eng/dl/dl02.htmfor the latest revision of the manual.

OVERSEAS SUBSIDIARY COMPANIESSTAR MICRONICS AMERICA, INC.1150 King Georges Post Road, Edison, NJ 08837-3729 U.S.A.Tel: (int+1)-732-623-5555, Fax: (int+1)-732-623-5590

STAR MICRONICS U.K. LTD.Star House, Peregrine Business Park, Gomm Road, High Wycombe, Bucks, HP13 7DL, U.K.Tel: (int+44)-1494-471111, Fax: (int+44)-1494-473333

STAR MICRONICS ASIA LTD.Rm. 1901-5, 19/F., Enterprise Square Two, 3 Sheung Yuet Road, Kowloon Bay, Hong KongTel: (int+852)-2796-2727, Fax: (int+852)-2799-9344