Jump to content

Open Cash Drawer


This topic is 4975 days old. Please don't post here. Open a new topic instead.

Recommended Posts

The printer is connected through USB and the cash drawer is connected to the printer through rj11. The printer driver allows the cash drawer to open when the printer print. I find out from other forum that the function to open the cash drawer is a hex 7 or dec 7. I want to do through filemaker is by pressing a button, the cash drawer will open but the printer wun print.

Link to comment
Share on other sites

... But wouldn't the cash drawer have to be connected directly to the PC in some way for you to be able to interface with it? I'm not sure that the printer will act as a "hub" so to speak, so unless the cash drawer is directly connected, I'm not sure it will work at all (I am however, no expert in these maters, but thats just my general thought).

Link to comment
Share on other sites

The code below is for VB but i believe can be done on applescript too.

Option Explicit

' Print and open cash drawer

Private Sub Command1_Click()

StarComm1.StarComm_InitialisePrintJob

StarComm1.StarComm_Output Text1.Text

StarComm1.StarComm_Output Chr(7)

StarComm1.StarComm_Print

' For printing directly to a parallel port without starcomm,

' this code would work exactly the same:

' Open "lpt1" For Random As #1

' Print #1, Text1.Text

' Print #1, Chr(7)

' Close

End Sub

' Print only

Private Sub Command2_Click()

StarComm1.StarComm_InitialisePrintJob

StarComm1.StarComm_Output Text1.Text

StarComm1.StarComm_Print

End Sub

Link to comment
Share on other sites

  • 3 years later...

How can I tell FM11 to send a hex "07" command to our cash drawer?

The cash drawer is connected to a Star TSP100 USB printer. The printer relays the command to the cash drawer via a USB connection.

FileMaker Stopped opening our cash drawer after upgrading to FM11 and Snow Leopard 10.6.4. It has worked fine for the past 4 years with FM8 and Tiger 10.4.

Link to comment
Share on other sites

This topic is 4975 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.