Chapter 12: Cash Drawer Interface
Introduction
Thisdocumentisintendedtobeaguideforwritingsoftwaretousethe
7402cashdrawerinterface.Itisintendedtoassistsoftwareengineersto
designandcodesoftwaretocontrolthecashdrawerport.Thisisnota
specificationonthecashdrawerinterface.Thesamplecodeincluded
has
notbeencompiledortestedbutcanbehelpfulincodingthecash
drawerinterface.
The7402cashdrawerinterfacehasuniquesignalsto:
• controlthecashdrawersolenoid(s)forupto2cashdrawers.
• enablethearmingofanexternaldrivingcircuit.
• forreportingthestatus
ofthedrawer,eitheropenorclose(input
signal).
Logic Description
long Initialize( );
Initialize()createsthemutexhandlesandopenstheNCRport
driveriftheOSrequiresit.
void Terminate();
Terminate()closesthehandlestothemutexesandtheNCRport
driverifopened.
long OpenPort();
OpenPort()initializestheportbycallingQueryConf()andsetsthe
solenoidcontrolbitsandthearmingbit
toinputs.