November 26, 200619 yr 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?
November 26, 200619 yr ... What is DEC(7)? How is it connected? Eitherway, best initial guess would be applescript
November 26, 200619 yr 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.
November 27, 200619 yr ... 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).
November 27, 200619 yr 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")
November 27, 200619 yr 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
November 27, 200619 yr 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")
September 9, 201015 yr 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