4pos POS-420 Expander plus User Manual

All-in-one point of sales system
Table of Contents

Advertisement

Quick Links

www.4pos.eu
POS-420 Expander plus
All-in-One Point of Sales System
User Manual
Before installing and operating the unit, please read this
user manual thoroughly and retain for reference.
Ver. Draft 1.0_2009/12/30

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the POS-420 Expander plus and is the answer not in the manual?

Questions and answers

Summary of Contents for 4pos POS-420 Expander plus

  • Page 1 POS-420 Expander plus All-in-One Point of Sales System User Manual Before installing and operating the unit, please read this user manual thoroughly and retain for reference. Ver. Draft 1.0_2009/12/30...
  • Page 2 How to Use This Manual This manual contains information to set up and use the POS-420 Expander plus. In addition, instructions are included for added hardware, upgrades, and optional items, as well as for software. Chapter 1 An introduction to what you find in the box and an overview of product specifications, appearance, and interface.
  • Page 3 Federal Communications Commission (FCC) Notice This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation.
  • Page 4 Copyright The information in this guide is subject to change without prior notice. The manufacturer shall not be liable for technical or editorial errors or omissions contained herein, nor for incidental or consequential damages resulting from the furnishing, performance, or use of this material. This manual contains information protected by copyright.
  • Page 5 Precautions 1. Please read these safety instructions carefully. 2. Keep this User Manual for later reference. 3. Disconnect this equipment from the AC outlet before cleaning. Do not use liquid or spray detergent for cleaning. Use only a moistened sheet or cloth. 4.
  • Page 6: Table Of Contents

    Contents Chapter 1 Introduction ....................1 Features ............................... 1 Specifications ............................1 Package Contents..........................3 Base System ............................4 Expandable Main Display ........................5 Convertible Pole-Type 2nd Display (optional) ..................6 Dimensions ............................7 Connector Panel ............................ 8 Chapter 2 Standard Hardware and Upgrades..............
  • Page 7 Driver Software List ..........................49 Intel Chipset Driver Installation ......................50 Intel Graphics Driver Installation ......................51 ELO Touch Screen Driver Installation....................52 Abon Touch Screen Driver Installation ....................54 Audio Driver Installation ........................56 Ethernet Driver Installation ........................57 Wireless LAN Driver Installation (optional) ....................
  • Page 8: Chapter 1 Introduction

    6 x COM, 8 x USB (1 x 5V, 1 x 12V), 1 x CF II • Flexible options: UPS, MSR, I-Button, Fingerprint, RFID, WiFi and Bluetooth • RoHS compliant Specifications POS-420 Expander plus 2 System Configuration ® CPU (μPGA) Intel Celeron M (up to 1.8GHz) System Chipset...
  • Page 9 Parallel Port 1 x bi-directional parallel port (D-SUB25) 2nd Display Port 1 x display port for 2nd LCD/VFD display Cash Drawer Port 1 x 12V or 24V RJ11 connector (maximum 2 drawers) LAN Port 1 x Giga LAN (10/100/1000Mbps Base-T), RJ45 connector Audio Port 1 x Line-out Speaker...
  • Page 10: Package Contents

    Package Contents The following items come standard with the POS-420 Expander plus: POS System Power Adaptor Utility and Main Board Chipset AC Power Cord Driver CD COM6 to RS-232C Adaptor Cable Options • Magnetic Stripe Reader (MSR) Module: triple track* •...
  • Page 11: Base System

    Base System Before you begin, take a few moments to become familiar with the POS-420 Expander plus. 15 inch Touch Screen System Box Handle USB Port Key Lock Power Button LCD Contrast Control Buttons Upper Hinge Lighter Lower Hinge Pole Base Cover...
  • Page 12: Expandable Main Display

    Expandable Main Display The four sides of the main display are specially designed for expandable functions and connect with one of the available internal USB ports or PS/2 for operation. Optimized for simple installation, these interfaces do not require any voltage setting adjustments. •...
  • Page 13: Convertible Pole-Type 2Nd Display (Optional)

    Convertible Pole-Type 2nd Display (optional) The pole-type 2nd display is for use with the POS system to display purchase prices and change amounts to customers. It is also capable of displaying advertising messages and announcements. Three types of pole mount display choices are available: a 8.9 inch LCD monitor, a 15 inch LCD monitor, and a 9 cm high, 2 lines with 20 characters each VFD.
  • Page 14: Dimensions

    Dimensions (Unit: mm)
  • Page 15: Connector Panel

    Connector Panel The POS-420 Expander plus's primary connector panel is located at the rear. To clearly see the connector panel you must remove the I/O cover and pole base cover. 2 x USB Display Port 12V/24V Selectable Cash Drawer 1 x 12V Powered USB...
  • Page 16: Standard Hardware And Upgrades

    Adjusting LCD Panel Height and Angle The POS-420 Expander plus is equipped with dual hinges to provide flexible adjustment of the LCD display and arm angle. The lower hinge is used for adjusting the arm angle, or the overall height of the POS system, whereas the upper hinge is used for adjusting the display viewing angle.
  • Page 17 Adjust View Angle To adjust the display viewing angle firmly grip the display, preferably with one hand on top of the panel, the other on the bottom, and rotate it on the hinge in the preferred direction. Adjust Arm Angle WARNING! Failure to completely release the lock may cause hinge damage when pressing down on the arm.
  • Page 18: Removing And Opening System Box

    Removing and Opening System Box CAUTION: To prevent loss of work and damage to the system or drive: If you are inserting or removing a drive, shut down the operating system properly, turn off the system, and unplug the power cord. Do not remove a drive while the system is on or in standby mode.
  • Page 19: Clearing Cmos

    6. Slide the system box cover in the direction of the arrow, then lift off and set aside. Clearing CMOS The POS-420 Expander plus's configuration (CMOS) may occasionally be corrupted. If it is, it will be necessary to clear the CMOS memory using jumper JP4. Please refer to Chapter 4 for the exact JP4 pin positions.
  • Page 20: Compact Flash Card Installation

    Compact Flash Card Installation 1. Turn off the system power properly through the operating system, then turn off any external devices. 2. Disconnect the power cord from the power outlet and disconnect any external devices. CAUTION: Regardless of the power-on state, voltage is always present on the main board as long as the system is plugged into an active AC outlet.
  • Page 21: Additional Memory Installation

    The memory sockets on the main board can be populated with up to two industry-standard DIMMs. The POS-420 Expander plus comes standard with at least one preinstalled DIMM. To achieve maximum memory performance, up to 2GB of memory can be added.
  • Page 22 3. Remove the system box and set it upside down. Remove the indicated screw to slide the RAM cover off. 4. If an existing memory card or cards need to be replaced, pull the ends of both metal latches away from the card to release it.
  • Page 23: Changing The Cpu On The Pi-915 Main Board

    Changing the CPU on the PI-915 Main Board The POS-420 Expander plus has two main board options, one features the 910 chipset which has the CPU directly mounted on the main board, the other is the 915 chipset featuring a PGA socket-type CPU.
  • Page 24 Pin 1 Indicator Lock Unlock 6. To release the current CPU, unlock the turn-screw with a screwdriver to the unlock position. 7. Carefully lift the CPU straight up and out of the socket. 8. Lower the replacement CPU into the socket and make sure the Pin 1 marker on the corner of the CPU corresponds with the Pin 1 Indicator of the socket.
  • Page 25 Pin 1 Indicator 9. Once the CPU is firmly in place, lock the turn-screw to the lock position. 10. Reattach the heatsink, taking special care to place it in its original position, and secure with its 4 screws. NOTE: When the PI-915 main board's heatsink is installed, please note that the bottom of side B must be placed over the CPU.
  • Page 26: Removing And Replacing The Sata Hard Disk

    PI-915 Heatsink Side 11. Replace the system box and cover. 12. Reconnect the power cord and any external devices, then turn on the system. The system should automatically recognize the replacement CPU device when the system power is turned on. Removing and Replacing the SATA Hard Disk NOTE: This system does not support Parallel ATA (PATA) hard drives.
  • Page 27 4. For easier access, tilt the panel back on its upper hinge. Remove the 2 screws that secure the HDD box, and carefully slide it out. 5. From the sides of the HDD box, remove all 4 screws and lift out the hard disk. 6.
  • Page 28: Optional Components And Peripherals

    DC-DC Board with Charger Top DC-DC Board with Charger Bottom NOTE: When the POS-420 Expander plus needs to shut down for a few days, disconnect the battery pack connector cable to avoid potential problems and extend UPS battery life. 1. Turn off the system power properly through the operating system, then turn off any external devices.
  • Page 29 3. Remove the system box and cover. 4. Remove the four screws that secure the DC-DC board on the chassis. 5. Gently lift up the left side of the DC-DC board and slide out it. 6. Replace a DC-DC board with charger function. 7.
  • Page 30 Locate Battery Power Cable and Connector 9. Connect the battery pack power cable to the J7 socket on the main board. Ensure correct connector polarity 10. Put the top of the battery holder on and secure with 2 screws. 11. Cover with the system box cover and place the system box back into the system unit. 12.
  • Page 31: Msr/Fingerprint/I-Button Module Installation

    MSR/Fingerprint/I-Button Module Installation NOTE: The MSR module can only be installed to its designated position and socket; the same with the wireless module. Their locations are not interchangeable. 1. Turn off the system power properly through the operating system, then turn off any external devices.
  • Page 32 NOTE: The MSR module configuration tool is put under <CD>\ Optional Module Data & Tool\MSR. If you need config MSR Module or test MSR module, please execute the utility under <CD>\ Optional Module Data & Tool\MSR...
  • Page 33: Wireless Module Installation

    Wireless Module Installation 1. Turn off the system power properly through the operating system, then turn off any external devices. 2. Disconnect the power cord from the power outlet and disconnect any external devices. CAUTION: Regardless of the power-on state, voltage is always present on the main board as long as the system is plugged into an active AC outlet.
  • Page 34: Rear Mount Vfd Installation (Need Install Rear Mount Usb Driver)

    Rear Mount VFD Installation (need install rear mount USB driver) 1. Turn off the system power properly through the operating system, then turn off any external devices. 2. Disconnect the power cord from the power outlet and disconnect any external devices. CAUTION: Regardless of the power-on state, voltage is always present on the main board as long as the system is plugged into an active AC outlet.
  • Page 35 6. Attach the hinge cover with two screws. 7. Reconnect the power cord and any external devices, then turn on the system. NOTE: The rear mound VFD module configuration utility is put under <CD>\ Optional Module Data & Tool\VFD\RearMount VFD. If you need it, please execute the utility under <CD>\ Optional Module Data &...
  • Page 36: Rfid Module Installation

    RFID Module Installation 1. Turn off the system power properly through the operating system, then turn off any external devices. 2. Disconnect the power cord from the power outlet and disconnect any external devices. CAUTION: Regardless of the power-on state, voltage is always present on the main board as long as the system is plugged into an active AC outlet.
  • Page 37: Cash Drawer Installation

    Cash Drawer Installation NOTE: Before connecting a cash drawer to the system, please make sure the driver voltage and cable pin assignment of the cash drawer matches the definition of the system's cash drawer port. Please refer to the Cash Drawer Power Select Connector section.
  • Page 38: Pole-Type 2Nd Display Module Installation

    Pole-Type 2nd Display Module Installation 1. Turn off the system power properly through the operating system, then turn off any external devices. 2. Disconnect the power cord from the power outlet and disconnect any external devices. CAUTION: Regardless of the power-on state, voltage is always present on the main board as long as the system is plugged into an active AC outlet.
  • Page 39 7. Reconnect the power cord and any external devices, then turn on VFD/LCD power. Finally, turn on the system power. NOTE: The Pole mound VFD module also follow the same procedure. And its configuration utility be put under <CD>\ Optional Module Data & Tool\VFD\PoleMount VFD .
  • Page 40: Adding A 15Cm Pole Tube Extension

    Adding a 15cm Pole Tube Extension 1. Turn off the system power properly through the operating system, then turn off any external devices. 2. Disconnect the power cord from the power outlet and disconnect any external devices. CAUTION: Regardless of the power-on state, voltage is always present on the main board as long as the system is plugged into an active AC outlet.
  • Page 41 7. Place the cable through the pole base, then twist the base and the pole firmly together. Reconnect the cable to the socket and the grounding cable with the screw. 8. Reinstall the pole-type 2nd display module.
  • Page 42: Chapter 4 Pi-91X Main Board Configuration

    Chapter 4 PI-91X Main Board Configuration Jumper and Connector Locations Connector Allocation Connector Function LPC Interface Connector Power LED & HDD LED & Power Switch & Reset Connector LVDS Panel Back Light Inverter Power Connector ATX-Power Connector for DC-DC (ATX-OUT) USB Connector Battery Connector J9,J10...
  • Page 43: Connectors Pin Assignments

    Connectors Pin Assignments LPC Interface Connector PIN No. Description PIN No. Description LAD0 +3.3V LAD1 PLT_RST# LAD2 LFRAME# LAD3 LPC_CLK Power LED / HDD LED / Power Switch / Reset Connector PIN No. Description PIN No. Description Power LED +3.3V HDD LED BP_PWRBTN# Reset...
  • Page 44 USBD+ Battery Connector PIN No. Description BAT+ DC_GND J9/J10 12VDC Fan Connector PIN No. Description Power pin Speed pulse output DC to DC Output Connector for DC-DC (DC-IN) PIN No. Description PIN No. Description DC_GND DC_GND DC_GND DC_IN DC_IN BAT+ BAT+ PS_ON# POWER GD...
  • Page 45: Jumper Settings

    Jumper Settings To set jumper positions, place the jumper shunt over the pins designated in the table (SHORT) or remove (NC) it from the jumper pins and store for future use. Default settings are indicated with a star sign ( ). JP1A CPU VCCA Voltage Input Selection PIN No.
  • Page 46: Chapter 5 I/O Board Configuration

    Chapter 5 I/O Board Configuration Default settings are indicated with a star sign ( ). The POS-420 Expander plus's I/O module has three I/O boards, including the IOTR board, a top I/O board, and a bottom I/O board. I/O Module Front (inside, facing front of system box)
  • Page 47 This connects to the system box main board. Cash Drawer Power Select Connector PIN No. Function 1-2 Short Cash Drawer Power=12V 2-3 Short Cash Drawer Power=24V COM1 Power Select Connector PIN No. Function Short +5V Output Short RI Function Short +12V Output COM2 Power Select Connector PIN No.
  • Page 48 SPK_R- PVDD PVDD RXO0- RXO0+ RXO1- RXO1+ RXO2- RXO2+ RXOCLK- RXOCLK+ RXO3- RXO3+ ON/OFF LCD_ADJ UD5- UD5+ UD6- UD6+ KB-CK KB-DA MD_2 Display I/O Connector PIN No. Description PIN No. Description SPK_L+ SPK_L- UD7- UD7+ SA0_TXP SA0_TXN SA0_RXN SA0_RXP TX_C RX_C RTS_C CTS_C...
  • Page 49 IOTR Board Bottom 2ND_DISPLAY 2nd Display 36 PIN PCI Express Connector PIN No. Description PIN No. Description DSR_D DTR_D RTS_D CTS_D TX_D RX_D DDCCLK VSYNC DDCDAT HSYNC BLUE TOP_BUS TOP_BUS 98 PIN PCI Express Connector This connects to the top I/O board's TOP_BUS. PIN No.
  • Page 50 RTS_D BLUE RX_D TX_D LINE_HP LINEO_L LINEO_R LAN_L2- LAN_L2+ UD4+ LAN_L1- UD4- LAN_L1+ LAN3- UD3+ LAN3+ UD3- LAN2- LAN2+ UD2+ LAN1- UD2- LAN1+ LAN0- UD1+ LAN0+ UD1- GND_LAN OUT1 IN_0 OUT0 Drawer Power Select Drawer Power Select BTM_BUS BTM_BUS 98 PIN PCI Express Connector This connects to the bottom I/O board's BTM_BUS.
  • Page 51 PIN No. Description PIN No. Description GND_FIELD DC_IN GND_FIELD DC_IN GND_FIELD DC_IN GND_FIELD DC_IN GND_FIELD DC_IN GND_FIELD DC_IN GND_FIELD DC_IN GND_FIELD DC_IN GND_FIELD DC_IN GND_FIELD DC_IN GND_FIELD DC_IN DTR_F RX_F DSR_F TX_F CTS_F DCD_F RTS_F RTS_E DTR_E RX_E DSR_E TX_E CTS_E DCD_E PSLCT...
  • Page 52: Top I/O Board: Connector Pin Definitions And Jumper Settings

    RTS_A DTR_A RX_A DSR_A TX_A CTS_A DCD_A Top I/O Board: Connector Pin Definitions and Jumper Settings The top I/O board transfers signals from the I/O ports to the IOTR board. These include: audio port, LAN, Cash Drawer, 5V Power USB, 12V Power USB, and USB. LINE_OUT Audio line Output EAR Connector PIN No.
  • Page 53: Bottom I/O Board: Pin Definitions And Jumper Settings

    PIN No. Description PIN No. Description UD1- UD1+ USB_B1 USB Port PIN No. Description PIN No. Description UD3- UD3+ UD4- UD4+ DRAW RJ-11 Cash drawer Port PIN No. Description PIN No. Description DGO_0 IN_0 V_DRAW DGO_1 Bottom I/O Board: Pin Definitions and Jumper Settings The bottom I/O board transfers signals from the I/O ports to the IOTR board.
  • Page 54 COM6 uses the RJ-45 connector to accept the VFD customer display. If the customer display is not required, this port may function as an RS-232C port. An adapter cable to convert RJ-45 to DB-9 is included in the POS-420 Expander plus's package contents. Jumpers on the circuit board must also be reconfigured as shown in the table.
  • Page 55 COM1 & COM2 & COM5 RS232 Port COM1, COM2, and COM5 D-Sub Connector PIN No. Description LPT1 Parallel Port LPT1 SCSI Connector PIN No. Description PIN No. Description STBX ACKX BUSY SLCT AFDX INITX SLINX GND_LPT GND_LPT GND_LPT GND_LPT GND_LPT GND_LPT GND_LPT GND_LPT...
  • Page 56: Chapter 6 Software Setup

    Chapter 6 Software Setup This system comes with a variety of drivers for different operating systems. A software CD is included in the package contents. Driver Software List Driver Driver Setup Location Intel Chipset <CD>:\Driver\POS-420\Intel INF Intel Graphics <CD>:\Driver\POS-420\VGA ELO Touch Screen <CD>:\Driver\POS-420\Touch\ELO Abon Touch Screen <CD>:\Driver\POS-420\Touch\Abon...
  • Page 57: Intel Chipset Driver Installation

    Intel Chipset Driver Installation 1. Run the Setup.exe file on the CD in folder 2. Click the Next button on the Welcome screen. <CD>:\Driver\POS-420\Intel INF 3. Click Yes on the License Agreement screen. 4. Click Next on the Information screen. 5.
  • Page 58: Intel Graphics Driver Installation

    Intel Graphics Driver Installation 1. Locate and Run the win2k_xp1425.exe file on 2. Click Next on the Startup screen. the CD in folder <CD>:\Driver\POS-420\VGA 3. Click Next on the Welcome screen. 4. Click Yes on the License Agreement screen. 6. When installation is complete, click Finish and 5.
  • Page 59: Elo Touch Screen Driver Installation

    ELO Touch Screen Driver Installation 1. Locate and Run the sw600188.exe file on the CD 2. Click Unzip on the WinZip Self-Extractor window. in folder <CD>:\Driver\POS-420\Touch\Elo 3. Select Default installation language then click 4. Select Install Serial Touchscreen Drivers and Next.
  • Page 60 7. Select COM3 then click Next. 8. Click Next. 10. After the computer has restarted, click the Align 9. When installation is complete, click Finish and button on the Elo Touchscreen Properties restart the system. screen. 11. Calibrate the three red points as instructed.
  • Page 61: Abon Touch Screen Driver Installation

    Abon Touch Screen Driver Installation 1. Locate and Run the autorun.exe file on the CD 2. Select Setup Touch Package (for all Windows- in folder <CD>:\Driver\POS-420\Touch\Abon Vista32. 3. Click Next. 4. Click Next. 5. Select Install RS232 driver and click Next. 6.
  • Page 62 7. Click Finish. 8. Click Continue Anyway. 9. Click OK to reboot the system. 10. Run the Touch Tool on the desktop. 11. Select Advance, then click 4 Pts Calibration.
  • Page 63: Audio Driver Installation

    Audio Driver Installation 1. Locate and Run the WDM_A381.exe file on the 2. Click Next on the Welcome screen. CD in folder<CD>:\Driver\POS-420\Audio 3. .Click Continue Anyway on the Hardware 4. When Installation is complete, click Finish. Installation screen.
  • Page 64: Ethernet Driver Installation

    Ethernet Driver Installation 1. Locate and Run the setup.exe file on the CD in 2. Select Modify then click Next. folder <CD>:\Driver\POS_420\GLAN 4. Click Continue Anyway on the Hardware 3. Click Default Feature and click Next. Installation Screen. 5. When installation is complete, click Finish.
  • Page 65: Wireless Lan Driver Installation (Optional)

    Wireless LAN Driver Installation (optional) 1. First, plug in the USB WLAN Interface Module. 2. Locate and Run the setup.exe file on the CD in folder <CD>:\Driver\Optional Module 3. Click Next on the License Agreement screen. driver\WLAN\802.11bg 4. Select Ralink Configuration Tool then click Next. 5.
  • Page 66 8. When installation is complete, click Finish.
  • Page 67: Rfid Driver Installation (Optional)

    RFID Driver Installation (optional) 1. Plug in the USB RFID Module and wait for the following screen. 3. Select Install from a list specific location then 2. Select Yes, this time only and then click Next. click Next. 5. Click Finish to complete the USB Serial Converter 4.
  • Page 68: Msr Driver Installation (Optional)

    MSR Driver Installation (optional) 1. First, plug-in the MSR module. 2. Reboot system to complete installation.
  • Page 69: Fingerprint Reader Driver Installation (Optional)

    Fingerprint Reader Driver Installation (optional) 1. Plug in the 2-in-1 Fingerprint Reader and MSR module. 2. Locate and Run the setup.exe file in folder <CD>:\Driver\Optional Module 3. Click Next on the Welcome screen. driver\FingerPrint\URU4000B\DP Plat frsw 3.2 4. Click Next on the License Agreement screen. 5.
  • Page 70 8. Click Yes to restart the system (required).
  • Page 71: Ic Card Reader Driver Installation (Optional)

    IC Card Reader Driver Installation (optional) 9. Plug in the 3-in-1 MSR, I-Button and IC Card Reader module. 10. Locate and Run the setup.exe file in folder <CD>:\Driver\Optional Module driver\IC Card 11. Select language, then click OK. Reader\EZ100PU Driver 12. Click Next on the Welcome screen. 13.
  • Page 72: System Driver Installation (Required For Cash Drawer And Ups)

    System Driver Installation (Required for Cash Drawer and UPS) 1. Locate and Run the setup.exe file in folder 2. Click Next on the Welcome screen. <CD>:\Driver\POS-420\System driver 4. Click Finish on the Completing installation screen. 3. Click Install on the Ready to Install screen. A system restart is required to complete the installation.
  • Page 73: Opos Cco Driver Installation

    OPOS CCO Driver Installation Before installing the OPOS CCO driver, please make sure the system driver has been installed. 5. Locate and Run the OposCCOs-1_12_000.exe 6. Click Next on the Welcome screen. file in folder <CD>:\Driver\OPOS\CCOs 7. Click Next on the ReadMe screen. 8.
  • Page 74 11. Click Next on the Start Installation screen. 12. Wait system registering the control object 13. Click Finish on the Installation Complete screen.
  • Page 75: Opos Driver Installation

    OPOS Driver Installation The OPOS driver for the POS-420 Expander plus supports the Cash Drawer, MSR, I-Button (KeyLock), RFID, VFD (Line Display), UPS (Power). Before installing the OPOS driver, please make sure the system driver and OPOS CCO driver have been installed.
  • Page 76: Appendix A. Sample C++ Cash Drawer Code For Windows

    Appendix A. Sample C++ Cash Drawer Code for Windows NOTE: Requires installation of System Driver. Refer to the System Driver Installation section for instructions. 1. Open Cash Drawer // IOCTL Codes #define GPD_TYPE 56053 #define ADV_OPEN_CTL_CODE CTL_CODE(GPD_TYPE, 0x900, METHOD_BUFFERED, FILE_ANY_ACCESS) #define ADV_STATUS_CTL_CODE CTL_CODE(GPD_TYPE, 0x901, METHOD_BUFFERED, FILE_ANY_ACCESS) void OpenDrawer(UCHAR uWhichDrawer) // uWhichDrawer = 1 =>...
  • Page 77 &ReadByte, sizeof(ReadByte), &ulBytesReturned, NULL); if (bRet == FALSE || ulBytesReturned != 1) AfxMessageBox("Failed to Read from cash drawer driver"); CloseHandle(hFile); return; else AfxMessageBox(ReadByte ? “Drawer Open” : “Drawer Closed”); CloseHandle(hFile);...
  • Page 78: Appendix B. Sample Visual Basic Cash Drawer Code For Windows

    Appendix B. Sample Visual Basic Cash Drawer Code for Windows NOTE: Requires installation of System Driver. Refer to the System Driver Installation section for instructions. ‘ Use inside a form’s code section and use Option Explicit Private Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" _ (ByVal lpFileName As String, ByVal dwDesiredAccess As Integer, _ ByVal dwShareMode As Integer, ByVal lpSecurityAttributes As IntPtr, _ ByVal dwCreationDisposition As Integer, ByVal dwFlagsAndAttributes As Integer, _...
  • Page 79 ' Get Drawer Status iRet = DeviceIoControl(DeviceHandle, ADV_STATUS_CTL_CODE, 0, 0, iStatus, 4, iBytesRtn, 0) If (iRet = 0 Or iBytesRtn <> 1) Then Debug.Print("Error writing to Cash Drawer Driver. Error" & Err.LastDllError) End If If (iStatus = 0) Then StatusText.Text = "Cash Drawer(s) Closed" Else StatusText.Text = "Cash Drawer(s) Open"...

Table of Contents