Basic ^BC sample
Use ^BY to set module width before ^BC. Small module width changes can decide whether a handheld scanner reads the label reliably.
^XA
^PW812
^LL406
^FO50,80^BY3,3,140
^BCN,140,Y,N,N
^FDABC123456789^FS
^XZCheck encoded data, not decorative bars
Use ABC123 with ^BCN,70,Y,N,N and ^BY2. Generate a real PNG, then decode it and compare the payload. HRI is the text under the symbol; turning it off must not add a duplicate text field. If a valid long payload clips at the right edge, reduce module width only within scanner limits or enlarge the canvas. Do not stretch a finished image.
^XA
^FO20,20^BY2
^BCN,70,Y,N,N^FDABC123^FS
^XZ