Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1041
  • Last Modified:

Kick Drawer Open Command

I need a command to open my cashdrawer(Posiflex) from within my program. I use a epson u210 slip printer.

The printer and the drawer is connected with telephone type cable.

Any Suggestions

(The printer prints fine but the drawer do not open)

Thanks

B
0
blade3939
Asked:
blade3939
1 Solution
 
imladrisCommented:
Shot in the (semi) dark here. The epson printers I use will kick the drawer open if you send the following control sequence:

ESC p d m n

where d is the drawer number (0 or 1) and m and n control the pulse to the drawer; I use 15 for each. So in hex, the bytes I send to open the first drawer (drawer 0) are:

0x1b 0x70 0x00 0x0f 0x0f


For this to work for you will require two things: that the printer recognize the control sequence (reasonably likely) and that the drawer be openable by the specified pulse.

It may be that in your case, a longer pulse is needed. So if it doesn't work, try making the last two 15's larger.
0
 
AxterCommented:
blade3939,
No comment has been added lately (196 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to imladris http:#8065158

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

Axter
EE Cleanup Volunteer
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now