what are you using now to send the 'command' to open the drawer?
what kind of printer? what OS? what version of FM?
are you using any plug-in?
can you post screenshot(s) and/or code? (use Advanced Editor in this forum)
Without a plug in, the only way to send data to a printer is to print. Don't know if you can put that hex code as a character on a layout and print it to send it to the printer or not.
Here's a search that might help find your answer:
This is a problem of a user friendly db app and avoiding the pain of coding byte by byte dot matrix printing...
A second question is why have printing open the drawer automatically when payment might be made by credit card?
Random guess but in a supermarket only 1 in 10 sales involve cash and a need to open the drawer.
You might consider a different printer/etc and say your POS is approved to use xxx.
can Send Event be used in any way?
1 of 1 people found this helpful
I have done this . There are a number of ways to do it.. It depends on the printer and the interface it uses. HEX would be my last choice. There are several that have more friendly interfaces.
In order to help you need to tell us which printer you are using and how you are printing. There are several options that are needed that the print command likely won't do one of them being cut the other being to toggle the drawer .
Not strictly true Phil There are other ways of doing it and in any case the print command does not toggle the on/off for the till drawer in 99% of printers
In most case the fact of printing a ticket produce also the opening of the drawer.
Even if customers pay with credit card the drawer is opened to permit the cashier to collect the credit card ticket for store in a place of drawer.
1 of 1 people found this helpful
The opening and not opening of a drawer as well as the cutting of the ticket at the end of printing are both functions which you can control in a raw state.
Using the Print functioning treating it like a normal printer in 99% of cases does not allow the toggle for the till drawer but it often allows for the cutter function.
in some it does not and so a command has to be sent to achieve this. it all depends on the interface of the till roll printer.
back when I was a kid, I could make a bell ring (literally - on a dumb, hard-copy terminal, and a beep on other terminals) by typing ctrl-g. Is it possible to simply put control characters, like Char(10) for a line feed, into the text?
I have a feeling that HEX is some acronym I'm unaware of. For me, it's hexadecimal; and it implies control characters.
hope this helps
You can try to put your HEX code in a text file and send it for printing but you will obtain the same thing : a page or some portion of paper will be passed and drawer will open.
I use TSP100 Thermal printer from Star Microtronics with FileMaker on Macs and sometimes on PCs.
In Mac settings for printing, "Printer functions", lets you the possibility to do or not do an opening of drawer, but it's always after printing a piece of something.
In Mac Terminal software, perhaps using redirection to printer when printing only you HEX char can you send this HEX code to printer, I've not tried.
You can also use AppleScripts to send CUPS commands, not tried also.
yes and no. hexadecimal is one representation of characters (all characters not just control characters).
simply typing and printing:
20 // hexadecimal for ascii 32 - the space character
does not necessarily send that HEX code, but the characters '2' & '0'.
my presumption is that there is a string of HEX code that must be sent not as plain text.
I used to control my mom's old dot matrix with binary characters and there was a specific way to send them. so I still ponder if there's a way to Send Event in FileMaker:
but we may need details from OP.
yes, I speak ASCII. I'm not going go into my CS/EE past any more.
Star printers are good an I prefer to use them but they have many interfaces and some are better suited than others. They have a very mac compatible one that is AirPrint and that has an app for the iPad. There is however limited drawer control on this printing. Having said the I have not seen their latest now yet which seems designed to work with a tablet and even has usb charging right at the printer. I am looking forward to getting my hands on that one!
It should even be possible to send an open draw command without any printing. Open draw on a star is a pulse command and is not just usable for opening a till draw. It just sends an electrical pulse down the channel that you would connect the drawer to. So theoretically it could be used for many things.