signalwerk / thermalprinter

A Library to control an Epson TM-T88II thermal printer (microprinter) by an arduino via serial connection
MIT License
36 stars 19 forks source link

Barcode Code Types #10

Open chinch2 opened 5 years ago

chinch2 commented 5 years ago

Code types are from 65-73 (m input), which kind of code type (CODE39, ITF, UPC, EAN-13 etc) belongs to each value of input m? which value should i pick if i want a specific code bar type?

signalwerk commented 5 years ago

I actually didn't write the barcode part. maybe @docwisdom can help with that.

almendieta commented 1 year ago

I have the same question that @chinch2: how can I change code type to Code128?

almendieta commented 1 year ago

Answering my own question so can be of help to anybody asking the same:

TM88.printBarcode(73,13);

Wherein: 67 ('default' in this code) it's EAN, 73 it's Code128 (iso15417) 13 means 13 max chars to codebar lenght, i.e. 1234567890123

If you need to find out the others, can use ZINT Barcode Studio, a free tool to generate a lot of standards, it's free to use. The only way is preview and compare...

I'm using a ZKTeco pos printer. This printer uses Epson esc/pos Command Support, so works fine to the most of functions, BUT Code Page. Sadly is not working to Spanish/German/Portuguese special chars.