Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
POS application
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Miscellaneous
Thread ID:
00270398
Message ID:
00270494
Views:
21
>Doug, thanks for your reply re POS app.
>
>
>>>Extremely easy. Most tills have the ability to run off a serial port. Just send the till-specific hexadecimal code out the serial port and, as they say, ka-ching. < g >
>
>In FPW26, how would you (1)send a Hex code and (2) Ensure it goes to the serial port ?

This can be accomplished in a few ways. The way we do it, is have the configuration file tell us what Windows Printer the cashdrawer is setup as(serial printers get a standard generic/text-only driver). Most serial cashdrawers will pop when any data is sent(send a decent-sized string, though). You could also use:

SET PRINTER TO COM2:

There are also cashdrawers that connect through receipt printers through an RJ11 jack. Then, you must check the printer manual to see what code needs to be sent to tell the printer to pop the drawer. You can send this usually with:

@ 0,0 SAY CHR(?)+CHR(?)+CHR(?)

Where the CHR(?)'s are the code that needs to be sent. Another, likely better way, is:

??? CHR(?)+CHR(?)+CHR(?)

This assures that you send the data in RAW mode-- bypassing any printer driver that may be installed.
Derek J. Kalweit
Software Engineer
Microworks POS Solutions, Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform