VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Open Cash Drawer

by Markus O Beamer (1 Submission)
Category: VB function enhancement
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

This piece of code will pop open an MMF ED 2000 Cash Register. It sends the ascii value of A down com port 1. I put this code on planetsource code cause I had a hard time finding out how to do this. I tried the MSComm object and had a lot of difficulty with it. Hope this helps all the coders out there.

Rate Open Cash Drawer

Sub popDrawer()
On Error GoTo err
 
 If hasCashDrawer Then
  Open "COM1" For Output Access Write As #1
    Print #1, Chr$(65); "A";
  Close #1
 End If
 Exit Sub
err:
 MsgBox ("Problems opening drawer")
 
End Sub

Download this snippet    Add to My Saved Code

Open Cash Drawer Comments

No comments have been posted about Open Cash Drawer. Why not be the first to post a comment about Open Cash Drawer.

Post your comment

Subject:
Message:
0/1000 characters