Woosim System PORTI-S40 Thermal Printer User Manual Manual porti s

Woosim System Inc. Thermal Printer Manual porti s

Users Manual

PORTI-S(PORTABLE PRINTER)Operator'sManualAll specificationsaresubjected tochange withoutnoticeWOOSIMSYSTEMInc.Room404,GeonGukBLDG,288-1,Doksan-1DongGeumChun-Ku,Seoul,KoreaTel:+82-2-852-8575,Fax:+82-2-852-8577URL:www.poky.co.kr
Warning - U.S. (FCC Statement)This equipment has been tested and found to comply with the limit for a Class B digital devicedigital device pursuant to Part 15 of the FCC RulesThese limits are designed to provide reasonable protection against harmful interference in a residential Installation.This equipment generates, uses, and can radiate radio frequency energy and, if not  installed and used in accordancewith the instructions. If this equipment does cause harmful interference to radio communications. However, there isno guarantee that interference will not occur in a particular installation. IF this equipment does cause   harmful interference to radio or television reception, which can be determined by turning the equipment off and on,   the user is encourage to try to correct the interference by one or the following measures:- Reorient or relocate the receiving antenna.-Increase the separation between the equipment and receiver. - Connect the equipment into an outlet on a circuit different from that to which the  receiver is connected-  Consult the dealer or an experience radio TV technician for helpChange or modification not expressly approved by the party responsible for Compliance could voidthe user's authority to operate the equipment.CautionSomesemiconductordevicesare easilydamaged by staticelectricity.You shouldturnthe printer"OFF",beforeyou connector removethe cableson the rearside,in orderto guardthe printeragainst the staticelectricity. If the printerisdamagedbythe staticelectricity,you shouldturnthe printer"OFF".INTRODUCTIONThe PORTI-Sisdesigned forusewith electronicinstruments such asmobilePOS,retail, transportation.warehousing,othertraveling and mobilecomputing.The mainfeaturesof the printerare asfollows:1.High speed printing :50mm persecond.2.Lownoisethermalprinting.3.RS-232 communication and IrDA(protocolmethod)4.Characters can be scaled up to 64 times compared toitsoriginalsize.Please be suretoread the instruction inthismanualcarefullybefore using yournewPORTI-S
TableofContentsCHAPTER1.SETTINGUPTHE PRINTER1.1.UNPACKING1.2.CONNECTINGTHECABLE1.3. INSTALLING OR REPLACINGTHE PAPER ROLL1.4.ADJUSTMENTS AND SETTING1.5.USINGTHE PRINTERCHAPTER2.THE SELF TESTCHAPTER3.CODETABLECHAPTER4.CONTROLCOMMANDSCHAPTER5. INTRODUCTIONOFPROTOCOLIrDAAPPENDIX
Chapter1.Setting up theprinter1.1UnpackingYourprinterbox shouldinclude theseitems. If anyitemsare damaged ormissing,pleasecontactyourdealerforassistance.PORTI-SRoll PaperOperator'sManual ConnectorAdaptorforbatteryrecharge Leatherettecase
1.2.Connecting the cableYou can connectup totwocablestothe printer. It connectstothe connectorparton the left and frontside of the printer,whichis shown below.Refertothe APPENDIX B formoreinformation aboutcommunication connector.Note:Before connecting the cable,make surethatboththehostand thepowerbutton toapplytotheprinterareturned off.Ifyourpowersupplyisbroken oroutoforder,pleasecontactyourdealerforassistance.PowerconnectorCommucation connectorforRS232C
1.3. Installing or replacing thepaper roll1.Makesurethat the printerisnotreceiving data;otherwise,datamaybe lost.2.Open the paper roll coverbyapplying yourfingeron bothside ofprinter,pushitup when the lock isreleased as showninthe drawing.3.Removethe used paper roll coreif thereisone.4. Insert the paper roll as shown.Note:Be sureto use paper rollsthatmeet the specifications.Do notuse paper rollsthathave thepapergluedtothecorebecause theprintercannotdetect thepaperendcorrectly.
5.Besureto notethe correctdirection that the papercomesoff the roll.6,Pull outasmall amountofpaperand then closethe cover,as shown.7.Tearoff the paperas shown.
1.4.Adjustments and settingThe PORTI-Sis setup at the factoryto be appropriateforalmostall users.Butifyou wantanotherspecification tofit the printeratyoursystemsuch aschange the baud rate,handshaking,parity check,aswell asprintdensity,pleasecontact to ourdevelopment teamoryourdealer.1.5.Using theprinter1.ControlPanel2.Button1)MODEMode button isforusetochange communication mode.The communication mode is set toRAWIrDAmode when the powerison.Press the mode button once, the mode will be changed toStandardIrDA(Version 1.0)forWindows98,pleaseconfirmthe mode LED will twinkle2times.Press the mode button twice, the mode will be changed toRS-232CmodeforWindows98,pleaseconfirmthe mode LED will twinkle3times.All communication environmentmustbe setwith 9600 bps,1stop bit, noparity,no flowcontrol.If you want to usethe standardIrDAmode forWindows98,check the yourcomputer'sIrDAspeed.Forexample,Yourcomputer ->StartMenu ->Setting ->ControlPanel->IrDA->Option->Communication Speed Limitation With57600 bpsPOWERMODEFEEDPOWERLEDMODELEDERRORLED
2)FEEDPress the FEEDbutton onceto advance paperone line.You can also holddownthe FEEDbutton tofeed papercontinuously.3.Panel lights1)POWERLEDThe POWERlightison wheneverthe printerison.Butwhen the batteryisalmostexhausted, thisled flasheswithred coloroccasionally.Inthis case,you mustrecharge the batterybyusing the powersupply.2)MODELEDNormallythisled isoff.Butifyou select the protocolIrDAmode using the mode key,it flashesonce.Incase ofselecting the RS232Cmode bypressing the mode key,it flashestwicetimes.3)ERRORLEDThisled indicatesan errorsuch aspaperend,orcoveropen,etc
Chapter2.The self testThe self-testchecks whetherthe printerhasanyproblems. If the printerdoesnotfunction properly,contactyourdealer.The self-testchecks the following;1.Makesure paper roll hasbeen installed properly.2.Turnonthe powerwhile holding downthe FEEDbutton.The self-testbegins.3.The self-testprintsthe currentprinterstatus,which providesthe controlROMversion and the communication method setting.4.Afterprinting the currentprinterstatus,self-testprinting will printa pattern usingthe built-incharacterset.5.The self-testautomaticallyendsThe printerisreadytoreceive data as soon asitcompletesthe self-test.
Chapter3.CodetableThe following pages showthe charactercode tables.Tofind the charactercorresponding to a hexadecimalnumber,countacross the top of the tablefortheleft digitand countdownthe left column of the tableforthe rightdigit.Forexample 4A=JHEX 0 1 2 3 4 5 6 7HEX BIN0000 0001 0010 0011 0100 0101 0110 01110 0000 NULL DLE SP 0@P`p1 0001 !1AQa q2 0010 "2BRbr3 0011 # 3 CSc s4 0100 EOT$ 4 DTdt5 0101 ENQ%5EUe u6 0110 &6FVfv7 0111 '7GWgw8 1000 CAN(8HXhx9 1001 HT)9IYiyA1010 LF*:JZjzB1011 ESC+;K[k{C1100 FF ,<L\l|D1101 CR GS-=M]m}E1110 .>N^n~F1111 /?O_ o SPPage 0 (PC437 ;USA,StandardEurope) (0x00 -0x7F)
HEX 8 9 A B C D EFHEX BIN1000 1001 1010 1011 1100 1101 1110 11110 00001 00012 00103 00114 01005 01016 01107 01118 10009 1001A1010B1011C1100D1101E1110F1111 SPPage 0 (PC437 ;USA,StandardEurope) (0x80 -0xFF)
Chapter4.ControlcommandsCommand Notation[Name]The name of the command[Format] The code sequenceASCII indicatesthe ASCII equivalentsHEX indicatesthe hexadecimalequivalents.Decimal indicatesthe decimalequivalents.[ ]kindicatesthe contentsof the []shouldberepeated ktimes.[Range]Givesthe allowablerangesforthe arguments.[Description]Describesthe function of the command.Explanation ofTermsLSB LeastSignificantBitMSB MostSignificantBitControlCommands[Name]HorizontalTab[Format] ASCII HTHEX 09Decimal9[Description]Movesthe printposition tothe nexthorizontaltab position.[Notes][Reference]ESC D1)This command isignored unless the nexthorizontaltab positionhasbeen set.2)If the nexthorizontaltab position exceedsthe printing area, theprintersetsthe printing position to[Printing area width+1]'3)Horizontaltab positionsaresetwithESC D.4)If this command isreceived when the printing position isat [Printing area width+1], the printerexecutesprintbuffer-fullprinting of the currentline and horizontaltab processing fromthe beginning of the nextline.5)The defaultsetting of the horizontaltab position forthe paperroll isevery8thcharacter(9th,17th,25th, ... column).HT
LF[Name]Printand line feed[Format] ASCII LFHEX 0ADecimal10[Description]Printsthe datainthe printbufferand feedsone line based on thecurrentline spacing.[Notes]This command setsthe printposition tothe beginning of the line.[Reference]ESC2,ESC3FF[Name]Printand returntostandardmode in page mode.[Format] ASCII FFHEX 0CDecimal12[Description]Printsthe datainthe printbuffercollectivelyand returnstostandardmode.[Notes][Reference]ESCFF,ESCL,ESCSCAN[Name]Cancelprintdatain page mode[Format] ASCII CANHEX 18Decimal24[Description] In page mode,deletesall the printdatainthe currentprintable area.[Notes][Reference]ESCL,ESCW1)The bufferdataisdeleted afterbeing printed.2)The Printing area setbyESCWisreset tothe defaultsetting.3)This command setsthe printposition tothe beginning of the line.4)This command isenabled onlyin page mode...1)This command isenable onlyin page mode.2)If datathatexisted inthe previously specified printing area alsoexistsinthe currently specified printing area,itisdeleted.
ESCFF[Name]Printdatain page mode[Format] ASCII ESCFFHEX 1B0CDecimal27 12[Description] In page mode,printsall buffered datainthe printing area collectively.[Notes]This command isenabled onlyin page mode.Afterprinting, the printerdoesnotclearthe buffered data,settingvaluesforESCTand ESCW,and the position forbufferingcharacterdata.[Reference]FF,ESCL,ESCSESCSP n[Name]Setrightside characterspacing.[Format] ASCII ESCSP nHEX 1B20 nDecimal27 32 n[Range]0<= n<= 255[Description]Setsthe characterspacing forthe rightside of the characterto[nxhorizontalorverticalmotion units].[Notes]1)The rightside characterspacing fordouble-widthmode istwicethe normalvalue.When charactersare enlarged, the rightsidecharacterspacing isntimesnormalvalue.2)This command sets valuesindependentlyin eachmode.3)The horizontaland verticalmotion unitarespecified byGS P.Changing the horizontalorverticalmotion unitdoesnotaffect thecurrentright-side spacing.4)The GS P command can change the horizontal(and vertical)motion unit. However, the value cannotbe less than the minimumhorizontalmovementamount, and itmustbe in even unitsof theminimumhorizontalmovementamount.5)The maximumrightside spacing if255/180 inches,Any settingexceeding the maximumis converted tothe maximumautomatically.
[Default] n=0[Reference]GS PESC!n[Name]Selectprintmode[Format] ASCII ESC!nHEX 1B21 nDecimal27 33 n[Range]0<= n<= 255[Description]Selectsprintmode(s)using n asfollows.[Notes]BitOff/OnHex DecimalFunction0Off 00 0 CharacterfontA(12x24)On 01 1 CharacterfontB(9x17)1- - - Undefined2- - - Undefined3Off 00 0 Emphasized mode notselectedOn 08 8 Emphasized mode selected4Off 00 0 Double-heightmode notselectedOn 10 16 Double-heightmode selected5Off 00 0 Double-widthmode notselectedOn 20 32 Double-widthmode selected6- - - Undefined7Off 00 0 Underline mode notselectedOn 80 128 Underline mode selected1)When both double-heightand double-widthmodesareselected,quadruplesizecharactersare printed.2)The printercan underline all characters,butcan notunderline thespacesetbyHT.3)The thickness of the underline isthatselected byESC-,regardlessof the charactersize.
[Reference]ESC-,ESCE,GS!ESC$nL nH[Name]Setabsolute printposition.[Format] ASCII ESC$ nL nHHEX 1B24 nL nHDecimal27 36 nL nH[Range]0<= nL <= 2550<= nH<= 255[Description]Set the distancefromthe beginning of the line tothe position atwhichsubsequentcharactersareto be printed.[Notes]4)When somecharactersinaline are double ormore height, all thecharacterson the line are aligned at the baseline.5)ESCEcan alsoturn on oroff emphasized mode.However, thesetting of the lastreceived command iseffective.6)ESC-can alsoturn on oroff underline mode.However, the settingof the lastreceived command iseffective.7)GS!can alsoselectcharactersize.However, the setting of the lastreceived command iseffective..1)The distancefromthe beginning of the line tothe printposition is[(nL +nHx256)x(verticalorhorizontalmotion unit)]inches.2)Setting outside the specified printable area areignored.3)The horizontaland verticalmotion unitarespecified byGS P.4)The GS P command can change the horizontal(and vertical)motion unit.However, the value cannotbe less than the minimumhorizontalmovementamount, and itmustbe in even unitsofhe minimumhorizontalmovementamount.5)Instandardmode, the horizontalmotion unit(x)isused.6)In page mode,horizontalorverticalmotion unitdiffersdependingon the starting position of the printable area asfollows;1.When the starting position is set tothe upperleft orlower rightof the printable area using ESCT, the horizontalmotion unit(x)isused.2.When the starting position is set tothe upper rightorlowerleftof the printable area using ESCT, the verticalmotion unit(y)isused.
[Reference]ESC\, GS$,GS\, GS PESC%n[Name]Select/Canceluserdefined characterset.[Format] ASCII ESC%nHEX 1B25 nDecimal27 37 n[Range]0<= n<= 255[Description]Selectsorcancelsthe userdefined characterset.[Notes][Default] n=0[Reference]ESC$,ESC?ESC&y c1 c2 [x1 d1...d(y x x1)]...[xk d1...d(y x xk)][Name]Define userdefined characters.[Format] ASCII ESC&y c1c2[x1 d1...d[yxx1)]...[xk d1...d(y x xk)]HEX 1B26 y c1c2[x1 d1...d[y x x1)]...[xk d1...d(y x xk)]Decimal27 38 y c1c2[x1 d1...d[yxx1)]...[xk d1...d(y x xk)][Range]32 <= c1<= c2<= 1260<= x<= 12 FontA(12 x24)0<= x<= 9FontB(9x24)0<= d1...d(y x xk)<= 255[Description]Definesuserdefined characters.[Notes]1)When the LSB ofnis0, the userdefined charactersetis canceled.2)When the LSB ofnis1, the userdefined charactersetis selected.3)When the userdefined charactersetis canceled, the internalcharactersetisautomatically selected.4)nisavailable onlyforthe leastsignificantbit.1)y specifiesthe numberofbytesinthe verticaldirection.2)c1specifiesthe beginning charactercode forthe definition,and c2specifiesthe finalcode.3)x specifiesthe numberofdotsinthe horizontaldirection.4)The allowablecharactercode range isfromASCII code <20H>to<7EH>(95 characters)
[Default] The internalcharacterset[Reference]ESC%,ESC?[Example]-When fontA(12x24)is selected.5)It ispossibleto define multiplecharactersforconsecutivecharactercodes.If onlyone characterisdesired,usec1=c2.6)disthe dotdataforthe characters.The dotpatternisinthehorizontaldirection fromthe left side.Anyremaining dotson the rightside are blank.7)The datato define a userdefined characteris(y x x)bytes.8)Setacorresponding bit to1to printa dotorto 0 not to printa dot.9)This command can define differentuser-defined characterpatternsbyeachfonts.Toselectafont, useESC!10)Auser-defined characterand a downloaded bitimage cannotbedefined simultaneously.When this command isexecuted, thedownloaded bitimage is cleared.11)The user-defined characterdefinition is cleared when:ESC@isexecuted.ESC?isexecuted.GS*isexecuted.The printerisresetorthe poweristurned off.12)When the user-defined charactersare defined infontB(9x17),onlythe mostsignificantbitof the 3rd byte ofdatainverticaldirection iseffective.d1 d4 d7 ........................... d34d2 d4 d35d3 d6 .................................... d36MSBLSB
ESC*mnL nHd1...dk[Name]Selectbit-image mode.[Format] ASCII ESC&mnL nHd1...dkHEX 1B2AmnL nHd1...dkDecimal27 42 mnL nHd1...dk[Range]m=0,1,32,330<= nL <= 2550<= nH<= 30<= d<= 255[Description]Selectsa bit-image mode using mforthe numberofdots specifiedbynL and nH,asfollows:[Notes]=>d1=<0F>Hd2=<03>Hd3=<00>Hd4=<30>Hd5=<80>Hd6=<00H>d7=<40H>d8=<40H>d9=<20>H...mModeVerticaldirection HorizontaldirectionNumberofDotsDotdensityDotdensityNumberofData0 8-dotsingle density8 60 DPI90 DPInL+nHx2561 8-dotdouble density8 60 DPI180 DPInL+nHx25632 24-dotsingle density24 180 DPI90 DPI(nL+nHx256)x333 24-dotdouble density24 180 DPI180 DPI(nL+nHx256)x31)If the valuesofmisoutof the specified range,nL and datafollowingare processed an normaldata.2)The nL and nHindicatethe numberofdotsof the bitimage inthehorizontaldirection.
-When 8-dotbitimage is selected:3)The numberofdotsis calculated bynL +nHx256.4)If the bit-image datainputexceedsthe numberofdotsto be printedon a line, the excess dataisignored.5)dindicatesthe bit-image data.Setacorresponding bit to1to printadotorto 0 to notprinta dot.6)If the width of the printing area setbyGSL and GSWless thanthe widthrequired bythe datasentwiththe ESC*command, thefollowing will be performed on the line in question (but the printingcannotexceed the maximumprintable area):The width of the printing area isextended tothe right toaccommodatethe amountofdata.If step doesnotprovide sufficientwidthforthe data, the left marginisreduced to accommodatethe data.7)Afterprinting a bitimage, the printer returnsto normaldataprocessing mode.8)This command isnotaffected byprintmodes(emphasized,double-strike,underline,charactersize orwhite/black reverse printing),exceptupside-down printing mode.9)The relationship between the image data and the dotsto be printedisasfollows;d1 d2 d3MSBLSBBit-image dataPrintdataBit-image datad1 d2 d3Printdata1dotSingle densityDouble density
-When 24-dotbitimage is selected:ESC-n[Name]Turn underline mode on/off[Format] ASCII ESC-nHEX 1B2DnDecimal27 45 n[Range]0<= n<= 2,48 <= n<= 50[Description]Turnsunderline mode on oroff, based on the following valuesofn;d1 d4 d7d2 d5 d8d3 d6 d9MSBLSBBit-image dataPrintdataBit-image datad1 d2 d3Printdata1dotSingle densityDouble densityd4 d5 d6 d7 d8 d9n Function0,48 Turnsoff underline mode.1,49 Turnson underline mode (1-dot thick).2,50 Turnson underline mode (2-dot thick).
[Notes][Default] n=0[Reference]ESC!ESC2[Name]Selectdefaultline spacing[Format] ASCII ESC2HEX 1B32Decimal27 50[Description]Selects1/6inchline (approximately4.23mm)spacing.[Notes]The line spacing can be setindependentlyinstandardmode andin page mode.[Reference]ESC3ESC3n[Name]Setline spacing[Format] ASCII ESC3 nHEX 1B33 nDecimal27 51 n[Range]0<= n<= 255[Description]Setsthe line spacing to[nx verticalorhorizontalmotion unit]inches[Notes]1)The line spacing can be setindependentlyinstandardmode andin page mode.1)The printercan underline all characters(including right-side characterspacing),butcannotunderline the spacesetbyHT.2)The printercannotunderline white/black inverted characters.3)When underline mode idturned off by setting the value ofnto0or48, the following dataisnotunderlined,and the underline thicknesssetbeforethe mode isturned off doesnotchange.The defaultunderline thickness is1 dot.4)Changing the charactersize doesnotaffect the currentunderlinethickness.5)Underline mode can alsobeturned on oroff byusing ESC!. Note,however, that the lastreceived command iseffective.
2)The horizontaland verticalmotion unitarespecified byGS P.Changing the horizontalorverticalmotion unitdoesnotaffect thecurrentline spacing.3)The GS P command can change the horizontal(and vertical)motion unit. However, the value cannotbe less than the minimumverticalmovementamount, and itmustbe in even unitsof theminimumverticalmovementamount.4)Instandardmode, the verticalmotion unit(y)isused.5)In page mode, this command functionsasfollows,depending onthe starting position of the printable area:When the starting position is set tothe upperleft orlower rightofthe printable area using ESCT, the verticalmotion unit(y)isusedWhen the starting position is set tothe upper rightorlowerleft ofthe printable area using ESCT, the horizontalmotion unit(x)isused.6)The maximumpaperfeed amountis1016 mm (40 inches).Evenifa paperfeed amountofmorethan 1016 mm (40 inches)is set,the printerfeedsthe paperonly1016 mm (40 inches).[Default] Line spacing equivalent to approximately4.23mm (1/6inches).[Reference]ESC2,GS PESC? n[Name]Canceluserdefined characters.[Format] ASCII ESC? nHEX 1B3FnDecimal27 63 n[Range]32 <= n<= 126[Description]Cancelsuserdefined characters.[Notes]1)This command cancelsthe pattern defined forthe charactercodespecified byn.Afterthe userdefined charactersis canceled, thecorresponding patternforthe internalcharacterisprinted.2)This command deletesthe pattern defined forthe specified code
inthe fontselected byESC!.3)If a userdefined characterhasnotbeen defined forthe specifiedcharactercode, the printerignoresthis command.[Reference]ESC &,ESC%ESC@[Name] Initialize printer.[Format] ASCII ESC@HEX 1B40Decimal27 64[Description]Clearsthe datainthe printbufferand resetsthe printermode tothemode thatwasin effectwhen the powerwasturned on.[Notes]1)The datainthe receive bufferisnotcleared.2)The macro definition isnotcleared.ESCDn1...nkNUL[Name]Sethorizontaltab positions.[Format] ASCII ESC D n1...nkNULHEX 1B44 n1....nk00Decimal27 68 n1....nk0[Range]1<= n<= 2550<= k<= 32[Description]Setshorizontaltab position.[Notes]1)nspecifiesthe column numberforsetting a horizontaltab positionfromthe beginning of the line.2)kindicatesthe totalnumberofhorizontaltab positionstobeset.3)The horizontaltab position is stored asavalue of [characterwidthxn]measured fromthe beginning of the line.The characterwidthincludesthe right-side characterspacing,and double-widthcharactersaresetwithtwicethe width ofnormalcharacters.4)This command cancelsthe previoushorizontaltab settings.5)When setting n=8, the printposition ismoved tocolumn9by
sending HT.6)Upto32tab positions(k=32)can be set. Data exceeding 32 tabpositionsisprocessed asnormaldata.7)Transmit [n]kin ascending orderand placeaNULcode 0 at theend.8)When [n]kisless than orequaltothe preceding value [n]k-1, tabsetting isfinished and the following dataisprocessed asnormaldata.9)ESC D NULcancelsall horizontaltab positions.10)The previously specified horizontaltab positionsdo notchange,even if the characterwidthchanges.11)The characterwidthismemorized foreachstandard and pagemode.[Default] The default tab positionsare atintervalsof8characters(columns9,17,25, ...)forfontA(12x24)[Reference]HTESCEn[Name]Turn emphasized mode on/off.[Format] ASCII ESCEnHEX 1B45 nDecimal27 69 n[Range]0<= n<= 255[Description]Turnsemphasized mode on oroffWhen the LSB is0,emphasized mode isturned off.When the LSB is1,emphasized mode isturned on.[Notes]1)Onlythe leastsignificantbitofnisenabled.2)This command and ESC! turn on and off emphasized mode inthe sameway.Becarefulwhen this command isused withESC![Default] n=0[Reference]ESC!
ESCJn[Name]Printand feed paper.[Format] ASCII ESCJnHEX 1B4AnDecimal27 74 n[Range]0<= n<= 255[Description]Printsthe datainthe printbufferand feedsthe paper[nx verticalorhorizontalmotion unit] inches.[Notes]1)Afterprinting is completed, this command setsthe printstartingposition tothe beginning of the line.2)The paperfeed amountsetbythis command doesnotaffect thevalues setbyESC2 orESC3.3)The horizontaland verticalmotion unitarespecified byGS P.4)The GS P command can change the vertical(and horizontal)motion unit.However, the value cannotbe less than the minimumverticalmovementamount, and itmustbe in even unitsof the minimumverticalmovementamount.5)Instandardmode, the printerusesthe verticalmotion unit(y).6)In page mode, this command functionsasfollows,depending onthe starting position of the printable area;When the starting position is set tothe upperleft orlower rightofthe printable area using ESCT, the verticalmotion unit(y)isusedWhen the starting position is set tothe upper rightorlowerleft ofthe printable area using ESCT, the horizontalmotion unit(x)isused.7)The maximumline spacing is1016mm (40inches).When thesetting value exceedsthe maximum,itis converted tothemaximumautomatically.[Reference]GS P
ESCL[Name]Selectpage mode[Format] ASCII ESCLHEX 1B4CDecimal27 76[Description]Switchesfromstandardmode to page mode.[Notes]1)This command isenabled onlywhen processed at the beginningofaline instandardmode.2)This command hasno effectin page mode.3)Afterprinting byFF is completed orbyusing ESCS, the printerreturnstostandardmode.4)This command setsthe position where dataisbuffered totheposition specified byESCTwithinthe printing area defined byESCW.5)This command switchesthe settingsforthe following commands(inwhichthe values can be setindependentlyinstandardmodeand page mode)tothoseforpage mode;Setright-side characterspacing :ESCSPSelectdefaultline spacing :ESC2,ESC36)Only valvesettingsispossibleforthe following commandsin pagemode; thesecommandsare notexecuted.Selectjustification :ESCaTurn upside-down printing mode on/off:ESC{Setleft margin:GSLSetprintable area width:GSW7)The printer returnstostandardmode when poweristurned on,the printerisreset, orESC@isused.[Reference]FF,CAN,ESCFF,ESCS,ESCT,ESCW,GS$,GS\ESCRn[Name]Selectan internationalcharacterset.[Format] ASCII ESC R nHEX 1B52 nDecimal27 82 n[Range]0<= n<= 10
[Description]Selectsan internationalcharactersetnfromthe following table.[Default] n=0ESCS[Name]Selectstandardmode[Format] ASCII ESCSHEX 1B53Decimal27 83[Description]Switchesfrompage mode tostandardmode.[Notes]1)This command iseffective onlyin page mode.2)Data buffered in page mode arecleared.3)This command setsthe printposition tothe beginning of the line.4)The printing area setbyESCWareinitialized.5)This command switchesthe settingsforthe following commands(inwhichthe values can be setindependentlyinstandardmodeand page mode)tothoseforstandardmode;Setright-side characterspacing :ESCSPSelectdefaultline spacing :ESC2,ESC36)The following commandsare enabled onlytosetinstandardmode.Setprinting area in page mode :ESCWSelectprintdirection in page mode :ESCT7)The following commandsareignored instandardmode.Setabsoluteverticalprintposition in page mode :GS$Setrelativeverticalprintposition in page mode :GS\8)Standardmode is selected automaticallywhen poweristurned on,the printerisreset, orcommand ESC@isused.nCharactersetnCharacterset0U.S.A.6Sweden1France 7 Italy2Germany8Spain3U.K.9Norway4DenmarkI10 DenmarkII
[Reference]FF,ESCFF,ESCLESCT n[Name]Selectprintdirection in page mode[Format] ASCII ESCTnHEX 1B54 nDecimal27 84 n[Range]0<= n<= 3 or48 <= n<= 51[Description]Selectsthe printdirection and starting position in page mode.nspecifiesthe printdirection and starting position asfollows;[Notes]1)When the command isinputinstandardmode, the printerexecutesonlyinternalflag operation.This command doesnotaffectprinting instandardmode.2)This command setsthe position where dataisbuffered withintheprinting area setbyESCW.3)Parametersforhorizontalorverticalmotion units(XorY)differasfollows,depending on the starting position of the printing area;If the starting position isthe upperleft orlower rightof theprinting area,dataisbuffered inthe direction perpendiculartothepaperfeed direction.Commandsusing horizontalmotion unit: ESCSP,ESC$,ESC\Commandsusing verticalmotion unit: ESC3,ESCJ,GS$,GS\If the starting position isthe upper rightorlowerleft of theprinting area,dataisbuffered inthe paperfeed direction.nPrintdirection Starting position0,48 Left torightUpperleft(Ainthe figure)1,49 Bottomtotop Lowerleft(Binthe figure)2,50 Right toleft Lower right(Cinthe figure)3,51 Top to bottomUpper right(Dinthe figure)Printarea
Commandsusing horizontalmotion units:ESC3,ESCJ,GS$,GS\Commandsusing verticalmotion units:ESCSP,ESC$,ESC\[Default] n=0[Reference]ESC$,ESCL,ESCW,ESC\, GS$,GS P,GS\ESCWxLxHyLyHdxL dxHdyL dyH[Name]Setprinting area in page mode[Format] ASCII ESCWxLxHyLyHdxL dxHdyL dyHHEX 1B57 xLxHyLyHdxL dxHdyL dyHDecimal27 87 xLxHyLyHdxL dxHdyL dyH[Range]0<= xL,xH,yL,yH,dxL,dxH,dyL,dyH<= 255(exceptdxL=dxH=0 ordyL=dyH=0)[Description]The horizontalstarting position,verticalstarting position,printing areawidth,and printing area heightare defined as x0,y0,dx(inch),respectively.x0=[(xL+xHx256)]x(horizontalmotion unit)y0=[(yL+yHx256)]x(verticalmotion unit)dx=[(dxL+dxHx256)]x(horizontalmotion unit)dy=[(dyL+dyHx256)]x(verticalmotion unit)The printing area is setas showninthe figure below.[Notes]1)If this commandsisinputinstandardmode, the printerexecutesonlyinternalflag operation.This command doesnotaffectprintinginstandardmode.2)If the horizontalorverticalstarting position is setoutside theprintable area, the printerstops command processing andprocessesthe following data asnormaldata.3)If the printing area width orheightis set to 0, the printerstopscommand processing and processesthe following data asnormaldata.4)This command setsthe position where dataisbuffered totheposition specified byESCTwithinthe printing area.5)If (horizontalstarting position +printing area width)exceedstheprintable area, the printing area widthisautomatically set to(horizontalprintable area-horizontalstarting position).6)If (verticalstarting position +printing area height)exceedstheprintable area, the printing area heightisautomatically set to
(verticalprintable area-verticalstarting position).7)The horizontaland verticalmotion unitarespecified byGS P.Changing the horizontalorverticalmotion unitdoesnotaffect thecurrentprinting area.8)The GS P command can change the horizontal(and vertical)motion unit. However, the value cannotbe less than the minimumhorizontalmovementamount, and itmustbe in even unitsofminimumhorizontalmovementamount.9)Usethe horizontalmotion unit(x)forsetting the horizontalstartingposition and printing area width,and usethe verticalmotion unit(y)forsetting the verticalstarting position and printing area height.10)When the horizontalstarting position,verticalstarting position,printing area width,and printing area heightare defined asX,Y,Dx,Dyrespectively, the printing area is setas showninthe figurebelow.[Default] xL=xH=yL=yH=0dxL=0,dxH=2,dyL=126,dyH=6[Reference]CAN,ESCL,ESCT,GS PESC\nL nH[Name]Setrelative printposition[Format] ASCII ESC\nL nHHEX 1B5CnL nHDecimal27 92 nL nH[Range]0<= nL <= 255,0<= nH<= 255[Description]Set the printstarting position based on the currentposition byusingthe horizontalorverticalmotion unit.[Notes]1)This command setsthe distancefromthe currentposition to(X,Y)PaperDxDy(X+Dx-1,Y+Dy-1)Printarea
[(nL+nHx256)xhorizontalorverticalmotion unit]2)Any setting thatexceedsthe printable areisignored3)When pitchNis specified tothe right;nL +nHx256 =NWhen pitchNis specified tothe left (the negative direction),usethe complementof65536.4)The printstarting position movesfromthe currentposition to[Nxhorizontalorverticalmotion unit)]5)The horizontaland verticalmotion unitarespecified byGS P.6)The GS P command can change the horizontal(and vertical)motion unit.However, the value cannotbe less than the minimumhorizontalmovementamount, and itmustbe in even unitsof the minimumhorizontalmovementamount.7)Instandardmode, the horizontalmotion unitisused.8)In page mode, the horizontalorverticalunitdiffersasfollows,depending on the starting pointof the printing area;When the starting position is set tothe upperleft orlower rightofthe printable area using ESCT, the horizontalmotion unit(x)isused.When the starting position is set tothe upper rightorlowerleft of the printable area using ESCT, the verticalmotion unit(y)isused.[Reference]ESC$,ESCPESCan[Name]Selectjustification[Format] ASCII ESCa nHEX 1B61 nDecimal27 97 n[Range]0<= n<= 2,48 <= n<= 50[Description]Alignsall the datain one line tothe specified position.nselectsthe type ofjustification asfollows;nJustification0,48 Left justification1,49 Centerjustification2,50 Rightjustification
[Notes]1)The command isenabled onlywhen processed at the beginningof the line instandardmode.2)If this command isinputin page mode, the printerperformsonlyinternalflag operations.3)This command hasno effectin page mode.4)This command executesjustification inthe printing area.5)This command justifiesthe space area according toHT,ESC$ orESC\[Default] n=0[Example]Left justification Centerjustification RightjustificationESCc 5 n[Name]Enable/Disable panelbuttons[Format] ASCII ESCc5 nHEX 1B63 35 nDecimal27 99 53 n[Range]0<= n<= 255[Description]Enablesordisablesthe panelbuttons.When the LSB is0, the panelbuttonsare enabled.When the LSB is1, the panelbuttonsare disabled.[Notes]1)Onlythe leastsignificantbitofnis valid.2)When the panelbuttonsare disabled,none of themare usablewhen the printercoveris closed.3)Inthisprinter, the panelbuttonsisthe FEEDbutton.4)Inthe macroreadymode, the FEEDbutton are enabledregardless of the settingsof this command;however, the papercannotbe fed byusing these buttons.[Default] n=0ABCABCDABCDEABCABCDABCDEABCABCDABCDE
ESCd n[Name]Printand feed n lines[Format] ASCII ESCd nHEX 1B64 nDecimal27 100 n[Range]0<= n<= 255[Description]Printsthe datainthe printbufferand feedsnlines.[Notes]1)This command setsthe printstarting position tothe beginning ofthe line.2)This command doesnotaffect the line spacing setbyESC2 orESC3.[Reference]ESC2,ESC3ESCy[Name]Printand feed paperto nextlabel indexhole[Format] ASCII ESCyHEX 1B79Decimal27 121[Description]Printsthe datainthe printbuffercollectivelyand feed paperuntilfind nextindexhole oflabelpaperESC{n[Name]Turn on/off upside-down printing mode.[Format] ASCII ESC{nHEX 1B7BnDecimal27 123 n[Range]0<= n<= 255[Description]Turnsupside-down printing mode on oroffWhen the LSB is0,upside-downmode isturned off.When the LSB is1,upside-downmode isturned on.[Notes]1)Onlythe lowestsignificantbitofnis valid.
2)This command isenabled onlywhen processed at the beginningofaline instandardmode.3)When this command isinputin page mode, the printerperformsonlyinternalflag operations.4)This command doesnotaffectprinting in page mode.5)In upside-down printing mode, the printer rotatesthe line to beprinted by180 degree and then printsit.[Default] n=0[Example]GS!n[Name]Selectcharactersize[Format] ASCII GS!nHEX 1D21 nDecimal29 33 n[Range]0<= n<= 255[Description](1<=verticalnumberof times<=8,1<=horizontalnumberof times<=8)Selectsthe characterheightusing bits0to2andselectsthecharacterwidth using bits4to 7,asfollows;Table 1 Table 2Characterwidthselection CharacterheightselectionBitOff/OnHex DecimalFunction0-3Characterheightselection.See table 24-7Characterwidthselection.See table 1Hex DecimalHeight00 0 1(normal)01 1 2(double height)02 2 303 3 404 4 505 5 606 6 707 7 8Hex DecimalWidth00 0 1(normal)10 16 2(doublewidth)20 32 330 48 440 64 550 80 660 96 770 112 8Paperfeed direction
[Notes]1)This command isall characterseffective2)If nisoutside of the defined range, this command isignored.3)Instandardmode, the verticaldirection isthe paperfeed direction,and the horizontaldirection isperpendiculartothe paperfeeddirection.4)In page mode,verticaland horizontaldirectionsare based on thecharacterorientation.5)When charactersare enlarged with differentsizeson one line,allthe characterson the line are aligned at the baseline.6)The ESC!command can alsoturn doublewidth and doubleheightmodeson oroff.[Default] n=0[Reference]ESC!GS$nL nH[Name]Turn emphasized mode on/off.[Format] ASCII GS$ nL nHHEX 1D45 nL nHDecimal29 36 nL nH[Range]0<= nL <= 255,0<= nH<= 255[Description]Setsthe absoluteverticalprintstarting position forbuffercharacterdatain page mode.[Notes]1)This command setsthe absolute printposition to[(nL+nHx256)]x(verticalorhorizontalmotion unit)inches.2)This command iseffective onlyin page mode.3)If the [(nL+nHx256)]x(verticalorhorizontalmotion unit)exceedsthe specified printing area, this command isignored.4)The horizontalstarting bufferposition doesnotmove.5)The referencestarting position isthatspecified byESCT.6)This command operatesasfollows,depending on the startingposition of the printing area specified byESCT;When the starting position is set tothe upperleft orlower right,this command setsthe absolute position inthe verticaldirection.When the starting position is set tothe upper rightorlowerleft,this command setsthe absolute position inthe horizontaldirection.7)The horizontaland verticalmotion unitarespecified byGS P.
8)The GS P command can change the horizontaland verticalmotionunit.However, the value cannotbe less than the minimumhorizontalmovementamount, and itmustbe in even unitsof the minimumhorizontalmovementamount.[Reference]ESC$,ESCT,ESCW,ESC\, GS P,GS\GS:[Name]Start/End macro definition[Format] ASCII GS:HEX 1D3ADecimal29 58[Description]Startsendsmacro definition.[Notes]1)Macro definition startswhen this command isreceived duringnormaloperation.Macro definition endswhen this command isreceived during macro definition.2)When GS^isreceived during macro definition, the printerendsmacro definition and clearsthe definition.3)Macroisnotdefined when the poweristurned on.4)The defined contentsof the macro are notcleared byESC@.Therefore,ESC@can be included inthe contentsof the macrodefinition.5)If the printer receivesGS:againimmediatelyafterpreviouslyreceiving GS: the printer remainsinthe macro undefined state.6)The contentsof the macrocan be defined up to 2048 bytes. Ifthe macro definition exceed 2048 bytes,excess dataisnotstored.[Reference]GS^GSBn[Name]Turnwhite/black reverse printing mode on/off.[Format] ASCII GS B nHEX 1D42 nDecimal29 66 n[Range]0<= n<= 255[Description]Turnson oroff white/black reverse printing mode.
[Notes]1)When the LSB is0,white/black reverse printing mode isturned on.2)When the LSB is1,white/black reverse printing mode isturned off.3)Onlythe lowestbitofnis valid.4)This command isavailableforbuiltincharactersand userdefinedcharacters.5)When white/black reverse printing mode ison,italso applied tocharacterspacing setbyESCSP.6)This command doesnotaffect the space between lines.7)White/black reversemode hasa higherprioritythan underline mode.Even ifunderline mode ison,itisdisabled (butnotcanceled)when white/black reversemode is selected.[Default] n=0GSL nL nH[Name]Setleft margin.[Format] ASCII GSL nL nHHEX 1D4CnL nHDecimal29 76 nL nH[Range]0<= nL <= 255,0<= nL <= 255[Description]Setsthe left margin using nL and nH.[Notes]1)The left marginis set to[(nL+nHx256)]x(horizontalmotion unit)inches.Printable areaLeft marginPrinting area width2)This command iseffective onlyprocessed at the beginning of theline instandardmode.3)If this command isinputin page mode, the printerperformsonlyinternalflag operations.4)This command doesnotaffectprinting in page mode.5)If the setting exceedsthe printable area, the maximumvalue ofthe printable area isused.6)The horizontaland verticalmotion unitsarespecified byGS P.Changing the horizontaland verticalmotion unitdoesnotaffect
the currentleft margin.7)The horizontalmotion unit(x)isused forcalculating the leftmargin.The calculated resultistruncated tothe minimumvalue ofthe mechanicalpitch.[Default] nL =0,nH=0[Reference]GS P,GSWGSPx y[Name]Sethorizontaland verticalmotion units.[Format] ASCII GSPx yHEX 1D50 x yDecimal29 80 x y[Range]0<= x<= 255,0<= y<= 255[Description]Setsthe horizontaland verticalmotion unitsto approximately25.4/xmm(1/xinch)and approximately25.4/ymm(1/yinch),respectively.When xand yareset to 0, the defaultsetting ofeachvalue isused.[Notes]1)The horizontaldirection isperpendiculartothe paperfeeddirection and the verticaldirection isthe paperfeed direction.2)Instandardmode, the following commandsusexory,regardlessofcharacter rotation (upside-down).Command using x:ESCSP,ESC$,ESC\, GSL,GSWCommand using y:ESC3,ESCJ3)In page mode, the following command usexory,depending oncharacterorientation;When the printstarting position is set tothe upperleft orlowerrightof the printing area using ESCT(dataisbuffered inthedirection perpendiculartothe paperfeed direction);Command using x:ESCSP,ESC$,ESCW,ESC\Command using y:ESC3,ESCJ,ESCW,GS$,GS\When the printstarting position is set tothe upper rightorlowerleft of the printing area ESCT(dataisbuffered inthe paperfeed direction);Command using x:ESC3,ESCJ,ESCW,GS$,GS\Command using y:ESCSP,ESC$,ESCW,ESC\4)The command doesnotaffect the previously specified values.5)The calculated result fromcombining this command with othersis
truncated tothe minimumvalue of the mechanicalpitch.[Default] x=180,y=360[Reference]ESCSP,ESC$,ESC3,ESCJ,ESCW,ESC\, GS$,GSL,GSW,GS\GSWnL nH[Name]Setprinting area width.[Format] ASCII GSWnL nHHEX 1D57 nL nHDecimal29 87 nL nH[Range]0<= nL <= 255,0<= nH<= 255[Description]Setsthe printing area widthtothe area specified bynL and nH.[Notes]1)The printing area widthis set to[(nL+nHx256)]xhorizontalmotionunitinches.Printable areaLeft marginPrinting area width2)This command iseffective onlyprocessed at the beginning of theline.3)In page mode, the printerperformsonlyinternalflag operations.4)This command doesnotaffectprinting in page mode.5)If the [left margin+printing area width]exceedsthe printable area,(printable area width-left margin)isused.6)The horizontaland verticalmotion unitsarespecified byGS P.Changing the horizontaland verticalmotion unitsdoesnotaffectthe currentleft margin.7)The horizontalmotion unit(x)isused forcalculating the printingarea width.The calculated resultistruncated tothe minimumvalue of the mechanicalpitch.8)If the widthset forthe printing area isless than the width ofonecharacter,when the characterdataisdeveloped, the followingprocessing isperformed;The printing area widthisextended tothe right to accommodateone character.Printable area
Left marginExtended torightPrinting area widthsetnL and nHIf the printing area widthcannotbe extended sufficiently, the leftmarginisreduced to accommodate one character.Printable areaLeft marginReduced left marginExtended torightIf the printing area widthcannotbe extended sufficiently, the rightspaceisreduced.9)If the widthset forthe printing area isless than one line invertical, the following processing isperformed onlyon the line inquestion when data otherthan characterdata(e.g., bitimage,userdefined bitimage)isdeveloped:The printing area widthisextended tothe right to accommodateone line inverticalforthe bitimage withinthe printable area.If the printing area widthcannotbe extended sufficiently, the leftmarginisreduced to accommodate one line invertical.[Default] nL =0,nH=2[Reference]GSL,GS PGS\nL nH[Name]Setrelativeverticalprintposition in page mode[Format] ASCII GS\nL nHHEX 1D5CnL nHDecimal29 92 nL nH[Range]0<= nL <= 255,0<= nH<= 255[Description]Setsthe relativeverticalprintstarting position fromthe current
position in page mode.[Notes]1)This command setsthe distancefromthe currentposition to[(nL+nHx256)]x verticalorhorizontalmotion unitinches.2)This command isignored unless page mode is selected.3)When pitchNis specified tothe movementdownward;nL +nHx256 =NWhen pitchNis specified tothe movementupward(the negativedirection),usethe complementof65536.When pitchNis specified tothe movementupward;nL +nHx256 =65536 -N4)Any setting thatexceedsthe specified printing area isignored.5)This command function asfollows,depending on the printstartingposition setbyESCT;When the starting position is set tothe upperleft orlower rightofthe printing, the verticalmotion unit(y)isused.When the starting position is set tothe upper rightorlowerleft ofthe printing, the horizontalmotion unit(x)isused.6)The horizontaland verticalmotion unitarespecified byGS P.7)The GS P command can change the horizontal(and vertical)motion unit. However, the value cannotbe less than the minimumhorizontalmovementamount, and itmustbe in even unitsof theminimumhorizontalmovementamount.[Reference]ESC$,ESCT,ESCW,ESC\, GS$,GS PGS^rtm[Name]Executemacro.[Format] ASCII GS^rtmHEX 1D5ErtmDecimal29 94 rtm[Range]0<= r<= 2550<= t<= 255m=0,1[Description]Executesamacro.[Notes]1)rspecifiesthe numberof timesto executethe macro.2)tspecifiesthe waiting timeforexecuting the macro.3)mspecifiesmacro executing mode.
When LSB ofm=0The macro executesrtimes continuouslyat the intervalspecifiedbyt.When LSB ofm=1Afterwaiting forthe period specified byt, the ERRORLEDindicatorsblinkand the printerwaitsforthe FEEDbutton to bepressed.Afterthe button ispressed, the printerexecutesthemacro once.The printer repeatsthe operation rtimes.4)The waiting timeistx100 msforeverymacro execution.5)If this command isreceived whileamacroisbeing defined, themacro definition isaborted and the definition is cleared.6)If the macroisnotdefined orifis0,nothing isexecuted.7)When the macroisexecuted (m=1),paperalways cannotbe fedbyusing the FEEDbutton.[Reference]GS:GSh n[Name]Setbarcode height[Format] ASCII GSh nHEX 1D68 nDecimal29 104 n[Range]1<= n<= 255[Description]Set the heightof the barcodenspecifiesthe numberofdotsinthe verticaldirection.[Default] n=162[Reference]GSkGSkmd1...dkNULGSkmn d1...dn[Name]Printbarcode[Format] ASCII GSkmd1...dkNULHEX 1D6Bmd1...dk00Decimal29 107 md1...dk0ASCII GSkmn d1...dn
HEX 1D6Bmn d1...dnDecimal29 107 mn d1...dn[Range]0<= m<= 6(kand d dependson the barcode systemused.)65 <= m<= 73 (n and d dependson the barcode systemused.)[Description]Selectsa barcode systemand printsthe barcode.mselectsa barcode systemasfollows.[Notes]1)This command endswithaNULcode.2)When the barcode systemused isUPC-AorUPC-E, the printerprintsthe barcode data after receiving 12 bytesbarcode data andprocessesthe following data asnormaldata.3)When the barcode systemused inJAN13(EAN13), the printermBarcode systemNumberofcharactersRemarks0UPC-A11<=k<=12 48<=d<=571UPC-E11<=k<=12 48<=d<=572JAN13(EAN13)12<=k<=13 48<=d<=573JAN8(EAN8)7<=k<=8 48<=d<=574CODE39 1<=k48<=d<=57,65<=d<=90,32,36,37,43,45,46,475ITF 1<=k(even number) 48<=d<=576CODABAR1<=k48<=d<=57,65<=d<=68,36,43,45,46,47,5865 UPC-A11<=n<=12 48<=d<=5766 UPC-E11<=n<=12 48<=d<=5767 JAN13(EAN13)12<=n<=13 48<=d<=5768 JAN8(EAN8)7<=n<=8 48<=d<=5769 CODE39 1<=n<=25548<=d<=57,65<=d<=90,32,36,37,43,45,47,47d1=dk=42(1)70 ITF 1<=n<=255(even number) 48<=d<=5771 CODABAR1<=n<=255 48<=d<=57,65<=d<=68,36,43,45,46,47,5872 CODE93 1<=n<=255 0<=d<=12773 CODE128 2<=n<=255 0<=d<=127
printsthe barcode after receiving 13 bytesbarcode data andprocessesthe following data asnormaldata.4)When the barcode systemused inJAN8(EAN8), the pritnerprintsthe barcode after receiving 8 bytesbarcode data and processesfollowing data asnormaldata.5)The numberofdataforITF barcode mustbe even numbers.When an odd numberofdataisinput, the printerignoresthe lastreceived data.6)nindicatesthe numberofbarcode data,and the printerprocessesn bytesfromthe nextcharacterdata asbarcode data.7)If nisoutside of the specified range, the printerstops commandprocessing and processesthe following data asnormaldata.8)Besuretokeep spaceson bothrightand left sidesofa barcodeSpacesare differentdepending on the typesof the barcode.[Reference]GSh,GSW,GSwGSwn[Name]Setbarcode width[Format] ASCII GSwnHEX 1D77 nDecimal29 119 n[Range]2<= n<= 3[Description]Set the horizontalsize of the barcode.nspecifiesthe barcode width asfollows.1)Multi levelbarcodesare asfollowsUPC-A,UPC-E,JAN13(EAN13),JAN8(EAN8),CODE93,CODE1282)Binarylevelbarcodesare asfollowsCODE39, ITF,CODABAR[Default] n=3nModulewidthformulti levelbarcodeBinarylevelbarcodeThinelementwidth(mm)Thick elementwidth(mm)2 0.282 0.282 0.7063 0.423 0.423 1.129
[Reference]GSkESCZmnkd d1...dn[Name]Print2Dbarcode[Format] ASCII ESCZmnkd d1...dnHEX 1B5Amnkd d1...dnDecimal27 90 mnkd d1...dn[Range]1<= m<= 70<= n<= 82<= k<= 51<= d<= 65535[Description]Print2Dbarcode (PDF417 format).mspecifies column numberof2Dbarcode.nspecifies securityleveltorestorewhen barcode image isdamagedkisused fordefine horizontaland verticalratio.dis consistof2 byte.1stbyteislowernumber.And 2nd byteisuppernumber.
Chapter5. Introduction ofprotocol IrDA5.1Frame structureSOF:Startof frame(SOFcode mustbe 0xC0)TOF:Type of frame(See the tableshown below)EOF:End of frame(EOFcode mustbe 0xC1)CHECKSUM:Checksumisnecessaryincase of the TOFcode is0x44.DATA:Dataisin need of the TOFcode is0x44,0x05,0x53.TOF:1. If the code (0xC0,0xC1,0x7D)isincluded on sending data, firstinsert0x7Dcode, then operateXOR withthatcode and 0x20.Example: Incasethe send datais0x20 0x7D0xC1, the sending datawillbe 0x20 0x7D0x5D0x7D0xE1.Note:The bolded characterisinserted data.And the underlined chacteristhe data operated XOR with 0x20.2. If the code 0x7Disincluded on receiving, firstremove 0x7Dcode, thenoperateXOR with nextcode and 0x20.Example: Incasethe received datais0x20 0x7D0x5D0x7D0xE1,the realdatawill be 0x20 0x7D0xC1.Note:The underlined chacteristhe data operated XOR with 0x20.SOF TOFDATACHECKSUMEOFType of frameCode DataACK0x06 XNACK0x15 XENQ0x05 OPrintdata 0x44 ORequire printerstatus0x53 OResponse printerstatus0x51 XEOT0x04 X
5.2Process ofprinterstatusinquiryHOSTPRINTER1. If thereisno responsefromprinter,afterfifthtimesrecheck with every400ms,then displaythe errormessage such as"The printercannot fined"on yourdisplaypanelsamelikeCRT,PDA,etc.2.Structure ofprinterstatusresponseframe-STATUSSOF0x53 STATUS PreviousDATAIDEOFBit7Bit6Bit5Bit4Bit3Bit2Bit1Bit0BitONOFF0PaperemptyNormal1 LowbatteryNormal2Head open Normal3Notdefined Notdefined4Notdefined Notdefined5Notdefined Notdefined6Notdefined Notdefined7Notdefined NotdefinedPrinterstatusrequireframetransmitPrinterstatusresponseframetransmit
-PreviousDATAID:Finallyused DATAID5.3Process of transmitting and receiving printdataHOSTPRINTER1. It iserrorcondition shown below.-Wrong checksumreceived-No datareceived within 200msafterdatareceive.-Thereisno 0xC1code afterchecksum-It isnotnumbercode (0x30 -0x39)in datalengthfield.ENQ frametransmitACKframetransmitPrintdataframetransmitIf thereisno errorduring datatransmit,EOTframetransmitIf thereisanyerrorduring datatransmit,NACKframetransmitPrintdataframetransmitagain
5.4Structureofprintdataframe1.DATAID:Itismade up 1 digitnumber.The range is0-9.The numbermustbe charactercode.2.DATALength:Itconsistsof4 digitnumbers.The range is0001 -9999.The numbermustbe charactercode.Example-If you want tosend 4 numbersdatato printer,you mustsend 0x30 0x30 0x30 0x34 codesasdatalength.3.CHECKSUM:Itis composed of2 bytes.1stbyteisoperated XORvalue with odd numbersofdata.And 2nd byteisoperated XORvalue with even numbersofdataExample-Incase ofprintdataisSAMPLETEST,datalengthis0011(0x30 0x30 0x31 0x31), the 1stbyte ofchecksumisoperated XORvalue withS,M,L,space,E,T,and 2nd bytechecksumisopera-ted XORvalue withA,P,E,T,S.Note:1.Do nothave timeintervalover200mson transmitting printdata.2. Ifnotreceive EOT orNACK framewithin1 second aftertransmittingprintdata completely, jumptothetransmitting ENQframe.3. Ifreceive EOTframe afterprintdatatransmitted,quit theprintoperation4. Incase ofreceiving NACK frame, ifreceive NACK framemorethanthreetimes aftertransmitprintdatathree times,display CHECK PRINTERSTATUSon yourdisplay paneland waitoperator'smeasures.SOF0x44 DATAIDDATALengthPrintDATACHECKSUMEOF
5.5StructureofENQframe1. If thereisno responseACKframe aftertransmitting ENQframefromhost,transmitagainENQframe afterwaiting 400ms.2. Incase ofno response over10 timesfromprinteraboutENQframe,displayPRINTER CANNOT FINDEDmessage on the yourdisplaypanel,and waitoperator'smeasures.SOF0x05 DATAIDEOF
APPENDIXA.MISCELLANEOUSNOTES1.Printermechanismhanding1)Do notpull the paperoutwhen the coveris closed.2)Becausethe thermalelementsof the printhead and driverICsare easy tobreak,so do not touchthemwith anymetalobjects.3)Sincethe areasaround the printhead becomeveryhotduring and justafterprinting,do not touchthem.4)Do notusethe coveropen button exceptwhen necessary.5)Do not touchthe surface of the printhead because bustand dirtcan sticktothe surface and damage the elements.6)Thermalpapercontaining Na,K,Cl ions can harmthe printhead thermalelements.Therefore,be sureto use onlythe specified paper.7)If you want to uselabelpaper,pleasecontactyourdealerforassistance.2.ThermalpaperhandlingNoteson using thermalpaperChemicalsand oil on thermalpapermay cause discoloration and faded printing.Therefore,payattention tothe following;1)Usewaterpaste,starch paste,polyvinylpaste,orCMCpastewhen gluingthermalpaper.2)Volatile organic solvents such asalcohol,ester,and ketone can causediscoloration.3)Some adhesivetapesmay cause discoloration orfaded printing.4)If thermalpapertouchesanything whichincludesphthalicacid esterplasticizerforalong time,itcan reducethe image formation abilityof the paperandcan causethe printed image tofade.Therefore,when storing thermalpaperinacardcase orsample notebook,be sureto use onlyproductsmade frompolyethylene,polypropylene,orpolyester.5)If thermalpapertouchesdiazocopypaperimmediatelyaftercopying, theprinted surfacemaybe discolored.6)Thermalpapermustnotbe stored withthe printed surfacesagainsteachotherbecausethe printing maybe transferred between the surfaces.7)If the surface of thermalpaperis scratched with a hardmetalobjectsuch as
a nail, the papermaybecome discolored.Noteson thermalpaperstorageSincecolordevelopmentbeginsat70C(158F), thermalpapershould beprotected fromhigh temperature,humidity,and light, both before and afterprinting.1)Store paperawayfromhigh temperature and humidity.Do notstorethermalpaperneara heaterorin enclosed placesexposed todirectsunlight.2)Avoid directlightExtended exposureto directlightmay cause discoloration orfaded printing.3.OthersBecausethisprinterusesplated steel, the manualcutting edge maybesubject torust.However, thisdoesnotaffect the printerperformance.
B.CONNECTORSPin no SignalnameDirection Function1TxDOutputTransmitData2NC - -3RxDInputReceiveData4CTSOutputCleartosend5RTSInputRequest tosend6GND InputGround
C.SpecificationPrinting method Direct thermal line printingDotdensity203 DPIPrinting width48 mmPaperwidth57 -58 mmCharactersperline40Printing speed50mm /secReceive buffersize10KbytesNotePrinting speed maybe slower,depending onthe datatransmission speed and thecombination ofcontrolcommands.Supply voltage7.2DCV/1.8AEnvironmentconditionsTemperature0C-40C(operating)-10C-50 (storage)Humidity30%-80%(operating)10%-90%(storage)MCBFMechanical37,000,000 linesHead Approximately100 Km

Navigation menu