ominae Posted November 26, 2006 Posted November 26, 2006 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?
Genx Posted November 26, 2006 Posted November 26, 2006 ... What is DEC(7)? How is it connected? Eitherway, best initial guess would be applescript
ominae Posted November 26, 2006 Author Posted November 26, 2006 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.
Genx Posted November 27, 2006 Posted November 27, 2006 ... 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).
ominae Posted November 27, 2006 Author Posted November 27, 2006 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")
ominae Posted November 27, 2006 Author Posted November 27, 2006 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
ominae Posted November 27, 2006 Author Posted November 27, 2006 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")
HALBURN Posted September 9, 2010 Posted September 9, 2010 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.
Recommended Posts
This topic is 5187 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 accountSign in
Already have an account? Sign in here.
Sign In Now