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.
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.