Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help from Command Environment for Epson Impacts

Status
Not open for further replies.

attrofy

IS-IT--Management
Jan 10, 2002
694
0
0
US
Hello all,

I have some Epson LQ Impact Printers (the 570E and 2170/2180 to be exact) that I need to produce some barcodes from the Command Environment - specifically from a PICK (Universe) application. Language specifics aside, I need some help interpreting the following info from the Epson manual:

The "ESC ( B" command is used to print barcodes. The format of the command is as folows:

ESC ( B Nl Nh k m s v1 v2 BarCodeData

nl nh Specify the number of data bytes to follow, determined by the following equation:

(number of data bytes) = 6 bytes + BarCodeData bytes = ((Nh x 256) + Nl)
(Where 6 btes are k, m, s, v1, v2 and c)


Nh = INT (number of data bytes/256)
Nl = MOD (number of databytes/256)

Then the remaining parameters of k, m, s, v1, v2, and c are all defined for setting the formating characteristics of the barcode (i.e. check digit, height, width, density, etc).

Anyway, my probelm comes down to the Nl and Nh parameters. If I don't predfine these values specifically, the barcode just doesn't print out. I understand the INT and MOD values, I just have no way of determining the value of the BarCodeData bytes. Is there a table that specifies how many bytes each ASCII character is for each Barcode type? We are able to use pretty much any Barcode format, and have had the best luck with 128. These are alpha-numeric codes, so I believe the C character set is what we need (and is set with the "k" parameter).

Any help with this would be greatly appreciated.
 
c'mon, someone's got to know

BUMP
 
Thank you for the link, but this is where I got the above information that formulated my question. I think another thread may have resolved the issue. Thank you again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top