How to print custom tag ID data via Zebra ZT410

M Muhammad Azal 15 hours 33 minutes ago
23 0 0

Currently I'm using ZT410 printer and I've got issue where i need to print 16 characters on the RFID label, but when I'm trying to print using ZPL it will add additional padding '0' at the back after 16 characters. 

Expectation: C1234567890876A
Result: c601146010001462a000ffff

Already done my research, seems like it is because of my EPC is 96-bit and to print 16 characters, had been tried change the EPC to 64 bit it would'nt working. Also tried to convert ASCII(C1234567890876A) into hexadecimal but the result is like this c601146010001462a000ffff and not as expected.

Below is my code 

BrowserPrint.getDefaultDevice("printer", function(device) {
   if (!device) {
       console.error("No printer found.");
       return;
   }
   const testZPL = `
     ^XA
     ^RFW,H,0,8,0,4331323334353637^FS
     ^RFR,H,0,8,0^FS
     ^FO20,20^A0N,30,30
     ^FD{R:9.16}^FS
     ^XZ
   `;
   device.send(testZPL, function() {
       console.log("ZPL sent!");
       device.read(function(response) {
           console.log("Printer Response:", response);
       });
   });
});

 
CONTACT
Can’t find what you’re looking for?