APG 212A User Manual

Model 212A Smart SerialPRO® Interface
User’s Guide
Functional Description
Your APG cash drawer includes the 212A Smart SerialPRO® Interface that provides a programmable RS232 serial connection to the RS232 serial port of the host device (computer, terminal, etc.). The cash drawer will open when it receives an ASCII sequence (1 or 2 characters:
identical or different) that matches the dip switch settings on the bottom of the cash drawer. The interface requires an external power supply provided by APG. The interface has diagnostic lights to assist in installation and troubleshooting. Serial port sharing is accomplished using a “Y” connector, an integral part of the APG supplied cable. This interface is capable of sharing the serial port with other Point of Sale peripheral devices, such as bar code scanner, serial printer, pole display, or another cash drawer. When properly configured, the cash drawer and other devices will share the same information transmitted from the serial port but each will respond to that information independently.
The unique design of this interface allows you to select serial port parameters such as baud rates from 300 to 19200, parity, data bit word length. The number of opening characters (1 or 2), PC or terminal operation, and the ASCII opening character sequence are also selectable. The DIP switches for these options are conveniently located on the bottom of the cash drawer unit near the cable exit. Drawer reporting status is configurable with jumpers inside the cash drawer. Hardware handshaking is also configurable inside the cash drawer with jumpers on the interface board.
The interface includes a “Y” cable for connection to the serial port. As a standard product, this cable is equipped with 25 pin female (DB25F) connectors and a 25 pin male (DB25M) connector. A 25 pin male (DB25M) to 9 pin male (DB9M) gender changer and a 25 pin male (DB25M) to 9 pin female (DB9F) gender changer are both included with the cash drawer.
Support for MacIntosh® RS422 Interface
The 212A Smart SerialPRO® Interface can be used with a MacIntosh host device by adding the APG Cash Drawer MacIntosh cable adapter kit. The part number for the adapter kit is M-16E-0212A-MACKIT and is available from APG Cash Drawer or your Point Of Sale hardware dealer. This kit consists of a DB25 male to 8 pin mini-DIN male cable adapter and a DB25 female to 8 pin mini-DIN female cable adapter. Both cables connect to the “Y” cable provided with the cash drawer.
In order to properly interface to the MacIntosh system, switch #5 on Bank C must be changed to the ON position. Since the MacIntosh does not follow a transmitted signal with a parity check, changing switch #5 on Bank C to the ON position will disable any parity check performed by the cash drawer. Follow the remainder of the instructions to finish configuring the cash drawer.
I. Configuration and Use
This Guide assumes the user has some technical experience connecting computer peripherals.
1. Verify DIP switch and jumper settings are applicable to the system. The DIP switches (see
interface board are accessible from the bottom of the cash drawer unit.
2. The jumper settings (see
access the jumpers if required.
3. Connect the cash drawer to the appropriate dedicated RS-232 serial COM port on the host device with the “Y” cable
using the connector labeled “SERIAL PORT”. If the serial port will be shared, plug the other device into the short end of the “Y” cable by removing the plastic cap over the DB25 male connector marked “AUX DEVICE”. This connector is a physical extension of the serial port with all 25 pins corresponding to those on the serial port.
4. Plug the power supply into a suitable 110 VAC power source. Connect the DC plug of the power supply into the jack
located adjacent to the DIP switches on the bottom of the cash drawer.
5. If desired, attach the self-adhesive DIP switch definition sticker to the bottom of the cash drawer, next to the DIP
switch opening for quick reference.
6. Open the cash drawer through the software, or refer to step 7 below.
7. Transmit the opening character(s) from the host to open cash drawer. See
Figure 1
) are accessible from inside the cash drawer. Remove the till and inner drawer to
Section IIA, B,
Figure 6
and C for examples.
) on the electrical
II. Cash Drawer Testing
The following examples will illustrate how to open the drawer with the original factory switch settings. If the operating system is Windows™ environment, use the DOS window for the command entry. COM1 is used throughout this example. Replace COM1 with COM2, etc., if appropriate. Type the
bold letters
into the computer.
A. Opening the Cash Drawer using DOS
1. Verify the switches on the cash drawer are set to the original factory settings. Refer to
these settings.
2. Set the Mode command, which will define the communication parameters of the serial port.
C:\>MODE COM1:9600,O,7,1 ("
3. The following command will transmit all of the files in the directory out to the serial port. If the cash drawer is
connected properly, the yellow indicating light inside the cash drawer will flash as characters are received.
C:\>DIR >COM1 ("
4. The following command will transmit two left bracket characters to open the cash drawer.
C:\>ECHO [[>COM1 ("
At this point, the cash drawer should open with the original factory dip switch setting.
Enter
" key)
Enter
" key)
Enter
" key)
Figure 6
in
Section III.B
for
B. Opening the Cash Drawer using BASIC
To open drawer in Basic:
OPEN "COM1:9600,O,7,1,CS,DS,CD" FOR RANDOM AS #1 PRINT #1, "[[": REM – TWO LEFT BRACKET CHARACTERS
There are two options for reading drawer status in Basic:
START = TIMER: WHILE TIMER < START + .2: WEND REM – 200 mSEC ALLOWS DRAWER TO OPEN BEFORE CHECKING STATUS CODE%=INP(&H3FE): REM – ASSUMING COM1 USED
1) Reading CTS drawer status in Basic (See
IF (CODE% AND 16) = 16 THEN PRINT "–CTS OPTION - DRAWER CLOSED" IF (CODE% AND 16) = 0 THEN PRINT "–CTS OPTION - DRAWER IS OPEN"
2) Reading RI drawer status in Basic (See
IF (CODE% AND 64) = 64 THEN PRINT "–RI OPTION - DRAWER CLOSED" IF (CODE% AND 64) = 0 THEN PRINT "–RI OPTION - DRAWER IS OPEN"
Figure 4
Figure 5
):
):
C. Opening the Cash Drawer using Visual Basic
Install the Microsoft COM control into the Components bar. Add MSCOMM to the form and the following into the code as applicable.
MSComm1.CommPort = 1 ‘ Define COM1 as port to be opened MSComm1.PortOpen = True ‘ Open the serial port MSComm1.RTSEnable = True ‘ Turn RTS high MSComm1.DTREnable = True ‘ Turn DTR high
...
MSComm1.Output = “[[“ ‘ Transmit characters to open cash drawer
...
If MSComm1.CTSHolding Then ‘ Cash drawer is closed if CTS status enabled
...
Note that RI for cash drawer status is not adequately supported in Visual Basic. OPOS drivers (which support both methods for drawer status, RI & CTS) are available for developers from the APG website: http://www.apgcd.com.
III. Jumper and Switch Setup
The 212A Smart SerialPRO® Interface does not require hardware handshaking for proper operation. Any hardware handshaking that the host requires for peripheral devices is accomplished directly on the interface board with pin jumpers, which can be reconfigured for specific requirements. The cash drawer comes equipped with a drawer status switch, which can be used to signal the host whether the drawer is opened or closed. Pin jumpers on the interface board select the serial port status line that reports drawer status. Three (3) sets of DIP switches are located on the bottom of the cash drawer, next to the connector for the interface cable. These switches configure the opening characters and the serial port operation. It is not necessary to remove power when changing the dip switch settings.
A. Jumper Settings
Figure 1
Factory Default Setting
Jumper block J1 configures the DSR-DTR-DCD hardware handshaking. The cash drawer is configured at the factory for full DTR handshaking. In special circumstances where hardware handshaking is not needed or desired, the appropriate jumpers can be removed from the interface board. When sharing the same serial port with other devices, we recommend that one of the other devices controls hardware handshaking and the jumpers on the interface should be removed. Remove the left jumper on J1 to disconnect DSR-DTR handshaking. Remove the right jumper on J1 to disconnect DTR­DCD handshaking. Remove all jumpers on J1 to disable DTR handshaking as shown in Figure 2.
Figure 2
Jumper block J2 configures the RTS-CTS hardware handshaking and allows for reporting of cash drawer status. Unless otherwise specified, the drawer is configured with the status switch disabled at the factory, and RTS-CTS handshaking enabled.
To disable the Return To Send (RTS) and Clear To Send hardware handshaking, remove the jumper over the right two pins, as shown in Figure 3.
The cash drawer can be configured to report the opened/closed status on the Clear To Send (CTS) line, pin 5 on a 25 pin port, as shown in Figure 4. Note that RTS-CTS handshaking will be disabled.
The cash drawer can be configured to report the opened/closed status on the Ring Indicator (RI) line, pin 22 on a 25 pin port, as shown in Figure 5.
Figure 3 Figure 4 Figure 5
When the cash drawer is closed, the switch status line is electrically high, and when the drawer is open, the status line is electrically low.
B. Switch Settings
Banks A and B define the ASCII character(s) that the cash drawer will recognize as its opening sequence. Refer to
for the proper switch settings for a particular ASCII character. Refer to the software supplier to determine the ASCII
#1
sequence used as the cash drawer opening code. If one ASCII character is sent by the software package to open the cash drawer, then only switch bank A must be set to match this character. Bank B settings will be ignored in one character mode. If two characters are sent by the software package to open the cash drawer, then Bank A is the first character, and Bank B is the second character.
Bank C interprets the COM port parameters of the signal. Bank C switch settings are defined as follows:
1 2 3 Baud Rate OFFonon300 on OFF on 600 OFF OFF on 1200 on on OFF 2400 OFF on OFF 4800
on OFF OFF 9600
OFF OFF OFF 19,200
4 5 Parity OFF on None on OFF Even
OFF OFF Odd
Chart
6 Data Bits
on 7
OFF 8
7 Opening Characters on 1
OFF 2
8_ Host Device
on DCE (Computer)
OFF DTE (Terminal)
The APG default settings are shown as
*
bold text
Bank A
Bank B
Bank C
above.
Figure 6
Chart #1 – ASCII Character Settings for Switch Banks A and B
NON-PRINTABLE ASCII CHARACTERS PRINTABLE ASCII CHARACTERS
ASCII Control Dec. Hex DIP Switch Setting ASCII Dec. Hex DIP Switch Setting Char. Character Num Num 1 2 3 4 5 6 7 8 Char. Num Num 1 2 3 4 5 6 7 8  NUL [Ctrl] @ 0 0 on on on on on on on on @ 64 40 on on on on on on OFF on SOH [Ctrl] A 1 1 OFF on on on on on on on A 65 41 OFF on on on on on OFF on STX [Ctrl] B 2 2 on OFF on on on on on on B 66 42 on OFF on on on on OFF on ETX [Ctrl] C 3 3 OFF OFF on on on on on on C 67 43 OFF OFF on on on on OFF on EOT [Ctrl] D 4 4 on on OFF on on on on on D 68 44 on on OFF on on on OFF on ENQ [Ctrl] E 5 5 OFF on OFF on on on on on E 69 45 OFF on OFF on on on OFF on ACK [Ctrl] F 6 6 on OFF OFF on on on on on F 70 46 on OFF OFF on on on OFF on BEL [Ctrl] G 7 7 OFF OFF OFF on on on on on G 71 47 OFF OFF OFF on on on OFF on BS [Ctrl] H 8 8 onononOFFonononon H 72 48 onononOFFononOFFon HT [Ctrl] I 9 9 OFF on on OFF on on on on I 73 49 OFF on on OFF on on OFF on LF [Ctrl] J 10 A on OFF on OFF on on on on J 74 4A on OFF on OFF on on OFF on VT [Ctrl] K 11 B OFF OFF on OFF on on on on K 75 4B OFF OFF on OFF on on OFF on FF [Ctrl] L 12 C on on OFF OFF on on on on L 76 4C on on OFF OFF on on OFF on CR [Ctrl] M 13 D OFFonOFFOFFonononon M 77 4D OFFonOFFOFFononOFFon SO [Ctrl] N 14 E onOFFOFFOFFonononon N 78 4E onOFFOFFOFFononOFFon SI [Ctrl] O 15 F OFF OFF OFF OFF on on on on O 79 4F OFF OFF OFF OFF on on OFF on
DLE [Ctrl] P 16 10 ononononOFFononon P 80 50 ononononOFFonOFFon DC1 [Ctrl] Q 17 11 OFF on on on OFF on on on Q 81 51 OFF on on on OFF on OFF on DC2 [Ctrl] R 18 12 on OFF on on OFF on on on R 82 52 on OFF on on OFF on OFF on DC3 [Ctrl] S 19 13 OFF OFF on on OFF on on on S 83 53 OFF OFF on on OFF on OFF on DC4 [Ctrl] T 20 14 on on OFF on OFF on on on T 84 54 on on OFF on OFF on OFF on NAK [Ctrl] U 21 15 OFF on OFF on OFF on on on U 85 55 OFF on OFF on OFF on OFF on SYN [Ctrl] V 22 16 on OFF OFF on OFF on on on V 86 56 on OFF OFF on OFF on OFF on ETB [Ctrl] W 23 17 OFF OFF OFF on OFF on on on W 87 57 OFF OFF OFF on OFF on OFF on CAN [Ctrl] X 24 18 on on on OFF OFF on on on X 88 58 on on on OFF OFF on OFF on EM [Ctrl] Y 25 19 OFF on on OFF OFF on on on Y 89 59 OFF on on OFF OFF on OFF on SUB [Ctrl] Z 26 1A on OFF on OFF OFF on on on Z 90 5A on OFF on OFF OFF on OFF on ESC [Ctrl] [ 27 1B OFFOFFonOFFOFFononon [ 91 5B OFF OFF on OFF OFF on OFF on FS [Ctrl] / 28 1C on on OFF OFF OFF on on on \ 92 5C on on OFF OFF OFF on OFF on GS [Ctrl] ] 29 1D OFF on OFF OFF OFF on on on ] 93 5D OFF on OFF OFF OFF on OFF on RS [Ctrl] ^ 30 1E on OFF OFF OFF OFF on on on ^ 94 5E on OFF OFF OFF OFF on OFF on US [Ctrl] - 31 1F OFF OFF OFF OFF OFF on on on _ 95 5F OFF OFF OFF OFF OFF on OFF on
PRINTABLE ASCII CHARACTERS
Space 32 20 on on on on on OFF on on ` 96 60 on on on on on OFF OFF on ! 33 21 OFF on on on on OFF on on a 97 61 OFF on on on on OFF OFF on " 34 22 on OFF on on on OFF on on b 98 62 on OFF on on on OFF OFF on # 35 23 OFFOFFonononOFFonon c 99 63 OFFOFFonononOFFOFFon $ 36 24 on on OFF on on OFF on on d 100 64 on on OFF on on OFF OFF on % 37 25 OFF on OFF on on OFF on on e 101 65 OFF on OFF on on OFF OFF on & 38 26 on OFF OFF on on OFF on on f 102 66 on OFF OFF on on OFF OFF on ' 39 27 OFF OFF OFF on on OFF on on g 103 67 OFF OFF OFF on on OFF OFF on ( 40 28 on on on OFF on OFF on on h 104 68 on on on OFF on OFF OFF on ) 41 29 OFF on on OFF on OFF on on i 105 69 OFF on on OFF on OFF OFF on * 42 2A on OFF on OFF on OFF on on j 106 6A on OFF on OFF on OFF OFF on + 43 2B OFF OFF on OFF on OFF on on k 107 6B OFF OFF on OFF on OFF OFF on , 44 2C on on OFF OFF on OFF on on l 108 6C on on OFF OFF on OFF OFF on
- 45 2D OFF on OFF OFF on OFF on on m 109 6D OFF on OFF OFF on OFF OFF on . 46 2E on OFF OFF OFF on OFF on on n 110 6E on OFF OFF OFF on OFF OFF on / 47 2F OFF OFF OFF OFF on OFF on on o 111 6F OFF OFF OFF OFF on OFF OFF on
0 48 30 on on on on OFF OFF on on p 112 70 on on on on OFF OFF OFF on 1 49 31 OFF on on on OFF OFF on on q 113 71 OFF on on on OFF OFF OFF on 2 50 32 on OFF on on OFF OFF on on r 114 72 on OFF on on OFF OFF OFF on 3 51 33 OFF OFF on on OFF OFF on on s 115 73 OFF OFF on on OFF OFF OFF on 4 52 34 on on OFF on OFF OFF on on t 116 74 on on OFF on OFF OFF OFF on 5 53 35 OFF on OFF on OFF OFF on on u 117 75 OFF on OFF on OFF OFF OFF on 6 54 36 on OFF OFF on OFF OFF on on v 118 76 on OFF OFF on OFF OFF OFF on 7 55 37 OFF OFF OFF on OFF OFF on on w 119 77 OFF OFF OFF on OFF OFF OFF on 8 56 38 on on on OFF OFF OFF on on x 120 78 on on on OFF OFF OFF OFF on 9 57 39 OFF on on OFF OFF OFF on on y 121 79 OFF on on OFF OFF OFF OFF on : 58 3A on OFF on OFF OFF OFF on on z 122 7A on OFF on OFF OFF OFF OFF on ; 59 3B OFF OFF on OFF OFF OFF on on { 123 7B OFF OFF on OFF OFF OFF OFF on < 60 3C on on OFF OFF OFF OFF on on | 124 7C on on OFF OFF OFF OFF OFF on = 61 3D OFF on OFF OFF OFF OFF on on } 125 7D OFF on OFF OFF OFF OFF OFF on > 62 3E on OFF OFF OFF OFF OFF on on ~ 126 7E on OFF OFF OFF OFF OFF OFF on ? 63 3F OFF OFF OFF OFF OFF OFF on on DEL 127 7F OFF OFF OFF OFF OFF OFF OFF on
BOLD – Original Factory Settings = ASCII Character #91
IV. Troubleshooting
This section is intended to assist in configuring the 212A Smart SerialPRO Interface to work with your specific system. The cash drawer is equipped with three diagnostic lights or LED’s (Light Emitting Diodes) inside the drawer to aid in trouble-shooting a system. These lights can be seen by opening the drawer with the key, removing the plastic money tray, and looking into the back of the cash drawer.
1. A
Flashing Green LED
flash at approximately 1/2 second intervals when the drawer is powered and the electronics are functioning properly.
2. A
3. A
A. If the green LED is not flashing,
1. Check to make sure that the power adapter is plugged into a 110VAC, 60Hz outlet and that the outlet is
2. Check to make sure that the DC adapter cable is connected to the cash drawer. The connector is located next to
B. If the red LED is on or flashing,
1. Check to make sure that the baud rate, word length, and parity DIP switches match the setting the host device is
2. Check to make sure that the cash drawer is connected to the correct serial port.
3. Note that the red light will continue to flash until the interface receives the correct signal, or until power is
C. If the yellow LED does not flash when characters are transmitted from the port,
1. Check to make sure that switch 8 of Bank C (the DCE/DTE switch) is in the correct position.
2. Check to make sure that the cash drawer is connected to the correct serial port on the host.
3. Check to make sure that the cable is connected properly and none of the pins are damaged.
4. Confirm that the port on the host is working properly. Connect another device that has worked previously on this
5. If applicable, use the DOS level example illustrated in the “Cash Drawer Testing” section to verify proper
6. Recheck all of the DIP switch settings. Toggle each switch from its current position to the opposite position and
7. If the software package checks for the drawer status, and if the switch in the cash drawer is enabled, make sure the
D. Some software applications require hardware handshaking between the host and peripheral devices. This may include
a jumper between the Clear To Send (CTS) line to the Request To Send (RTS) line, or jumpers between the Data Terminal Ready (DTR) line to the Data Set Ready (DSR) or Data Carrier Detect (DCD) lines.
1. Check the jumpers on the interface board to be sure that they are present and fully seated. (See Figure 1.)
2. If sharing the serial port with other devices, the other devices may perform hardware handshaking. Remove the
E. If the cash drawer still does not open,
1. Make sure that the DIP switch settings on the cash drawer match the ASCII character(s) transmitted by the host
2. Check to make sure that the software package is telling the cash drawer to open. The software may require the
3. If other devices are on the same port, disconnect them and test the cash drawer alone. Be sure to set the jumpers
Flashing Yellow LED
necessarily indicate that the proper opening sequence has been received. This light only provides an indication that ASCII characters are being transmitted by the host and that the cash drawer is connected properly.
Flashing Red LED
Most likely, there are incorrect communication settings (i.e. baud rate, parity, or word length) between the host and the cash drawer.
functional.
the serial cable connector on the bottom of the cash drawer.
sending. This LED is illuminated normally when one of these parameters is not set properly.
removed from the cash drawer.
port.
operation of the port.
back to be sure each switch is fully seated in the proper position. For example, if it is on, turn it off and then on again. Do this for all of the DIP switches.
drawer is closed to allow the host to transmit the opening character sequence out the serial port.
jumpers from the interface. (See Figure 2.)
device and they are in the correct order. If two characters are used to open the cash drawer, check to make sure that the software package is sending the two characters in immediate succession and in order with no other ASCII characters in between. NOTE: After the cash drawer has received an opening signal from the host device, the circuit board will ignore any more transmitted data for a four (4) second interval to prevent rapid, repetitive opening cycles.
user to configure the opening character sequence during the setup process.
on the interface board back to factory default.
indicates healthy operation of the supporting electronics inside the cash drawer. It will
indicates that ASCII characters are being received. NOTE: This light does not
indicates that a parity or framing error has occurred between the cash drawer and the host.
4. On very high speed serial ports in Windows operating systems, the Advanced Port Settings may have to be set at a
lower rate. Enter the COM port properties window and reduce the Transmit Buffer to a lower setting. a. Press the “Start” button and select Control Panel then select System Properties. – OR – Right click on “My
Computer” icon and select Properties.
b. Change to Device Manager tab and select “Communications Port COMx”, where “x” is the port number used,
then select “Properties”.
c. Change to Port Settings tab and select “Advanced…”. d. Reduce the Transmit Buffer slider bar one or two notches.
5. Configure the drawer to open on only one character to determine if the drawer recognizes any of the opening
characters sent from the host.
If difficulties persist, contact your supplier for more information or contact: APG Cash Drawer technical support at (763) 571-5000, or via email at support@apgcd.com
FCC Warning
This equipment generates, uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual, may cause interference to radio communications. It has been tested and found to comply with limits for a Class A computing device pursuant to SubPart J of Part 15 of FCC rules, which are designed to provide reasonable protection against such interference when operated in a commercial environment. Operation of this equipment in a residential area is likely to cause interference in which case the user at their own expense will be required to take whatever measures may be required to correct the interference.
If this equipment does cause interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures:
1. Reorient the receiving antenna.
2. Relocate the equipment with respect to the receiver.
3. Plug the equipment into a different outlet so that the computing device and receiver are on different branch circuits.
If necessary, the user should consult the dealer or an experienced radio/television technician for additional suggestions. The user may find the following booklet prepared by the Federal Communications Commission helpful: “How to Identify and Resolve Radio-TV Interference Problems”. This booklet is available from the U.S. Government Printing Office, Washington, DC 20402. Order Stock No. 004-000-00345-4.
MacIntosh® is a registered trademark of Apple Computer Corp. Windows™ is a trademark of Microsoft Corporation. The APG logo, APG® Cash Drawer, and SerialPRO® are registered trademarks of APG Cash Drawer.
Copyright 2001 by APG Cash Drawer; Minneapolis, Minnesota; U.S.A.
PN: M-23G-212A Rev. A
Loading...