Printer Beeps on Ticket Print

Hi,

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:

<B22>
<XCT>B22
<ESC>B22
<XCT>B22

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?

<XCT>39,71,103?

You would have four numbers;
ESC,B,t,n
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

27,66,2,1

1 Like

Im reading the table wrong, Duh,

ok so i have got

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

<XCT>27,66,1,2

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

<XCT>27,66,4,3

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)

[LAYOUT]
-- General layout
<L00>
<L00>
<bmp>C:\epos pics\logo.bmp
<C00>Main Road, Dinnington, 
<C00>Newcastle Upon Tyne, NE13 7JS
<C00>www.thelastdaysoftheraj.co.uk
<C01>01661 59 8181
<C01>01661 59 8484
<L00>
<L12>Table:{ENTITY NAME:Table}
<L01>
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<F>
<C11>T H A N K   Y O U
<C00>Vat No: 214987385
<L00>
<L00>
<L00>

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

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

[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}

[SERVICES]
<J00>{CALCULATION NAME}|{CALCULATION TOTAL}

[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}

[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL PRICE}
{ORDER TAGS}

[ORDERS:Gift]
-- Format for gifted orders
<J00>- {QUANTITY} {NAME}|**GIFT**
{ORDER TAGS}

[ORDERS:Void]
-- Nothing will print for void lines

[ORDER TAGS]
-- Format for order tags
<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}

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

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

<XCT>27,66,2,1

this is my template

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

3 Likes

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
<L00>
<L00>
<L00>
<XCT>27,66,2,1

Not sure if that will make a difference.

3 Likes

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

2 Likes

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.