Printer Beeps on Ticket Print


I have been trying to get my Kitchen printer to sound a beep after the printing of a ticket. I have a chinese thermal printer so I emailed them to find out how to do this and they sent the following response:

you can use the command to tell the printer to make the beep work,the detail command is" ESC B n t",and the parameter “n” is mean the beepper work times, the parameter “t” is the time between two sound

Im not totally sure how i do this but I have tried the following:


but none of these work. Has anyone had a similar problem and solution?

You need to convert that to XCT.
That includes the ESC.
Here is a link.
You need the decimal value.

You then put comma between parts

1 Like

So would I use the BELL command?


You would have four numbers;
ESC and B would come from that table and t and n would be numbers you set for those options.

Also where you get 39 from that’s ’
Think it’s escape which is 27
B is 66

So for 2 bleeps 1 second apart would be


1 Like

Im reading the table wrong, Duh,

ok so i have got

27,66 for ESC,B so i should enter:


Ok, ive tried that and still not working, maybe this printer doesnt support it

In theory as far as I understand XCT codes.

Does it do anything?
You are using exc/pos for printer type right not Windows or HTML?

Check the printer drivers, there is sometimes an option to bleep after print there.

1 Like

it doesnt do anything just prints. Im using ESC/POS printer type

How do i check the drivers?

ok ive gone to printer properties and found the option to bleep at the end of document. just going to try that

ok, Ive tried to get the printer to beep using the printer properties and what ive found is that the printer doesnt beep when im using Samba but it does beep when im printing any other document from say a word processor. Strange

I’ve used that command in printer template before and it works fine


It’s same as yours, the last 2 numbers can be from 1-9, the first is how many beeps and the second is how long each beep lasts in seconds.

I’ve seen the same code on many printers. Can you show your printer template so we can confirm you are using the code correctly?

1 Like

Command taken from the command reference manual.

Here is the full manual, it will differ for different printers but the one I am using is similar to those cheap Chinese ones that will be sold on ebay etc.

RP80 Command Set.pdf (3.6 MB)

-- General layout
<bmp>C:\epos pics\logo.bmp
<C00>Main Road, Dinnington, 
<C00>Newcastle Upon Tyne, NE13 7JS
<C01>01661 59 8181
<C01>01661 59 8484
<L12>Table:{ENTITY NAME:Table}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J10>Total:|{TICKET TOTAL}
<C11>T H A N K   Y O U
<C00>Vat No: 214987385

<C00>Like us on Facebook &
<C00> Please visit us again soon

[ORDERS GROUP|PRODUCT TAG:Kitchen Group:Drink,Special,Appetiser,Starter,Main,Sides,Rice,Nan,Sundries,Beverage,Special]




-- Default format for orders

-- Format for gifted orders

-- Nothing will print for void lines

-- Format for order tags

-- Table entity format
<L00>Table: {ENTITY NAME}

-- Customer entity format
<J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}


this is my template

That places it under customer entity template. Try placing it under thank you line.


In theory the bottom of the printis after the last <L00> of [LAYOUT] section;

<C11>T H A N K   Y O U
<C00>Vat No: 214987385

Not sure if that will make a difference.


That configured to beep when a customer is selected.

True, if hes not got a customer selected it wouldnt print… fair shout.

Thank you guys its working now. I thought the it had to go at the bottom of the whole template but obviously not. It seems the <BEEP> and <B11> command are working too


The bottom of the template is not the bottom of the template LOL

[LAYOUT] is the overall template with the other [ ] parts being mail merge type formats for where the corasponding { } is within layout.

Being at the very bottom of the code put it inside one of these ‘mail merge’ parts for customer entity so wasnt going into the template unless there was a customer on the ticket.

If you have put in the [ORDERS] section it would have triggered the bleep for every order on the ticket.

Yeah bottom doesnt mean bottom lol

I understand the template better now though :slight_smile:

Is there a way to make the computer beep instead of printer?
I need to create a beep notification without a print job.

The issue is really a step after SambaPOS 5.1.60 Release

Since the API is being unstable with executePrintJob(), i need some kind of notification for new order arrived.