Open Cash Drawer Code

Make comments, ask questions, or just complain about the software on this site. Or comment on any educational software.
Please note that by clicking on links that may appear in these posts that you may be leaving the Dale Harris Educational Software website and that the content of those sites is the sole resposibility of the authors of those sites.

Moderators:daleadmin, Dale Harris, Alan, Andrew

Post Reply
Garrett
Open Cash Drawer Code

Post by Garrett » Tue Oct 05, 2004 9:43 am

Hi Dale,
Recently I purchased a cash draw (From LOGIC CONTROLS) to set up my own POS system. It seems ok to test the cash draw in the DOS shell by typing the command they ask for. The command looks everyting is same as in you serial2.bat file. The only difference is that ^G in their command comes from holding Ctrl and G and yours comes from ^ and G. Their command is one letter and yours is two letter. I tried to use "ECHO ^G>filename.bat" to record this letter into at file and compile it to the exactly what it is in your serial2.bat. But it still does not work. I just woder how I can input the command it required.

Many thanks.

Garrett

rickpos
Forum Regular
Posts:18
Joined:Thu Oct 07, 2004 10:10 pm
Location:Florida

Re: Open Cash Drawer Code

Post by rickpos » Thu Oct 07, 2004 10:40 pm

Garrett:

While in DOS, retry the command below:

echo ^G > filename.bat

**Note**: Do not type in ^G. Instead press CTRL-G or whichever key sequence it is and continue the command.

When the DOS prompt comes back, open the file with "edit filename.bat"

In the case of CTRL-G, you will see a small, solid symbol when edit opens up. Type in "echo" in front of the symbol, and then "> COM1" or whichever comport you're using after the symbol. If you're creating this file to replace SERIAL2.BAT, make sure to insert the "mode" command before the echo (ie. mode com1: 96,n,8,1).

Try that and let me know if it works for you.

Good luck!

-Rick

User avatar
Andrew
Site Administrator
Posts:822
Joined:Sun Dec 28, 2003 3:40 pm
Location:New Zealand

Post by Andrew » Fri Oct 08, 2004 6:17 am

An excellent reply Rick, well done.
Image
DHPOS Veteran (from v3.46, July 2002)

Garrett

Open Cash Draw Code

Post by Garrett » Fri Oct 08, 2004 7:48 am

Rickpos,

Many thnaks.

I had done that method. And I edit it with Notpad in Window 98 2nd Ed. enviroment. It did not work.

I ran it under DOS shell and I saw no ^G coming out in the screen but two empty lines instead.

I guess ^G changed when we input it into filename.bat, or ^G changed when it is edited with Notpad.

I am thinking to use old DOS command EIDT to do the job and try it.

Or anyone knows how to use old DOS DEBUG command to see what is going on there?

Thank you again.

rickpos
Forum Regular
Posts:18
Joined:Thu Oct 07, 2004 10:10 pm
Location:Florida

Re: Open Cash Draw Code

Post by rickpos » Fri Oct 08, 2004 6:25 pm

Garrett:

If you use DOS EDIT, it'll work just fine. There's no need to use DEBUG, nor Windows Notepad. Windows translates the ASCII character, which is why you saw nothing in the file. Retry the command in DOS, but this time using DOS EDIT.

Good luck!

Garrett

Post by Garrett » Mon Oct 11, 2004 8:04 am

Rickpos

It works now! Many thanks! I think it is a good idea to add this file into the package of the pos.zip.

Other question

I just wonder if I can eliminate Z number from the file and recipt. I know some of pos software just list the time and date.

Garrett

User avatar
Andrew
Site Administrator
Posts:822
Joined:Sun Dec 28, 2003 3:40 pm
Location:New Zealand

Post by Andrew » Mon Oct 11, 2004 1:56 pm

Transaction numbers (if this is what you mean) can't be removed from the receipt. It's purpose is for auditing, without it you would have no idea what sale it was if you wanted to look it up via voids to void it or reprint it.

You can rename the labels on the receipts if you so wish from the "Receipt Language" feature.
Image
DHPOS Veteran (from v3.46, July 2002)

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests