Elo TouchSystems 15A1 manual Cash Drawer Port Signal Definition and Control

Page 36

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 15A1 User Guide 36

Image 36
Contents Touchcomputer User Guide Elo TouchSystems Touchcomputer User Guide LCD Multifunction TouchcomputerRevision C E362310 Elo TouchSystems Copyright 2008 Tyco Electronics. All Rights Reserved DisclaimerTable of Contents Regulatory Information Warranty 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 Testing the Touchscreen Test DevicesCalibration Testing the Magnetic Stripe Reader MSR optional Testing in USB MSR Keyboard KB Emulation ModeTesting in USB MSR Human Interface Device HID Mode Converting MSR from Keyboard Emulation to HID and vice versa Testing the Customer Display optional Testing the Cash Drawer PortOperation 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 PS/2 Universal KensingtonTM LockSecuring the Touchcomputer Base Base Bottom View Mounting PatternDisplay Angle Upgrades Adding PeripheralsMaintenance Care and Handling of Your Touchcomputer Waste Electrical and Electronic Equipment Weee DirectiveTo Install Hard Disk Drive Servicing the Hard Disk DriveRecovering the Operating System Technical Specifications Touchcomputer Specifications RAMPage COM1, COM2 ConnectorRS232 Mode RS422 Mode Pin Definitionfor COM2 onlyRS485 Mode Pin Definitionfor COM2 only RJ45 connector Pin Definition DB9 connector Pin DefinitionPower Input Pin Definition Cash Drawer Port Signal Definition and Control ControlPage Page Display Specifications Display ModePower Supply Specifications Touchscreen Specifications Peripherals Specifications Magnetic Stripe Reader MSRCustomer Display USB VersionEnvironmental Specifications Temperature RangesUsing the Touchcomputer Using the Web Using the PhoneTechnical Support Technical AssistanceElectrical Safety Information Regulatory InformationII. Emissions and Immunity Information Page III. Safety Label Warranty Page Check out Elo’s Website