When values BY2 is used, what it happens is bar-code is getting out of the margins of the label. When I uses value BY1 it is too small to read though. Below with the ZPL Commands used. It not same as Code 128 barcode able to set "Automatic" adjustment for the label.
Any solution can adjust width same as code 128 with automatic aadjustment for the label or others solutions?
Unfortunately, there is no auto adjustment in ^BY bar code. The total width of the ^BY bar code is defined by the number of encoded digits based on the Module Width Ratios in Dots table. Once the ratio is selected, the only way to have a narrower or wider total bar code is by decreasing or increasing the number of digits to be encoded.