Sample templates

Here's an example of a few basic templates created with a barcode and text:

1x1 Inventory Label
^XA
^PW211^FO55,30^BQN,2,3^FDQA,S1033^FS
^FT0,170^A0,30^FB211,1,0,C,0^FH\^FDPN:${part.partNumber}^FS
^XZ
3x1 Inventory Label
^XA

Logo:
^FO520,35^GFA,2470,2470,13,Q01F8,Q0IF,P07IFE,O01KF8,O03KFC,O0MF,N01MF8,N03MFC,:N07MFE,N0OF,:M01OF8,:M03OFC,::::M07OFE,::::M03OFC,:::M01OF8,:N0OF,:N07MFE,:N03MFC,N01MF8,O0MF,O07KFE,O01KF8,P0KF,P01IF8,Q03FC,,::::::::::::N0IFE07IF,O0306001C3,O0106I083,::O0306I083,O0706I083,O0F06I083,N0398CJ03,N070FC,N0C078,,S07IF,,N0IFE,N0E38E,N0C106,N0C10607IF,:N0C106I083,:::T0183,T0783,T0EC3,N03830038E6,N070FC0707C,N040CC,N0C186,:N0C10601C3C,N0C1060307E,N0C30602043,N0430C060C3,N07E1C060C3,N03C1006083,S06083,S06183,O07C00318E,N01FF003F0C,N0301800E,N0600C,N0C004J03,N0C006J03,:::N0C00407IF,N0600C03IF,N03838J03,N01FFK03,O038K03,V03,,:N0IFE,P01E,P018,P07,O01C,O038,O0E,N01C,N07,N0F,N0IFE,,::N0E,N07C,O0F8,O0DE,O087C,O081E,:O08F8,O0FC,N01F,N078,N0C,,:N0IFC,N0IFE,P01C,P038,P0F,O01C,O07,O0E,N038,N07,N0IFE,:,::O0FE,N03FF8,N0701C,N0600C,N0C006,::::N0600C,N0701C,N03818,,::N0IFC,N0IFE,N0C106,:::::::,::::::::::^FS

^PW576^FO12,75^BQN,2,3^FDQA,S1033^FS
^FO12,35^A0,45^FD${part.partNumber}^FS
^FO130,85^A0,32^FDRev: ${part.revision}^FS
^FO130,125^A0,25^FD${part.description}^FS
^FO130,155^A0,25^FDSN: ${serialNumber}^FS
^FO330,155^A0,25^FDLot: ${lotNumber}^FS
^XZ
3x1 Logo Label
^XA
^PW576
^CFA,15
^FX Company Logo
^FO0,2
^GFA,2470,2470,13,Q01F8,Q0IF,P07IFE,O01KF8,O03KFC,O0MF,N01MF8,N03MFC,:N07MFE,N0OF,:M01OF8,:M03OFC,::::M07OFE,::::M03OFC,:::M01OF8,:N0OF,:N07MFE,:N03MFC,N01MF8,O0MF,O07KFE,O01KF8,P0KF,P01IF8,Q03FC,,::::::::::::N0IFE07IF,O0306001C3,O0106I083,::O0306I083,O0706I083,O0F06I083,N0398CJ03,N070FC,N0C078,,S07IF,,N0IFE,N0E38E,N0C106,N0C10607IF,:N0C106I083,:::T0183,T0783,T0EC3,N03830038E6,N070FC0707C,N040CC,N0C186,:N0C10601C3C,N0C1060307E,N0C30602043,N0430C060C3,N07E1C060C3,N03C1006083,S06083,S06183,O07C00318E,N01FF003F0C,N0301800E,N0600C,N0C004J03,N0C006J03,:::N0C00407IF,N0600C03IF,N03838J03,N01FFK03,O038K03,V03,,:N0IFE,P01E,P018,P07,O01C,O038,O0E,N01C,N07,N0F,N0IFE,,::N0E,N07C,O0F8,O0DE,O087C,O081E,:O08F8,O0FC,N01F,N078,N0C,,:N0IFC,N0IFE,P01C,P038,P0F,O01C,O07,O0E,N038,N07,N0IFE,:,::O0FE,N03FF8,N0701C,N0600C,N0C006,::::N0600C,N0701C,N03818,,::N0IFC,N0IFE,N0C106,:::::::,::::::::::^FS
^FX Text Part Detail Section
^FO 80,2  ^FD ${part.description} ^FS
^FO 80,22  ^FD P/N: ${part.partNumber} ^FS
^FO 80,47  ^FD UOM: ${unitOfMeasure.type} ^FS
^FO 80,72  ^FD PO: ^FS
^FO 80,97 ^FD S/N: ${serialNumber} ^FS
^FO 80,122 ^FD Lot: ${lotNumber} ^FS
^FO 80,147  ^FD Custom Attribute: XX"^FS
^FO 80,172 ^FD Custom Attribute: XX^FS
^FX Status and Part Revision
^FO 380,20^GB50,50,6^FS
^FO 380,38 ^FD XX^FS
^FO 380,75^GB50,50,3^FS
^FO 380,85 ^FD Rev^FS
^FO 380,105 ^FD ${part.revision}^FS
^FX QR Code
^FO 450,20 ^BQN,2,3,Q,7 ^FDQA,${iuid}^FS
^FO 380, 135 ^FD Qty: ${quantity} ^FS
^FO 380, 155 ^FD UID: ${id} ^FS
^XZ
1x1 Inventory Label Render
3x1 Inventory Label Render

You can use Labelary to add an image for your logo (or any other image you'd like to add) using this website. The image gets encoded as a Base64 string. See here for this example.

You can get a better understanding of the code by checking out this programming guide!

Note: For the QR code on line 3 of the above template, it includes "QA,". This is added to ensure all characters show up in the barcode as outlined here.

Last updated

Was this helpful?