Вы находитесь на странице: 1из 17

FAQ obout E$CJFO$

All iiglls ieseived. No ail of llis ublicalion may be ieioduced, sloied in a ieliieval syslem, oi liansmilled in any
foim oi by any means, eleclionic, meclanical, lolocoying, iecoiding, oi olleiwise, willoul lle iioi wiillen
eimission of Seiko Lson Coioialion. No alenl liabilily is assumed will iesecl lo lle use of lle infoimalion
conlained leiein. Wlile eveiy iecaulion las been laken in lle ieaialion of llis book, Seiko Lson Coioialion
assumes no iesonsibilily foi eiiois oi omissions. Neillei is any liabilily assumed foi damages iesulling fiom lle use
of lle infoimalion conlained leiein.
Neillei Seiko Lson Coioialion noi ils affiliales slall be liable lo lle uiclasei of llis ioducl oi lliid ailies foi
damages, losses, cosls, oi exenses incuiied by uiclasei oi lliid ailies as a iesull of: accidenl, misuse, oi abuse of
llis ioducl oi unaulloiized modificalions, ieaiis, oi alleialions lo llis ioducl, oi (excluding lle U.S.) failuie lo
sliiclly comly will Seiko Lson Coioialions oeialing and mainlenance insliuclions.
Seiko Lson Coioialion slall nol be liable againsl any damages oi ioblems aiising fiom lle use of any olions oi
any consumable ioducls ollei llan llose designaled as Oiiginal LPSON Pioducls oi LPSON Aioved Pioducls by
Seiko Lson Coioialion. Tle conlenls of llis documenl aie coveied by one oi moie of alenls.
LPSON and LSC/POS

aie iegisleied liademaiks of Seiko Lson Coioialion.


127,&( Tle conlenls of llis manual aie subjecl lo clange willoul nolice.
Coyiigll 2OO2 by Seiko Lson Coioialion, Nagano, Jaan.
FAQ obouf F5CJFO5

1 Wlal is LSC/POS` . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Alicable iinlei models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
3 Command Nolalion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
3.1 Ccnlrc| Ccmmcnc: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4 Samle Piogiam (asic) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5 Seiial Conneclion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6 Self-lesl Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1
1 Whof |s F5CJFO5?
LPSON look lle inilialive by inlioducing LSC/POS

, a ioiielaiy POS iinlei command


syslem, wlicl includes alenled oi alenl ending commands and enables veisalile POS
syslem consliuclion will ligl scalabilily. Comalible will all lyes of LPSON POS iinleis and
dislays, llis ioiielaiy conliol syslem also offeis lle flexibilily lo easily make fuluie
ugiades. Ils oulaiily is woildwide.
LSC/POS

is designed lo ieduce lle iocessing load on lle losl comulei in POS


enviionmenls. Il comiises a sel of liglly funclional and efficienl commands llal enables lle
full iealizalion of lle olenlial of iinleis.
$ FRPPDQG VHW GHVLJQHG IRU XQLYHUVDO DSSOLFDELOLW\
Tle commands llal aie suoiled by all LPSON POS iinleis and llose llal aie secific lo
individual models aie cleaily desciibed. Tlis means llal LSC/POS

comalible soflwaie
will woik will any syslem and be suilable foi a wide iange of alicalions.
6XSHUE H[SDQGDELOLW\ DOORZLQJ WKH DGGLWLRQ RI QHZ IXQFWLRQV
New funclions can be added and accommodaled by lle calegoiies alieady iovided in lle
command syslem.
$OORZV PRUH HIIHFWLYH XVH RI VRIWZDUH
Once a soflwaie alicalion las been ciealed foi one iinlei in lle TM seiies, il can be used
as lle basis foi veisions foi lle ollei iinleis in lle seiies. Only a small oilion of lle
iogiam souice code needs lo be modified.
If you would like lo gel moie infoimalion aboul LSC/POS

commands, conlacl lle dealei


wleie you uiclased lle ioducl lo gel lle LSC/POS

Alicalion Piogiamming Cuide


(LSC/POS

APC).
2
2 App||cob|e pr|nfer mode|s
Tlis IAQ is foi TM-T9O, TM-L9O, TM- T88III, TM-J2OOO/21OO, TM-L6OII, TM-U2OO, and
TM-U23O. Tlese iinleis suoil commands wlicl aie desciibed in llis IAQ as slown in lle
following lable.
3 Commond Nofof|on
[Name] The name of the command.
[Format] The code sequence.
[ ]k indicates the contents of the [ ] should be repeated k times.
[Range] Gives the allowable ranges, if any, for the arguments.
[Default] Gives the default values, if any, for the command parameters.
[Description] Describes the function of the command.
Commond Nome
I
M
-
I

0
I
M
-
L

0
I
M
-

I
8
8
I
I
I
I
M
-
I
8
8
I
I
I
M
-
J
2
0
0
0
J
2
1
0
0
I
M
-
L

0
I
I
I
M
-
b
2
0
0

s
e
r
|
e
s
I
M
-
b
2
3
0
LF Frinl cnc |ine feec
ESC l Se|ecl prinl mcce{:)
ESC Iurn uncer|ine mcce cn/cff
ESC @ lnilic|ize prinler
ESC E Iurn emphc:izec mcce cn/cff
ESC G Iurn ccuL|e-:lrike mcce cn/cff
ESC M Se|ecl chcrccler fcnl -- -- --
ESC c Se|ecl ju:lificclicn
ESC c 3 Se|ecl pcper :en:cr{:) lc culpul pcper-enc :ignc|:
ESC c Frinl cnc feec n |ine:
ESC e Frinl cnc rever:e feec n |ine: -- -- -- -- --
ESC p Generc| pu|:e
ESC r Se|ecl prinl cc|cr -- -- -- --
ESC l Se|ecl chcrccler ccce lcL|e
GS 8 Iurn while/L|cck rever:e prinling mcce cn/cff
GS V Se|ecl cul mcce cnc cul pcper --
GS h Sel Lcr ccce heighl -- --
GS k Frinl Lcr ccce -- --
3
3.1 Confro| Commonds
LF
[Name] Print and line feed
[Format] ASCII LF
Hex 0A
Decimal 10
[Description] Prints the data in the print buffer and feeds one line based on the current line spacing.
ESC ! n
[Name] Select print mode (s)
[Format] ASCII ESC ! n
Hex 1B 21 n
Decimal 27 33 n
[Range] 0 n 255
[Default] n = 0
[Description] Selects the character font and styles (emphasize, double-height, double-width, and
underline) together.
8|t O||JOn Hex Dec|mo| Funct|on
0 Cff 00 0 Chcrccler fcnl / :e|eclec.
Cn 01 1 Chcrccler fcnl 8 :e|eclec.
1, 2 Cff 00 0 Fe:ervec.
3 Cff 00 0 Emphc:izec mcce ncl :e|eclec.
Cn 08 8 Emphc:izec mcce :e|eclec.
4 Cff 00 0 DcuL|e-heighl mcce ncl :e|eclec.
Cn 10 1 DcuL|e-heighl mcce :e|eclec.
5 Cff 00 0 DcuL|e-wiclh mcce ncl :e|eclec.
Cn 20 32 DcuL|e-wiclh mcce :e|eclec.
Cff 00 0 Fe:ervec.
7 Cff 00 0 Uncer|ine mcce ncl :e|eclec.
Cn 80 128 Uncer|ine mcce :e|eclec.
4
ESC n
[Name] Turn underline mode on/off
[Format] ASCII ESC n
Hex 1B 2D n
Decimal 27 45 n
[Range] 0 n 2, 48 n 50
[Default] n = 0
[Description] Turns underline mode on or off, based on the following values of n:
Note:
|cr |nc TM-U230 cr TM-U210, |nc rangc is n = 0, 1, 48, 49
ESC @
[Name] Initialize printer
[Format] ASCII ESC @
Hex 1B 40
Decimal 27 64
[Description] Clears the data in the print buffer and resets the printer modes to the modes that were
in effect when the power was turned on.
ESC E n
[Name] Turn emphasized mode on/off
[Format] ASCII ESC E n
Hex 1B 45 n
Decimal 27 69 n
[Range] 0 n 255
[Default] n = 0
[Description] Turns emphasized mode on or off.
When the LSB of n is 0, emphasized mode is turned off.
When the LSB of n is 1, emphasized mode is turned on.
n Funct|on
0, 48 Iurn: cff uncer|ine mcce
1, 4 Iurn: cn uncer|ine mcce, :el cl 1-ccl wiclh
2, 50 Iurn: cn uncer|ine mcce, :el cl 2-ccl wiclh
5
ESC G n
[Name] Turn double-strike mode on/off
[Format] ASCII ESC G n
Hex 1B 47 n
Decimal 27 71 n
[Range] 0 n 255
[Default] n = 0
[Description] Turns double-strike mode on or off.
When the LSB of n is 0, double-strike mode is turned off.
When the LSB of n is 1, double-strike mode is turned on.
ESC M n
[Name] Select character font
[Format] ASCII ESC M n
Hex 1B 4D n
Decimal 27 77 n
[Range] 0 n 2, 48 n 50
[Default] n = 0
[Description] Selects character fonts
Note:
Scmc prin|crs dcn| natc fcn| C. Scc |nc |SC/POS

App|ica|icn Prcgramming Guidc (|SC/POS


APG).
ESC a n
[Name] Select justification
[Format] ASCII ESC a n
Hex 1B 61 n
Decimal 27 97 n
[Range] 0 n 2, 48 n 50
[Default] n = 0
[Description] Aligns all the data in one line to the position specified by n as follows:
n Funct|on
0, 48 Chcrccler fcnl / :e|eclec.
1, 4 Chcrccler fcnl 8 :e|eclec.
2, 50 Chcrccler fcnl C :e|eclec.
n Just|||cot|on
0, 48 Lefl ju:lificclicn
1, 4 Cenlering
2, 50 Fighl ju:lificclicn
6
ESC c 3 n
[Name] Select paper sensor(s) to output paper-end signal
[Format] ASCII ESC c 3 n
Hex 1B 63 33 n
Decimal 27 99 51 n
[Range] 0 n 255
[Default] n = 0
[Description] Selects whether to output paper-end signal to a parallel interface or not when a
paper-end is detected by the sensor selected, using n as follows:.
ESC d n
[Name] Print and feed n lines
[Format] ASCII ESC d n
Hex 1B 64 n
Decimal 27 100 n
[Range] 0 n 255
[Default] Prints the data in the print buffer and feeds n lines.
ESC e n
[Name] Print and reverse feed n lines
[Format] ASCII ESC e n
Hex 1B 65 n
Decimal 27 101 n
[Range] 0 n 255
[Description] Prints the data in the print buffer and feeds n lines in the reverse direction.
8|t O||JOn Hex Dec|mo| Funct|on
0 Cff 00 0 Fcper rc|| necr-enc :en:cr ci:cL|ec.
Cn 01 1 Fcper rc|| necr-enc :en:cr encL|ec.
1 Cff 00 0 Fcper rc|| necr-enc :en:cr ci:cL|ec.
Cn 02 2 Fcper rc|| necr-enc :en:cr encL|ec.
2 Cff 00 0 Fcper rc|| enc :en:cr ci:cL|ec.
Cn 04 4 Fcper rc|| enc :en:cr encL|ec.
3 Cff 00 0 Fcper rc|| enc :en:cr ci:cL|ec.
Cn 08 8 Fcper rc|| enc :en:cr encL|ec.
4 7 Cff 00 0 Fe:ervec.
7
ESC p m t1 t2
[Name] Generate pulse
[Format] ASCII ESC p m t1 t2
Hex 1B 70 m t1 t2
Decimal 27 112 m t1 t2
[Range] m = 0, 1, 48, 49
0 t1 255
0 t2 255
[Description] Outputs the pulse specified by t1 and t2 to connector pin m to open the chash drawer,
as follows:
t1 specifies the pulse ON time as [t1 2 ms].
t2 specifies the pulse OFF time as [t2 2 ms].
Note:
|cr |nc TM-U230.
|f |1 < 50, |1 sncu|d |c 50. |f |2 < 50, |2 sncu|d |c 50.
|cr |nc TM-U210, |f |2 < 50, |2 sncu|d |c 50.
ESC r n
[Name] Select printing color
[Format] ASCII ESC r n
Hex 1B 72 n
Decimal 27 114 n
[Range] 0 n 1, 48 n 49
[Default] n = 0
[Description] Selects the printing color specified by n
When n = 0,48, color 1 is selected.
When n = 1,49, color 2 is selected.
Note:
|cr |nc TM-]2100/2000, i| is rcccmmcndcd |c c||ain |nc |SC/POS

App|ica|icn prcgramming Guidc


(|SC/POS

APG), unicn dcscri|cs |nc rcccmmcndcd cpcra|icn fcr 2 cc|cr prin|ing ccn|rc|.
m Funct|on
0, 48 Drcwer kick-cul ccnneclcr pin 2.
1, 4 Drcwer kick-cul ccnneclcr pin 5.
8
ESC t n
[Name] Select character code table
[Format] ASCII ESC t n
Hex 1B 74 n
Decimal 27 116 n
[Range] Except for Thai model:0 n 5, 16 n 19, n = 255
For Thai model: 0 n 5, 16 n 26, n = 255
[Default] Except for Thai model:n = 0
For Thai model: n = 20
[Description] Selects a page n from the character code table.
{20 Q 2) i: :uppcrlec cn|y Ly lhe Ihci mcce|.
Note:
|or the TM-L60ll: The runge is 0 n 5, n = 255
|or the TM-U230: The runge is 0 n 5, n = 19, 254,255
|or the TM-U210: The runge is 0 n 5, 19 n 26, n = 254, 255
n $e|ected chorocter code
0 FC437 {US/: Slcnccrc Eurcpe)
1 Kclckcnc
2 FC850 {Mu|li|inguc|)
3 FC80 {Fcrlugue:e)
4 FC83 {Ccnccicn-French)
5 FC85 {Ncrcic)
1 WFC1252
17 FC8 {Cyri||ic 2)
18 FC852 {Lclin 2)
1 FC858 {Eurc)
20 Ihci chcrccler ccce 42
21 Ihci chcrccler ccce 11
22 Ihci chcrccler ccce 13
23 Ihci chcrccler ccce 14
24 Ihci chcrccler ccce 1
25 Ihci chcrccler ccce 17
2 Ihci chcrccler ccce 18
254 U:er-cefinec pcge
255 U:er-cefinec pcge
9
GS B n
[Name] Turn white/black reverse printing mode on/off
[Format] ASCII GS B n
Hex 1D 42 n
Decimal 29 66 n
[Range] 0 n 255
[Default] n = 0
[Description] Turns white/black reverse printing mode on or off.
When the LSB of n is 0, white/black reverse mode is turned off.
When the LSB of n is 1, white/black reverse mode is turned on.
GS V m (Function A)
GS V m n (Function B)
[Name] Select cut mode and cut paper
[Format] ASCII GS V m (Function A)
Hex 1D 56 m
Decimal 29 86 m
ASCII GS V m n (Function B)
Hex 1D 56 m n
Decimal 29 86 m n
[Range] 0 n 255
(Function A) m = 0, 1, 48, 49
(Function B m = 65, 66
[Description] Cuts paper in the specified mode.
The paper is completely or partially (with one point left uncut) cut depending on the printer model.
GS h n
[Name] Select bar code height
[Format] ASCII GS h n
Hex 1D 68 n
Decimal 29 104 n
[Range] 1 n 255
[Default] n = 162
[Description] Selects the height of the bar code as n dots.
m Funct|on
Funclicn / 0, 48 Execule: c fu|| cul {cul: lhe pcper ccmp|ele|y).
1, 4 Execule: c pcrlic| cul {cne pcinl |efl uncul).
Funclicn 8 5 Feec: pcper lc {culling pc:ilicn + n verlicc| mclicn unil) cnc
execule: c fu|| cul {cul: lhe pcper ccmp|ele|y).
Feec: pcper lc {culling pc:ilicn + n verlicc| mclicn unil) cnc
execule: c pcrlic| cul {cne pcinl |efl uncul).
10
GS k m d1...dk NUL
GS k m n d1...dn
[Name] Print bar code
[Format] ASCII GS k m d1...dk NUL
Hex 1D 6B m d1...dk 00
Decimal 29 107 m d1...dk 0
ASCII GS k m n d1...dn
Hex 1D 6B m n d1...dn
Decimal 29 107 m n d1...dn
[Range] 0 m 6 (k and d depend on the bar code system used)
65 m 73 (n and d depend on the bar code system used)
[Description] Selects a bar code system and prints the bar code.
Note:
Rcfcr |c |nc |SC/POS

App|ica|icn Prcgramming Guidc (|SC/POS

APG) fcr dc|ai|s cf prin|ing


|arccdc.
For
m 8or Code $ystem konge o| k konge o| d
0 UFC-/ 11 k 12 48 d 57
1 UFC-E 11 k 12 48 d 57
2 J/N13{E/N13) 12 k 13 48 d 57
3 J/N8{E/N8) 7 k 8 48 d 57
4 CCDE3 1 k 48 d 57,65 d 90,
G =
32,3,37,43,45,4,47
5 lIF 1 k (even number) 48 d 57
CCD/8/F
{NW7)
1 k 48 d 57,65 d 68,
G = 3,43,45,4,47,58
For
m 8or Code $ystem konge o| n konge o| d
5 UFC-/ 11 n 12 48 d 57
UFC-E 11 n 12 48 d 57
7 J/N13{E/N13) 12 n 13 48 d 57
8 J/N8{E/N8) 7 n 8 48 d 57
CCDE3 1 n 255 48 d 57,65 d 90,
G =
32,3,37,43,45,4,47
70 lIF 1 n 255 (even
number)
48 d 57
71 CCD/8/F
{NW7)
1 n 255 48 d 57,65 d 68,
G = 3,43,45,4,47,58
72 CCDE3 1 n 255 0 d 127
73 CCDE128 2 n 255 0 d 127
11
4 5omp|e Frogrom (8os|c)
Piinl Im
3ULQW LPDJH
PRINT #1, CHR$(&H1B);"@"; 'Initializes the printer (ESC @)
PRINT #1, CHR$(&H1B);"a";CHR$(1);'Specifies a centered printing position (ESC a)
PRINT #1, CHR$(&H1B);"!";CHR$(0); 'Specifies font A (ESC !)
PRINT #1, "January 14, 2002 15:00";
PRINT #1, CHR$(&H1B);"d";CHR$(3); 'Prints and 3 line feeding (ESC d)
PRINT #1, CHR$(&H1B);"a";CHR$(0); 'Selects the left print position (ESC a)
PRINT #1, CHR$(&H1B);"!";CHR$(1); 'Selects font B
PRINT #1, "TM-U210B $20.00";CHR$(&HA);
PRINT #1, "TM-U210D $21.00";CHR$(&HA);
PRINT #1, "PS-170 $17.00";CHR$(&HA);
PRINT #1, CHR$(&HA); 'Line feeding (LF)
PRINT #1, CHR$(&H1B);"!";CHR$(17); 'Selects double-height mode
PRINT #1, "TOTAL $58.00"; CHR$(&HA);
PRINT #1, CHR$(&H1B);"!";CHR$(0); 'Cancels double-height mode
PRINT #1, "------------------------------";CHR$(&HA);
PRINT #1, "PAID $60.00";CHR$(&HA);
PRINT #1, "CHANGE $ 2.00";CHR$(&HA);
PRINT #1, CHR$(&H1D);"V";CHR$(66);CHR$(0); 'Feeds paper & cut
Drawer Kick (ESC p)
PRINT #1, CHR$(&H1B); CHR$(&H70); CHR$(&H0); CHR$(60); CHR$(120);
l0l-| :
Januaiy 14, 2OO2 15:OO
TM-U21O $2O.OO
TM-U21OD $21.OO
PS-17O $17.OO
-----------------------------------------
PAID $6O.OO
CHANCL $ 2.OO
12
5 5er|o| Connecf|on
Wlen lle TM iinlei is connecled lo lle losl PC will a seiial inleiface, lle usable seiial cioss
cable is as follows:
5e|f-fesf Mode
In self-lesl mode, lle following ilems aie clecked and iinled oul:
- Conliol soflwaie veision
- DIP swilcl sellings
And olleis.
Use lle following ioceduie lo slail a self-lesl.
1. To slail lle selflesl, lold down lle ILLD bullon (*1)(*2) and luin on lle iinlei will lle ioll
aei covei closed.
Note:
(1) |cr |nc TM-]2000/2100, nc|d dcun |nc PAP|R |||D |u||cn ins|cad cf |nc |||D |u||cn.
(2) |cr |nc TM-|90, |ccp nc|ding dcun |nc |||D |u||cn un|i| |nc |RROR ||D ccmcs cn.
2. Aflei iinling lle cuiienl iinlei slalus, lle iinlei iinls lle message lo slow lle slandby
slale, llen lle aei oul LLD blinks. Tle iinlei is now in lle self-lesl wail mode.
3. To slail a lesl iinl, iess lle FEED bullon wlen lle iinlei is in lle self-lesl wail mode.
4. Make suie llal lle following message is iinled.
*** completed ***
SEIKO EPSON CORPORATION
FrinIec in Jcpcn
2002.12
EPSON

Вам также может понравиться