Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

How do i open cash drawer using filemaker. I have a printer connected to cash drawer. All i have to do is send DEC(7) to the printer so that the cash drawer will open. Any idea on how to do that?

... What is DEC(7)? How is it connected?

Eitherway, best initial guess would be applescript

  • Author

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.

... 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).

  • Author

What should i put in HERE for DEC 7 or BEL. "^G" don't work. Please enlighten me.

do shell script ("echo" & HERE & " > ./open.txt")

do shell script ("lp -d " & "[email protected]" & " ./open.txt")

do shell script ("rm -f ./open.txt")

  • Author

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

  • Author

I solve my own problem lol. Thanks for viewing ppl.

basically i

echo -e a > ./open.txt

do shell script ("lp -d " & "[email protected]" & " ./open.txt")

  • 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.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.