SPRT SP-POS58IV User manual

R
SPRT
SP POS58Ⅳ
LineThermalPrinter
Инструкция
Компания Авиор www.avior.ru

SPRT
Content
Introduction 2
Chapter1CharacteristicSpecification 3
1.1Printing Specification 3
1.2PrintingPaper 3
1.3PrintingFont 3
1.4Interface 3
1.5PrintingControlCommand 4
1.6PowerSupply 4
1.7Operation Environment 4
1.8ModelClassification 4
1.9Weight 4
1.10 OutlineDimension 4
Chapter2SystemInstallationand Operation 5
2.1PrinterAppearance 5
2.2PaperInstallation 5
2.3Interface Connection 5
2.3.1ParallelInterface 5
2.3.2SerialInterface 7
2.3.3Cash drawerInterface 8
2.3.4Powerconnection 9
2.4Buttonsand Indicators 9
2.5Self-test 10
Chapter3Printing ControlCommands 10
3.1Summary 10
3.2Command Descriptions 10
3.2.1PrintingCommands 10
3.2.2LineSpacing Setting Commands 11
3.2.3CharacterPrinting Commands 11
3.2.4SpecialControlCommands 13
3.2.5GraphicsPrintingCommands 13
3.2.6BarCodePrintingCommands 15
3.2.7OtherCommands 17
Appendix1Performance Index19
Appendix2IndexofPrinting Commands 21
Appendix3IndexofPrinting Characters 22
Компания АВИОР www.avior.ru

SPRT
2
Introduction
SP- POS58Ⅳprinteris anewtypeline thermalprinter,itfeaturesin
fast speedprint,lowprintnoise,high reliability,perfectprintqualityand
ribbonneedless avoiding thevexation ofregularmaintenance.
SP-POS58Ⅳprinter: small inoutlinedimension,simpleoperation,
and extensiveapplication,especiallysuitablefor commercialcash register,
PC-POS, bankPOSand all kinds ofreceipts print.
PDF
creat
ed
with
pdfFa
ctory
trial
versi
on
www.
pdffa
ctory.
com
Компания АВИОР www.avior.ru

SPRT
3
Chapter 1CharacteristicSpecification
1.1Printingspecification
●Printingmethod:directthermal
●Printingpaperwidth:57.5±0.5mm
●Printingdensity:8dots/mm, 384 dots/line
●Printingspeed:approx. 70mm/sec. or 20 lines/sec.
●Reliability:
Printingheadlife:50km
MCBF:5million lines
Using condition:
*Print12 ×24 ASCII characters,print50 lineseachtime,
intermittentprintrepeatedly
*Eachdot-lineprinting atthesametimeshouldnotexceed25%,
eachcharacter-lineand onedotverticallyprintingrepeatedly
shouldnotexceed11times
*Use specifiedthermalpaper
●Validprintingwidth:48mm
●Feedingspeed:approx.70mm/sec.or 20 lines/sec.
1.2PrintingPaper
●Thermalpapermodel: TF50KS-E(Japanpaperco.ltd)
AF50KS-E(JUJOTHERMAL)
●Thermalpaper: Width-------- 57.5±0.5mm
OuterDiameter --- 80mm(max.)
InnerDiameter --- 13mm(min.)
Thickness 53~60g/m2
1.3PrintingFont
●IBMCharactersetII:
12×24 dots,1.25(W)×3.00(H)mm;
●GB2312-80(Chinese):
24×24 dots,3.00(W)×3.00(H)mm.
1.4Interface
●LPTinterface:
DB25 socket(male),8-bit parallelinterface,supportsBUSY/ACK
handshaking protocol,TTLsignallevel.
PDF created
with
pdfFactory
trialversion
www.pdffactor
y.com
Компания АВИОР www.avior.ru

4
●RS232interface:
DB25 socket(female), supports RTS/CTSprotocol, baud rate:9600bps.
Datastructure:onestart bit +eightdatabits +oneor overonestopbit(s),
no parity.
●USB interface
●Cash drawercontrol
DC12V,1A,6-pinRJ-11socket.
1.5PrintingControlCommand
●Characterprintcommand:supports doublewidthand doubleheightprint
of ANK characters,user-definedcharacters and Chinesecharacters,the
characterlinespacing is adjustable.
●Graphicsprintcommand:supportstheprintof bit map graphicsand
downloadbitmapgraphicswithdifferentdensity
●GSbarcodeprintcommand:supports EAN-13,EAN-8 barcodeprint.
1.6Power Supply
●DC12V,2A
1.7OperationEnvironment
●Operation temperature:5~40
Relativehumidity:10~80%
●Operation environmenttemperature:5~40
Relativehumidity:10~80%
●Storagetemperature:-20~60
Relativehumidity:10~90%
1.8 Modelclassification
●SP-POS58ⅣPLPTinterface
●SP-POS58ⅣSRS232 interface
●SP-POS58ⅣU USB interface
1.9 Weight
●1kg(excludingpaperroll)
1.10 OutlineDimension
●138(W)×200×(L)×120(H)mm
Chapter2 Installation and Operation
SPRT Компания АВИОР www.avior.ru

5
2.1PrinterAppearance
2.2PaperInstallation
SP-POS58adopts 57.5±0.5mmwidththermalpaper.
Thesteps of thermalpaperinstallationareasthefollowing:
Holddowntheuppercoverbutton, open themovableuppercover, move
awaytheoldpaperroll, and putthenewthermalpaperinthepaperholder
of printer, draw acertainlengthofthepaperroll, putthepaperend on the
printhead, closetheuppercoverandpress it downwards lightlyuntilit
restoretooriginalposition, and thepaperend appears fromthepaper-out
slotwhichis ontheuppercover, thenprintpaperinstallationis finished.
SPRT Компания АВИОР www.avior.ru

6
2.3Interface Connection
2.3.1LPTInterface Connection
TheLPTinterfaceof SP-POS58 ⅣPprinteris compatiblewith
CENTRONICS,supports BUSYand /ACK handshaking protocol,ituses
DB25 socket(male), thepinorderof parallelportis asFig. 2-2 shows:
Fig.2-2 PinOrderofParallelPort
Thepinassignmentof parallelinterface is showninFig. 2-3shows:
PinNo. Signal Direction Description
1 /STB In Strobepulsetolatch data,
reading occursatfallingedge.
2
3
4
5
6
7
8
9
DATA1
DATA2
DATA3
DATA4
DATA5
DATA6
DATA7
DATA8
In
In
In
In
In
In
In
In
Thesesignals representthe1
st
bit to8
th bit of theparallel
interface data,eachsignalisat
HIGHT levelwhendatais
logic1,and LOWwhendatais
logic0.
10 /ACK Out
Answerpulse, LOWlevel
signalindicatesthatdatahave
alreadybeenreceivedand the
printergets readytoreceivethe
nextdata.
Caution!
1.Whenthereis no paperintheprinthead,pleasedon’tpress 【LF】
button, avoidingtoinfluence theprintheadlife;
2.Pleasedon’tdrawthepaperforwards or backwards withhands,When
returningpaper, pleasecuttheextrapaper, and press 【LF】
button, paperwill goforwards.
SPRT Компания АВИОР www.avior.ru

7
11 BUSY Out HIGH levelsignalindicates
thattheprinteris BUSY and
cannotreceivedata.
12 PEOut HIGH levelsignalindicates
thatpaperis end.
13 SELOut PullinguptoHIGH level
signalbyaresistor indicates
theprinteris online.
15 /ERR Out PullinguptoHIGH level
signalbyaresistor indicates
thereis no error.
14,16,17 NC --- Noconnection
18-25 GND --- Grounding logical0level
Note: (1)“In”denotesinputting tothe printer,“Out”denotesoutputting
fromtheprinter.
(2)SignallevelisTTLstandard.
Fig.2-3 PinAssignmentof ParallelInterface
Thetiming chart forinterface signalof LPTinterface is asFig.2-4 shows:
Fig.2-4 SignalTiming Chart ofLPTInterface
2.3.2RS232 Interface Connection
TheRS232 interface of SP-POS58ⅣSprinteriscompatiblewith
RS232C standard, supports RTS/CTShandshakingprotocol, it usesDB25
socket(female), thepinorderoftheRS232 portisasFig.2-5shows:
BUSY
/ACK
DATA
/STB
0.5μS
0.5μS
0.5μS
0.5μS
0.5μS
SPRT Компания АВИОР www.avior.ru

8
GND
RTS
TXD
RXD
DSR
DTR
GND
CTS
DCD
RXD
TXD
7
5
3
2
6
4
5
8
1
2
3
GND
RTS
TXD
RXD
DSR
DTR
GND
CTS
DCD
RXD
TXD
7
5
3
2
6
20
7
5
8
3
2
Fig.2-5 PinOrderoftheSerialPort
Thepinassignmentof RS232 interface is showninFig. 2-6:
PinNo. SignalSource Description
2 RXD HostPrinterreceivesdatafromhost
3 TXD Printer Printertransmits datatohost
5 RTS Printer Signal “MARK”indicatesthat
theprinteris “BUSY”and
unabletoreceivedata;
“SPACE”indicatesthatthe
printeris “READY”for
receiving data.
7 GND —SignalGround
Note: “Source”①denotesthesource thatsignalcomesfrom;
②Logicalsignallevelis EIA.
Fig.2-6 PinAssignmentof SerialInterface
Thebaud rateand datastructureinRS232interface modearesetto
9600bps, 8databits, no paritybit and1or over1stop bit(s).
TheRS232 interface of SP-POS58canbeconnectedtostandard RS-232C
interface.WhenconnectedtoIBMPC or compatiblemachine, connection
canaccord toFig.2-7.
SPRT Компания АВИОР www.avior.ru

SPRT
9
Fig. 2-8
Cash DrawerInterface
Fig.2-9 PowerSocket
Printer 25pinIBM PC SerialPrinter 25pinIBM PC Serial
SocketInterface DB-9SocketInterface DB-25
Fig.2-7 ConnectionbetweenSP-POS58ⅣSand
IBMPC SerialInterface SketchMap
2.3.3CashDrawer Interface
Thecash drawerinterface of SP-POS58Ⅳ
adoptsRJ-116-pinsocket, asFig.2-8 shows:
Thepinassignmentof thecash drawerinterface is asfollows:
PinNo. Signal Direction
1 Chassis Ground ---
2 Cash drawerdriversignal Out
3 Cash draweron/offstatus signal In
4 +12VDC Out
5 N.C ---
6 Cash draweron/offstatus signalground
---
2.3.4Power Connection
SP-POS58Ⅳusesexternalpowersupplyas9/12VDC±10%,3.5A,
powersocketis A-1009-3Pmodel, asFig. 2-9 shows:
Thepinassignmentof thepowersupplyconnection isasfollows:
PinNo. Definition
1 +9/12VDC
2 GND
3 N.C.
Компания АВИОР www.avior.ru

0
Recommend using thepower
supply
that
offeredby
the
printer
producer,you canplugthepowercableintotheprinter’spower
socket,if useotherpowersupply,itshouldmeetthespecified
voltageand powerdemands,and theconnection shouldbe correct,
otherwiseitcan'tguarantee theprinter worksnormally,evenmay
damagetheprinter.
2.4ButtonsandIndicators
Thereare twobuttons andtwoindicators ontheprinterofSP-POS58Ⅳ.
Theredlightis powerindicator,thegreenoneis status indictor,status
indicator lightsunderon-linestatus,itgoesdarkunderoff-linestatus,it
flasheswhenpaperis out.
SP-POS58Ⅳhas【LF】paperfeedbutton andopeninguppercoverbutton,
printcommand canenableor disable 【LF】on oroff, underenablestatus,
holddown【LF】,start paperfeeding,release thebutton paperfeeding
stops.Holddownopening uppercoverbutton,opentheuppercoverin
ordertochangepaper.
2.5Self-test
Theself-test cancheckthe condition ofprinter,if theprinterprints outthe
self-test receiptcorrectly,it means theprinterworksnormally.Otherwiseit
needs torepair.
Theself-test will printoutthefirmwareversion,interface settingand 128
ANK characters.
Holding down 【LF】button andturnon thepower, thenreleasethebutton,
self-test beginsautomatically.
Chapter3PrintControlCommands
3.1Summary
SP-POS58ⅣoffersESC/POSprintcommand sets.
Eachcommand is describedinfollowingformat:
PrintCommand Function
Format: ASCII: thestandardASCII charactersequence
Decimal: thedecimalnumbers sequence
Hexadecimal: thehexadecimalnumbersequence
Explanation:whatthecommand doesand how touseit.
Example:someexamplesarelistedtoillustratethecommand for better
understanding.
SPRT Компания АВИОР www.avior.ru

AA
A
3.2Command Specifications
3.2.1Character controlcommands
LFPrintand FeedLine
Format: ASCII: LF
Decimal: 10
Hexadecimal: 0A
Explanation:
Printthecontentinthebufferand feedpaperoneline.Onlyfeedpaper
forwardsonelineif thebufferis empty.
ESC JPrintand FeednDotLines
Format: ASCII: ESC Jn
Decimal: 27 74 n
Hexadecimal: 1B 4An
Explanation:
Printthecontentinthebufferandfeedpaperndotlines.(n/203inch),
n=0~255.
This command is onlyvalidfor currentlineand will notchangethespace
settings thatsetbyESC 2,ESC 3commands.
Example:
BBBn/203 inch(ndotlines)
3.2.2LineSpace Setting Commands
ESC 2SetLineSpacing to1/6Inch
Format: ASCII:ESC 2
Decimal:27 50
Hexadecimal: 1B32
Explanation:
Setlinespacing to1/6inch.
ESC 3SetLineSpacing tonDotLines(n/203inch)
Format: ASCII:ESC 3
Decimal:27 51
Hexadecimal: 1B33
SPRT Компания АВИОР www.avior.ru

2
×
×
D5D4
×
×
×
1:DoubleWidthPrint
AA
A
Explanation:
Setlinespacing tondotlines. n=0~255.
Onedotlineis 1/203inchfor SP-POS58Ⅳ,this command sets thedot-line
spacing ton/203inch. Default n=30.
Example:
BBBn=30, 30 dotspacing (30/203inch)
3.2.3Character Print Commands
ESC!SetCharacterPrintMode
Format: ASCII:ESC!n
Decimal: 27 33 n
Hexadecimal: 1B21 n
Explanation:
ESC !nis acomprehensivecommand tosetcharacterprintmode,is used
for selectingprintcharactersize.Eachbit ofprintparameternis defined:
1:DoubleHeightPrint
Default n=0, thatmeans no characterenlargement.
ESC SOSetDoubleWidthCharacterPrint
Format: ASCII:ESC SO
Decimal: 27 14
Hexadecimal: 1B 0E
Explanation:
All characters following this command on thesamelineare printedin
doublewidth, thiscommand canbecanceledbyacarriagereturn orDC4
command.
ESC DC4CancelDoubleWidthCharacterPrint
Format: ASCII:ESC DC4
Decimal: 27 20
Hexadecimal: 1B 14
Explanation:
Aftercarrying outthis command,the characters will be printedinnormal
width.
SPRT Компания АВИОР www.avior.ru

3
ESC %Select/CancelUser-definedCharacters
Format: ASCII: ESC%n
Decimal: 27 37 n
Hexadecimal: 1B25 n
Explanation:
Whenn=1,selectuser-definedcharacterset; Whenn=0,selectinternal
characterset.
Default n=0
ESC & DefineUser-definedCharacters
Format: ASCII:ESC &snm[a[p]s×a]m-n+1
Decimal: 27 38 snm[a[p]s×a]m-n+1
Hexadecimal: 1B26 snm[a[p]s×a]m-n+1
Explanation:
ESC & is usedtodefineuser-definedcharacters. s=3,32≤n≤m≤126,
0≤a≤12, 0≤p≤255.
◆sis thenumberof bytesinverticaldirection, s=3here.
◆nis thestartingASCII codeof user-definedcharacter.
◆mis thestoppingASCII codeof user-definedcharacter.
Whendefineonlyonecharacter,n=m,themaximumnumberof
user-definedcharacters is 96.
◆ais thenumberof dots inhorizontaldirection.
◆pis thedataof self-definedcharacters,thereare s×abytesfor each
character, thetotalnumberof user-definedcharacters is m-n+1.
◆User-definedcharacters arevaliduntilre-defined,resetor poweroff,
formatof theuser-definedcharacters is shownasfollows:
3.2.4SpecialControlCommands
ESC c 5Enable/DisableSwitchButton Function
Format: ASCII:ESCc5n
Decimal: 27 99 53 n
SPRT Компания АВИОР www.avior.ru

4
Hexadecimal: 1B 63 35 n
Explanation:
Whenn=1, button【LF】is enabled;
Whenn=0, button【FEED】is disabled;
Default n=0.
3.2.5GraphicsPrint Commands
ESC *SetBit-mapGraphics
Format: ASCII:ESC *mn1 n2 [d]k
Decimal:27 42 mn1n2 [d]k
Hexadecimal: 1B2Amn1n2 [d]k
Explanation:
Selectbit-mapcommand,mis forsetting bit-mapmode;n1,n2arefor
settingnumberof dots; [d]kis for settingcontentsof bit-map.
m=0,1,32,33, n1=0~3. d=0~255.
k=n1+256×n2 (m=0,1)
k=(n1+256×n2)×3(m=32,33)
◆Thenumberof horizontaldots ofthegraphicsis n1+256×n2
◆If thenumberofdots is morethanone line,theextraportionwillbe
ignored(referring the following table)
◆dis thebit mapdata,for 1of bit meanstherelateddotwill beprinted
and for 0of bitmeans therelateddotwill notbeprinted.(k is thetotal
numberof dot)
◆m is theselected bit mapmode.
M
Mode VerticalHorizontal
DotDensity Density
Max. Dots
0
8-dotsingle
density 8 68DPI 101DPI
192
1
8-dotdouble
density8 68DPI 203DPI
384
32
24-dotsingle
density 24 203DPI 101DPI
192
33
24-dotdouble
density 24 203DPI 203DPI
384
SPRT Компания АВИОР www.avior.ru

5
GS/PrintDownloadBit-mapGraphics
Format: ASCII:GS/n
Decimal: 29 47 n
Hexadecimal: 1D2F n
Explanation:
This command is usedtoprintdownloadbit-mapgraphics. n=0~3
◆nis usedtoselectbit-mapgraphicsmode.
◆Todefinedownloadbit-mapgraphicsusing GS*command:
GS*Definedownloadbit-mapgraphics
Format: ASCII:GS* n1 n2 [d]k
Decimal:29 42 n1 n2 [d]k
Hexadecimal: 1D2An1 n2 [d]k
Explanation:
This command is usedtodefinedownloadbit-mapgraphics.
n1=1~48,n2=1~255,n1×n2<1200,k=n1×n2×8。
◆dis thebit-mapdata.
◆Thehorizontalsize of this graphicsisn1×8dots,and verticalsize is
n Bit-mapmode Verticaldensity
Horizontal
density
0 Normal203DPI 203DPI
1 Doublewidth203DPI 101DPI
2 Doubleheight101DPI 203DPI
3 Doubleheight
and doublewidth 101DPI 101DPI
SPRT Компания АВИОР www.avior.ru

6
n2×8dots.
◆Thedefinitionisvaliduntil re-define,poweroffor systemreset.Format
of thedownloadbit-mapdatais shownasfollows:
3.2.6BarCodePrint
GSWSetbarcodewidth
Format: ASCII:GSWn1 n2
Decimal: 29 87 n1 n2
Hexadecimal: 1D57 n1 n2
Explanation:
n1:barcodenarrowbarwidth,unit: dot.Eachdotfor SP-POS58 printeris
1/203 inchor 0.125mm.
Default n1=3.
n2:barcodebroadbarwidth
GSkPrintbarcode
Format: ASCII:GSkn[d]NUL
Decimal:29 107 n[d]0
Hexadecimal: D6Bn[d]00
Explanation:
n---Selecttheprinting barcodesystem:
Pay attention tothespecifiedcharacternumberof eachbar code.EAN-13
and EAN-8 cangenerateparitycharacters automatically.
[d]is theprintingbarcodedata.
NULdenotesGSK command is over,and carryoutbarcodeprint.
n Barcode
2 EAN-13
3 EAN-8
SPRT Компания АВИОР www.avior.ru

7
GSH Select/cancelprinting HRIcharacters
Format: ASCII:GSHn
Decimal: 29 72 n
Hexadecimal: 1D48 n
Explanation:
n=0,don’tprintHRIcharacters. Default n=0.
n=1,printHRIcharacters underbarcode.
GShSetbar codeheight
Format: ASCII:GShn
Decimal: 29 104 n
Hexadecimal: 1D68 n
Explanation:
Settheheightof printing barcode.
n=0~255, its unitisdot.Whenn=0, it is256dots.
Eachdotfor SP-POS58 printeris 1/203 inchor 0.125mm.
Default n=60.
GSw Setbar codewidth
Format: ASCII:GSwn
Decimal:29 119 n
Hexadecimal: 1D77 n
Explanation:
Setthewidthof printing barcode.
n=1~4.Whennis different,thewidthof barcodewill bedifferent,as
showsinthefollowing tab:
Its unit isdot. Eachdotfor SP-POS58Ⅳis 1/203 inchor 0.125mm.
Default n=3.
3.2.7Other Commands
ESC @Initialize printer
Format: ASCII:ESC@
Decimal:27 64
n Narrow size Broadsize
1 1 3
2 2 5
3 3 7
4 4 9
SPRT Компания АВИОР www.avior.ru

8
Hexadecimal:1B40
Explanation:
ESC @command istoinitialize thefollowing contentsof theprinter:
Clearthedataintheprintbuffer;
Restorethedefault of eachprintcommand
Selectcharacterprintmode;
Deleteuser-defined characters.
ESC pCash Drawercontrol
Format: ASCII:ESCpmnln2
Decimal: 27 112 mnln2
Hexadecimal:1B70 mnln2
Explanation:
This command is togenerateapulsetotriggertheopening and closingof
thecash drawer, n1, n2 definetheduration ofthetriggerpulse.
m=0,0<nl≤n2≤255。
Opening timeis nl×2ms,closingtimeisn2×2ms.
ESC vTransmit Status of Printer
Format: ASCII :ESC v
Decimal: 27 118
Hexadecimal: 1B76
Explanation:
Send printerstatustothehost.
Whenprinterreceivedthecommand,it transfers onebytethroughTXD
serialinterface. Definitionof saidbyteis shownasbelow:
Bit Function Value0Value1
0 Undefined--- ---
1 Undefined --- ---
2 Papertester Withpaper Withoutpaper
3 Undefined --- ---
4 Notinuse 0 0
5 Undefined --- ---
6 Undefined --- ---
7 Undefined --- ---
ESC uTransmit Status of Equipment
Format: ASCII:ESCun
SPRT Компания АВИОР www.avior.ru

9
Decimal: 27 117 n
Hexadecimal: 1B75 n
Explanation:
Send theperipheralequipmentstatus tothehost:
Default n=0
Whenprinterreceivedthiscommand,it transmits onebytethroughTXD
lineof theserialinterface tothehost.
Bit Function Value0 Value1
0 Cash draweron/off signallevel Low High
1 Undefined --- ---
2 Undefined --- ---
3 Undefined --- ---
4 Notinuse 0 ---
5 Undefined --- ---
6 Undefined --- ---
7 Undefined --- ---
Appendix1Performance Index
Printmethod:Directthermal
Printwidth:57.5 ±0.5mm
Validprintwidth:48mm
Printdensity:8dots/mm, 384 dots/line
Printspeed:approx.70mm/sec.or 20 lines/sec.
Reliability:
Printheadlife:50km
MCBF:5millionlines
Using condition:
*Print12 ×24 ASCII characters,print50 lineseachtime,
intermittentprintrepeatedly
*Eachdot-lineprinting atthesametimeshould notexceed25%,each
characterlineand onedotverticalprinting repeatedlyshould
notexceed11times
*Usespecifiedthermalpaper
SPRT Компания АВИОР www.avior.ru
Table of contents
Other SPRT Printer manuals