Problem with DP command in Intermec printer

I use the Intermec Direct Protocol to provide print commands to the printer. It contains text as well as a barcode.

Printing works as expected for 12-digit numbers. However, when I try to print numbers with numbers from 13 to 18, this gives no way out. Any exceptions are also not thrown.

Here is a team that works great. "BARSET" here has a number whose length is 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 the BARSET to a number containing 13 digits, the output does not come 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 

This string variable is first converted to an array of bytes. This byte array is assigned to an OutputStream, which in turn prints a label.

, , BARSET, 13 18 , .

+4
1

128 C . . , , . 128 B ( , fwiw).

0

Source: https://habr.com/ru/post/1661182/


All Articles