Zebra條碼打印機ZPL指令使用示例:
^XA^DFR:SAMPLE.GRF^FS^FO0,400^GB1200,0,4^FS^FO0,510^GB1200,0,4^FS^FO550,620^GB1200,0,4^FS^FO0,1050^GB1200,0,4^FS^FO0,1165^GB1200,0,4^FS^FO0,1265^GB1200,0,4^FS^FO550,0^GB0,400,4^FS^FO550,510^GB0,545,4^FS^FO50,50^A0,40,40^FDFrom:^FS^FO580,50^A0,40,40^FDTo:^FS^FO630,540^A0,70,70^FDLocation Number:^FS^FO50,540^A0,40,40^FDPO Number:^FS^FO50,620^A0,40,40^FDArticle Number:^FS^FO50,720^A0,40,40^FDDescription:^FS^FO50,900^A0,40,40^FDCase Quantity:^FS^FO50,950^A0,40,40^FDPack Quantity:^FS^FO300,1080^A0,70,70^FDCarton Count:^FS^FO50,1200^A0,40,40^FDSpecial Order Tracking Number:^FS^FO50,1300^A0,40,40^FDSSCC:^FS^FO50,90^A0,40,40^FB500,8,,left^FN1^FS (from name & address)^FO580,90^A0,40,40^FB600,8,,left^FN2^FS (to name & address)^FO70,430^A0,70,70^FB1000,1,,Center^FN3^FS (Country of Origin)^FO680,770^A0,200,200^FB500,1,,left^FN4^FS (Location Number)^FO260,540^A0,40,40^FB290,2,,left^FN5^FS (PO)^FO310,620^A0,40,40^FB240,2,,left^FN6^FS (Article Num)^FO260,720^A0,40,40^FB290,4,,left^FN7^FS (Description)^FO310,900^A0,40,40^FB490,1,,left^FN8^FS (Case Quantity)^FO310,950^A0,40,40^FB490,1,,left^FN9^FS (Pack Quantity)^FO700,1080^A0,70,70^FB1000,1,,left^FN10^FS (Carton Count)^FO400,1350^A0,40,40^FB1000,1,,left^FN11^FS (SSCC)^FO70,1450^BY4,,350^BC,,N,N,,^FN12^FS (SSCC-BarCode)^XZ
^XA^XFR:SAMPLE.GRF^FN1^FDDDI - DARICE DIRECT IMPORTS\&13000 Darice Parkway, Park 82^FS^FN2^FDJo-Ann Stores Distribution Center\&1500 Terex Road Hudson, OH 44236^FS^FN3^FDCountry of Origin: China^FS^FN4^FDDC01^FS^FN5^FD91393413^FS^FN6^FD8255903^FS^FS^FN7^FDFOAM VISOR-ORANGE^FS^FN08^FD288 EA^FS^FN09^FD288 EA^FS^FN10^FD1 of 1^FS^FN11^FD(00) 001727450000009523 ^FS^FN12^FD00001727450000009523^FS^XZ
把以上文檔直接輸出到打印端口即可完成標簽的列印。