ZPL – Zebra Programming Language


Zebra Programming Language (ZPL) é a linguagem de comando usada por todas as impressoras compatíveis com ZPL. É uma linguagem baseada em comandos usada pelas impressoras como instruções para criar as imagens impressas nas etiquetas.

Visualizador de ZPL Online em http://labelary.com/viewer.html

Exemplo de codificação:

^XA

^FX Top section with logo, name and address.
^CF0,60
^FO50,50^GB100,100,100^FS
^FO75,75^FR^GB100,100,100^FS
^FO93,93^GB40,40,40^FS
^FO220,50^FDIntershipping, Inc.^FS
^CF0,30
^FO220,115^FD1000 Shipping Lane^FS
^FO220,155^FDShelbyville TN 38102^FS
^FO220,195^FDUnited States (USA)^FS
^FO50,250^GB700,3,3^FS

^FX Second section with recipient address and permit information.
^CFA,30
^FO50,300^FD2F Consultoria^FS
^FO50,340^FD100 Main Street^FS
^FO50,380^FDSpringfield TN 39021^FS
^FO50,420^FDUnited States (USA)^FS
^CFA,15
^FO600,300^GB150,150,3^FS
^FO638,340^FDPermit^FS
^FO638,390^FD123456^FS
^FO50,500^GB700,3,3^FS

^FX Third section with bar code.
^BY5,2,270
^FO100,550^BC^FD12345678^FS

^FX Fourth section (the two boxes on the bottom).
^FO50,900^GB700,250,3^FS
^FO400,900^GB3,250,3^FS
^CF0,40
^FO100,960^FDCtr. X34B-1^FS
^FO100,1010^FDREF1 F00B47^FS
^FO100,1060^FDREF2 BL4H8^FS
^CF0,190
^FO470,955^FDCA^FS

^XZ

 

Etiqueta:

Zebra ZPL

 

Comandos ZPL

CommandFormatDescription
^A^Afo,h,w,d:f.xUse Scalable/Bitmapped Font
^A@^A@o,h,w,d:f.xUse Font Name to Call Font
^B0^B0a,b,c,d,e,f,gAztec Bar Code Parameters
^B1^B1o,e,h,f,gCode 11 Bar Code
^B2^B2o,h,f,g,e,jInterleaved 2 of 5 Bar Code
^B3^B3o,e,h,f,gCode 39 Bar Code
^B4^B4o,h,f,mCode 49 Bar Code
^B5^B5o,h,f,gPlanet Code bar code
^B7^B7o,h,s,c,r,tPDF417 Bar Code
^B8^B8o,h,f,gEAN-8 Bar Code
^B9^B9,h,f,g,eUPC-E Bar Code
^BA^BAo,h,f,g,eCode 93 Bar Code
^BB^BBo,h,s,c,r,mCODABLOCK Bar Code
^BC^BCo,h,f,g,e,mCode 128 Bar Code (Subsets A, B, and C)
^BD^BDm,n,tUPS MaxiCode Bar Code
^BE^BEo,h,f,gEAN-13 Bar Code
^BF^BFo,h,mMicroPDF417 Bar Code
^BI^BIo,h,f,gIndustrial 2 of 5 Bar Codes
^BJ^BJo,h,f,gStandard 2 of 5 Bar Code
^BK^BKo,e,h,f,g,k,lANSI Codabar Bar Code
^BL^BLo,h,gLOGMARS Bar Code
^BM^BMo,e,h,f,g,e2MSI Bar Code
^BO^BOa,b,c,d,e,f,gAztec Bar Code Parameters
^BP^BPo,e,h,f,gPlessey Bar Code
^BQ^BQa,b,c,d,eQR Code Bar Code
^BR^BRa,b,c,d,e,fGS1 Databar
^BS^BSo,h,f,gUPC/EAN Extensions
^BT^BTo,w1,r1,h1,w2,h2TLC39 Bar Code
^BU^BUo,h,f,g,eUPC-A Bar Code
^BX^BXo,h,s,c,r,f,g,aData Matrix Bar Code
^BY^BYw,r,hBar Code Field Default
^BZ^BZo,h,f,g,tPOSTAL Bar Code
^CC^CCx or ~CCxChange Caret (Alt. ~CC)
^CD^CDa or ~CDaChange Delimiter (Alt. ~CD)
^CF^CFf,h,wChange Alphanumeric Default Font
^CI^CIa,s1,d1,s2,d2,…Change International Font/Encoding
^CM^CMa,b,c,dChange Memory Letter Designation
^CN^CNaCut Now
^CO^COa,b,cCache On
^CP^CPaRemove Label
^CT^CTa or ~CTaChange Tilde (Alt. ~CT)
^CV^CVaCode Validation
^CW^CWa,d:o.xFont Identifier
~DB~DBd:o.x,a,h,w,base,space,#char,©,dataDownload Bitmap Font
~DE~DEd:o.x,s,dataDownload Encoding
^DF^DFd:o.xDownload Format
~DG~DGd:o.x,t,w,dataDownload Graphics
~DN~DNAbort Download Graphic
~DS~DSd:o.x,s,dataDownload Intellifont (Scalable Font)
~DT~DTd:o.x,s,dataDownload Bounded TrueType Font
~DU~DUd:o.x,s,dataDownload Unbounded TrueType Font
~DY~DYd:f,b,x,t,w,dataDownload Objects
~EG~EG or ^EGErase All Graphics (Alt. ^EG)
^FB^FBa,b,c,d,eField Block
^FC^FCa,b,cField Clock
^FD^FDaField Data
^FH^FHaField Hexadecimal Indicator
^FL^FL,,Font Linking
^FM^FMx1,y1,x2,y2,…Multiple Field Origin Locations
^FN^FN#”a”Field Number
^FO^FOx,y,zField Origin
^FP^FPd,gField Parameter
^FR^FRField Reverse Print
^FS^FSField Separator
^FT^FTx,y,zField Typeset
^FV^FVaField Variable
^FW^FWr,zField Orientation
^FX^FXcComment
^GB^GBw,h,t,c,rGraphic Box
^GC^GCd,t,cGraphic Circle
^GD^GDw,h,t,c,oGraphic Diagonal Line
^GE^GEw,h,t,cGraphic Ellipse
^GF^GFa,b,c,d,dataGraphic Field
^GS^GSo,h,wGraphic Symbol
~HB~HBReturn Battery Status
~HD~HDReturn Head Diagnostic
^HF^HFd,o,xReturn Host Format
^HG^HGd:o.xReturn Host Graphic
^HH^HHReturn Configuration Label
~HI~HIReturn Host Identification
~HM~HMReturn Host RAM Status
~HQ~HQquery-typeReturn Host Query
~HS~HSReturn Host Status
~HU~HUReturn ZebraNet Alert Configuration
^HV^HV#,n,h,t,aReturn Host Verification
^HW^HWd:o.xReturn Host Directory List
^HY^HYd:o.xUpload Graphics
^HZ^HZbDisplay Description Information
^HZ^HZO,d:o.x,lDisplay Description Information
^ID^IDd:o.xObject Delete
^IL^ILd:o.xImage Load
^IM^IMd:o.xImage Move
^IS^ISd:o.x,pImage Save
~JA~JACancel All
^JB^JBaInitialize Flash Memory
~JB~JBReset Optional Memory
~JC~JCSet Media Sensor Calibration
~JD~JDEnable Communications Diagnostics
~JE~JEDisable Diagnostics
~JF~JFpSet Battery Condition
~JG~JGGraphing Sensor Calibration
^JH^JHa,b,c,d,e,f,g,h,i,jEarly Warning Settings
^JI^JId:o.x,b,c,dStart Zebra BASIC Interpreter
~JI~JIStart Zebra BASIC Interpreter
^JJ^JJa,b,c,d,e,fSet Auxiliary Port
~JK~JKDelayed Cut
~JL~JLSet Label Length
^JM^JMnSet Dots per Millimeter
~JN~JNHead Test Fatal
~JO~JOHead Test Non-Fatal
~JP~JPPause and Cancel Format
~JQ~JQTerminate Zebra BASIC Interpreter
~JR~JRPower On Reset
^JS^JSaSensor Select
~JS~JSbChange Backfeed Sequence
^JT^JT####,a,b,cHead Test Interval
^JU^JUaConfiguration Update
^JW^JWtSet Ribbon Tension
~JX~JXCancel Current Partially Input Format
^JZ^JZaReprint After Error
~KB~KBKill Battery (Battery Discharge Mode)
^KD^KDaSelect Date and Time Format (for Real Time
^KL^KLaDefine Language
^KN^KNa,bDefine Printer Name
^KP^KPa,bDefine Password
^KV^KVa,b,c,d,eKiosk Values
^LF^LFPrint Font Links
^LH^LHx,yLabel Home
^LL^LLyLabel Length
^LR^LRaLabel Reverse Print
^LS^LSaLabel Shift
^LT^LTxLabel Top
^MA^MAtype,print,threshold,frequency,unitsSet Maintenance Alerts
^MC^MCaMap Clear
^MD^MDaMedia Darkness
^MF^MFp,hMedia Feed
^MI^MItype,messageSet Maintenance Information Message
^ML^MLaMaximum Label Length
^MM^MMa,bPrint Mode
^MN^MNa,bMedia Tracking
^MP^MPaMode Protection
^MT^MTaMedia Type
^MU^MUa,b,cSet Units of Measurement
^MW^MWaModify Head Cold Warning
^NC^NCaSelect the Primary Network Device
~NC~NC###Network Connect
^ND^NDa,b,c,d,e,f,g,h,i,jChange Network Settings
^NI^NI###Network ID Number
~NR~NRSet All Network Printers Transparent
^NS^NSa,b,c,d,e,f,g,h,iChange Wired Networking Settings
~NT~NTSet Currently Connected Printer Transparent
^PA^PAa,b,c,dAdvanced Text Properties
^PF^PF#Slew Given Number of Dot Rows
^PH^PH or ~PHSlew to Home Position (Alt. ~PH)
~PL~PLaPresent Length Addition
^PM^PMaPrinting Mirror Image of Label
^PN^PNaPresent Now
^PO^POaPrint Orientation
^PP^PP or ~PPProgrammable Pause (Alt. ~PP)
^PQ^PQq,p,r,o,ePrint Quantity
~PR~PRApplicator Reprint
^PR^PRp,s,bPrint Rate
~PS~PSPrint Start
^PW^PWaPrint Width
~RO~ROcReset Advanced Counters
^SC^SCa,b,c,d,e,fSet Serial Communications
~SD~SD##Set Darkness
^SE^SEd:o.xSelect Encoding Table
^SF^SFa,bSerialization Field (with a Standard ^FD
^SI^SIa,bSet Sensor Intensity
^SL^SLa,bSet Mode and Language (for Real-Time Clock)
^SN^SNv,n,zSerialization Data
^SO^SOa,b,c,d,e,f,gSet Offset (for Real-Time Clock)
^SP^SP#Start Print
^SQ^SQa,b,cHalt ZebraNet Alert
^SR^SR####Set Printhead Resistance
^SS^SSw,m,r,l,m2,r2,a,b,cSet Media Sensors
^ST^STa,b,c,d,e,f,gSet Date and Time (for Real-Time Clock)
^SX^SXa,b,c,d,e,fSet ZebraNet Alert
^SZ^SZaSet ZPL Mode
~TA~TA###Tear-off Adjust Position
^TB^TBa,b,cText Blocks
^TO^TOs:o.x,d:o.xTransfer Object
~WC~WCPrint Configuration Label
^WD^WDd:o.xPrint Directory Label
~WQ~WQquery-typeWrite Query
^XA^XAStart Format
^XB^XBSuppress Backfeed
^XF^XFd:o.xRecall Format
^XG^XGd:o.x,mx,myRecall Graphic
^XS^XSlength,thresholdSet Dynamic Media Calibration
^XZ^XZEnd Format
^ZZ^ZZt,bPrinter Sleep

Comandos ZPL RFID

CommandFormatDescription
^HL^HL or ~HLReturn RFID Data Log to Host (Alt. ~HL)
^HR^HRa,b,c,d,eCalibrate RFID Tag Position
^RA^RA#,f,r,m,bRead AFI or DSFID Byte
^RB^RBn,p0,p1,p2, …, p15Define EPC Data Structure
^RE^REt,rEnable/Disable E.A.S. Bit
^RF^RFo,f,b,n,mRead or Write RFID Format
^RI^RIa,b,c,dGet RFID Tag ID
^RL^RLM,k,a,e,uLock/Unlock RFID Tag Memory
^RL^RLB,s,nLock/Unlock RFID Tag Memory
^RM^RMeEnable RFID Motion
^RN^RNeDetect Multiple RFID Tags in Encoding Field
^RQ^RQf,c,o[data]Quick Write EPC Data and Passwords
^RR^RRn,aSpecify RFID Retries for a Block or Enable
^RS^RSt,p,v,n,e,a,c,sSet Up RFID Parameters
^RT^RT#,b,n,f,r,m,sRead RFID Tag
^RU^RUa,bRead Unique RFID Chip Serialization
~RV~RVaReport RFID Encoding Results
^RW^RWr,w,aSet RF Power Levels for Read and Write
^RZ^RZp,m,lSet RFID Tag Password and Lock Tag
^WF^WFr,m,w,f,bEncode AFI or DSFID Byte
^WT^WTb,r,m,w,f,vWrite (Encode) Tag
^WV^WVeVerify RFID Encoding Operation

Comandos ZPL Wireless

CommandFormatDescription
^KC^KCa,b,c,dSet Client Identifier (Option 61)
^NB^NBaSearch for Wired Print Server during
^NN^NNa,b,c,d,e,fSet SNMP
^NP^NPaSet Primary/Secondary Device
^NT^NTa,bSet SMTP
^NW^NWaSet Web Authentication Timeout Value
^WA^WAa,bSet Antenna Parameters
^WE^WEa,b,c,d,e,f,g,hSet WEP Mode
^WI^WIa,b,c,d,e,f,g,h,iChange Wireless Network Settings
^WL^WLa,b,cSet LEAP Parameters
~WL~WLPrint Network Configuration Label
^WP^WPa,bSet Wireless Password
^WR^WRa,b,c,d,eSet Transmit Rate
~WR~WRReset Wireless Radio Card and Print Server
^WS^WSe,o,p,h,i,j,kSet Wireless Radio Card Values
^WX^WXa,…Configure Wireless Securities
^WX^WX01Configure Wireless Securities
^WX^WX02,b,c,d,e,f,g,hConfigure Wireless Securities
^WX^WX03,b,c,d,e,f,g,hConfigure Wireless Securities
^WX^WX04,kConfigure Wireless Securities
^WX^WX05,i,jConfigure Wireless Securities
^WX^WX06,i,j,kConfigure Wireless Securities
^WX^WX07,i,jConfigure Wireless Securities
^WX^WX08,i,jConfigure Wireless Securities
^WX^WX09,nConfigure Wireless Securities
^WX^WX10,kConfigure Wireless Securities
^WX^WX11,i,jConfigure Wireless Securities
^WX^WX12,i,j,kConfigure Wireless Securities
^WX^WX13,i,jConfigure Wireless Securities
^WX^WX14,i,jConfigure Wireless Securities
^WX^WX15,i,j,l,mConfigure Wireless Securities

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

Esse site utiliza o Akismet para reduzir spam. Aprenda como seus dados de comentários são processados.