DP command problem in Java – INTERMEC printer

I am using INTERMEC direct protocol to provide printing commands for the printer. It contains text and barcode

For 12 digit numbers, printing works as expected. However, when I try to print numbers between 13 and 18, it will not give any output. No exceptions will be thrown

This is a perfectly running command. "Barset" here is a number with a length of 20

INPUT ON: CLIP ON: CLIP BARCODE ON:
. CLL:
. PP23,1184: AN7:
. PP23,1184: AN7:
. PP23,1184: AN7: 
. DIR1: NASC 1252:
. FT 'Swiss 721 BT':
. FONTSIZE 8: FONTSLANT 0:
. FONTSIZE 36: PP104,330
. BARSET 'CODE128C',2,1,4,305: PB CHR$(128);\”00100280283000550596\":
. PF1\r\n 

However, when I change the length of Barset to include 13 digits, the output will not appear at all

INPUT ON: CLIP ON: CLIP BARCODE ON: 
. CLL: 
. PP23,1184: AN7: 
. DIR1: NASC 1252: 
. FT 'Swiss 721 BT': 
. FONTSIZE 8: FONTSLANT 0: 
. FONTSIZE 36: PP104,330: 
. BARSET 'CODE128C',2,1,4,305: PB CHR$(128);\”1234567891234\": 
. PF1\r\n 

First, convert the string variable into a byte array. This byte array is given to OutputStream, which in turn prints the label

Everything is normal except Barset, but when the given value is 13 to 18 bits, it will not print labels and will not throw any exceptions

resolvent:

Code 128 C requires even digits. This is part of the specification. If odd digits must be printed, a different symbol system is required, such as code 128 B (lower density, fwiw)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>