×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

VFP8sp1: Open Cash Drawer RJ12

VFP8sp1: Open Cash Drawer RJ12

VFP8sp1: Open Cash Drawer RJ12

(OP)
Hi all,

I am looking for code to open the MMF Cash Drawer Co. VAL-u Line Cash Drawers -- connected with RJ12 cable through a STAR SP300 printer. I am using Microsoft Windows 2000.

The manual indicates control code <Esc><Bel> or (07)H.  I have tried ??? CHR(7) but no response from the drawer.

Any help would be appriciated.

Kurtwood
The Bahamas

RE: VFP8sp1: Open Cash Drawer RJ12

The manual indicates control code <Esc><Bel> or (07)H.  I have tried ??? CHR(7) but no response from the drawer.

I don't know anything about that cash drawer, but have you tried:

? CHR(27)+CHR(7)

* Escape + Bell

Jim Osieczonek
Delta Business Group, LLC
www.deltabg.com

RE: VFP8sp1: Open Cash Drawer RJ12

(OP)
Thank you Jim.  I will try that.  In addition, below is the VB code to open that cash drawer.  Do you know what would be the VFP equivalent?

VISUAL BASIC
Private Sub CashDrawer_Click()
 
' OPEN LPT1 FOR OUTPUT
Open "lpt1" For Output As #1
 
' POP CASH DRAWER
' CMD:  <BEL>
Print #1, Chr$(7)
 
' CLOSE THE LPT1 PORT
Close #1

End Sub

RE: VFP8sp1: Open Cash Drawer RJ12

Something like the following may work for you:

SET DEVICE TO PRINT
SET PRINTER TO
??? CHR(7) && this maybe all that is needed, other lines included just in case
SET DEVICE TO SCREEN
SET PRINTER TO

Slighthaze = NULL
craig1442@mchsi.com

"Whom computers would destroy, they must first drive mad." - Anon

RE: VFP8sp1: Open Cash Drawer RJ12

I use RAWPRINT.FLL to send raw print codes directly to windows printer (bypassing the windows printer driver which can garbage up the raw codes). This utility has been 100% effective in allowing me to control dot-matrix printers. I have been dealing with POS equipment in my applications for the last 15 yrs.

Andy Snyder
SnyAc Software Services www.snysoft.com

RE: VFP8sp1: Open Cash Drawer RJ12

(OP)
Still no response.

Andy, would you kindly let me know where to acquire RAWPRINT.FLL and how to incorporate it in my app.

Thank you.
Kurtwood

RE: VFP8sp1: Open Cash Drawer RJ12

I just checked Universal Thread (which is where I found it), and apparently the FLL version is not included anymore.... There is a VCX class library available now for it which I will be replacing the FLL version with in the next day or so...

Go to the Download area of the Visual FoxPro Zone on Universal Thread and in the Summary descriptor type RAWPRINT and press {ENTER} to start the search.

The zip file has the VCX and a readme with code examples.

Andy Snyder
SnyAc Software Services www.snysoft.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close