Customize Barcode 39 for EPSON

BONO

Member
Hello,

I think this model is a matricial one. So to print barcod from matricial printer u've to :
- Check the printer have barcod module on it
- Check the barcod module is enable on the param of the printer
- Check on the doc the escape sequence u've to send to the printer to edit barcod
- Then u just have to send barcod begin sequence , u're data and barcod end sequence.

Sometime u've to make the sequence on u're programme because u send how many characters u write with barcod.
 

l_sirikhuan

New Member
Hi BONO
About your question about
1. Printer can prinout barcode
I check with suplier it 's can print out code 39 or EAN18 and the other code.
2. Epson control code
About barcode start .it use ESC (B In epson user manual.
3. Barcode commnad
Barcode is ESC (B n1 n1 k m s v1 v2 c data
4. I use MFG/PRO Verson EB

5. My example program is

ouput to printer.
data = "012345".
/*format : ESC (B n1 n2 k m s v1 v2 c data */
put control chr(27) /* ESC */
chr(40) /* ( */
chr(66) /* B */
chr(length(data)) /* n1 */
chr(0) /* n2 */
chr(5) /* k = barcode type, 5 = code 39 */
chr(2) /* module width */
chr(0) /* space adjustment */
chr(104) /* v1 = barcode length */
chr(0)
chr(3) /* control flag */
data.
output close.
But a printer can not print anything.
 

BONO

Member
i think u're matter is CHR(0) because i think u've to send hexadecimal value 00. To send it u've to use put control like u're exemaple but u've to split it when u've to send 00 hex value and then make a put control null.

put control .....

put control null. for 00 hexadecimal value.

put control ......


hope it's help.
 
Top