Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8192213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:07:37+00:00 2026-06-07T04:07:37+00:00

I have a Partner RP-300 receipt printer with a cash drawer connected to it

  • 0

I have a Partner RP-300 receipt printer with a cash drawer connected to it for experimental purposes.It connects to the PC via LPT1.

I would like to open the cash drawer by means of a java application or a batch file.

Any ideas?

EDIT
I have found out that the command to open the drawer is ESC p, hex value \x1b\x70\x00,

but how do I send that command to the printer using cmd?, I tried putting latter in a text file, then using copy \b file name lpt1, but it just prints the contents of the text file on the printer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:07:37+00:00Added an answer on June 7, 2026 at 4:07 am

    I have looked into the manual and the command includes two more parameters, pulse on and pulse off. It’s also well explained here: How to program cash drawer to open.
    So the command is ESC p m t1 t2, where m is relating to connector pin, and t1, t2 are high/low times.
    You send only ESC p 0 (\x1b\x70\x00), while you should do eg. ESC p 0 25 250 (\x1b\x70\x00\x19\xfa)

    copy /b is perfectly valid way of sending your control commands to the printer and it should work.

    Just make sure that your file does include proper hex sequence using any hex editor.

    Hope this helps

    Edit: link to technical manual

    Edit: To get command sequence encoded in file (long but easy):

    1. Get Notepad++

    2. Check you have Converter installed under plugins. If not, find and install it

    3. Create new file in Notepad++

    4. Select ANSI under encoding

    5. Enter 1b700019fa

    6. Select(highlight) string you entered (or select all with Ctl-A)

    7. Go to plugins->Converter-> HEX –> ASCII

    8. You should see garbled output (with letter p inside). Save

    9. Send your file to printer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Alright I have an xml document that looks something like this: <xml> <list> <partner>
My partner and I have a webcam site that basically runs the old-school method....Every
I have a static variable partner in the class. And I want to set
I am looking to have a SharePoint Extranet Portal setup for my partner clients.
I have the following html code gogu@yahoo.com wants to be your partner. Do you
I am communicating with a partner's webservice using proxy classes they've provided. I have
It is the first time I have to use certificate authentication. A commercial partner
I have some code from a Chinese business partner, and all of the comments
When person 1 become partner with person 3, person 2 should no longer have
The below is for an HTML5 video player event. My partner and I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.