Zebra Programming Language: Difference between revisions
m Voidxor moved page Zebra (programming language) to Zebra Programming Language over redirect: The proper name is Zebra Programming Language, but it is not actually a programming language (hence removing the disambiguation parenthesis). It appears to be proper noun so I'm keeping the capitalization as was done with Eltron Programming Language. |
Capitalize "BASIC". Citations needed. |
||
Line 8: | Line 8: | ||
}} |
}} |
||
'''Zebra Programming Language''' ('''ZPL''') is a [[page description language]] from [[Zebra Technologies]], used primarily for [[label]]ing applications. The original language was superseded by '''ZPL II''', but it is not fully compatible with the older version. Meanwhile, ZPL II is emulated by many label printers of various producers. |
'''Zebra Programming Language''' ('''ZPL''') is a [[page description language]] from [[Zebra Technologies]], used primarily for [[label]]ing applications. The original language was superseded by '''ZPL II''', but it is not fully compatible with the older version. Meanwhile, ZPL II is emulated by many label printers of various producers.{{Citation needed|date=March 2020}} |
||
Later, the '''Zebra |
Later, the '''Zebra BASIC Interpreter''' ('''ZBI''') was integrated into printer software, which is seen as an advancement to ZPL II by the producer and is ANSI [[BASIC]] oriented. Primarily, it is intended to avoid a refactoring of code when changing the printer, if the old printer software was written by a label printer of a competitor. A possible use of ZBI could be for when the Zebra printer receives a foreign label format, which it would then convert to ZPL II on the fly so it can be printed.<ref>{{cite web|url=https://www.zebra.com/gb/en/products-services/software/zebralink/zebra-basic-interpreter2.html |title=Zebra BASIC Interpreter 2.0 |publisher=[[Zebra Technologies]] |website=Zebra.com |accessdate=2020-03-26}}</ref> |
||
==Commands== |
==Commands== |
||
The language commands always start with a caret ('<code>^</code>') or tilde sign ('<code>~</code>'). Currently, more than 170 commands exist in ZPL II. Each format has to start with the command <code>^XA</code> and end with <code>^XZ</code>.<ref>{{cite web|url=http://www.ptshome.com/kb/Manuals/ZPL_Vol1.pdf|archive-url=https://web.archive.org/web/20120322181734/http://www.ptshome.com/kb/Manuals/ZPL_Vol1.pdf|url-status=dead|archive-date=2012-03-22|title=ZPL II Programming Guide (vol. I)|publisher=Portable Technology Solutions|location=http://www.ptshome.com/|page=6|accessdate=2011-04-14}}</ref> For instance, the font size is sent to the printer with the <code>^ADN,n,m</code> command, where <code>n</code> and <code>m</code> are integers denoting the font size and spacing characteristics; <code>^ADN,18,10</code> is the smallest size and <code>^ADN,180,100</code> the largest. |
The language commands always start with a caret ('<code>^</code>') or tilde sign ('<code>~</code>'). Currently, more than 170 commands exist in ZPL II. Each format has to start with the command <code>^XA</code> and end with <code>^XZ</code>.<ref>{{cite web|url=http://www.ptshome.com/kb/Manuals/ZPL_Vol1.pdf|archive-url=https://web.archive.org/web/20120322181734/http://www.ptshome.com/kb/Manuals/ZPL_Vol1.pdf|url-status=dead|archive-date=2012-03-22|title=ZPL II Programming Guide (vol. I)|publisher=Portable Technology Solutions|location=http://www.ptshome.com/|page=6|accessdate=2011-04-14}}</ref> For instance, the font size is sent to the printer with the <code>^ADN,n,m</code> command, where <code>n</code> and <code>m</code> are integers denoting the font size and spacing characteristics; <code>^ADN,18,10</code> is the smallest size and <code>^ADN,180,100</code> the largest.{{Citation needed|date=March 2020}} |
||
===Example=== |
===Example=== |
Revision as of 23:14, 26 March 2020
Developer | Zebra Technologies |
---|---|
OS | independent |
Influenced by | |
ANSI BASIC |
Zebra Programming Language (ZPL) is a page description language from Zebra Technologies, used primarily for labeling applications. The original language was superseded by ZPL II, but it is not fully compatible with the older version. Meanwhile, ZPL II is emulated by many label printers of various producers.[citation needed]
Later, the Zebra BASIC Interpreter (ZBI) was integrated into printer software, which is seen as an advancement to ZPL II by the producer and is ANSI BASIC oriented. Primarily, it is intended to avoid a refactoring of code when changing the printer, if the old printer software was written by a label printer of a competitor. A possible use of ZBI could be for when the Zebra printer receives a foreign label format, which it would then convert to ZPL II on the fly so it can be printed.[1]
Commands
The language commands always start with a caret ('^
') or tilde sign ('~
'). Currently, more than 170 commands exist in ZPL II. Each format has to start with the command ^XA
and end with ^XZ
.[2] For instance, the font size is sent to the printer with the ^ADN,n,m
command, where n
and m
are integers denoting the font size and spacing characteristics; ^ADN,18,10
is the smallest size and ^ADN,180,100
the largest.[citation needed]
Example
A simple output displaying the text "Wikipedia" can be made using code like below.
^XA
^LH30,6161
^FO20,10
^ADN,90,50
^FDWikipedia^FS
^XZ
See also
References
- ^ "Zebra BASIC Interpreter 2.0". Zebra.com. Zebra Technologies. Retrieved 2020-03-26.
- ^ "ZPL II Programming Guide (vol. I)" (PDF). http://www.ptshome.com/: Portable Technology Solutions. p. 6. Archived from the original (PDF) on 2012-03-22. Retrieved 2011-04-14.
{{cite web}}
: External link in
(help)|location=