title: ZPL - How to format a Code 93 barcode (^BA) to fit the label
body: <p>I'm using the <strong>ZPL - Zebra Programming Language</strong> to format a <strong>Code 93 barcode</strong> <code>^BA</code> to reside within a label.</p>
  
  <p>I know I can set the default module width using <code>^BY</code>. My problem is that <code>^BY1</code> makes the barcode to small to read and <code>^BY2</code> makes it too large for the label.</p>
  
  <p>This is the code:</p>
  
  <pre><code>^FO15,110^BY2,3,35^BAN,35,N^FD001EC0A688E2^FS
  </code></pre>
  
  <p>I wish I could use decimal values with <code>^BY</code> but that doesn't seem to be possible.</p>
  
  <p>Some barcodes as Code 128 <code>^BC</code> have a mode parameter to pack the bar code better based on the data but <code>^BA</code> doesn't have that.</p>
  
  <p>I saw that some barcodes as QR (<code>^BQ</code>) do have a magnification factor parameter but that's also missing for <code>^BA</code>.</p>
  
  <p>Are there any other ways to set the width with smaller steps than <code>^BY</code>?</p>
  
  <p>The label is 38 mm wide and 19 mm tall and the DPI is 203 (8 dots/mm) and the data is always 12 hexadecimal characters [0-9 and A-F].</p>