3.
Cabling
The host c ompu ter , ter minal, or point of sale
de vice is connecte d to the c ash drawer thr ough
a stan dard RS232 c able , the same as those
common ly use d to connect serial printers. Two
DB-25 connectors are provide d on the rear pane l
of the cash drawer – one male an d one fe male .
Either connec tor may be use d to communi cate
with the h ost de vice and the other may be used
to option ally connec t a printer or additional
drawers in daisy chain fashion.
Important Note:
The DB-9 connector is becomin g increasingly
popu lar as a re place ment to th e DB-25 conn ector
for serial por t applications. I f you point of sale
de vice uses th e DB-9 connec tor f or serial por t
output, it may be nec essary to obtain an adapter
to the D B-25 for m. Th ese can be purch ase d from
M-S C ASH DR AWER , your compu ter store , or an
electronics parts h ou se such as R ADI O SHAC K.
See Appen dix A f or dif ferences in pin-out.
4. Testing
A si mple operation al check of the KLI C interface
can be done in pu lse mode . Se t the switch bank s
for pulse mode an d apply a signal of 5 VDC to
12 VDC momen tarily between pin 2 (positive) to
pin 7 (ne gative ) of the interface cable . The
voltage source may be from th e compu ter buss or
simply a small battery. This check will test the
KLI C’s compu ter , power circuitry, sole noid driver,
as we ll as the dr awer circuitry. (Make sur e the
12 VDC plu g-in adapter is connec ted and
powered.)
Important Note:
Be sure to close the dr awer when perf or min g
tests. The KLI C interface is smart enou gh not to
energize the solen oid if the drawer is alr eady
open .
Serial Test Program
The f ollowing progr am is written in QB ASI C for I BM
compu ter s an d compatible s. The program
provides all the comman ds necessary to set u p
the serial por t and sen d ch arac ters to the dr awer
to te st your dr awer opening code .
10 CL S: I N P UT “ B AUD R AT E? ”; B AUD
20 CL S: K EY OFF :P R I NT ”R EADY …” :P R I N T :LOC AT E , ,1
30 OP EN “ COM 1:”+ ST R $( B AU D )+ ” ,E ,7 ,1 ,C S ,DS ” AS # 1
40 B$= I N K EY $:I F B$< > ””T H EN P RI N T #1,B$ ;
50 I F B$=”* ” T H EN EN D :R EM AST ERI SK T ERM I N AT ES
60 GOT O 40
Li ne 30 se ts u p the commu ni ca ti ons fi l e .
COM 1: Ac ti va te s a synch r onou s commu ni ca ti ons
a d a p te r 1
B AUD tra nsmi ssi on bi t ra te -sa me a s se t on K LI C
i nte rfa ce
E
u se e ve n p a ri ty
7
nu mb e r of tra nsmi t da ta bi ts
1
number of stop bi ts
CS
i gnore Cl ea r T o Se nd ( CTS ) s ta tu s
DS
i gnore Data Se t Ready (DSR ) s ta tus
MS-DOS Serial Test
Below is a te st progr am to test the cash drawer
from a DOS prompt in Serial Dead-En d mode on
COM1 :.
Sw i tche s se t to:
S W1 : 1 1 1 0 0 0 0 0
S W2 : 0 1 1 0 0 0 0 0
S W3 : 0 0 0 0 0 0 0 0
S W4 : 0 0 0 1 1 1 1 1
C:\ > mode com1:9 600 ,n ,8 ,1 < Ente r>
C:\ > cop y con C OM 1:
< Ente r>
^G
^Z
< E n te r>
^ G – H ol d Ctrl a n d p re s s G
^Z – H o l d Ctrl a n d p re s s Z
Parallel Test Program
Below is a test progr am in QB ASI C th at c an be
used to te st the KLI C interface in parallel mode .
10 CL S: K EY OFF :PRI NT “PAR ALLE L T EST RE ADY …”
:P RI N T :LOC AT E ,, 1
20 OP EN “ LP T 1:” FOR OUT P UT AS #1
30 B$= I N K EY $:I F B$< > ”” T H EN P RI N T #1,B$
40 I F B$= ”*” T H EN EN D : R EM AST ER I SK T ERM I N AT E S
50 GOT O 30
MS-DOS Parallel Test
Below is a te st progr am to test the cash drawer
from a DOS prompt in Par allel De ad-End mode.
Sw i tche s se t to:
S W1 : 1 1 1 0 0 0 0 0
S W2 : 0 0 0 1 1 1 1 1
S W3 : 1 1 1 1 1 1 1 1
S W4 : 1 1 1 0 0 0 0 0
C:\ > cop y con LP T 1: < E nte r>
^G
^Z
< E n te r>
^ G – H ol d Ctrl a n d p re s s G
^Z – H o l d Ctrl a n d p re s s Z