Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iDP 3210 with M-S Cash Drawer.

Status
Not open for further replies.

LordGarfield

IS-IT--Management
Jul 31, 2003
112
BE
Good day,

We have a POS system for a few years now. But the problem is that the software is so old that we want to renew it. An option is to rewrite the software in Visual Basic.

We have an iDP3210 Line Htermal Printer wich is connected to a pc's COM1 port. On the iDP3210 we connected a cash drawer. (M-S Cash Drawer)

My question is: How can I open the cash drawer in Visual basic and how can I print stuff to the iDP3210?
I have experience in Visual basic but never used COM ports nor POS systems before. I can write a complete database application to hold customer's, products, vendors etc.. but I do not know how to open cashdrawers and print to the com1.

I already tried to do some stuff so maybe it is handy you can look at it already.

Private Sub Command4_Click()
On Error GoTo err
Open "COM1:" For Output As #1
Print #1, Chr(65); "A";
Print #1, "Hallo, dit is een test"
Close #1
Exit Sub
err:
MsgBox ("Problems opening drawer")
End Sub

The only thing this program does is moving the paper in the printer one line up. I hoped to get something like this that prints something on the printer and opens the cash drawer.

Best regards,
Roel.
 
Dear Roel:
I can help you with your problem but first you should find the display commands of the thermal printer that you have.
I have experience with Epson TM T88III printers and Epson U200 Series of dot Matrix, and cash drawers connected to such printers.

Maybe you can try out these:
to print normal characters on the printer:

mscomm1.output= chr(27) & chr(33) & chr(1) & chr(27) & chr(114) & chr(0) & "Good morning Lebanon!"

to open the cash drawer:

mscomm1.output= chr(27) & chr(112) & chr(0) & chr(10) & chr(10) & chr(80)

Hope it works with yours.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top