473,465 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Open cash drawer with vba code

2 New Member
I am running a pos system out of excel and just bought a cash drawer that connects to my usb epson tm88iv receipt printer. I know that the code I need to send to the drawer is 27 112 48 55 121 but I dont know how to code that into vba. Can someone please help. Thanks
Aug 12 '10 #1
6 7936
NeoPa
32,556 Recognized Expert Moderator MVP
I'm afraid you will almost certainly need to direct this question to the supplier of the device. There is far, far too little information here for an Access expert to be able to help you with it.

Good luck :)
Aug 12 '10 #2
matatov
2 New Member
The supplier said they wouldnt know the exact code. Just that I need to send the printer the ascii code to trigger the cash drawer to open.
Aug 12 '10 #3
NeoPa
32,556 Recognized Expert Moderator MVP
Sounds like you didn't get the good luck I'm afraid. Reputable suppliers would be expected to provide a driver and publish an interface (API) for their devices. It sounds like you bagged a bum one there.

You may get lucky and find someone who knows printing well enough to work out a method to send the string, but I wouldn't hold your breath. Formulating the data itself is no big deal. It's the interface that is pretty undefined that is the problem. Hence the manufacturer of the device needs to be involved I'd suggest.
Aug 12 '10 #4
mshmyob
904 Recognized Expert Contributor
I haven't worked with a POS register in over 15 years, but those are just simple ASCII codes ie: 27 is the ESC key so chr(27).

So just build a simple string of ASCII codes and send it to the port the register is connected to. They used to be connected to a simple serial port so just sending the string to the serial port would open the register.

Hope this helps some.

cheers,
Aug 12 '10 #5
NeoPa
32,556 Recognized Expert Moderator MVP
I'm guessing from the OP that the string would need to be sent to a specific printer. This brings so much in that we have no info about that I'd hesitate to lead anyone in that direction without at least hands-on access to the project. Others more experienced at controlling printers and printing from code may find themselves in a better position to help maybe.

BTW 27 112 48 55 121 resolves to <ESC>, p, 0, 7, y or Chr(27) & "p07y".
Aug 12 '10 #6
FishVal
2,653 Recognized Expert Specialist
I guess you could open port the printer is connected to as a binary file and send the code sequence to it. Ports associated with USB devices have names like "USBnnn".
Sending plain text printer port
Aug 15 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Scott A. Keen | last post by:
Hi, I'm getting tasked with writing an ASP application deployed throughout the company's intranet where all the workstations will be running Internet Explorer 6.0. It's a retail business, and...
6
by: PW | last post by:
I have an electronic cash drawer as part of a point-of-sale installation. You're supposed to be able to automatically open the cash drawer with some printer commands (drawer is connected to the...
2
by: carl | last post by:
need to send a command from a POS Application in Microsoft Access 2000 to open a cash drawer. If anyone can help, please contact me. I will pay $$ for very specific directions if I have to. ...
2
by: Tor Inge Schulstad | last post by:
Hi I'm developing a POS software using an Epson TM-T88iii printer with a cash drawer connected to the printer. The printer is connected via a usb interface to the pc. Can anyone tell me how I...
0
by: fidamon | last post by:
hi all there i am a new member i hope you could help me with this Q how to open a cash drawer which is linked to serial port and have a 12 v power and has no name or user book? is there a...
13
by: =?Utf-8?B?Q29ubnVsbA==?= | last post by:
I need to open a Cash Drawer from my Windows App when the user issues and prints (Epson Receipt Printer) a Receipt. I beleive I need to pass the printer a string of (#027 + #112 + #000 + #025 +...
1
by: danishce | last post by:
Hi, I've been trying to configure the cash drawer connected directly to the CPU of the IBM Surepos PC. The cash drawer IBM P/N is 74F6178, IBM FRU P/N is 93F1901. The cash drawer port is connected to...
1
by: imlambo | last post by:
I am designing a point of sale and i am stuck on how to open a cash drawer. Since my system is going to be used by many clients i need help on a design which can open all cash drawers. Or just for...
3
by: gggram2000 | last post by:
Hi, I need some assistance. I'ved been searching the web for days now and can't find an example that really helps me. I have an EPSON TM-T88IV printer through which I want to open a cash drawer. I...
4
by: piscut3 | last post by:
I'm developing a POS with cash drawer integration.But I can't open cash drawer. I have RS232 cable used to connect cash drawer to PC , dot matrix and cash drawer. This cash drawer has no DLL...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.