Tyco Electronics 17A2 manual Cash Drawer Port Signal Definition and Control

Page 44

Cash Drawer Port Signal Definition and Control

Pin #

Signal Name

1Frame Ground

2CD 1 Drawer kick-out drive signal 1

3SW ( + ) connected on the side of the open/closed detection switch on the drawer

4L ( + ) +12V DC for drawer kick-out supplied

5CD 2 Drawer kick-out drive signal 2

6( - ) Ground

Control

Below is the source code of the test application showing how the cash drawer port is implemented. The cash drawer is controlled by two GPIOS to open the drawer and one GPIO to read back status.

*/

#include <stdio.h> #include <conio.h> #include <time.h>

#define GPIO_BASE

0x480

 

#define

PMBASE

0x800

#define GPE0_STS3

PMBASE + 0x2B

#define

GP_LVL3

GPIO_BASE + 0x0F

#define

GPIO_2

 

0x08

#define

GPIO_3

 

0x10

#define CASH_STS_MSK

0x20

#define DRAWER1

 

0x01

#define DRAWER2

 

0x02

void Sleep(clock_t t);

 

 

int open_drawer(int drawer); /*

=============================================================================

Function:

Parameters:

Return:

Exit:

Description:

=============================================================================

Elo TouchSystems 17A2 User Guide 44

Image 44
Contents Touchcomputer User Guide Revision D E926979 Elo TouchSystems Elo TouchSystems Touchcomputer User GuideLCD Multifunction Touchcomputer Copyright c 2008 Tyco Electronics. All Rights Reserved DisclaimerTable of Contents Technical Support Setup Unpacking Your TouchcomputerProduct Overview Front View Rear ViewSide View Base Bottom View Display Orientation Display Orientation with Peripherals Initial Turn-On Language SelectionPage Time-zone selection Calibration Testing the TouchscreenTest Devices Testing in USB MSR Human Interface Device HID Mode Testing the Magnetic Stripe Reader MSR optionalTesting in USB MSR Keyboard KB Emulation Mode Converting MSR from Keyboard Emulation to HID and vice versa Testing the Customer Display optional Testing the Finger Print Reader optional Testing the Barcode Scanner optional Page Enabling 2-D Scanning Changing DVD region Testing the Speaker Bar optionalTesting the DVD Drive optional Testing the Wireless Card optional Testing the TV tuner optionalTesting the Cash Drawer Port Operation OSD Control OSD MenuOSD Lockout Shortcut keysTo lock the OSD To unlock the OSDPower Control Power ButtonPower Lockout To lock the PowerUsing the I/O panel KensingtonTM Lock PS/2 UniversalTV Tuner optional Securing the Touchcomputer Base Mounting OptionSnap off stand cover Mount as shownMounting Option Display Angle Upgrades Adding PeripheralsMaintenance Care and Handling of Your Touchcomputer Waste Electrical and Electronic Equipment Weee DirectiveTo Install the Hard Disk Drive Servicing the Hard Disk Drive and Compact Flash CardRecovering the Operating System To Install the Compact Flash CardTechnical Specifications Touchcomputer Specifications RAMPage RS485 Mode Pin Definitionfor COM2 only COM1, COM2 ConnectorRS232 ModeRS422 Mode Pin Definitionfor COM2 only Power Input Pin Definition RJ45 connector Pin DefinitionDB9 connector Pin Definition Cash Drawer Port Signal Definition and Control ControlPage Page Display Specifications Power Supply Specifications Touchscreen Specifications Peripherals Specifications Magnetic Stripe Reader MSRCustomer Display USB VersionFingerprint Reader One-Dimensional scanner specifications Omni-Directional scanner Elo P/N E787026 specificationsUSB-SSI converter board Elo P/N E580321 specifications Barcode ScannerSpeaker Bar DVD Drive Wireless Card TV Tuner CardEnvironmental Specifications Temperature RangesHumidity AltitudeUsing the Touchcomputer Using the Web Using the PhoneTechnical Support Technical AssistanceII. Emissions and Immunity Information Electrical Safety InformationRegulatory Information Page III. Safety Label Warranty Page Check out Elo’s Website