Epson ESC codes in dos

I guess this should go in the "Printers" section in hardware, but I think it probably needs a more technical mind to answer it, please help.

I'm trying to print barcodes on an epson EPL 6200 using ESC codes from DOS, just it's not working, I can't find any examples anywhere either.

the manual says:

ESC ( B nl nh k m s v1 v2 c barcodeData

I'm using ASCII character 27 for ESC which looks something like "<-" in DOS edit.

number of databytes = bytes in string + 6

nl = mod databytes/256
nh = databytes / 256

k is a hex value for what sort of barcode, code 128 = 06

m is module with, I'm using 05

s is space ajustment, I'm using 1
v1 and v2 = abar length, I'm using 2 for both

c = controll flag, I'm using 1000000 (8 bits)

so I'm sending from DOS edit and counting every ascII char as one byte, so my barcode "01234567801" = 11 bytes + 6 = 17

(<- = asci character 27)

<-(B17006050111000000001234567801

but the printer just goes mental.

bizzarely when I paste it in here it comes out : "\033\017" something to do with ASCII -> ANSI conversion or something???

Any help would be fantastic, atleast an example that works?

Anyone ?
LVL 1
lorddefAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lorddefAuthor Commented:
bump
0
WoodsterCommented:
You will need to send the numbers as characters, not as text.

ie: 17 should be send as ASCII character 17 and NOT the text characters '17'

You will need to do the same with the remaining numbers in the string.



0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.