Zebra Technologies S-300 manual Sample ZPL II Label Formats, Format 1 Simple Text and a Barcode

Page 31

Operation

Sample ZPL II Label Formats

ZPL II® is Zebra Technologies Corporation’s Zebra Programming Language II label design language. ZPL II lets you create a wide variety of labels from the simple to the very complex, including text, bar codes, and graphics.

This section contains three sample label formats for you to begin experimenting with. It is not intended as an introduction to ZPL II. To learn about ZPL II, send in the request card at the beginning of this book for a free copy of the ZPL II Programming Guide.

For each format, do the following:

1.Save the file.

2.Copy the file to the printer.

Set-up the printer and turn the Power ON.

Use a text editing program (ex: Windows Write or DOS Editor) and type in the label format exactly as shown in the sample label format shown below.

Save the file in a directory for future use. Use the extension “ . zpl” .

Copy the file to the Zebra Stripe Printer.

Note: Typically, computers running DOS use the “COPY” command to send a file to the Zebra printer. For example, if your file name is “format1.zpl” then type, “COPY FOR- MAT1.ZPL COM1”.

3.Compare your results with those shown. If your printout does not look like the one shown, confirm that the file you created is identical to the format shown, then repeat the printing procedure. If nothing prints, refer to Chapter 1 to make sure your system is set up correctly, otherwise refer to Chapter 4, “ Troubleshooting and Diagnostics” .

Format 1: Simple Text and a Barcode

Line

Type this label format:

You’ll get this printout:

#

 

 

1^XA

2^LH30,30

3^FO20,10^AD^FDZEBRA^FS

4^FO20,60^B3N,Y,20,N^FDAAA001^FS

5^XZ

Line #1: Indicates start of label format.

Line #2: Sets label home position (in dots) from the upper left-hand corner of the label.

Line #3: Sets field origin, selects font “D”, defines field data as “ZEBRA”.

Line #4: Sets field origin, selects bar code Code 39, sets barcode height at 20 dot rows, defines field data for bar code as “AAA001".

Line #5: End of label format.

2

23

Image 31
Contents User’s Guide Proprietary Statement Warranty Information Zebra Software License Agreement Warranty InformationMedia Calibration Adjust the Print Darkness AC Power ON/OFF Switch Fro FEEDServicesKey and Pause Key RS-232 Cabling Requirements Reporting Damage UnpackingStorage and Reshipping Printer Power UpGetting Started Site RequirementsVoltage Selection AC Power CableCommunications Loading Media Tear- Off Mode Media LoadingT t i n g S t a r t e d Media and RibbonExternal Rewind Mode Media Loading Cutter Mode Media Loading Cutter Option RequiredFanfold Media Loading Fanfold Media Loading in Tear-Off Mode Peel-Off Mode Media LoadingPeel-Off Option Required Removing the Label Backing Material Peel Off Option Required Non-Continuous Media Adjusting the Media SensorContinuous Media Ribbon Supply Spindle Low-Tension Position Adjusting the Ribbon Supply SpindleRibbon Loading Ribbon Supply Spindle Normal PositionLoading the Ribbon Ribbon RemovalSwitch Configuration and CalibrationOption Switch Settings Switch Baud RateMedia Calibration Configuration ModeAdjust the Media Rest Position Adjust the Print DarknessAdjust the Position of the Top of the Label Getting Started Operating Your Zebra Stripe Printer Tear-Off ModePrinter Operating Modes Operation AC Power ON/OFF SwitchOperator Controls AC Power ON/OFF Switch Front Panel Keys Front Panel LightsSensor What it monitors How it works Printer Status SensorsBacking Rewind Spindle Full Sensor Position Format 1 Simple Text and a Barcode Sample ZPL II Label FormatsType this label format Type this label format You’ll get this printout Format 3 Using a Serialized Data FieldFormat 2 Saving a Label Format As a Graphic Image Line Type this label format You’ll get this printoutPreventive Maintenance Kit CleaningCleaning the Exterior Cleaning the InteriorCleaning the Printhead Routine Care and AdjustmentCutter Module and Catch Tray Location This procedure is on the next Cutter Module Disassembly This procedure is on Reassembled Cutter Module Lubrication AC Power Fuse ReplacementPrint Quality Adjustments Mechanical AdjustmentsToggle Pressure Adjustment Toggle Pressure AdjustmentRibbon Supply Spindle Adjustment Media Sensor Position AdjustmentBattery Replacement Troubleshooting Table Troubleshooting and DiagnosticsFlashing Troubleshooting and DiagnosticsTroubleshooting and Diagnostics Troubleshooting and Diagnostics Power-On Self Test Printer DiagnosticsAdditional Printer Self Tests Pause Key Self Test Cancel Key Self TestPause Key Self Test Printout Feed Key Self TestMode Key Self Test Extended Printer DiagnosticsFeed Key and Pause Key Page Page Options*Factory-Installed StandardPrinterFonts DefaultPrinterFonts6Dots/mm Page Ard BitmapSmoothFontsPointSizeExamples Zebra’s Corporate Offices How to Reach UsZebra Technical Support Bulletin Board Service Technical SupportTechnical Support Service via Telephone Support ServicesTechnical Support via Mail or Fax Zebra Technologies Corporation Service Form Select The Program That Fits Your Business Product Service and Support ProgramsExtended Factory Service Agreement Third Party Support And MaintenanceUser Self Maintenance Zebra Factory ServicesWang Customer Services Division International Service and Support Zebra Training Programs Course Name Printers Covered Operations and Maintenance CoursesLabeling Bar Codes at WorkSupport Services Printhead Position Adjustment Procedure Adjusting the PrintheadAppendix Print Quality AdjustmentRS-232 Interface Signal LevelsHardware Control Signal Descriptions Printer Interface Technical InformationInterconnect To DTE Devices RS-232 Cabling RequirementsInterconnect To DCE Devices Parallel Cabling Requirements Parallel InterfacePin No Parallel Connector Pinout Signal DescriptionsGlossary Glossary Index Index