Thermal printer

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
danielmaximiliano
Posts: 2763
Joined: Fri Apr 09, 2010 4:53 pm
DBs Used: DBF
Location: Argentina
Contact:

Thermal printer

Post by danielmaximiliano »

Hola a todos: hoy me entregaron está impresora térmica USB.. la misma le falta el transformador 12v 3amper. Ya estoy solucionando la falta de este componente..
Alguien a trabajado con está impresora en la impresión de ticket?
Necesito modificar mis rutinas de impresión que tengo para poder utilizar en una nueva terminal P.O.S
Desde ya gracias

Hello everyone: today I received this USB thermal printer ... it is missing the 12v 3amper transformer. I am already fixing the lack of this component .. Has anyone worked with this printer on ticket printing? I need to modify my printing routines that I have to be able to use it in a new P.O.S terminal Thanks in advance
IMG_20211027_201635991_HDR.jpg
IMG_20211027_201635991_HDR.jpg (5.24 MiB) Viewed 1267 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
User avatar
dragancesu
Posts: 931
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: Thermal printer

Post by dragancesu »

I used something similar a long time ago
working with it is like with epson printers, sending ESC sequences
probably known from before

http://www.easovation.com/wp-content/up ... HOPE58.pdf

https://gamingph.com/2016/10/58mm-therm ... -download/

link to manual and drivers are in attachments
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Thermal printer

Post by mol »

I'm using it from time to time.
You can use windows printer driver, in this case it works like other printers.
These thermal printers often use ESC/P or ESC/P2 control codes, so you can print your text to file and then send it to printer
franco
Posts: 921
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Thermal printer

Post by franco »

I use Star TSP100 or any STAR is the same. Must install drivers. Then use as normal text print. Lines are 4 per print and I always add font and size.
The width of 4 inch paper seems to be 54 spaces at size 8
This is a rough starting example to go from.

Code: Select all

Select printer
Pl= 5
Start PrintDoc
Start PrintPage
@ pl, 27-len(alltrim(companyname)/2) Print companyname font "Arial" SIZE 8
@ pl+4 , 1 Print "Item                                       Description                      Price"  font "Arial" Size 7
@ pl+8 , 1 Print Line to pl+8,80 penwidth .01
pl := 12
gotop
Do while ! eof()
@ pl,1 print ITEM font "Arial" size 6
@pl,22 print DESC font "arial" Size 6
@pl,70 print val(str(PRICE,10,2)) font "Arial" Size 7
pl := pl+4
skip
loop
Enddo
End PrintPage
End PrintDoc
All The Best,
Franco
Canada
Post Reply