PROMAN-CPCL Rev.
Index Mobile Printing Systems CPCL Programming Manual PROPRIETARY STATEMENT This manual contains proprietary information of Zebra Technologies Corporation. It is intended solely for the information and use of parties operating and maintaining the equipment described herein. Such proprietary information may not be used, reproduced, or disclosed to any other parties for any other purpose without the expressed written permission of Zebra Technologies Corporation.
Index Mobile Printing Systems CPCL Programming Manual CONTENTS PROPRIETARY STATEMENT ii INTRODUCTION 1-1 PROGRAMMING LANGUAGE EMULATION Programming Language Recommendations 1-1 1-2 GETTING PRINTER INFORMATION Getting Printer Information Example Getting Printer Information Example (continued) Communications Diagnostics Mode 1-2 1-4 1-5 1-6 LABEL COORDINATE SYSTEM 1-7 LABEL VISTA™ 1-8 PRINTER COMMANDS 2-1 TEXT Resident Font Examples Using Font Groups 3-1 3-1 3-6 SCALABLE TEXT 4-1 LINEAR BA
Index Mobile Printing Systems CPCL Programming Manual RSS Limited RSS-14 RSS Expanded RSS Stacked RSS-Truncated RSS-14 Stacked Omnidirectional RSS/Composite Symbologies Composite Code A atop RSS Limited: Composite Code B atop Code 128 Composite Code-C atop Code 128 TWO DIMENSIONAL BARCODES Introduction PDF417 MaxiCode QR Code Two Dimensional Barcode Commands GRAPHICS 7-1 8-1 8-25 8-32 LINE PRINT MODE Introduction Special Commands Using the Utility Function Special ASCII Characters Tearing or Cutting the
Index Mobile Printing Systems CPCL Programming Manual Contents pg.
Index Mobile Printing Systems CPCL Programming Manual Contents pg. vi Networking Parameters 14-80 Frequency Hopping Spread Spectum (FHSS) Radio Compatibility. 14-133 WLAN Parameters 14-133 wlan.
Mobile Printing Systems CPCL Programming Manual Contents pg. 1-1 INTRODUCTION This manual details the various commands in the CPCL language which enable the programmer to utilize the built in text, graphics, bar code printing and communications capabilities of Zebra mobile printers. The following notation conventions are used throughout this manual: {} Required item [] Optional item () Abbreviated command <> Literal item A space character is used to delimit each field in a command line.
Mobile Printing Systems CPCL Programming Manual Contents pg. 1-2 Programming Language Recommendations Language Native in Reccommended Use CPCL QL, RW MZ, EZ320 and older Comtec® models • In new installations of mobile printers, where CPCL is easily integrated into the host application • When older Comtec models are being upgraded- so that the customer can use existing application without code modifications ZPL (emulation available on QL series,standard.
Mobile Printing Systems CPCL Programming Manual Contents pg. 1-3 GETTING PRINTER INFORMATION The printer can produce a report containing information about the application resident in printer memory. A report similar to the example printouts shown on the following pages can be obtained from your printer by doing the following: 1. Turn the printer OFF. 2 While holding the FEED key down, turn the printer ON. 3 When printing begins, release the FEED key.
Mobile Printing Systems CPCL Programming Manual Getting Printer Information Example Print Head Test End of First Report Information on any installed 802.11x wireless devices In this example, an 802.11b WLAN card has been detected. Unit Serial Number Software and Firmware installed Settings for RS232 and USB communications via cable Report appears only on units with wireless options installed. Units with no wireless options will print an empty line and resume printing List of peripherals installed.
Mobile Printing Systems CPCL Programming Manual Getting Printer Information Example (continued) Flash Memory Size RAM Size Maximum Label Size Resident Fonts (my 2010.CPF) (my 2020.CPF) myfont myfont2 myfont3 my_2010 my_2020 .FNT .FNT .FNT .CPF .CPF Resident Pre-scaled Fonts Files Loaded in Printer Memory (will include Pre-scaled or Scalable Fonts) Amount of Free Memory Available End of Configuration Contents pg. 1-5 Instructions on entering Communications Diagnostics (Dump) Mode.
Mobile Printing Systems CPCL Programming Manual Communications Diagnostics Mode To aid the user in diagnosing communications problems, the printer features a Communications Diagnostics Mode (Dump Mode). In the dump mode, the printer will print the ASCII hex codes of the data sent to it, and their text representation (or the period ‘.’, if not a printable character). As a test of the printer the “ALL CHRS.LBL” file on the MPU disk may be sent. To enter Communications Diagnostics Mode: 1. 2. 3. 4. 5. 6.
Contents pg. 1-7 (383, y) [574,y] (447, y) [670,y] (831, 0) [1246,0] 4” Printer (831,y) [1246,y] (575, 0) [862,0] 3” Printer (575, y) [862,y] Print Direction 2” Printer (383, 0) [574,0] (0,0) 2.25” Printer (447, 0) [670,0] The x and y coordinates are expressed here in terms of dots. Coordinates in ( ) are for 200 dot per inch printers. On 200 d.p.i. printers, 8 dots (either horizontally or vertically) equal 1 millimeter and 203 dots equate approximately to 1 inch.
Mobile Printing Systems CPCL Programming Manual LABEL VISTA™ Label Vista is a stand-alone program for the Windows® operating system that allows users with little or no programming background to design labels which can be printed on certain model Zebra portable printers. It combines an intuitive graphically based user environment with powerful, but easily mastered, editing tools.
Mobile Printing Systems CPCL Programming Manual PRINTER COMMANDS A label file always begins with the “!” character followed by an “x” offset parameter, “x” and “y” axis resolutions, a label length and finally a quantity of labels to print. The line containing these parameters is referred to as the Command Start Line. A label file always begins with the Command Start Line and ends with the “PRINT” command. The commands that build specific labels are placed between these two commands.
Mobile Printing Systems CPCL Programming Manual Printer Commands Format: {offset} <200> <200> {height} {qty} where: : Use ‘!’ to begin a control session. {offset}:The horizontal offset for the entire label. This value causes all fields to be offset horizontally by the specified number of UNITS. <200>:Horizontal resolution (in dots-per-inch). <200>:Vertical resolution (in dots-per-inch). {height}:The maximum height of the label.
Mobile Printing Systems CPCL Programming Manual Printer Command Example Input ! 0 200 200 210 1 TEXT 4 0 30 40 Hello World FORM PRINT Output PRINT Command The PRINT command terminates and prints the file. This must always be the last command (except when in Line Print Mode). Upon execution of the PRINT command, the printer will exit from a control session. Be sure to terminate this and all commands with both carriage-return and line-feed characters.
Mobile Printing Systems CPCL Programming Manual END Command The END command properly terminates a command and executes it without printing. Format: END {command} where: {command}: END Example: REM Send a blank label ! 0 200 200 240 1\r\n PAGE-WIDTH 240\r\n BOX 0 0 200 200 10\r\n BOX 50 50 220 220 10\r\n END\r\n ABORT Command The ABORT command terminates a current control session without printing. Format: {command} where: {command}: ABORT Section 2 Printer Commands pg.
Mobile Printing Systems CPCL Programming Manual ENCODING Command The ENCODING control command specifies the encoding of data sent to the printer. Format: {command} {name} {command}: ENCODING {name}: Choose from the following “ASCII” “UTF-8” “GB18030” ENCODING Example Input (ENCODING.LBL): ! 0 200 200 200 1 ENCODING GB18030 TEXT GBUNSG24.CPF 0 20 30 Font: GBUNSG24 ‚t‚u ENCODING ASCII TEXT 7 0 20 80 Font 7, Size 0 PRINT Output Section 2 Printer Commands pg.
Mobile Printing Systems CPCL Programming Manual Section 2 Printer Commands pg. 2-6 FORM Command The FORM command instructs the printer to feed to top of form after printing. Format: {command} where: {command}: FORM In the following example, the printer will execute a form feed after the label is printed. See the SETFF (set form feed) command in the section on designing receipts and lists for information on setting printer behavior when the FORM command is executed.
Mobile Printing Systems CPCL Programming Manual UNITS Commands The units commands are used to specify a measurement system for all subsequent command fields in a control session. Coordinates, widths, and heights for all control commands can be entered with precision to four decimal places. By placing a units command immediately after the first line in a control session, the specified measurement system will also apply to the offset and height fields.
Mobile Printing Systems CPCL Programming Manual UNITS Examples Input 1 : ! 0.3937 200 200 1 1 IN-INCHES T 4 0 0 0 1 cm = 0.3937” IN-DOTS T 4 0 0 48 1 mm = 8 dots B 128 1 1 48 16 112 UNITS T 4 0 48 160 UNITS FORM PRINT Output 1: Input 2 ! 0 200 200 2.54 1 IN-CENTIMETERS T 4 0 1 0 1” = 2.54 cm IN-MILLIMETERS T 4 0 0 6 203 dots = 25.4 mm B 128 0.125 1 6 12 14 UNITS T 4 0 16 20 UNITS FORM PRINT Output 2 Section 2 Printer Commands pg.
Mobile Printing Systems CPCL Programming Manual USING COMMENTS Comments can be added between the first line of a command session and the “PRINT” command. A comment is placed in the file by starting a line with the ‘;’ character in the first column. Any remaining text to the end of the line will be ignored. Comments are illegal between the CONCAT and ENDCONCAT commands.
Mobile Printing Systems CPCL Programming Manual TEXT Resident Font Examples Section 3 Text pg.
Mobile Printing Systems CPCL Programming Manual Section 3 Text pg.
Mobile Printing Systems CPCL Programming Manual Resident Font Examples (continued) Section 3 Text pg.
Mobile Printing Systems CPCL Programming Manual TEXT Commands The TEXT command is used to place text on a label. This command and its variants control the specific font number and size used, the location of the text on the label, and the orientation of this text. Standard resident fonts can be rotated in 90˚ increments as shown in the example. Format: {command} {font} {size} {x} {y} {data} where: {command}: Choose from the following: {command} Result TEXT (or T) Prints text horizontally.
Mobile Printing Systems CPCL Programming Manual Section 3 Text pg.
Mobile Printing Systems CPCL Programming Manual Using Font Groups FONT-GROUP (FG) Command The FG command gives a user the ability to group up to 10 pre-scaled font files into a single group. A user can later specify the font group in a TEXT command. If a font group is used in a text command, the printer will use the largest font specified in the font group that will produce the required text data and still remain within the available width of the label for the text.
Mobile Printing Systems CPCL Programming Manual Section 3 Text pg. 3-7 Example Input: Output: ! 0 200 200 250 1 ; Specify fonts 0-0, 7-0, 5-0, 4-0 as members ; of font group 3.
Mobile Printing Systems CPCL Programming Manual TEXT Concatenation Commands (CONCAT and VCONCAT) Text concatenation allows you to assign different character styles to strings, printing them with uniform spacing on the same text line. This command can be used in combination with scalable fonts.
Mobile Printing Systems CPCL Programming Manual Section 3 Text pg.
Mobile Printing Systems CPCL Programming Manual MULTILINE (ML) Commands MULTILINE (ML) allows you to print multiple lines of text using the same font and line-height. Format: {command} {height} {text} {font} {size} {x} {y} {data} “ {data} where: {command}: MULTILINE (or ML)- Prints multiple lines of text. {height}: Unit-height for each line of text. {text}: Text command (TEXT, VTEXT, etc.). {font}: Name/number of the font. {size}: Size identifier for the font.
Mobile Printing Systems CPCL Programming Manual ML Command Example Input: Output: ! 0 200 200 210 1 ML 47 TEXT 4 0 10 20 1st line of text 2nd line of text : Nth line of text ENDML FORM PRINT Section 3 Text pg.
Mobile Printing Systems CPCL Programming Manual COUNT Command The COUNT command is used for printing multiple labels where a numeric text field or numeric data encoded in a bar code is to be incremented or decremented for each label. The TEXT/BARCODE command string must contain this numeric data as the last characters of the string. The numeric data portion can be up to 20 characters, and can be preceded by the ‘-’ sign. Incrementing or decrementing the numeric data thru ‘0’ is not allowed.
Mobile Printing Systems CPCL Programming Manual COUNT Command Example Input: ! 0 200 200 210 3 ; Print 3 labels CENTER TEXT 4 0 0 50 TESTING 001 COUNT 1 TEXT 7 0 0 100 Barcode Value is 123456789 COUNT -10 BARCODE 128 1 1 50 0 130 123456789 COUNT -10 FORM PRINT Output: Section 3 Text pg.
Mobile Printing Systems CPCL Programming Manual Section 3 SETMAG Command The SETMAG command magnifies a resident font to the magnification factor specified. Format: {command} {w} {h} where: {command}: SETMAG {w}: Width magnification of the font. Valid magnifications are 1 thru 16. {h}: Height magnification of the font. Valid magnifications are 1 thru 16. NOTE: The SETMAG command stays in effect after printing a label. This means that the next label printed will use the most recently set SETMAG values.
Mobile Printing Systems CPCL Programming Manual SCALABLE TEXT Scalable text allows a user to print text at any point size. Point size can be specified for both the X and Y directions to produce characters that are “stretched” in either their width or height. Point sizes specified and text produced will print at 72 points equating to one inch (25.4mm).
Mobile Printing Systems CPCL Programming Manual SCALE-TEXT Example: Input: Output: ! 0 200 200 300 1 CENTER ; Print using x and y scales of 10 points SCALE-TEXT PLL_LAT.CSF 10 10 0 10 10 POINT FONT ; Print using x scale of 20 points and y scale ; of 10 points SCALE-TEXT PLL_LAT.CSF 20 10 0 80 WIDER FONT ; Print using x scale of 10 points and y scale ; of 20 points SCALE-TEXT PLL_LAT.CSF 10 20 0 150 TALLER FONT FORM PRINT Section 4 ScalableText pg.
Mobile Printing Systems CPCL Programming Manual SCALE-TO-FIT Commands The SCALE-TO-FIT commands automatically calculate the scale in order to fit text inside a window. Format: {command} {name} {width} {height} {x} {y} {data} where: {command}: Choose from the following: SCALE-TO-FIT (or STF): Prints scaled text horizontally. VSCALE-TO-FIT (or VSTF): Prints scaled text vertically. {name}: Font name. {width}: Unit-width of the window. {height}: Unit-height of the window.
Mobile Printing Systems CPCL Programming Manual SCALE-TO-FIT Command Example Input: ! 0 200 200 100 1 IN-MILLIMETERS CENTER ; Fit a text string into an area 40mm wide by 10mm ; high SCALE-TO-FIT PLL_LAT.CSF 40 10 0 10 SALE ; Fit a longer text string into the same 40mm wide ; by 10mm high area SCALE-TO-FIT PLL_LAT.CSF 40 10 0 20 SALE PRICE ; Fit “SALE” text into a 40mm wide by 20mm high ; area SCALE-TO-FIT PLL_LAT.CSF 40 20 0 30 SALE FORM PRINT Output: Section 4 ScalableText pg.
Mobile Printing Systems CPCL Programming Manual SCALABLE CONCATENATION Commands Scalable concatenation allows you to assign different character styles to strings, printing them with uniform spacing on the same text line. Both scalable and bitmap text can be combined between a CONCAT/ENCONCAT command.
Mobile Printing Systems CPCL Programming Manual SCALABLE CONCATENATION Command Example Input: ! 0 200 200 210 1 CENTER ; Concatenate 3 scalable font strings and 1 ; Resident font string CONCAT 0 20 4 1 0 2/ ST PLL_LAT.CSF 20 20 15 $ ST PLL_LAT.CSF 40 40 0 22 ST PLL_LAT.CSF 20 20 0 99 ENDCONCAT FORM PRINT Output: Section 4 ScalableText pg.
Mobile Printing Systems CPCL Programming Manual ROTATE Command ROTATE commands are used to rotate all subsequent scalable text fields at a specified angle. Rotation direction is counter-clockwise about the center point of the text. This rotation remains in effect until another ROTATE command is issued. Default angle is zero degrees. Format: {command} {angle} where: {command}: ROTATE (or R): Rotates scalable fonts. {angle}: Degree of rotation (ccw).
Mobile Printing Systems CPCL Programming Manual LINEAR BAR CODES Introduction Bar codes allow easy implementation of automated identification, cataloging and processing of almost any object. They have been successfully used on items ranging in size from boxcars to bumblebees. This overview of bar code symbologies will help when programming Zebra mobile printers and/or designing labels with Label Vista software.
Mobile Printing Systems CPCL Programming Manual Section 5 Linear Bar Codes pg.
Mobile Printing Systems CPCL Programming Manual UPC and EAN/JAN Bar Codes UPC and EAN/JAN bar codes are typically used for marking products with a unique code used to look up prices and to track inventories of goods sold. They are also used for store coupons, periodicals, and paperback books. UPC and EAN/JAN bar codes are generally rectangular, contain a fixed amount of data, and in most cases are accompanied by human readable text printed below them.
Mobile Printing Systems CPCL Programming Manual Section 5 Linear Bar Codes pg. 5-4 Step 1: Starting at the left, including the number system character, add up all the numbers in the ODD positions. (0 + 2+ 4 + 6 + 8 + 0 = 20) Step 2: Multiply this sum by 3. (20 x 3 = 60) Step 3: Starting at the left again, add up all the numbers in the EVEN positions. (1 + 3 + 5 + 7 + 9 = 25). Step 4: Add the results from step 2 and step 3.
Mobile Printing Systems CPCL Programming Manual specification. To create an extended bar code, place a space between the data that should go into the UPC/EAN bar code and the data that should go into the extension. You can also use the PLUS2 and PLUS5 bar code types to create the extension separately. Remember to leave ample space (about 9 times the ratio) between the UPC/EAN bar code and the extension.
Mobile Printing Systems CPCL Programming Manual Section 5 Code 39 or Code 3 of 9 Bar Codes The Code 39 bar code is used for many applications including inventories, hospital applications, or any other place where the code length may change between items being scanned (e.g. a bar code stating there were 420 pieces in one box and 20004 pieces in another box would have a different physical length). This bar code can use the characters 0 through 9, A through Z, ‘-’ (dash), “.
Mobile Printing Systems CPCL Programming Manual Refer to the full bar code symbology specification for complete information on checksum calculation. For a short example, take an example bar code with the data “CODE 39” . Step 1: Assign a value to each character per the Character Numerical Value Table above . C=12, O=24, D=13, E=14, space = 38, 3=3, 9=9. Step 2: Add the values 12+24+13+14+38+3+9=113. Step 3: Divide this number by 43. The remainder or modulo, 27, is the checksum.
Mobile Printing Systems CPCL Programming Manual Code 93 or Code 9 of 3 Bar Codes The Code 93 bar code is used for applications that require heavy error checking capabilities. To accomplish this, the Code 93 bar code contains two separate error checking checksums that are automatically calculated and placed into the bar code. This bar code is used for inventories, hospital applications, or any other place where the length may change between items being scanned. (See Code 39 above.
Mobile Printing Systems CPCL Programming Manual Interleaved 2 of 5 Bar Codes The Interleaved 2 of 5 (or ITF) bar code is used for applications that have a fixed data length for all items scanned. A date, telephone number, or a SKU of fixed length would be a good application for this bar code. The symbology specification states that a ITF bar code may be partially decoded without any recognizable difference.
Mobile Printing Systems CPCL Programming Manual Code 128 and the UCC-128 Shipping Standard Code 128 is used for applications that need to contain a large amount of data such as shipping applications, marking blood donations, and any other application that can vary in length between bar codes being scanned. The bar code also contains a checksum as the last character in the code which ensures that data remains intact.
Mobile Printing Systems CPCL Programming Manual Codabar Codabar is ideal for applications that contain mostly numeric symbols that may vary in length from bar code to bar code. It can encode the digits from 0 to 9, the characters “-”(dash), “$”(dollar sign), “:” (colon), “/” (forward slash), “.” (period), and “+” (plus) as well as start/stop characters A through D. One optional checksum is automatically appended as the least significant digit in the bar code data directly before the stop character.
Mobile Printing Systems CPCL Programming Manual MSI Plessey Bar Codes The MSI Plessey bar code is a fixed length code that uses only numerical characters. It is primarily used for grocery applications. Three different types of encoding exist with different levels of data protection. Please see the bar code symbology specification for more information on how to calculate these checksums. The bar code type “PLESSEY” is used for reverse compatibility only.
Mobile Printing Systems CPCL Programming Manual Postnet and Facing Identification Marks The US Postnet bar code is used only to help automate mail delivery. To comply with postal regulations, set the height of the bar code to 30 dots, the wide/narrow bar ratio at 3.5:1, and the width of the narrow bar to 3 dots on a 200 d.p.i. printer. The data sent to the bar code can be 5, 9, or 11 digits long.
Mobile Printing Systems CPCL Programming Manual Postnet and FIM Specifications Bar Code Symbology Bar Code Type Input Length Postnet POSTNET 5, 9, 11 digits Facing Ident Mark FIM A, B, or C only Characters Ideal Wide/ Narrow Ratio Ideal Narrow Dot Width Checksum Calculation 0-9 only 3.5:1 3 mod 10 A, B, or C 1.5:1 6 N/A Bar Code Commands The following commands are used for the creation and formatting of bar codes on labels.
Mobile Printing Systems CPCL Programming Manual Section 5 Linear Bar Codes pg. 5-15 BARCODE Command The BARCODE command prints bar codes in both vertical and horizontal orientations at specified widths and heights. Standard Bar Codes Format: {command} {type} {width} {ratio} {height} {x} {y} {data} where: {command}: Choose from the following: BARCODE(or B): Prints bar code horizontally. VBARCODE (or VB) Prints bar code vertically.
Mobile Printing Systems CPCL Programming Manual {width}: Unit-width of the narrow bar. {ratio}: Ratio of the wide bar to the narrow bar. Refer to the table in Appendix “E” for appropriate settings. 0 = 1.5 : 1 20 = 2.0:1 26 = 2.6:1 1 = 2.0 : 1 21 = 2.1:1 27 = 2.7:1 2 = 2.5 : 1 22 = 2.2:1 28 = 2.8:1 3 = 3.0 : 1 23 = 2.3:1 29 = 2.9:1 4 = 3.5 : 1 24 = 2.4:1 30 = 3.0:1 25 = 2.5:1 Note: The ratios in the Appendix are suggested for best results; however, any ratio can be assigned.
Mobile Printing Systems CPCL Programming Manual BARCODE-TEXT Command The BARCODE-TEXT command is used to label bar codes with the same data used to create the bar code. The command eliminates the need to annotate the bar code using separate text commands. The text will be centered below the bar code. Use BARCODE-TEXT OFF (or BT OFF) to disable. Format: {command} {font number} {font size} {offset} where: {command}: BARCODE-TEXT (or BT) {font number}: The font number to use when annotating the bar code.
Mobile Printing Systems CPCL Programming Manual Section 5 Linear Bar Codes pg. 5-18 COUNT Command The COUNT command is used for printing multiple labels where a numeric text field or numeric data encoded in a bar code is to be incremented or decremented for each label. The TEXT/BARCODE command string must contain this numeric data as the last characters of the string. The numeric data portion can be up to 20 characters, and can be preceded by the ‘-’ sign. Counts of 9 - 0 will wrap to 9.
Mobile Printing Systems CPCL Programming Manual Output: Section 5 Linear Bar Codes pg.
Mobile Printing Systems CPCL Programming Manual REDUCED SPACE SYMBOLOGY AND COMPOSITE SYMBOLS NOTE: GS1 recently renamed the RSS Symbology to GS1 DataBar to avoid confusion with the popular RSS XML Feed technology. The name change does not change the barcode standards, therefore documentation referring to the “RSS Symbology” is the same as GS1 DataBar. GS1 also recently renamed several barcode standards built on Code 128 such as EAN-128 and UCC-128 to GS1-128.
Mobile Printing Systems CPCL Programming Manual RSS Expanded RSS Expanded encodes EAN.UCC item identification plus supplementary information such as weight and “best before” dates in a linear symbol that can be scanned omindirectionally by suitably programmed point-of-sale bar code reader. RSS Expanded can encode up to 74 numeric or 41 non-numeric characters. For use at point-of-sale for variable measure identification of items such as meat, seafood and deli.
Mobile Printing Systems CPCL Programming Manual 2D symbology is known as a composite symbol. It consists of one of the EAN/UCC linear symbologies and one of the 2D. The 2D component adds a supplementary Application Identifier Element String data to EAN. UCC System linear symbologies. It provides the following benefits: • The composite symbol is the only one with an easily scannable item identification.
Mobile Printing Systems CPCL Programming Manual VBARCODE (or VB): Prints bar code vertically {type}: RSS {x}: Horizontal starting position. {y}: Vertical starting position. {width}: Unit-width of the narrowest element. {lin_height}: Height of the linear part of barcode. {sep_height}: Height of the separator. {segments}: Number of segments per row. {subtype}: RSS/Composite subtype.
Mobile Printing Systems CPCL Programming Manual Bar Code Examples Example 1: RSS14 Composite Input: ! 0 200 200 300 1 T 5 0 10 40 RSS14 Composite T 5 0 10 70 1234567890123|1234567890 BARCODE RSS 10 110 2 25 3 22 1 1234567890123|1234567890 PRINT Output: Section 5 Linear Bar Codes pg.
Mobile Printing Systems CPCL Programming Manual Example 2: RSS14 Stacked Input: ! 0 200 200 300 1 T 5 0 10 40 RSS14S (type=3) T 5 0 10 70 1234567890123 BARCODE RSS 10 100 3 25 3 22 3 1234567890123 PRINT Output: Example 3: RSS Expanded Input: ! 0 200 200 300 1 T 5 0 10 40 RSSExp (type=6) T 5 0 10 70 1234567890123 BARCODE RSS 10 100 3 25 3 22 6 1234567890123 PRINT Output: Section 5 Linear Bar Codes pg.
Mobile Printing Systems CPCL Programming Manual Example 4: EAN Composite Input: ! 0 200 200 400 1 T 5 0 10 40 UCC128A (type=11) T 5 0 10 70 12345678901234567890|1234567890 BARCODE RSS 10 140 3 25 3 22 11 12345678901234567890|1234567890 PRINT Output: Section 5 Linear Bar Codes pg.
Mobile Printing Systems CPCL Programming Manual Example 5: RSS 14 Input: ! 0 200 200 300 1 T 5 0 10 40 RSS14 (type=1) T 5 0 10 70 1011234567890 BARCODE RSS 10 100 1 25 3 22 1 1011234567890 PRINT Output: Section 5 Linear Bar Codes pg.
Mobile Printing Systems CPCL Programming Manual TWO DIMENSIONAL BARCODES Introduction A two dimensional bar code can be regarded as a “portable database.” For example, if a package has a serial number encoded with a linear bar code, you could scan the serial number, look up the number in a computer system, and gather the information about that package.
Mobile Printing Systems CPCL Programming Manual correction modes, seven different storage modes, the capability to use character sets other than ASCII, and the capability to “link” several MaxiCodes together. Since there are so many different modes, it is suggested that you contact AIM for the symbol specification. If you are developing software to be used with the UPS MaxiCode shipping system, contact UPS for information on how to order the information on the Maxicode shipping system.
Mobile Printing Systems CPCL Programming Manual PDF417 (PORTABLE DATA FILE) Format: {command} {type} {x} {y} [XD n] [YD n] [C n] [S n] {data} where: {command}: Choose from the following: BARCODE (or B): Prints bar code horizontally. VBARCODE (or VB): Prints bar code vertically. {type}: PDF-417 {x}: Horizontal starting position. {y}: Vertical starting position. [XD n]: Unit-width of the narrowest element. Range is 1 to 32, default is 2. [YD n]: Unit-height of the narrowest element.
Mobile Printing Systems CPCL Programming Manual PDF417 Example Input: ! 0 200 200 210 1 B PDF-417 10 20 XD 3 YD 12 C 3 S 2 PDF Data ABCDE12345 ENDPDF T 4 0 10 120 PDF Data T 4 0 10 170 ABCDE12345 FORM PRINT Output: Section 6 Two Dimensional Barcodes pg.
Mobile Printing Systems CPCL Programming Manual MAXICODE Revised: Application Version 25 or higher The Maxicode bar code now handles all the symbols defined by the United Parcel Service as well as the basic fields supported in the standard bar code. Maxicode supports all standard printable characters with automatic conversion of all lowercase letters in the secondary message to uppercase. This revision supports only Mode 2 bar codes.
Mobile Printing Systems CPCL Programming Manual Tags to control the type of bar code created: Tag Definition UPS5 Use UPS5 tags to create the low prioritymessage. (On: 1, Off: 0) Default Value 0 ZIPPER Turn the zipper and contrast patterns on or off. (On: 1, Off: 0) 0 FILLC Low priority message fill character (Messages shorter than 84 characters will be padded with this character.
Mobile Printing Systems CPCL Programming Manual Tags used when UPS5 is turned on: Tag Definition Default Value LPMS Low priority message header HEAD Transportation data format header TN Tracking Number SCAC Standard Carrier Alpha Code SHIPPER UPS Shipper Number [GS] PICKDAY Julian day of pickup [GS] SHIPID Shipment ID Number [GS] NX Package N of X (n/x) [GS] WEIGH Package weight [GS] VAL Address validation (Y or N) [GS] STADDR Ship to street address [GS] CITY Ship to city
Mobile Printing Systems CPCL Programming Manual MAXICODE Examples Basic example with minimal required fields to print a bar code: Input, Example 1: ! 0 200 200 600 1 JOURNAL B MAXICODE 20 20 CC 12345 MSG This is a MAXICODE low priority message. SC 12345 POST 02886 ENDMAXICODE PRINT Output, Example 1: Decodes to: 028860000[GS]057[GS]057[GS]This is a MAXICODE low priority message. Section 6 Two Dimensional Barcodes pg.
Mobile Printing Systems CPCL Programming Manual Example with zipper and contrast patterns: Input, Example 2: Output, Example 2: ! 0 200 200 600 1 JOURNAL B MAXICODE 20 20 CC 12345 MSG This is a MAXICODE low priority message. SC 12345 POST 02886 ZIPPER 1 ENDMAXICODE PRINT Section 6 Two Dimensional Barcodes pg.
Mobile Printing Systems CPCL Programming Manual Example using tags for UPS Input, Example 3: ! 0 200 200 600 1 JOURNAL B MAXICODE 20 20 VAL Y STADDR 30 PLAN WAY WEIGH 210 SHIPID 42 PICKDAY 193 SHIPPER 12345 TN 1Z12345675 CC 860 SC 1 POST 02886 ZIPPER 1 SHIPPER 12345E NX 1/2 UPS5 1 CITY WARWICK ST RI ENDMAXICODE PRINT Output, Example 3: Decodes to: Section 6 Two Dimensional Barcodes pg.
Mobile Printing Systems CPCL Programming Manual QR Code Format: Two Dimensional {command} {type} {x} {y} [M n] [U n] {data} where: {command}: Choose from the following: BARCODE (or B): Prints bar code horizontally. VBARCODE (or VB): Prints bar code vertically. {type}:QR {x}: Horizontal starting position. {y}: Vertical starting position. [M n]: QR code model number. Range is 1 or 2. QR Code Model 1 is the original specification, while QR Code Model 2 is an enhanced form of the symbology.
Mobile Printing Systems CPCL Programming Manual Q - High reliability level (Level Q); M - Standard level (Level M); L - High density level (Level L). Mask Number may be omitted or have a value from 0 to 8: None - Automatic selection of the mask by software; From 0 to 7 – use mask with corresponding number (0 to 7); 8 - No mask. Data field format for manual data type selection includes additional character mode symbols and has the following format:
Mobile Printing Systems CPCL Programming Manual Section 6 Data Field Formatting Examples Example 1 Error Correction Level: Standard level Mask No.: Input mode: Automatic setting Data: QR Code The {data} field presentation for generating a QR code under the conditions above: MA,QR Code Example 2 Error Correction Level: Ultra high reliability level Mask No.
Mobile Printing Systems CPCL Programming Manual Example 4 Error Correction Level: High density level Mask No.: Automatic setting Input mode: Manual setting Character Mode: Alphanumeric Data: QR code Character Mode: Numeric Data: 0123456789012345 Character Mode: Alphanumeric Data: QRCODE Character Mode: Binary Data: qrcode The {data} field presentation: LM,AQRcode,N0123456789012345,AQRCODE,B0006qrcode Note: The BARCODE-TEXT command does not work with QR code.
Mobile Printing Systems CPCL Programming Manual Aztec Barcode Command Format: {command} {type} {x} {y} [XD n] [EC n] {data} where: {command}: Choose from the following: BARCODE Prints barcode horizontally. (or B) VBARCODE Prints barcode vertically. (or VB) {type}: {x}: {y}: [XD n]: [EC n]: Section 6 Two Dimensional Barcodes pg. 6-15 {data}: : AZTEC Horizontal starting position. Vertical starting position. Unit-width of the narrowest element (in dots). Default is 6.
Mobile Printing Systems CPCL Programming Manual Section 6 Two Dimensional Barcodes pg.
Mobile Printing Systems CPCL Programming Manual GRAPHICS BOX Command The BOX command provides the user with the ability to produce rectangular shapes of specified line thickness. Format: {command} {x0 } {y0 } {x1} {y1} {width} where: {command}: BOX {x0 }: X-coordinate of the top left corner. {y0 }: Y-coordinate of the top left corner. {x1}: X-coordinate of the bottom right corner. {y1}: Y-coordinate of the bottom right corner. {width}: Unit-width (or thickness) of the lines forming the box.
Mobile Printing Systems CPCL Programming Manual LINE Commands Lines of any length, thickness, and angular orientation can be drawn using the LINE command. Format: {command} {x0 } {y0 } {x1} {y1} {width} where: {command}: Choose from the following: LINE (or L): Prints a line. {x0 }: X-coordinate of the top-left corner. {y0 } Y-coordinate of the top-left corner. {x1}: X-coordinate of: - top right corner for horizontal. - bottom left corner for vertical.
Mobile Printing Systems CPCL Programming Manual Section 7 Graphics pg. 7-3 INVERSE-LINE Commands The INVERSE-LINE command has the same syntax as the LINE command. Previously created objects that lie within the area defined by the INVERSE-LINE command will have their black areas re-drawn white, and white areas re-drawn black. These objects can include text, bar codes and/or graphics, including downloaded .pcx files.
Mobile Printing Systems CPCL Programming Manual Section 7 Graphics pg. 7-4 Inverse Line command examples Input 1: Output 1: ! 0 200 200 210 1 CENTER TEXT 4 0 0 45 SAVE TEXT 4 0 0 95 MORE INVERSE-LINE 0 45 145 45 45 INVERSE-LINE 0 95 145 95 45 FORM PRINT Input 2: ! 0 200 200 210 1 T 4 2 30 20 $123.45 T 4 2 30 70 $678.90 IL 25 40 350 40 90 T 4 2 30 120 $432.
Mobile Printing Systems CPCL Programming Manual Section 7 Graphics pg. 7-5 PATTERN Command The PATTERN command is used with the LINE and SCALE-TEXT commands to change the patterns used to fill these shapes. Valid pattern values are listed below. Format: {command} {pattern number} where: {command}: PATTERN {pattern number}: Choose from the following: 100 Filled (solid black/default pattern). 101 Horizontal lines. 102 Vertical lines. 103 Right rising diagonal lines. 104 Left rising diagonal lines.
Mobile Printing Systems CPCL Programming Manual Pattern command example Input: ! 0 200 200 700 1 ; Draw horizontal and vertical patterns PATTERN 101 LINE 10 10 160 10 42 PATTERN 102 LINE 170 10 350 10 42 ; Draw left and right diagonal patterns PATTERN 103 LINE 10 65 160 65 40 PATTERN 104 LINE 170 65 350 65 40 ; Draw square and cross hatch patterns PATTERN 105 LINE 10 115 160 115 40 PATTERN 106 LINE 170 115 350 115 40 ; Draw a scalable text character with cross hatch pattern PATTERN 106 ST PLB_LAT.
Mobile Printing Systems CPCL Programming Manual GRAPHICS Commands Bit-mapped graphics can be printed by using graphics commands. ASCII hex (hexadecimal) is used for expanded graphics data (see example). Data size can be reduced to one-half by utilizing the COMPRESSED-GRAPHICS commands with the equivalent binary character(s) of the hex data. When using CG, a single 8 bit character is sent for every 8 bits of graphics data.
Mobile Printing Systems CPCL Programming Manual PCX Commands The PCX command gives a user the ability to send “.PCX” graphics formatted images to the printer. The .PCX image MUST be encoded as a black and white image. Format: {command} {x} {y} {data} where: {command}: PCX {x}: X-coordinate of the top-left corner. {y}: Y-coordinate of the top-left corner. {data}: PCX image data. PCX Command example1 Input1: In the example below, the image is sent in three steps.
Mobile Printing Systems CPCL Programming Manual Section 7 Graphics pg. 7-9 PCX Command Example 2 In this example , the PCX image has been loaded into the printer’s flash file system and given the name “IMAGE.PCX”. The “!<“ operator can now be used to instruct the printer to get the data stored in the file “Image.PCX” and use it for building the image. Input 2: ! 0 200 200 500 1 PCX 0 30 !
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-1 ADVANCED COMMANDS CONTRAST Command The CONTRAST command is used to specify the print darkness for the entire label. The lightest printout is at contrast level 0. The darkest contrast level is 3. The printer defaults to contrast level 0 on power up. Contrast level must be specified for each label file. NOTE: In order to maximize printing efficiency, always use the lowest contrast level possible .
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-2 TONE Command The TONE Command can be used instead of the CONTRAST command to specify the print darkness for all labels. The lightest printout is at tone level -99. The darkest tone level is 200. The printer defaults to tone level 0 on power up. Tone level settings remain in effect for all printing tasks until changed. The TONE and CONTRAST commands cannot be used in combination with one another.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-3 JUSTIFICATION Commands Alignment of fields can be controlled by using the justification commands. By default, the printer will left justify all fields. A justification command remains in effect for all subsequent fields until another justification command is specified. Format: {command} [end] where: {command}: Choose from the following: CENTER: Center justifies all subsequent fields.
Mobile Printing Systems CPCL Programming Manual PAGE-WIDTH Command The printer assumes that the page width is the full width of the printer. The maximum height of a print session is determined by the page width and the available print memory. If the page width is less than the full width of the printer, the user can increase the maximum page height by specifying the page width. Note: This command should be issued at the beginning of a print session.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-5 PAGE-WIDTH Examples continued Input 2: ! UTILITIES SETLP 7 0 15 PW 200 PRINT This text is printed with label memory width set to 200 dots.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-6 PACE Command This command can be used with batch printing. When PACE is activated, the user must depress the printer’s “FEED” key to print additional labels until the batch quantity is exhausted. By default, pacing is disabled on power up. Format: {command} where: {command}: PACE PACE Command Example In the following example, the command file shown was sent to the printer once.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-7 AUTO-PACE Command This command can be used to instruct a printer equipped with a label presentation sensor to delay printing until the previously printed label is removed. Format {command} Where: {command}: AUTO-PACE AUTO-PACE Command Example This example instructs the printer to print 10 labels. The printer prints a label, and waits for that label to be removed before printing the next label.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-8 NO-PACE Command This command cancels the PACE and AUTO-PACE mode, if the printer is already in PACE orAUTO-PACE. The printer defaults to NO-PACE on power up. Format {command} where: {command}: NO-PACE NO-PACE Command Example This example instructs the printer to print 10 labels. The printer prints a label, waits for the label to be removed before printing the next label.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-9 WAIT Command This command is used to introduce a delay after a label is printed. Format: {command} {delay-time} where: {command}: WAIT {delay-time}: Delay time in 1/8 seconds. WAIT Command Example In the example below, the printer will pause 10 seconds (10 * 8 = 80) after printing each label.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-10 REWIND Command This command is used to turn the rewind (or take-up) motor on or off. The printer defaults to REWIND-ON on power up. The REWIND command is ignored by printers that are not equipped with a motorized rewind.
Mobile Printing Systems CPCL Programming Manual TENSION Commands The tension commands are used to adjust the liner tension before and/or after printing a label by running the rewind motor for a pre-specified length. This adjustment improves peeler performance of printers equipped with a motorized rewind mechanism. The TENSION commands are ignored by printers not equipped with a motorized rewind.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-12 SPEED Command This command is used to set the highest motor speed level. Each printer model is programmed with a minimum and maximum attainable speed. The SPEED command selects a speed level within a range of 0 to 5, with 0 the slowest speed. The maximum speed programmed into each printer model is attainable only under ideal conditions.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-13 SETSP Command The SETSP command is used to change spacing between text characters. Format: {command} {spacing} where: {command}: SETSP {spacing}: Unit measurement between characters. The default for spacing is zero. Note that this command is affected by the UNITS command setting.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-14 UNDERLINE Command The UNDERLINE command is used to underline text. This command works only if the font being used supports underline. This command is ignored if the font being used does not support UNDERLINE. The following fonts support UNDERLINE: GBUNSN24.CPF GBUNSN24.CPF Format: {command} {mode} {command}: UNDERLINE {mode}: Choose from the following “ON” “OFF” UNDERLINE Example Input (UNDERLINE.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-15 ON-OUT-OF-PAPER Command This command can be issued to instruct the printer as to the course of action to take when it encounters an error while printing the label (such as running out of stock) Format: {command} {action} {number of retries} where:{ command}: ON-OUT-OF-PAPER {action}: Choose one of the following: PURGE: Discard the label if print error is encountered after the specified number of attempts.
Mobile Printing Systems CPCL Programming Manual ON-FEED Command Your printer can be configured to ignore, form-feed, or reprint the last label when the feed key is pressed or when it receives a form-feed character (0x0c). Format: {command} {action} where: {command}: ON-FEED {action}: Choose from the following: IGNORE: Don’t take any action when the feed key is pressed or when the form-feed character is received.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-18 PREFEED Command The PREFEED command instructs the printer to advance the media a specified amount prior to printing. NOTE: When prefeeding using negative values do not exceed the label height. Doing so risks sending the printer into a continuous loop and prohibits further interaction with the printer until power is cycled.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-19 POSTFEED Command The POSTFEED command instructs the printer to advance the media a specified amount after printing. Format: {command} {length} where: {command}: POSTFEED {length}: Unit length the printer advances media after printing. POSTFEED Command Example The following example sets up the printer for post-feeding 40 dot-lines after printing.
Mobile Printing Systems CPCL Programming Manual PRESENT-AT Command The PRESENT-AT command can be used to position the media at the tear bar of the printer or at a location where the printed label can be easily removed by the operator. When a PRESENT-AT command is issued, the printer will print a label and then, after a delay period, advance the media a specified distance. It will then retract the media the same distance before starting a new print job.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-21 PRESENT-AT Command Example The following example instructs the printer to wait 1/4 second and if there is no printer activity within this interval to then advance the media 80 dot-lines. The printer will retract the media by the same amount before printing the next label.
Mobile Printing Systems CPCL Programming Manual COUNTRY / CODE PAGE Command The COUNTRY control command substitutes the appropriate character set for the specified country. Format: {command} {name} where: {command}: COUNTRY {name}: Choose from the following table: USA GERMANY FRANCE SWEDEN SPAIN NORWAY ITALY CP850 UK LATIN9 CP874 (Thai) CHINA (Simplified Chinese, Double Byte Character Set- see Asian Fonts topic on Pg. 8-23) KOREA (Korean, Double Byte Character Set- see Asian Fonts topic on Pg.
Mobile Printing Systems CPCL Programming Manual COUNTRY Command Example Input: ! 0 200 200 80 1 IN-MILLIMETERS JOURNAL CENTER ; Set the country as USA COUNTRY USA ; Now Print Text From ISO substitution Table TEXT 4 0 0 8 COUNTRY IS USA TEXT 4 0 0 15 #$@[\]^‘{|}~ ; Set country for France and print the same text COUNTRY FRANCE TEXT 4 0 0 28 COUNTRY IS FRANCE TEXT 4 0 0 35 #$@[\]^‘{|}~ PRINT Output: Section 8 Advanced Commands pg.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-24 Asian Fonts Supported Combinations of Asian Fonts Some mobile printer models do not offer complete support of Asian fonts in every printer configuration. The table below applies to printers limited to 1M/1M of memory.
Mobile Printing Systems CPCL Programming Manual Using Format Files The DEFINE-FORMAT and USE-FORMAT commands are used to identify format and data respectively. Format files eliminate having to re-send the same format information for every label printed. By using a pre-loaded format, only variable data (such as descriptions, price, etc.) is sent to the printer. Label File Example Not Using FORMAT Commands Input: ! 0 200 200 210 1 CENTER TEXT 4 3 0 15 $22.
Mobile Printing Systems CPCL Programming Manual The following pages illustrate separating the above example into a format file and data. DEFINE FORMAT Defining a label format file is accomplished using the DEFINE-FORMAT (or DF) command to mark the beginning of the format, and PRINT to mark the end. A ‘\\’ (double-backslash) acts as a place holder for data. DEFINE FORMAT Command Example Input: ! DF SHELF.
Mobile Printing Systems CPCL Programming Manual USE-FORMAT The USE-FORMAT (or UF) command instructs the printer to use a specified format file. The label will be created using that format file with data supplied following the USE-FORMAT command. After accessing the specified format file, the printer substitutes the ‘\\’ delimiters with the data supplied, producing the desired label. USE FORMAT Command Example Input: ! UF SHELF.FMT $22.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-28 BEEP Command This command instructs the printer to sound the beeper for a given time length. Printers not equipped with a beeper will ignore this command. Format: {command} {beep_length} Where: {command}: BEEP {beep_length}: Duration of beep, specified in (1/8th) second increments. BEEP Command Example This example instructs the printer to beep for two seconds (16 x .
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-29 CUT Command On printers equipped with cutters, this command will cut the label after it is printed. Format: {command} where: {command}: CUT CUT Command Example Input: ! 0 200 200 1.5 1 IN-INCHES ; Journal label 300 dots long CENTER ; Print some text TEXT 4 0 0 .15 CUT COMMAND TEXT 4 0 0 .5 EXAMPLE ; After we print the label, cut it.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-30 PARTIAL-CUT Command On printers equipped with cutters, this command will cut the label after it is printed, leaving a portion of the label uncut to facilitate easily tearing the remainder of the label. Format: {command} where: {command}: PARTIAL-CUT PARTIAL-CUT Command Example Input: ! 0 200 200 1.5 1 IN-INCHES ; Journal label 300 dots long JOURNAL CENTER ; Print some text TEXT 4 0 0 .15 PARTIAL CUT TEXT 4 0 0 .
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-31 CUT-AT Command This command is used on printers equipped with a cutter, in conjunction with the CUT or PARTIAL-CUT commands. This command will instruct the printer to retract the stock by a specified length. Printers not equipped with a cutter will ignore this command. This command should not be used on printers that use a thermal transfer ribbon.
Mobile Printing Systems CPCL Programming Manual Section 8 Advanced Commands pg. 8-32 MCR Commands These commands (MCR, MCR-QUERY and MCR-CAN) can be used to configure and activate the optional Magnetic Card Reader (MCR). The MCR commands will be ignored by printers that are not equipped with a Magnetic Card Reader. The MCR command can be issued in a label file (! 0 200 … PRINT), or in a utilities command session (! UTILITIES … PRINT).
Mobile Printing Systems CPCL Programming Manual LINE PRINT MODE Introduction Besides printing labels, Zebra mobile printers can make receipts, lists, and other variable length documents in line printer mode. A printer in line print mode receives raw ASCII text, and will print out your document in raw text. In Windows 95, this is called the “Generic/Text Only” printer.
Mobile Printing Systems CPCL Programming Manual Section 9 Line Print Mode pg. 9-2 BEGIN-PAGE Command The BEGIN-PAGE command clears line print memory and line print information to initialize a line print session. Format: ! U1 BEGIN-PAGE END-PAGE Command The END-PAGE command closes a line print session and prints the contents of line print memory.
Mobile Printing Systems CPCL Programming Manual Special Commands Using the Utility Function The printer can execute several utility commands at once or one at a time. !U SETLP 7 0 24 PAGE-WIDTH 720 PRINT This line is printed as raw text. These lines are in font 7 size 0 ! U1 SETLP 7 0 24 ! U1 PAGE-WIDTH 720 This line is printed as raw text. These lines are in font 7 size 0.
Mobile Printing Systems CPCL Programming Manual LP-ORIENT Command The LP-ORIENT command sets the rotation in which the line print characters will be printed. Format: {command} {value} where: {command}: LP-ORIENT {value}: choose rotation 0 (default) 270 NOTE: In both rotations the characters are printed in the order they are sent. UNITS Commands The units commands specify a measurement system for all subsequent command fields in a utility session.
Mobile Printing Systems CPCL Programming Manual SETLP Command Selecting the line printer font (the SETLP command) will change the font the printer uses for line print mode. It also chooses the amount of space the printer will move down when the printer recieves a carriage return (hex value 0x0d). ! U1 SETLP {font name or number} {size} {unit height} The {unit height} value should be set to the actual height of the font being used. Refer to Appendix C of this manual for actual resident font height values.
Mobile Printing Systems CPCL Programming Manual Section 9 Line Print Mode pg. 9-6 SETLF Command Use the SETLF command to change the height of each line without changing the font. Format: ! U1 SETLF {unit height} The command “! U1 SETLF 40” will advance the paper 40 dots for every LF (line feed, hex value 0x0a) character it receives.
Mobile Printing Systems CPCL Programming Manual Moving With X and Y Coordinates Even though the printer is in a line print mode, it can still move down and across the paper using X and Y values.
Mobile Printing Systems CPCL Programming Manual Section 9 Line Print Mode pg. 9-8 SETBOLD Command The SETBOLD command will make text bolder and slightly wider. The SETBOLD command takes one operand to set how black the text should be made. Format: ! U1 SETBOLD {value} where {value} is an offset number from 0 to 5. Notes: {value} will be in the units set by the UNITS command. The default UNITS setting is in dots. (203 dots= 1”) If UNITS is in inches the offset value range is 0-.0246”.
Mobile Printing Systems CPCL Programming Manual Section 9 Line Print Mode pg. 9-9 SETSP Command The SETSP command is used to change spacing between text characters. Spreading out characters on a line makes the font appear wider. The SETSP command can also be used to spread out the text across the line. Format: ! U1 SETSP {unit to separate characters} For example, “! U1 SETSP 5” will put five dots between each character on the line. Try this command to make fonts look larger for emphasis.
Mobile Printing Systems CPCL Programming Manual PAGE-WIDTH Command PAGE-HEIGHT Command The printer lets you control both the width and height of the page through use of the PAGE-WIDTH and PAGE-HEIGHT commands. The QL 420 or RW 420 four inch printers, for example, will take any size stock up to four inches wide. If the stock is three inches wide, use the PAGE-WIDTH, or PW command.
Mobile Printing Systems CPCL Programming Manual SETFF Command The SETFF command is used to align top of media to printhead. Once this command is executed, the alignment will occur when : • feed key is pressed. • form-feed character (0x0c) is issued. • FORM command is issued. Format: {command} {max-feed} {skip-length} where: {command}: SETFF {max-feed}: Maximum unit-length the printer advances searching for the next eye-sense mark to align top of form. Valid values are 0-20,000.
Mobile Printing Systems CPCL Programming Manual Section 9 SET-TOF Command This command is used to program the distance between the top-of-form and the end of the next (positive value) or previous (negative value) eye-sense mark or gap. The eye-sense-mark or gap that is closer to the top-of-form should be used for top-of-form setting. Format: {command} {d} where: {command}: SET-TOF {d}: The distance between the top of form and the end of the next or previous eye-sense mark or gap, whichever is closer.
Mobile Printing Systems CPCL Programming Manual Section 9 Line Print Mode pg. 9-13 SET-TOF Command Example 1, label with eye-sense mark The following example sets the top-of-form to end of next eye-sense mark to 101 dots (measured from the top-of-form to the end of the next (lower) label’s eye-sense mark.
Mobile Printing Systems CPCL Programming Manual Tearing or Cutting the Paper PRESENT-AT Command Remember to add a few extra Carriage Return/Line Feeds (CR/LF, or Enter) to the end of your receipt. This will advance the paper enough to allow the receipt to be torn off without ripping through the last line of text. After the printer is done advancing the paper, tear the paper off.
Mobile Printing Systems CPCL Programming Manual CUT and PARTIAL-CUT Command Alternatively, the printer can simply cut the paper or partially cut the paper. (Partial cut is useful when the receipt may fall to the floor when the user doesn’t grab it immediately.) At the end of the receipt, put in a sufficient amount of CR/LF characters, then issue the CUT or PARTIAL-CUT command.
Mobile Printing Systems CPCL Programming Manual Section 9 Line Print Mode pg. 9-16 SETLP-TIMEOUT Command If the printer does not receive any characters after a set time, it will begin to print. This delay can be set with the SETLP-TIMEOUT command. Format: ! U1 SETLP-TIMEOUT {time in 1/8 second units} Multiply the seconds to wait by 8 to get the correct time for the command. The valid range of values is 0-255.
Mobile Printing Systems CPCL Programming Manual Section 9 Line Print Mode pg. 9-17 Designing a Receipt It is now possible to create a receipt using the commands just described. First, list all the fields that you want on the receipt.
Mobile Printing Systems CPCL Programming Manual Printing a Receipt, Example 1 Input: ! U1 JOURNAL ! U1 SETLP 4 0 47 YOURCO RETAIL STORES ! U1 SETLP 7 0 24 14:40 PM Thursday, 06/04/20 Quantity Item Unit Total 1 Babelfish $4.20 $4.20 Tax: 5% $0.21 ! U1 SETSP 5 Total:! U1 SETSP 0 $4.41 Thank you for shopping at YOURCO Output: Section 9 Line Print Mode pg.
Mobile Printing Systems CPCL Programming Manual Receipt Example 2 The following example is a more complex design for a fabric shop. This receipt would print at the cutting table where a salesperson measures out the fabric. The cashier then scans the bar code at the bottom of the receipt to complete the sale. Except for the utility commands, this receipt will print out much as it looks. Your program must provide all the correct number of spaces and text alignment. Section 9 Line Print Mode pg.
Mobile Printing Systems CPCL Programming Manual Input: ! U1 JOURNAL ! U1 SETLP 5 2 46 AURORA’S FABRIC SHOP ! U1 SETLP 5 0 24 123 Castle Drive, Kingston, RI 02881 (401) 555-4CUT ! U1 SETLP 7 0 24 4:20 PM Thursday, June 04, 2020 Store: 142 Order Number: #59285691 Status: ! U1 SETSP 10 INCOMPLETE ! U1 SETSP 0 Item Description Quant. Price Subtotal Tax 1211 45” Buckram 5 yds @ $3.42/yd $17.10 Y Z121 60” Blue Silk 10 yds@ $15.00/yd $150.00 N Z829 60” Muslin 20 yds@ $1.00/yd $20.00 Y SUBTOTAL: $187.
Mobile Printing Systems CPCL Programming Manual Section 9 Line Print Mode pg.
Mobile Printing Systems CPCL Programming Manual Section 10 Advanced Utilities pg. 10-1 ADVANCED UTILITIES The Advanced Utilities are used to manage the flash file system, obtain information about firmware and printer applications, configure the printer for use in other countries, and to set several operating parameters. The following example illustrates the use of some of the commands you will find in this section.
Mobile Printing Systems CPCL Programming Manual VERSION Utility This command reports the firmware version as a four character null-terminated ASCII string. Format: {command} where: {command}: VERSION VERSION Example Input: ! UTILITIES VERSION PRINT Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual CHECKSUM Utility This command reports the application checksum as a four character null-terminated ASCII string. Format: {command} where: {command}: CHECKSUM CHECKSUM Example Input: ! UTILITIES CHECKSUM PRINT DEL Utility The DEL command deletes the specified file. Format: {command} {name.ext} where: {command}: DEL {name.ext}: Name of file to be deleted. Note: DEL*.* may be used to globally delete all files.
Mobile Printing Systems CPCL Programming Manual DIR Utility The DIR command sends the file directory to a host. Format: {command} where: {command}: DIR Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual DEFINE-FILE (DF) Utility The DF command defines a file name for a file to be loaded into the printer. If a file with the same name already exists in the printer, it will be overwritten with the new file. The contents of the file must contain ASCII characters. To transfer binary files to the printer, use the utility provided in the Label Vista application. Format: {command} {filename.ext} {data} {terminator} where: {command}: DF {filename.
Mobile Printing Systems CPCL Programming Manual TYPE Utility The TYPE command allows you to read a text file by sending it from the printer to a host. Format: {command} {name.ext} where: {command}: TYPE {name.ext}: Name of text file to be sent to host. Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual BAUD Utility The BAUD command enables you to set the printer serial port baud rate. Note: this command will take effect immediately and the requested baud rate will remain in effect when the printer is powered down.
Mobile Printing Systems CPCL Programming Manual Section 10 COUNTRY / CODE-PAGE Utility or CHAR-SET/CODE PAGE Utility The COUNTRY or CHAR-SET utility command substitutes the appropriate character set for the specified country. The two commands can be used interchangebly. See Section 8, page 22 for more information on the COUNTRY or CHAR SET command.
Mobile Printing Systems CPCL Programming Manual COUNTRY / CODE-PAGE Utility Example Input: Output: ! UTILITIES ; Tell the printer to use font 4 size 0 ; for line printer mode with 5 millimeters ; line spacing IN-MILLIMETERS SETLP 4 0 5 COUNTRY USA ; or CHAR-SET USA PRINT This is text with Country set to USA #$@[\]^‘{|}~ ! UTILITIES COUNTRY ITALY ; or CHAR-SET ITALY PRINT This is text with Country set to ITALY #$@[\]^‘{|}~ Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual Section 10 Advanced Utilities pg. 10-10 ANNOUNCE Utility The ANNOUNCE command is used to activate pre-programmed sounds in the printer. A space character is required between each code. This command will be ignored by printers that are not equipped with a speaker and voice circuit. Format: {command} {message} where: {command}: ANNOUNCE {message}: Choose from the following: Code Spoken Message ‘‘ ‘.
Mobile Printing Systems CPCL Programming Manual ANNOUNCE Utility Example Input : ! UTILITIES ANNOUNCE 1 2 . 2 5 PRINT Output: The speaker will play the message “one two point two five.” Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual TIMEOUT Utility The TIMEOUT command allows you to set the time the printer will remain on without receiving data. If no data is received after the specified timeout, the printer will turn itself off to save energy and preserve battery life. You can disable the timeout feature by setting the timeout value to 0.
Mobile Printing Systems CPCL Programming Manual BEEP Command This command instructs the printer to sound the beeper for a given time length. Printers not equipped with a beeper will ignore this command. Format: {command} {beep_length} Where: {command}: BEEP {beep_length}: Duration of beep, specified in .125 (1/8th) second increments. BEEP Utility Example Input: ! UTILITIES BEEP 16 PRINT This example instructs the printer to beep for two seconds (16 x .
Mobile Printing Systems CPCL Programming Manual ON-LOW-BATTERY Command This command can be issued to instruct the printer as to what action to take when the battery voltage falls below the level set by the “low battery shut-down” setting. Format: {command} {options} where: {command}: OLB {options}: Choose from the following: ALERT: The printer will transmit any message included between quote marks out the serial port. ALARM: Sounds the printer’s beeper in 1/8 second increments.
Mobile Printing Systems CPCL Programming Manual LT Command This command specifies the command line terminator character(s). The default terminator characters are CR/LF or LF. The printer can be programmed to accept a different character sequence to terminate command lines. This command does not apply to data sent to the printer when it is in line print mode. Format: {command} {mode} Where: {command}: LT {mode}: Choose from the following. CR: Carriage-return (0x0D) character is the line terminator.
Mobile Printing Systems CPCL Programming Manual SET-TIME Utility This command sets the time in the real time clock module. Time should be a valid time and be given in the specified format. This command will be ignored by printers that are not equipped with a real time clock module. Format: {command} {time-stamp} where: {command}: SET-TIME {time-stamp}: hh:mm:ss hh = hours (00 – 23) mm = minutes (00 – 59) ss = seconds (00 – 59) Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual GET-TIME Utility This command reports the current time, if valid, as an eight character null-terminated ASCII string. This command will be ignored by printers that are not equipped with a real time clock module. Format: {command} where: {command}: GET-TIME Printer output: hh:mm:ss\0 hh = hours (00 – 23) mm = minutes (00 – 59) ss = seconds (00 – 59) \0 = null terminator (00H) Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual SET-DATE Utility This command sets the date in the real time clock module. Date should be a valid date and be given in the specified format. This command will be ignored by printers that are not equipped with a real time clock module. Format: {command} {date-stamp} where: {command}: SET-DATE {date-stamp}: mm-dd-yyyy mm = month (01 – 12) dd = day (01 – 31) yyyy = year (1990 – 2089) Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual GET-DATE Utility This command reports the current date, if valid, as an eight character null-terminated ASCII string. This command will be ignored by printers that are not equipped with a real time clock module. Format: {command} where: {command}: GET-DATE Printer output: mm:dd:yyyy\0 mm = month (01 – 12) dd = day (01 – 31) yy = year (1990 – 2089) \0 = null terminator (00H) Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual Printing a Time Stamp To print a time stamp on a label, use any text command and insert [!
Mobile Printing Systems CPCL Programming Manual Printing a Date Stamp To print a date stamp on a label, use any text command and insert [!
Mobile Printing Systems CPCL Programming Manual PAPER-JAM Utility This command establishes the parameters that allow the printer to report a paper jam.
Mobile Printing Systems CPCL Programming Manual Magnetic Card Reader (MCR) Command This command can be used to configure and activate the Magnetic Card Reader (MCR). The MCR command will be ignored by printers not equipped with a Magnetic Card Reader. The MCR command can be issued in a label file (! 0 200 … PRINT), or in a utilities command session (! UTILITIES … PRINT). This command activates the MCR. When the printer is turned on, the MCR is not active by default until the MCR command is received.
Mobile Printing Systems CPCL Programming Manual Track Options: T1: Read Track 1. (One or more tracks may be specified to read depending on printer model, per note below) T2: Read Track 2. T3: Read Track 3. (Currently not supported by some models. See note below) NOTES on Track Option for current mobile printer series: • Cameo 2 CANNOT read track 3. Cameo 2 is capable of reading: Track 1, Track 2, or Tracks 1 AND 2.
Mobile Printing Systems CPCL Programming Manual Section 10 Advanced Utilities pg. 10-25 POSTFIX postfix: This option specifies the track data postfix. The printer defaults to no postfix. The POSTFIX command should be followed by the data that needs to be sent from the printer to the host after all track data have been transmitted, up to 10 characters, and terminated with space or carriagereturn/line-feed characters. An example of a typical postfix option is “POSTFIX END”.
Mobile Printing Systems CPCL Programming Manual TIME-OUT: This error is reported when the printer MCR times out before a successful read. EPREFIX: This option is similar to the PREFIX command, but applies to error messages. Error messages, if error reporting is turned on, will be preceded by the specified eprefix. For example, “EPREFIX ERROR:” instructs the printer to prefix error messages with “ERROR:”.
Mobile Printing Systems CPCL Programming Manual Example 3: This example illustrates the PREFIX, EPREFIX, POSTFIX, and DEL (DELimiter) options: ! U1 MCR 80 ECHO T1 T2 ERRORS PREFIX START EPREFIX ERR POSTFIX END DEL () Once the card is swiped successfully, the following is sent to host and printed: START(1)B4000001234562^PUBLIC JR/JOHN Q.
Mobile Printing Systems CPCL Programming Manual MCR-QUERY Command The MCR can be put in a query mode by specifying the “QUERY” option in the MCR command, where it will report MCR data only when it is asked to via the MCR-QUERY command. By default, the printer will report card swipe data immediately after a successful read. The printer will not respond to MCR-QUERY if it does not have any data, either the track data or an error message.
Mobile Printing Systems CPCL Programming Manual S-CARD Command The S-CARD command can be used to access the Smartcard reader embedded within Zebra Cameo “SC” or Road Warrior models of mobile printers. Differences in Smart Card operation between the Cameo “SC” and Road Warrior are explainied in detail below. The smart card library implements the T=1 protocol for IS07816 compliant cards.
Mobile Printing Systems CPCL Programming Manual Section 10 = The response length. This length is for data only, i.e. SW1 and SW2 are not included in response length. = This is the response from the card in binary form. = Status byte from card. = Status byte from card. Note: See ISO-7816-3 for an explanation of SW1 and SW2 Response for an unsuccessful command: See ‘Error Codes’ below for an explanation of possible error codes.
Mobile Printing Systems CPCL Programming Manual ! U1 S-CARD CT_ATR Response: CT_DATA: This command is used to send a command to the smart card. The response from the card is returned. A command of this type has the following form: CT_DATA Example : ! U1 S-CARD CT_DATA 10 8010000008 Description: CT_DATA: indicates the command is to go to the smart card.
Mobile Printing Systems CPCL Programming Manual Example: ! U1 S-CARD CT_DATA 10 8010000008 Normally the response to this command might appear as follows: <0x06><0x10><0x01><0x02><0x03><0x04><0x05><0x06>... Where <0x06> represents <0x10> indicates there are 16 bytes (0x10 = 16 decimal) of data in the reponse: ! U1 S-CARD ASCII CT_DATA 10 8010000008 The response would read: <0x06><10><010203040506...
Mobile Printing Systems CPCL Programming Manual Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual Section 10 Advanced Utilities pg. 10-34 Status Code (hex) 39 3B Definition PPS not accepted (no answer from card) Early answer of the card during the activation 40 Card deactivated 55 Unknown command 80 81 83 84 86 88 89 8A 8B 8C 8D Card mute (after power on) Time out (waiting time exceeded) 4 parity errors in reception 4 parity errors in transmission Bad FiDi ATR duration greater than 19200 etus (E.M.V.) CWI not supported (E.M.V.
Mobile Printing Systems CPCL Programming Manual Section 10 Advanced Utilities pg. 10-35 Status Code (hex) Definition 95 96 97 98 9B IFSC<10H or IFSC=FFH Wrong TDi TB2 is present in the ATR (E.M.V.
Mobile Printing Systems CPCL Programming Manual Status Code (hex) CC CD Definition No acknowledge from the 12C synchronous card Generic error during exchange with an 12C synchronous card E1 Card clock frequency not accepted (after a set_clock_card command) UART overflow Supply voltage drop-off Temperature alarm Framing error E2 E3 E4 E9 F0 F1 FF Serial LRC error At least one command frame has been lost Serial timeout ‘Set-Get-Do’ (SGD) Commands for Smart Card: The following SGD commands are supported
Mobile Printing Systems CPCL Programming Manual Example: Make printer ‘beep’ every time a Smart Card is powered or removed from Smart Card reader: ! U1 setvar “scard.activate” “BELL_ON” ! U1 setvar “scard.resp_timeout” “” Where is a number of milliseconds that Smart Card reader will wait for Smart Card response before timing out. If such a timeout occurs, the printer sends out a message “Invalid response:80”. The response timeout value may be increased to prevent timeouts.
Mobile Printing Systems CPCL Programming Manual DENSO BHT COMMANDS NOTE: All commands in this section are compatible with ACKNAK-IT v 6.1 or greater. Zebra mobile printers can have an application downloaded which will support communications to the Denso Barcode Handy Terminal (BHT). The different methods of communications between a BHT and a Zebra mobile printer are per the table below: Connection/protocol type Cable IR Cable w/BHT IR w/ BHT Cable w/ BHT-IR IR w/ BHT-IR Refer to AUTOEXEC.BAT File pg.
Mobile Printing Systems CPCL Programming Manual Section 10 Advanced Utilities pg. 10-39 added. The data field (stripped of trailing spaces and with an appended CR/LF pair) is then passed to the printer for processing. This is the default way to handle data sent to the printer. Mode 2: Include all characters in each field (RAW) The second mode accepts all characters that make up each data field. Using this method, any trailing spaces in a data field will be INCLUDED as data for the printer to process.
Mobile Printing Systems CPCL Programming Manual transmit speeds to that rate. You must insure that both the printer and the BHT are set to the same baud rate. This can also be changed in an AUTOEXEC.BAT file with the BHT-BAUD command. (Refer to the BHT-BAUD command example at the end of this section. ) Setting the Mode for IR Data Transmission Autoexec.bat files can configure the printer for IR data transmission modes.
Mobile Printing Systems CPCL Programming Manual • The Com port is set to OPTICAL. BHT-IR File Transmission 1. 2. 3. 4. 5. Assume that a label file CIS.DAT has been loaded into the BHT. (Refer to pg. _ for details on loading a *.DAT file.) The steps to transmit this file via IR are as follows: Depress the 1 / PW / SF keys all at once, then release. The SYSTEM MENU should be displayed. This menu has 6 options. This power on sequence must be performed every time to boot to the SYSTEM MENU.
Mobile Printing Systems CPCL Programming Manual • The SET CONNECTOR menu options: 1. The TRANSMIT SPEED (if the printer uses the default) is set to 9600 BPS 2. The PARITY BIT is set to NONE 3. The DATA BIT is set to 8 BITS 4. The STOP BIT is set to 1 BIT 5. The Serial Number is set to ON 6. The Horizontal Parity is set to ON • The COM PORT is set to IFC (on the BHT-5000 set COM DEFAULT to CONNECTOR) Loading a .DAT file into the BHT Zebra mobile printers will only print files with the .
Mobile Printing Systems CPCL Programming Manual Interrupted Transmissions If a transmission from the terminal to the printer is interrupted, the user should wait at least five seconds before attempting another transmission. During this delay, the printer will discard any partial data received from the interrupted transmission and reset itself to receive a new transmission. Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual Example .dat File Input: Example .dat File Output: ! 0 200 200 581 1 ;media p/n LD-E9QT7S LABEL CONTRAST 0 TONE 0 SPEED 3 PAGE-WIDTH 240 BAR-SENSE ;// PAGE 0000000002400600 ;// TEXT 0 1 3 560 DEPT 34 TEXT90 4 3 36 288 $22.88 TEXT90 5 2 163 273 SWEATSHIRT VBARCODE UPCA 2 1 45 139 576 04364503284 TEXT90 7 0 191 511 043645032841 TEXT90 5 0 4 524 COMPARE AT TEXT90 4 0 30 508 $ 30.
Mobile Printing Systems CPCL Programming Manual SRF-ACCESS and END-SRF-ACCESS Commands Commands intended to modify the BHT operating modes must be placed between the SRF-ACCESS and the END-SRF-ACCESS command lines. SRF- and END-SRF-ACCESS Command Example This autoexec.bat file uses the SRF-ACCESS and END-SRF-ACCESS command pair to establish BHT communication via the BHT-CABLE protocol. Input: ! DF AUTOEXEC.
Mobile Printing Systems CPCL Programming Manual BHT-BAUD Command This command will set both the IR and the cable transmit speeds. You must insure that both the printer and the BHT are set to this same baud rate. This can also be changed in an AUTOEXEC.BAT file with the BHT-BAUD command. Format: {command} {baud rate} where: {command}: BHT-BAUD {baud rate}: 9600,19200. Default value for Zebra mobile printers is 9600 BPS.
Mobile Printing Systems CPCL Programming Manual BHT MODE Commands This command sets one of several modes of operation to specify how record data fields delivered by the BHT protocol are interpreted. Format: {command} {mode} where: {command}: BHT-MODE {mode}: STRIP-ADD-CRLF: Each data field in a record has any trailing spaces stripped and a CR/LF (carriage return/line feed) pair added. The data field (stripped of trailing spaces and with an appended CR/LF pair) is then passed to the printer for processing.
Mobile Printing Systems CPCL Programming Manual BHT MODE Command Examples In the following examples a record is defined to be made up of 3 data fields. Fields 1, 2 and 3 are 10, 8 and 20 bytes long, respectively. The “^” character indicates a space character. Other combinations of fields and field lengths can be used as long as they conform with the BHT protocol’s data file record field formats. Example 1: Strip Spaces and Add CR/LF: Input: ! DF autoexec.
Mobile Printing Systems CPCL Programming Manual Example 2: Send Raw Data Input: ! DF autoexec.bat ! UTILITIES SRF-ACCESS BHT-MODE RAW END-SRF-ACCESS PRINT Output: Data Record: |----10----|---8----|--------20----------| COMTEC^^^^ ^INFO^^^ ^SYSTEMS^^^^^^^^^^^^ Data Sent to printer: COMTEC^^^^ ^INFO^^^ ^SYSTEMS^^^^^^^^^^^^ Example 3: Counted String Input: ! DF autoexec.
Mobile Printing Systems CPCL Programming Manual Example 4: Strip Spaces Input: ! DF autoexec.bat ! UTILITIES SRF-ACCESS BHT-MODE STRIP-SPACES END-SRF-ACCESS PRINT Output: Data Record |----10----|---8----|--------20----------| COMTEC^^^^ ^INFO^^^ ^SYSTEMS^^^^^^^^^^^^ Data Sent to printer |COMTEC^INFO^SYSTEMS| Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual BHT PROTOCOL Command This command placed in an autoexec. bat file overrides the default method of communication. BHT-PROTOCOL CABLE enables BHT or BHT-IR protocol via cable. If the BHT-PROTOCOL CABLE command is not present, data is sent “raw” over the serial cable, if it is detected the BHT-PROTOCOL BHT command sends data in the BHT mode; BHT-PROTOCOL BHTIR sends data in the BHT-IR mode.
Mobile Printing Systems CPCL Programming Manual BHT PROTOCOL Command Examples Example 1: Cable printing with BHT protocol Input: ! DF AUTOEXEC.BAT ! UTILITIES SRF-ACCESS BHT-PROTOCOL BHT BHT-PROTOCOL CABLE BHT-BAUD 19200 BHT-MODE STRIP-ADD-CRLF END-SRF-ACCESS PRINT Eample 2: IR printing with BHT protocol Input: ! DF AUTOEXEC.BAT ! UTILITIES SRF-ACCESS BHT-BAUD 19200 BHT-PROTOCOL BHT BHT-MODE STRIP-ADD-CRLF END-SRF-ACCESS PRINT Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual Example 3: Cable printing with BHT-IR protocol Input: ! DF AUTOEXEC.BAT ! UTILITIES SRF-ACCESS BHT-BAUD 19200 BHT-PROTOCOL BHTIR BHT-PROTOCOL CABLE BHT-MODE STRIP-ADD-CRLF END-SRF-ACCESS PRINT Example 4: IR printing with BHT-IR protocol Input: ! DF AUTOEXEC.BAT ! UTILITIES SRF-ACCESS BHT-BAUD 19200 BHT-PROTOCOL BHTIR BHT-MODE STRIP-ADD-CRLF END-SRF-ACCESS PRINT Section 10 Advanced Utilities pg.
Mobile Printing Systems CPCL Programming Manual PRINTER ESCAPE COMMANDS SET AND READ CODE COMMAND Printer command sessions normally start with the ‘!’ character. When the printer is used in Generic Text Mode (or Line-Print Mode) and if the user expects to print the ‘!’ character in that mode, then the CCL code must be changed. This is done via the Redefine CCL Code command.
Mobile Printing Systems CPCL Programming Manual Printer Escape Commands Format Format: {escape} {command} [parameters] where: {escape}: The ESC character (0x1b). {command}: Choose from the escape commands in this section. [parameters]: Parameters for the escape commands. Note: The escape commands should not be used while in a control/utility session (“! UTILITIES... PRINT” OR “! 0... PRINT”).
Mobile Printing Systems CPCL Programming Manual Acknowledge Printer Reset Format: ESC (0x1b) ‘N’ (0x4e) This command clears the reset bit that is set on power-up and reported by the ‘get printer status’ function. The reset information returned by ESC ‘h’ may be used by the host to perform its printer powerup initializations, such as form-feeding. Once the host completes its initialization of the printer, it may call this function to tell the printer to clear its reset bit.
Mobile Printing Systems CPCL Programming Manual Get Extended Printer Status Format: ESC(0x1b) ‘i’ (0x69) This command requests the extended status byte from the printer. Printer program versions 24 and higher respond to this command.
Mobile Printing Systems CPCL Programming Manual USER LABEL COUNT Get User Label Count Format: ESC (0x1b) ‘J’ (0x4a) ‘R’ (0x52) ‘U’ (0x55) This command requests the current user label count from the printer. The response consists of two bytes, most significant byte first. This count represents the total number of labels printed since the last time the count was reset to zero.
Mobile Printing Systems CPCL Programming Manual POWER OFF COMMAND Off Command Format: ESC (0x1b) ‘p’ (0x70) This function instructs the printer to shut off. This function can be used instead of lowering DTR causing the printer to shut down. Section 11 Printer Escape Commands pg.
Mobile Printing Systems CPCL Programming Manual WIRELESS NETWORK PRINTERS Introduction NOTES: The printers described in this section are no longer produced by Zebra. If you are using a WLAN enabled QL,RW or MZ series printer, you should use the “get, set,do” parameters detailed in Section 14 rather than the LAN command detailed below. Zebra Cameo 3N and Encore 3N Network Printers are equipped with a WLAN (Wireless Local Area Network) card.
Mobile Printing Systems CPCL Programming Manual The possible Operations are: IPADDR: This operation allows manual specification of the printer’s TCP/IP address. (See the DHCP operation for a description of automatic address assignment.) The option to this operation must be a valid TCP/IP address in the typical dot notation. i.e., a set of four decimal numbers between 0 and 255 separated by dots. E.g., 100.150.200.150 is a valid address.
Mobile Printing Systems CPCL Programming Manual SUBMASK- This command can be used to set the subset mask of the printer. (Available in printer application versions 30A and higher.) Syntax: SUBMASK {IP-Address} Where {address} is the dotted decimal representation of the subset mask. For example, 10.14.2.25 Example: ! U1 LAN SUBMASK 12.15.10.3 SSID- This operation allows the assignment of an RF SSID (Radio Frequency System Set ID).
Mobile Printing Systems CPCL Programming Manual GET-STATUS – This operation causes the printer to report its current WLAN status. The two options are PRINT and REPLY. If PRINT is used, the status dump is printed. If REPLY is used, the status dump is sent out over the CABLE. The status report is of the following form: LAN Status report: ipAdr = nnn.nnn.nnn.
Mobile Printing Systems CPCL Programming Manual GET-CONFIG – This operation causes the printer to report its current WLAN configuration. The two options are PRINT and REPLY. If PRINT is used, the configuration dump is printed. If REPLY is used, the configuration dump is sent out over the CABLE. The configuration report is of the following form: LAN Config report: ipAdr = nnn.nnn.nnn.
Mobile Printing Systems CPCL Programming Manual SOFT_RESET – This operation resets the WLAN card. If the application determines that the WLAN card is not responding (e.g., if a GET_STATUS query goes unanswered), it may try to reset the card. SOFT_RESET should be tried first, and if it fails then RESET should be used. Example: ! U1 LAN SOFT_RESET RESET – This operation performs a “hard” reset of the WLAN card. If the application determines that the WLAN card is not responding (e.g.
Mobile Printing Systems CPCL Programming Manual DHCP-TIMEOUT – This operation allows for control of number of times the DHCP client will attempt to obtain an address from the DHCP server. The argument is the number of times the client will make a request before giving up. The client can be told to never give up by making the argument 0. Syntax: DHCP-TIMEOUT {0 – 15} Example: ! U1 LAN DHCP-TIMEOUT 5 PORT – This operation allows for setting of the TCP port that the printer will listen on while in TCP mode.
Mobile Printing Systems CPCL Programming Manual Setting the IP Address for Network Printers 1. Create the following document in a text editor such as Notepad, replacing (192.0.11.195) with your Network Printer’s address, and (ZebraNet) with the SSID of your RF Access Point. It may be necessary to obtain this information from your network administrator: ! UTILITIES LAN IPADDR 192.0.11.195 SSID ZebraNet MODE LPD PRINT Insure each line, including the last, is terminated with .
Mobile Printing Systems CPCL Programming Manual ipAdr = (your IP address) associated = YES protocol = LPD essID = (Your SSID) DHCP = OFF If there is no Wireless Communications section or the parameter values do not match what is expected, please refer to the Network Printer Troubleshooting discussion at the end of this section. Details of this method of setting the IP address are covered earlier in this section in the discussions of the IPADDR, SSID and MODE operations.
Mobile Printing Systems CPCL Programming Manual Network Printer Troubleshooting If the printer does not behave as described in this section, please take the following diagnostic steps: 1. Perform a 2 key reset on the printer. I.e., turn the printer off, depress and hold the FEED key, press the POWER key, and then release the FEED key. The printer will produce a line of interlocking “x” characters to insure all elements of the printhead are working, and then print out a status report.
Mobile Printing Systems CPCL Programming Manual Wireless LAN Report Example Unit Serial Number Application: Network Printers will have “HTLAN“ prefix. I.P Address Radio Software Version Unit is associated with LAN : Yes/No SSID Address Section 12 Wireless Network Printers pg. 12-11 I.
Mobile Printing Systems CPCL Programming Manual PROGRAMMING THE DISPLAY OPTION Introduction: QL and RW series printers with the LCD control panel option use the WML language to create screens or “cards” for the display. This section explains the WML tags and commands used to create a menu for the LCD. The file should be named INDEX.WML. This file can be sent to the printer via an FTP session or by using Label Vista. By using a line like $(vnd.zo.
Mobile Printing Systems CPCL Programming Manual Display the ESSID Line Break
eSSID:$(vnd.zo.wlan.current _ essid)
Display the associated status Associated:$(vnd.zo.wlan.associated)
Display a link back to the main card back
Close the card tag Begin a card named “main”, with a title and refresh rate of 1 second.Mobile Printing Systems CPCL Programming Manual Example 1 looks like this: IP:$(vnd.zo.ip.addr)
TCP Port:$(vnd.zo.ip.port)
eSSID:$(vnd.zo.wlan.current _ essid)
Associated:$(vnd.zo.wlan.associated)
back
Battery:$(vnd.zo.power.voltage) V($(vnd.
Mobile Printing Systems CPCL Programming Manual LCD Output for Example 1: Note: The LCD screen for QL and RW series printers is 20 characters across and 4 lines. Zebra QL 320 Status Battery:7.80V(ok) L a t c h : o k P a p e r : o kerom IP:10.14.4.97 TCP Port:6101 eSSID: ZebraNet Associated:yes back Section 13 Programming the Display Option pg.
Mobile Printing Systems CPCL Programming Manual Example 2: This example is not a complete menu setup it is a sample card. It is meant as a tool to break down the tags and explain their use. Comments Begin card, the card name is baud, the title is “Com,Baud”, when the 20 second timer expires go to the card called status.
Mobile Printing Systems CPCL Programming Manual Example 2 looks like this: $(vnd.zo.comm.baud)
Mobile Printing Systems CPCL Programming Manual Section 13 Programming the Display Option pg. 13-7 Table 1: WML Tags used on QL and RW Series Printers Tag Comments … Declares a WML document … Sends output to LCD “ … ” Declares a card (or screen) Line Break, on the display this will do a the equivalent to a CR/LF. Please note that the display is 20 characters long.
Mobile Printing Systems CPCL Programming Manual Section 14 Configuration/ Control Commands pg. 14-1 CONFIGURATION/CONTROL COMMANDS Introduction The following section covers a set of commands to configure and query printer parameters and perform various printer control functions. Examples of this set of commands include setting printer’s IP address, querying printer’s baud rate, or instructing the printer to advance its media to top of form.
Mobile Printing Systems CPCL Programming Manual Format: getvar “{parameter name}” {Parameter name}= The name of the parameter to be retrieved. Please refer to the parameter list for valid parameter names. setvar Command The setvar command is used to set parameter values in the printer. This command must be terminated by a CR/LF (0x0D, 0x0A). The parameter name must be in lower case.
Mobile Printing Systems CPCL Programming Manual Commands / Parameters Following are descriptions of each set/get/do command in detail, including the required parameters, if any, and possible choices for parameter values. Each set/get/do command described below also includes examples to demonstrate proper syntax and usage. appl.date Type: getvar This parameter refers to the printer’s application date.
Mobile Printing Systems CPCL Programming Manual appl.version Type: getvar This parameter refers to the printer’s application version. getvar result Example Printer application version as a 4-digit (hex)number. Description Get printer application’s version Syntax ! U1 getvar “appl.version” Result “7940” Section 14 Configuration/ Control Commands pg.
Mobile Printing Systems CPCL Programming Manual Bluetooth® Parameters The following parameter names are only available with Bluetooth enabled applications. Changes made using the setvar command with Bluetooth parameters will be set in the printer, but will not take effect until a new link is established, power is cycled or the device.reset command is issued. If a link already exists the change will not effect the current connection and will not cause a disconnect. bluetooth.
Mobile Printing Systems CPCL Programming Manual bluetooth.afh_map type: getvar. setvar Sets or retrieves default AFH channel map (Bluetooth 1.2 radios only); 20 bytes. The AFH map must be 20 characters long; for Zebra printers. All characters used are HEX characters. 20 HEX characters used for AFH channel map form 80 bits binary channel map that represents 79 channels used by Bluetooth (the first bit is masked out automatically by the Bluetooth library).
Mobile Printing Systems CPCL Programming Manual bluetooth.afh_map_curr type: getvar Retrieves the current AFH channel map (may be different from default AFH channel map) The current AFH channel map is 20 HEX characters long and represents a bit-mapped channel map for 79 Bluetooth channels; each bit defines a 1 MHz Bluetooth channel.
Mobile Printing Systems CPCL Programming Manual bluetooth.afh_mode type: getvar, setvar Sets or retrieves Adaptive Frequency Hopping mode setting (Bluetooth 1.2 radios only) Bluetooth specification 1.2 introduced adaptive frequency hopping that allows Bluetooth devices to use selected frequency channels only and omit all other frequency channels. Adaptive frequency hopping prevents collisions with 802.11b/g devices that use the same spectrum. Zebra printers with the 1.
Mobile Printing Systems CPCL Programming Manual bluetooth.authentication type: getvar; setvar This parameter sets Bluetooth authentication mode and works in combination with the “bluetooth. bluetooth_pin” parameter. When authentication is set to “default” a PIN is required to connect to the printer that is based on the friendly-name. Contact your printer supplier to obtain the algorithm that generates this PIN. When authentication is set to “setpin”, the PIN required to connect is set in the “bluetooth.
Mobile Printing Systems CPCL Programming Manual bluetooth.bluetooth_pin type: getvar, setvar This parameter is used to connect to the printer only when the “bluetooth.authentication” parameter is set to “setpin”. This parameter is not used when the “bluetooth.authentication” parameter is set to “default” or “off”. See “bluetooth.authentication”.
Mobile Printing Systems CPCL Programming Manual bluetooth.date type: getvar This parameter is the release date of the Bluetooth module. getvar result Example Printer’s Bluetooth library release date in the format “mm/dd/yy” Description Get printer’s Bluetooth module release date Syntax ! U1 getvar “bluetooth.date” Result “12/10/08” bluetooth.discoverable type: getvar; setvar This parameter sets the Bluetooth discoverable mode.
Mobile Printing Systems CPCL Programming Manual bluetooth.enable type: getvar, setvar This command enables or disables the Bluetooth radio. getvar result Retrieves current status of Bluetooth radio Description Example Syntax ! U1 getvar “bluetooth.enable” Result setvar choices Example Enables or disables the Bluetooth radio default “on” Description Show the value set to “on” Syntax !U1 setvar “bluetooth.
Mobile Printing Systems CPCL Programming Manual bluetooth.friendly_name type: getvar, setvar This parameter sets the friendly_name, which is part of the local_name used during service discovery and also affects authentication. The friendly_name is a string of up to 20 characters long; it will default to the printer serial number if not set by the user. Changes to local_name and authentication will not occur until power is cycled or the device.reset command is issued.
Mobile Printing Systems CPCL Programming Manual bluetooth.minimum_security_mode type: getvar, setvar This parameter refers to the Bluetooth Minimum Security Mode. Minimum Security Mode provides for three levels of security, depending on the printer radio version and printer firmware: “1”, “2”, “3”. In Security Mode 1 the printer will: 1) Be discoverable 2) Will not require a pin to connect to In Security Mode 2 the printer will: 3) Switch to bluetooth.
Mobile Printing Systems CPCL Programming Manual getvar result “1”, “2”, “3” setvar choices “1”, “2”, “3” Default: “1” getvar example setvar example Description This example retrieves the current Security Mode setting. Syntax ! U1 getvar “bluetooth.minimum_security_ mode” “1” Result “1” Description This example sets Security Mode to “3”. Syntax ! U1 setvar “bluetooth.minimum_security_ mode” “3” Result “3” Section 14 Configuration/ Control Commands pg.
Mobile Printing Systems CPCL Programming Manual bluetooth.radio_version type: getvar Returns the version of the Bluetooth radio installed. getvar results Example 1 Example 2 Example 3 “1.1”,”1.2”,”???” Description Returns the version of Bluetooth radio installed (new radio) Syntax ! U1 getvar “bluetooth.radio_version” Result “1.2” Description Returns the version of Bluetooth radio installed (current radio) Syntax ! U1 getvar “bluetooth.radio_version” Result “1.
Mobile Printing Systems CPCL Programming Manual bluetooth.version type: getvar This parameter is the Bluetooth library version number. getvar result Example Bluetooth module version in the format “x.y.z” Description Get Bluetooth module version Syntax ! U1 getvar “Bluetooth.version” Result “1.1.0” Section 14 Configuration/ Control Commands pg.
Mobile Printing Systems CPCL Programming Manual Comm Port Parameters comm.parity type: getvar; setvar This parameter refers to the printer’s comm. parity. Note: Once the printer’s communications port parameters have been changed, the host terminal must also be configured to match the new printer settings before the host can communicate again. getvar result Example setvar choices Example Printer’s comm. port parity. See setvar choices for possible values Description Get printer’s comm.
Mobile Printing Systems CPCL Programming Manual comm.baud type: getvar; setvar This parameter refers to the printer’s comm (cable) baud rate. Note: Once the printer’s comm. port parameters have been changed, the host terminal must also be configured to match the new printer settings before the host can communicate again getvar result Example setvar choices Example Printer baud rate. Description Get printer’s comm. port baud rate Syntax ! U1 getvar “comm.
Mobile Printing Systems CPCL Programming Manual comm.stop_bits type: getvar; setvar This parameter refers to the printer’s comm. port stop bits. Note: Once the printer’s comm. port parameters have been changed, the host terminal must also be configured to match the new printer settings before the host can communicate again getvar result Example setvar choices Example Stop bits. Description Get printer’s comm. port stop bits Syntax ! U1 getvar “comm.
Mobile Printing Systems CPCL Programming Manual Device Parameters device.alarm.paper type: getvar, setvar (persistent setting) This parameter refers to audible notification alarm for when printer detects “paper out” or “head latch open” condition. When device.alarm.paper is enabled (“on”), and if the printer hardware supports audible alarm, the printer will produce an audible notification when it detects “paper out” or “head latch open” condition.
Mobile Printing Systems CPCL Programming Manual device.alarm.command type: getvar, setvar (persistent setting) This parameter refers to the audible notification alarm that is produced by the printer when the printer receives the BEEP command or the Bell character. When device.alarm.command is enabled (“on”), and if the printer hardware supports audible alarm, the printer will produce an audible notification when it receives the BEEP command or the Bell character.
Mobile Printing Systems CPCL Programming Manual device.friendly_name type: getvar;setvar This parameter refers to the device’s friendly name. The printer will report its serial number as the friendly name if a name has not yet been assigned. getvar result Example setvar choices Example The friendly name assigned to the printer. Description Retrieve the current friendly name of the printer Syntax ! U1 getvar”device.
Mobile Printing Systems CPCL Programming Manual device.languages type: getvar; setvar NOTE: This command is only valid with RW, QL Plus and MZ series (SH3 based) printers. This parameter sets the programming language recognized by the printer. (Refer to the programming languages topics in Section 1 for more information) Please note that CPCL is ALWAYS active and that line_print is ONLY active when selected.
Mobile Printing Systems CPCL Programming Manual device.restore_defaults type: do Instructs the printer to restore factory default values for the specified category of parameters. do parameters Example Printer parameter category: “wlan”, “ip”, “display”, or “power” Description Restore the network card’s wlan parameters to their default values Syntax ! U1 do “device.
Mobile Printing Systems CPCL Programming Manual device.save_2key type: getvar, setvar (persistent setting) This parameter refers to saving the text of the printed two-key diagnostics to Flash memory. When turned on, the two-key diagnostics report (whenever printed) will also be simultaneously saved to Flash memory 2KEY.TEXT file. getvar result Example setvar choices Example “on”, “off” Description This example retrieves the current save_2key setting Syntax ! U1 getvar ”device.
Mobile Printing Systems CPCL Programming Manual device.user_p1 type: getvar; setvar This parameter saves and retrieves user-specified values. getvar result Example setvar choices Example The user-specified parameters. Description Saves and retrieve the user-specified parameters. Syntax ! U1 getvar ”device.user_p1” Result ““ Values: Alphanumeric text string (1-20) Default ““ Description Instructs the printer to set user parameters. Syntax ! U1 setvar “device.user_p1” “value” device.
Mobile Printing Systems CPCL Programming Manual device.uptime type: getvar This parameter identifies the amount of time the printer has been powered on. The string format is: xx days, xx hours, xx minutes, and xx seconds. getvar result The time printer has been powered on. Description Retrieves the amount of time the printer has been powered on. It responds in the following format (days, hours, minutes, and seconds). Syntax ! U1 getvar “device.uptime” Result Time printer has been powered on.
Mobile Printing Systems CPCL Programming Manual device.frontpanel.line2 type: getvar; setvar This parameter overrides the content that is shown on the second line of the front panel when the printer is showing the idle display. getvar result Example setvar choices Example The content on line two of the front panel. Description Retrieves the content that shows on line two of the front panel. Syntax ! U1 getvar ”device.frontpanel.
Mobile Printing Systems CPCL Programming Manual device.frontpanel.key_press type: setvar This parameter retrieves the current content of the front panel in an XML format. setvar result Example The button on the front panel to be pressed. Description Instructs the printer to press a button on the front panel. Syntax ! U1 setvar “device.frontpanel.key_press” “value” Result The button on the front panel to be pressed. device.unique_id type: getvar This parameter retrieves the printer identifier.
Mobile Printing Systems CPCL Programming Manual device.pnp_option type: getvar; setvar This parameter defines the type of Plug and Play (PNP) response that is sent by the printer after the printer is started. The printer must be restarted for a new PNP string to be reported. getvar result Example setvar choices Example The PNP option setting. Description Retrieves the PNP option setting. Syntax ! U1 getvar ”device.
Mobile Printing Systems CPCL Programming Manual device.download_connection_timeout type: getvar; setvar This parameter instructs the printer to abort a firmware download if the printer fails to receive any download data in the set amount of seconds. If the set amount of seconds is exceeded, the download will be aborted and the printer automatically restarts. This command prevents the printer from being locked in the downloading state if the communications host is interrupted.
Mobile Printing Systems CPCL Programming Manual Display Parameters display.contrast type: getvar; setvar This parameter refers to the contrast level on the printer’s display. Valid only on printers with a display installed. getvar result Example setvar choices Example Display’s contrast level, “0” through “14” Description Get the current display contrast level Syntax ! U1 getvar “display.
Mobile Printing Systems CPCL Programming Manual display.backlight type: getvar; setvar This parameter refers to the printer display backlight. Valid only on printers with a display installed. getvar result Example setvar choices Example State of backlight control, “on” or “off” Description Get current backlight setting Syntax ! U1 getvar “display.backlight” Result “on” “on”, “off” Default “on” Description Turn backlight off Syntax ! U1 setvar “display.
Mobile Printing Systems CPCL Programming Manual display.text type: getvar; setvar This parameter refers to the display’s text content. The display text size is four lines of text, 20 characters per line. getvar result Example setvar choices The text currently displayed on the printer. Description Get the current text displayed Syntax ! U1 getvar “display.text” Result “Zebra QL 320 “ Text to be displayed. The tab character will move text position to next line.
Mobile Printing Systems CPCL Programming Manual File Parameters file.delete type: do This command can be used to delete printer files. Please exercise caution when deleting files and insure factory installed files are not deleted. do parameters Example Name of file to be deleted Description This command instructs the printer to delete a specified file Syntax ! U1 do “file.delete” “abcd.cpf” Result Deletes abcd.cpf from the printer file.
Mobile Printing Systems CPCL Programming Manual file.print type: do This command can be used to print the contents of printer files. do parameters File name. Description Example This command instructs the printer to print the contents of the file called config.sys Syntax ! U1 do “file.print” “config.sys” Result Contents of the config.sys file will be printed file.rename type: do This command can be used to rename printer files.
Mobile Printing Systems CPCL Programming Manual file.type type: do This command can be used to retrieve contents of a file. do parameters Example Filename to display contents Description This command instructs the printer to respond with the contents of the file called config.sys Syntax ! U1 do “file.type” “config.sys” Result !U BEEP 2 PRINT Section 14 Configuration/ Control Commands pg.
Mobile Printing Systems CPCL Programming Manual Printer Mechanism Parameters head.latch type: getvar This parameter refers to the status of the printer head latch. The head latch must be closed for printing. getvar result Example “ok”, “open” Description Get current status of printhead latch Syntax ! U1 getvar “head.latch” Result “ok” head.latch_closed_feed type: getvar; setvar This parameter controls the feed action taken when head latch is closed.
Mobile Printing Systems CPCL Programming Manual media.width_sense.enable type: getvar; setvar This parameter turns the Media Width Sensing option “on” or “off”. This parameter only applies to printers equipped with the Media Width Sensing option, others will ignore this command. getvar result Example setvar choices Example “on”, “off” Description Get current status of media width sensing option Syntax ! U1 getvar “media.width_sense.
Mobile Printing Systems CPCL Programming Manual media.width_sense.in_cm type: getvar This parameter returns the current media width installed in the printer measured in centimeters. The “media. width_sense.enable” parameter must be set to “on”. Note: The media width sensing mechanism has a tolerance of ± .25 cm getvar result Example Media width as measured in centimeters Description Get width of installed media Syntax ! U1 getvar “media.width_sense.in_cm” Result 10.4 media.width_sense.
Mobile Printing Systems CPCL Programming Manual media.width_sense.in_inches type: getvar This parameter returns the current media width installed in the printer measured in inches. The “media. width_sense.enable” parameter must be set to “on”. Note: The media width sensing mechanism has a tolerance of ± .1”. getvar result Example Media width as measured in inches Description Get width of installed media Syntax ! U1 getvar “media.width_sense.in_inches” Result 4.
Mobile Printing Systems CPCL Programming Manual Input Parameter input.capture type: getvar;setvar This parameter allows capturing input data in diagnostics mode. Input capture has three modes: “print”, “run”, and “off”. The “print” and “run” modes can be used to examine data received by the printer. When in “print” mode the printer will save incoming data to files named “in???.dmp”, where ??? is a number between 001 to 999.
Mobile Printing Systems CPCL Programming Manual input capture parameter (continued) getvar result Example The current input capture mode. Description Get current staus of input capture mode Syntax ! U1 getvar “input.capture” Result “off” setvar choices “print”, “run”, “off” Default “off” Example 1 Example 2 Description Place the printer in “print” input capture mode Syntax ! U1 setvar “input.capture” “print” Result Printer will enter diagnostics capture mode.
Mobile Printing Systems CPCL Programming Manual media.speed type: getvar; setvar This parameter specifies media print speed in inches per second (ips). getvar result Example setvar choices Media print speed. Description Retrieve the currently set media print speed. Syntax ! U1 getvar “media.
Mobile Printing Systems CPCL Programming Manual Media Parameters media.feed_length type: getvar; setvar This paramter controls the length of paper, expressed in dots, the printer advances when it receives the form-feed character or the FORM command, or when the form-feed key is pressed. Media feed will stop when complete feed length is advanced or when printer detects the top-of-form mark/gap, whichever occurs first. getvar result “2030” Description Example Retrieves printer’s current feed length.
Mobile Printing Systems CPCL Programming Manual media.sense_mode type: getvar; setvar This parameter refers to media sense mode. getvar result Example setvar choices Example Media sense mode. Description Get current media sense mode Syntax ! U1 getvar “media.sense_mode” Result “bar” “bar”, “gap” Default “bar” Description Set media sense mode to bar (black index mark) Syntax ! U1 setvar “media.sense_mode” “bar” Result Printer will switch to bar sense mode media.
Mobile Printing Systems CPCL Programming Manual media.tof type: getvar; setvar This parameter refers to the print’s top-of-form setting. The TOF setting is used to program the distance between the top-of-form and the end of the next (positive value) or previous (negative value) eye-sense mark or gap. The eye-sense mark or gap that is closer to the top-of form should be used for top-of-form setting. Refer to the SET-TOF command in Section 9 for more detailed information on the TOF setting.
Mobile Printing Systems CPCL Programming Manual media.type type: getvar; setvar This parameter refers to the media type that is being used. By default, the printer will check for correct media alignment if it encounters the eye-sense mark (black horizontal bars on back of media) during a print cycle (LABEL mode). The JOURNAL command can be used to disable this automatic correction feature. The user’s program is responsible for checking and assuring presence of paper when the printer is set to JOURNAL mode.
Mobile Printing Systems CPCL Programming Manual Memory Parameters memory.flash_size type: getvar This parameter refers to the total amount of Flash memory. getvar result Example Flash memory size. Description Get Flash memory size Syntax ! U1 getvar “memory.flash_size” Result “2097151 Bytes” memory.flash_free type: getvar This parameter refers to the amount of available Flash memory. getvar result Example Flash memory available.
Mobile Printing Systems CPCL Programming Manual memory.ram_free type: getvar This parameter refers to the amount of available RAM. getvar result Example Available RAM. Description Get current available RAM Syntax ! U1 getvar “memory.ram_free” Result “456000 Bytes Free” memory.ram_size type: getvar This parameter refers to the total amount of Random Access Memory. getvar result Example RAM size. Description Get RAM size Syntax ! U1 getvar “memory.
Mobile Printing Systems CPCL Programming Manual Network Management Parameters Wavelink Avalanche Wavelink Avalanche is a software system designed to manage mobile network devices. The Avalanche system consists of three core components: The “Avalanche Administrative Console” is the central user interface through which the administrator issues commands to the Agents.
Mobile Printing Systems CPCL Programming Manual Package Synchronization (Update/Delete). The Avalanche Agent and Enabler both use the concept of a “package” to transfer updates down to the mobile device. Each package is a collection of files that the mobile unit needs to handle. Each package can be either stored or executed. See below for Zebra printer specific applications of each file action.
Mobile Printing Systems CPCL Programming Manual Manager to a networked PC. When setup is complete, start the Agent, and open the Console Manager GUI by double clicking the appropriate icons. Connect the Console Manager to the Avalanche Agent. (The Agent IP should be the local host IP, 127.0.0.1). Once connected to the local Agent, expand the tree view on the left and delete all entries under the Serial Ports section by right clicking on each and selecting Delete.
Mobile Printing Systems CPCL Programming Manual Section 14 State Codes (What is the printer doing?) To obtain the device’s state code use: ! U1 getvar “netmanage.state_code” One of the following state codes will be returned: 0 Printer Idle 1 Agent Discovery 2 Agent Connection 3 Processing Messages 4 Agent Disconnection Error Codes: To obtain the device’s error status use: ! U1 getvar “netmanage.
Mobile Printing Systems CPCL Programming Manual Setting Avalanche Parameters with CPCL You can configure your printer for Wavelink Avalanche using the following “get, set, do” parameters in the CPCL programming language with the following commands: netmanage.type type: getvar; setvar This parameter allows you to set the Network Management type for your printer. Using the SETVAR command to select “avalanche” allows you to use the following “netmanage.avalanche” commands.
Mobile Printing Systems CPCL Programming Manual netmanage.avalanche.available_agent type: getvar This parameter gets Network Management current IP address of the remote agent. getvar result Example Returns the current IP address of the remote agent found during the Agent Discovery Phase. Description Obtains the IP address of the remote agent found during the Agent Discovery Phase Syntax ! U1 GETVAR “netmanage.avalanche.available_agent” Result “1.2.3.4” netmanage.avalanche.
Mobile Printing Systems CPCL Programming Manual netmanage.avalanche.encryption_type type: getvar ; setvar This parameter sets and gets Network Management Encryption type to be used. getvar result Example setvar choices Example Description This example retrieves the device’s Network Management Encryption type Syntax ! U1 GETVAR “netmanage.avalanche.encryption_type” Result “0” 0 – None; 1 – Limburger; 2 – AES128 (Not Supported Yet) Default “0”.
Mobile Printing Systems CPCL Programming Manual netmanage.avalanche.interval_update type: getvar; setvar This parameter sets and gets Network Management Interval Update setting. getvar result Example setvar choices Example Returns the current Network Management Interval Update setting stored in the printer. Description This example retrieves the device’s Network Management Interval Update setting Syntax ! U1 GETVAR “netmanage.avalanche.interval_update” Result “off” “on”, “off” Default “off”.
Mobile Printing Systems CPCL Programming Manual netmanage.avalanche.set_property type: setvar This parameter sets Network Management Device Side Property (custom). setvar result Sets the Network Management Device side property Syntax ! U1 SETVAR “netmanage.avalanche.set_property” “Zebra.Location=Warwick” Result Device side property set to “Zebra.Location=Warwick” Example netmanage.avalanche.startup_update type: getvar; setvar This parameter sets and gets Network Management Start Up Update setting.
Mobile Printing Systems CPCL Programming Manual netmanage.avalanche.tcp_connection_timeout type: getvar; setvar This parameter sets and gets Network Management Timeout used for establishing a TCP connection to an Agent. getvar result Example setvar choices Example Returns the current Network Management Timeout used for establishing a TCP connection to an Agent.
Mobile Printing Systems CPCL Programming Manual netmanage.avalanche.text_msg.beep type: getvar; setvar This parameter sets and gets Network Management Text Message Beep enable setting. getvar result Example setvar choices Example setvar choices Section 14 pg. 14-62 This example retrieves the device’s Network Management Text Message Beep enable setting Syntax ! U1 GETVAR “netmanage.avalanche.text_msg.
Mobile Printing Systems CPCL Programming Manual netmanage.avalanche.text_msg.print type: getvar; setvar This parameter sets and gets Network Management Text Message Print enable setting getvar result Example setvar choices Example Returns the current Network Management Text Message Print enable setting. Description This example retrieves the device’s Network Management Text Message Print enable setting Syntax ! U1 GETVAR “netmanage.avalanche.text_msg.
Mobile Printing Systems CPCL Programming Manual Odometer Parameters odometer.label_dot_length type: getvar Reports the length of the last label printed (or fed), in dots. The label dot-length is set to zero when the printer is turned on. This parameter is updated every time the printer feeds or prints a label and detects a marker, either gap or bar, while printing or feeding. getvar result Example Commands pg.
Mobile Printing Systems CPCL Programming Manual odometer.media_marker_count type: getvar; setvar This parameter refers to the media marker count. The media marker counter keeps track of how many labels have passed through the printer, (wether or not they have been printed) by counting the bar sense marks on the back of the media. (Contrast this to the “odometer.user_label_count” parameter below.) The media marker count can be set to an initial value and is incremented every time a label is printed or fed.
Mobile Printing Systems CPCL Programming Manual odometer.user_label_count type: getvar; setvar This parameter refers to the user label count. The user label counter keeps track of how many labels have been printed since the last re-set of the counter. The user’s label count can be set to an initial value and incremented every time a label is printed. Note the difference from this command to the ”odometer.media_marker_count” parameter above.
Mobile Printing Systems CPCL Programming Manual odometer.total_print_length type: getvar This parameter tracks the total length of media that printed over the life of the printer. getvar result Example This will return the total length of media printed over the life of the printer Description Gets the value of the total length of media that printed over the life of the printer. Syntax ! U1 getvar “odometer.total_print_length” odometer.
Mobile Printing Systems CPCL Programming Manual odometer.media_marker_count2 type: getvar; setvar This parameter refers to the value of the second (count2) user resettable counter. The user resettable counters track how much media has passed through the printer in both inches and centimeters. getvar result Example setvar choices Example Description Gets the current value of the second (count2) user resettable counter in both inches and centimeters. Syntax ! U1 getvar “odometer.
Mobile Printing Systems CPCL Programming Manual odometer.headnew type: getvar; setvar This parameter refers to the head replaced odometer count. This counter tracks how many inches and centimeters have passed through the printer since the head was last replaced getvar result Example setvar choices Example This will return the values for the head new counter. Description Gets the values for the head new counter. Syntax ! U1 getvar “odometer.
Mobile Printing Systems CPCL Programming Manual Power Parameters power.ascii_graph type: getvar This parameter refers to the battery status depicted by ASCII graphics characters. getvar result Example The battery graph, represented by ASCII graphics characters. Description Get current battery status graph Syntax ! U1 getvar “power.ascii_graph” Result Battery graph in ASCII characters power.cycle_count type: getvar Returns the number of charge cycles the battery pack has experienced.
Mobile Printing Systems CPCL Programming Manual power.date_first_used type: getvar Returns the date the pack is charged for the first time. This is a Zebra-generated value and is written to the Zebra Data Block. getvar result Returns the date of the battery pack’s first charge cycle. Example Syntax !U1 getvar “power.date_first_used” This parameter will only function on printers equipped with a Zebra “Smart Battery”. power.
Mobile Printing Systems CPCL Programming Manual power.dtr_power_off type: getvar; setvar This parameter refers to the remote printer power control. DTR power off is used for power management. When DTR is enabled the printer can be powered on and off via the DSR signal. When DTRpower off is enabled, a low to high transition will cause the printer to turn ON and a high to low transition will cause the printer to turn OFF.
Mobile Printing Systems CPCL Programming Manual power.health type: getvar Returns the “health” rating of the battery pack. Battery health can be “good”, “replace” or “poor”. • Health is “good” if the power.cycle_count < 300 and capacity ratio (the ratio of actual capacity to the design capacity) is greater or equal to 0.80. • Health is “replace” if power.cycle_count is between 300 and 600.
Mobile Printing Systems CPCL Programming Manual power.inactivity_timeout type: getvar; setvar This parameter refers to the inactivity timeout. getvar result Example setvar choices Example Current inactivity timeout in seconds. Description Instructs the printer to respond with the inactivity timeout value Syntax ! U1 getvar “power.inactivity_timeout” Result “120 Seconds” “0” through “8190”. Values are specified in seconds. A value of “0” disables inactivity timeout.
Mobile Printing Systems CPCL Programming Manual power.low_battery_timeout type: getvar; setvar This parameter refers to the low battery timeout. When the printer reaches the low battery state this timeout will become active. The printer will shut down after the specified low battery time out getvar result Example setvar choices Example Current low-battery timeout in seconds. Description Get current low-battery timeout Syntax ! U1 getvar “power.low_battery_timeout” Result “60” “0” through “65535”.
Mobile Printing Systems CPCL Programming Manual power.low_battery_warning type: getvar This parameter refers to the low battery warning level. getvar result Example Current low-battery warning level in volts. Description Get current low-battery warning level Syntax ! U1 getvar “power.low_battery_warning” Result “6.86(176)” power.manufacturer_data type: getvar The “power.manufacturer_data” function may be used to access the battery manufacturer’s data area.
Mobile Printing Systems CPCL Programming Manual power.status type: getvar This parameter refers to the battery status. getvar result Example “ok”, “low” Description Get current battery status Syntax ! U1 getvar “power.status” Result “ok” power.voltage type: getvar This parameter refers to the battery voltage. getvar result Example Battery voltage. Description Get current battery voltage Syntax ! U1 getvar “power.voltage” Result “7.25” Section 14 Configuration/ Control Commands pg.
Mobile Printing Systems CPCL Programming Manual Print Parameters print.tone type: getvar; setvar This parameter specifies the printer darkness. getvar result Example setvar choices Example The printer’s current darkness setting. Description Retrieves the printer’s current darkness setting. Syntax ! U1 getvar ”print.tone” Result “ 4.0“ Values: “0.0” to “30.0” = darkness; “-0.1” to “-30.0” and “+0.1” to “+30.0” = incremental adjustments Default “4.
Mobile Printing Systems CPCL Programming Manual Test Function Parameters test.feed type: do This command can be used to advance media to top-of-form. do parameters Example None. Description Perform form feed Syntax ! U1 do “test.feed” “” Result Printer will advance to top-of-form test.print_diags type: do This command can be used to print a diagnostics report. do parameters Example None. Description Print diagnostics report Syntax ! U1 do “test.
Mobile Printing Systems CPCL Programming Manual Networking Parameters The following parameter names can be used only with the network application versions 40 and above. Any changes made using the setvar command will not take effect until the printer’s power has been cycled or the device.reset command is issued. ip.bootp.enable type: getvar; setvar This parameter will turn BOOTP on or off. BOOTP is a method for acquiring an IP address, netmask, and gateway automatically on printer power-up.
Mobile Printing Systems CPCL Programming Manual card.mac_addr type: getvar This parameter refers to the MAC address of the network card. getvar result Example MAC address of the printer Description This parameter instructs the printer to respond with the MAC address Syntax ! U1 getvar “card.mac_addr” Result “00A0F83AA589” Section 14 Configuration/ Control Commands pg.
Mobile Printing Systems CPCL Programming Manual ip.addr type: getvar; setvar This parameter refers to the IP address of the printer. The DHCP setting (“ip.dhcp.enable” parameter) must be “off” to change the printer’s IP address. getvar result Example The printer’s IP address Description Instructs the printer to respond with its current IP address Syntax ! U1 getvar “ip.addr” “10.14.4.159” Result setvar choices Example Any valid IP address Default 0.0.0.
Mobile Printing Systems CPCL Programming Manual ip.dhcp.enable type: getvar; setvar This parameter refers to DHCP setting. DHCP must be set to “off” before setting a static IP address. NOTE: It is not recommended that BOOTP and DHCP both be enabled at the same time since this may increase the printer power-up initialization time. If both BOOTP and DHCP are enabled at the same time, the printer will first try BOOTP and if it does not receive a response after several seconds, it will then try DHCP.
Mobile Printing Systems CPCL Programming Manual ip.dhcp.cid_prefix type: getvar; setvar This parameter defines the prefix to be prepended to the DHCP client identifier (option 61) when DHCP is enabled and “ip.dhcp.cid_type” is set to “0”. NOTE: This parameter is only applicable if “ip.dhcp.enable” is set to “on”.
Mobile Printing Systems CPCL Programming Manual ip.dhcp.cid_type type: getvar; setvar This parameter defines the type of Client Identifier (option 61) that will be sent if DHCP is enabled. A value of “1” means the type is “Ethernet” and the printer’s MAC address will be used. A value of “0” means the type is “synthetic” and the client identifier sent will be “ip.dhcp.cid_prefix” concatenated with “ip.dhcp. cid_value”. NOTE: This parameter is only applicable if “ip.dhcp.enable” is set to “on”.
Mobile Printing Systems CPCL Programming Manual ip.dhcp.cid_value type: getvar; setvar This parameter defines the unique value to be used as the client identifier (option 61) if DHCP is enabled and “ip.dhcp.cid_type” is “1”. NOTE: This parameter is only applicable if “ip.dhcp.enable” is set to “on”. getvar result Example The current client identifier value Description This command instructs the printer to respond with the client identifier value Syntax ! U1 getvar “ip.dhcp.
Mobile Printing Systems CPCL Programming Manual ip.ftp.enable type: getvar; setvar This parameter refers to the FTP protocol setting. It tells the printer to turn FTP on or off. getvar result Example setvar choices Example Returns printer’s FTP status (on or off) Description This command instructs the printer to respond with the FTP setting Syntax ! U1 getvar “ip.ftp.
Mobile Printing Systems CPCL Programming Manual ip.dhcp.requests_per_session type: getvar, setvar getvar result setvar choices Example Commands pg. 14-88 This command retrieves the currently set maximum amount of DHCP discovery requests for a single DHCP session on the wireless print server Syntax ! U1 getvar “ip.dhcp.requests_per_session” Result “2” “1“ through “10” Default “2” Description This command instructs the printer to disable FTP Syntax ! U1 setvar “ip.dhcp.
Mobile Printing Systems CPCL Programming Manual ip.dhcp.session_interval type: getvar, setvar This parameter configures the time interval (in seconds) before a new DHCP session is started on the wireless print server. getvar result Example setvar choices Result is “10” when the setvar value is set to “10” Description This command retrieves the current DHCP session timeout value (in seconds) Syntax ! U1 getvar “ip.dhcp.
Mobile Printing Systems CPCL Programming Manual ip.dhcp.lease.time_left type: getvar This parameter retrieves the time left in the current DHCP lease on the wireless print server. getvar result Example Description This parameter retrieves the time left in the current DHCP lease on the wireless print server Syntax ! U1 getvar “ip.dhcp.lease.time_left” Result “1192518” ip.dhcp.lease.
Mobile Printing Systems CPCL Programming Manual ip.dhcp.lease.last_attempt type: getvar This parameter retrieves the time from the DHCP server of when the last DHCP request was sent. getvar result Example Description This parameter retrieves the last time a DHCP request was sent Syntax ! U1 getvar “ip.dhcp.lease.last_attempt” Result ip.dhcp.cache_ip type: getvar, setvar This parameter enables or disables the IP caching.
Mobile Printing Systems CPCL Programming Manual ip.dhcp.option12 type: getvar, setvar This parameter specifies if the DHCP option 12 (host name) is on or off in the discovery packet that is sent from the wireless print server. getvar result Result is “On” when the setvar value is set to “On” Description This parameter retrieves the status of the DHCP option 12 (host name) in the discovery packet that is sent from the wireless print server. Syntax ! U1 getvar “ip.dhcp.
Mobile Printing Systems CPCL Programming Manual ip.dhcp.option12_format type: getvar, setvar This parameter specifies the value which will be used for option 12 (host name) to be used in the DHCP discovery packet of the wireless print server. getvar result Description This parameter retrieves the value which will be used for option 12 (host name) in the DHCP discovery packet on the wireless print server. Syntax ! U1 getvar “ip.dhcp.
Mobile Printing Systems CPCL Programming Manual ip.dhcp.option12_value type: getvar This parameter retrieves the actual value which will be used in the discovery packet of the wireless print server. getvar result Example Description This parameter retrieves the actual value which will be used in the discovery packet of the wireless print server. Syntax ! U1 getvar “ip.dhcp.option12_value” Result ip.dhcp.
Mobile Printing Systems CPCL Programming Manual ip.dhcp.cid_suffix type: getvar, setvar This printer setting defines the unique suffix to be used as the client identifier (DHCP option 61) if DHCP is enabled and “ip.dhcp.cid_type” is set to “0” or “2”. getvar result Example setvar choices Example Result is “printer” if setvar value is set to “printer” Description This parameter instructs the printer to respond with the client identifier suffix. Syntax ! U1 getvar “ip.dhcp.
Mobile Printing Systems CPCL Programming Manual ip.dhcp.cid_all type: getvar, setvar This printer setting defines the entire client identifier (DHCP option 61) if the DHCP is enabled and “ip. dhcp.cid_type” is set to “0” or “2”. The MAC address is used if the type is set to “1”. getvar result Example setvar choices Result is “printer” when setvar value is set to “printer” Description This command instructs the printer to respond with the client identifier prefix and suffix. Syntax ! U1 getvar “ip.
Mobile Printing Systems CPCL Programming Manual ip.gateway type: getvar; setvar This parameter refers to the gateway address. This value is ignored if DHCP is enabled. getvar result Example setvar choices Example This will return the gateway setting in the printer. Description This command instructs the printer to respond with the gateway address Syntax ! U1 getvar “ip.gateway” Result “10.19.5.1” Any valid gateway address. Default “0.0.0.
Mobile Printing Systems CPCL Programming Manual ip.ftp.execute_file type: getvar; setvar This parameter controls the printer’s ability to process or not process commands received via the FTP protocol using the printer’s ZPL engine. getvar result Example setvar choices Example Enables or disables printer’s ability to process FTP commands (on or off) Description This command instructs the printer to respond with the FTP processing ability status. Syntax ! U1 getvar “ip.ftp.
Mobile Printing Systems CPCL Programming Manual ip.http.enable type: getvar; setvar This parameter refers to the HTTP protocol / web sever setting. getvar result Example setvar choices Example This will return the HTTP protocol status. (on or off) Description This command instructs the printer to respond with the HTTP setting Syntax ! U1 getvar “ip.http.
Mobile Printing Systems CPCL Programming Manual ip.lpd.enable type: getvar; setvar This parameter refers to the LPD protocol setting. LPD communications from the host should be directed to port 515. getvar result Example setvar choices Example This will return the LPD protocol status. (on or off) Description This command instructs the printer to respond with the LPD value Syntax ! U1 getvar “ip.lpd.
Mobile Printing Systems CPCL Programming Manual ip.netmask type: getvar; setvar This parameter refers to the subnet mask address. This value is ignored if DHCP is enabled. getvar result Example setvar choices Example Description This command instructs the printer to respond with the subnet mask Syntax ! U1 getvar “ip.netmask” Result “255.255.255.0” Any valid netmask. Default “255.255.255.0” Description This command instructs the printer to change the subnet mask to 255.255.0.
Mobile Printing Systems CPCL Programming Manual ip.mirror.auto type: getvar, setvar This parameter enables the ability to automatically perform a mirror update (fetch) command on power up. getvar result Example setvar choices This will return the LPD protocol status. (on or off) Description This parameter will report whether the printer will perform a mirror update (fetch) automatically on power up. Syntax ! U1 getvar “ip.mirror.
Mobile Printing Systems CPCL Programming Manual ip.mirror.username type: getvar, setvar This parameter specifies the user name on the mirroring server assigned for mirroring updates (fetch). getvar result Example setvar choices Example Description This parameter retrieves the user name the printer is currently using for mirroring updates (fetch). Syntax ! U1 getvar “ip.mirror.
Mobile Printing Systems CPCL Programming Manual ip.mirror.password type: getvar, setvar This parameter specifies the user password on the mirroring server assigned for mirroring updates (fetch). getvar result Example setvar choices Example For security purposes the printer does not return password information Description This parameter retrieves the user password the printer is currently using for mirroring updates (fetch). Syntax ! U1 getvar “ip.mirror.
Mobile Printing Systems CPCL Programming Manual ip.mirror.server type: getvar, setvar This parameter identifies the IP address of the mirroring server. getvar result Example setvar choices Example Description This parameter retrieves the IP address of the mirroring server. Syntax ! U1 getvar “ip.mirror.server” Result “10.3.1.1” Values: a valid IP address Default “127.0.0.1” Description This parameter sets the IP address of the mirroring server. Syntax ! U1 setvar “ip.mirror.server” “10.3.1.
Mobile Printing Systems CPCL Programming Manual ip.mirror.freq type: getvar, setvar This parameter defines the frequency of mirroring updates (in minutes). getvar result Example setvar choices Example The amount of time (in min.) it will take before mirroring is attempted. Description This parameter retrieves the number of minutes to wait before performing another mirror update. Syntax ! U1 getvar “ip.mirror.freq” Result “1000” (where mirroring will be attempted every 1000 min.
Mobile Printing Systems CPCL Programming Manual ip.mirror.version type: getvar This parameter retrieves the mirror code build date. getvar Description This command retrieves the mirror code build date. Syntax ! U1 getvar “ip.mirror.version” ip.mirror.freq_hours type: getvar; setvar This parameter defines the frequency of mirroring updates (in hours). getvar result Example setvar choices The frequency (in hours) mirroring is attempted.
Mobile Printing Systems CPCL Programming Manual ip.mirror.error_retry type: getvar; setvar This parameter identifies how many times mirroring is retried when an error occurs. getvar result Example setvar choices pg. 14-108 Syntax ! U1 getvar “ip.mirror.error_retry” Result “0” Values: numeric values (0-65535) Default “0” Description This parameter instructs the printer to set the required times that mirroring retries when an error occurs. Syntax ! U1 setvar “ip.mirror.
Mobile Printing Systems CPCL Programming Manual ip.mirror.feedback.path type: getvar; setvar This parameter identifies where the feedback file is stored on the mirroring server. getvar result Example setvar choices Example The path on the mirroring server that stores the feedback file. Description This parameter retrieves the path on the mirroring server that the printer is currently using to store the feedback file. Syntax ! U1 getvar “ip.mirror.feedback.
Mobile Printing Systems CPCL Programming Manual ip.mirror.feedback.odometer type: getvar; setvar This parameter instructs the printer to set the mirror feedback odometer. getvar result Example setvar choices Example The value at which the printer sets the odometer counter. Description This parameter retrieves the mirror feedback odometer. Syntax ! U1 getvar “ip.mirror.feedback.
Mobile Printing Systems CPCL Programming Manual ip.mirror.success_time type: getvar This parameter provides the timestamp, in seconds, of the last time the system successfully completed a mirror update (fetch). getvar Description This command retrieves the timestamp, in seconds. of the last time the system successfully completed a mirror update (fetch). Syntax ! U1 getvar “ip.mirror.success_time” ip.mirror.
Mobile Printing Systems CPCL Programming Manual ip.dns.domain type: getvar This parameter identifies the network domain of the wireless print server. getvar Description This command retrieves the network domain of the wireless print server. Syntax ! U1 getvar “ip.dns.domain” ip.dns.servers type: getvar This parameter retrieves a space delimited list of the domain name servers from a wireless print server. getvar Description This command retrieves a list of space delimited DNS wireless print servers.
Mobile Printing Systems CPCL Programming Manual ip.arp_interval type: getvar; setvar This printer setting allows you to specify the Address Resolution Protocol (ARP) interval or the ARP cache time out. getvar result Example setvar choices The value to which the printer changes the ARP interval or ARP cache time out. Description This parameter instructs the printer to respond with the ARP interval or the ARP cache time out value in seconds.. Syntax ! U1 getvar “ip.
Mobile Printing Systems CPCL Programming Manual ip.primary_network type: getvar; setvar This parameter allows you to set the primary network to either wired or wireless. getvar result Example setvar choices The name (e.g. wired or wireless) of the primary network device. Description This parameter instructs the printer to respond with the name of the current primary network device. Syntax ! U1 getvar “ip.
Mobile Printing Systems CPCL Programming Manual ip.active_network type: getvar This parameter displays if the printer is actively connected to wireless, external wired, or internal wired. getvar Description This command instructs the printer to respond with what the printer is currently connected to: internal wired, wireless, external wired, or unknown. The table below provides details on the potential return values. Syntax ! U1 getvar “ip.
Mobile Printing Systems CPCL Programming Manual ip.pop3.enable type: getvar; setvar This parameter refers to whether the printer will query a POP3 mailbox for mail. getvar result Example setvar choices Example Commands pg. 14-116 This command instructs the printer to respond with the POP3 setting Syntax ! U1 getvar “ip.pop3.enable” Result “on” “on”, “off” Default “off” Description This command instructs the printer to disable the POP3 querying Syntax ! U1 setvar “ip.pop3.
Mobile Printing Systems CPCL Programming Manual ip.pop3.poll type: getvar; setvar This parameter refers to the frequency (in seconds) that the printer will query a POP3 mailbox for new mail. This only applies if the ip.pop3.enable is set to “on”. NOTE: A poll value of less then thirty seconds is not recommended. The printer is unresponsive for several seconds when polling for email depending on data transfer time from the server to the printer.
Mobile Printing Systems CPCL Programming Manual ip.pop3.print_body type: getvar; setvar This parameter refers to whether the email body will be printed when the email is retrieved via POP3. This only applies if ip.pop3.enable is set to “on”. getvar result Example set var choices Example Returns the pop3 print body status (on or off) Description Instructs the printer to respond whether or not the it will print the body of email retrieved via POP3 Syntax ! U1 getvar “ip.pop3.
Mobile Printing Systems CPCL Programming Manual ip.pop3.print_headers type: getvar; setvar This parameter refers to whether the headers (From, Date, and Subject fields) of the email are to be printed. This only applies if ip.pop3.enable is set to “on”. getvar result Returns the status of the pop3 printheaders (on or off). Description Example setvar choices Example Instructs the printer to respond with the POP3 print_headers value Syntax ! U1 getvar “ip.pop3.
Mobile Printing Systems CPCL Programming Manual ip.pop3.save_attachments type: getvar; setvar This parameter refers to whether email attachments are to be saved to the flash file system in the printer. This only applies if the ip.pop3.enable is set to on. Note: attachment file names will be truncated to 11 characters (8 characters, with a 3-character extension.
Mobile Printing Systems CPCL Programming Manual ip.pop3.server_addr type: getvar; setvar This parameter refers to the POP3 server IP address the printer contacts when checking for new mail. This only applies if ip.pop3.enable is set to on. getvar result Example setvar choices Example This will return the POP3 server address setting. Description Instructs the printer to respond with the server address Syntax ! U1 getvar “ip.pop3.server_addr” Result “0.0.0.
Mobile Printing Systems CPCL Programming Manual ip.pop3.username type: getvar; setvar This parameter refers to the POP3 username. This only applies if the ip.pop3.enable is set to on. getvar result Example setvar choices Example This command instructs the printer to respond with the POP3 username value. Description This command instructs the printer to respond with the POP3 username value Syntax ! U1 getvar “ip.pop3.
Mobile Printing Systems CPCL Programming Manual ip.pop3.verbose_headers type: getvar; setvar This parameter refers to whether all the email headers of the email will be printed. This only applies if ip. pop3.enable and ip.pop3.print_headers are set to “on”. getvar result Example setvar choices Example This will return the pop3 verbose headers status (on or off) Description This command instructs the printer to respond with the POP3 verbose header value Syntax ! U1 getvar “ip.pop3.
Mobile Printing Systems CPCL Programming Manual ip.port type: getvar; setvar This parameter refers to the port number that the TCP and UDP print service is listening on. Normal TCP communications from the host should be directed to this port. getvar result Example setvar choices Example Returns current TCP/UDP port setting. Description Instructs the printer to respond with the TCP/UDP port number Syntax ! U1 getvar “ip.
Mobile Printing Systems CPCL Programming Manual ip.remote type: getvar; setvar This parameter refers to the remote server address or name. getvar result Example setvar choices Example Returns the current remote server address or name. Description Instructs the printer to respond with the currently stored remote server address or name Syntax ! U1 getvar “ip.remote” Result “0.0.0.0” Any IP Address or name up to 39 characters long Default “0.0.0.
Mobile Printing Systems CPCL Programming Manual ip.remote_autoconnect type: getvar; setvar This parameter will determine whether the printer will attempt to automatically initiate a TCP connection to a remote server on power-up. If the parameter “ip.remote” has a valid server address and “ip.remote_ autoconnect” is set to “on”, the printer will initiate a TCP connection to the address defined by “ip.remote” using the destination port number defined by “ip.remote_port”. If “ip.
Mobile Printing Systems CPCL Programming Manual ip.remote_port type: getvar; setvar This parameter defines the destination TCP port number to connect to when used in conjuction with “ip.remote_autoconnect” and “ip.remote” parameters. getvar result Example setvar choices Example setvar choices Section 14 pg. 14-127 Instructs the printer to respond with the currently stored TCP Port number Syntax ! U1 getvar “ip.remote_port” Result “10013” “0” - “65535”.
Mobile Printing Systems CPCL Programming Manual ip.smtp.server_addr type: getvar; setvar This parameter refers to the IP address of the SMTP server used for sending email. getvar result Example setvar choices Example Returns the IP address of the SMTP server used for sending email. Description Instructs the printer to respond with the current SMTP server address Syntax ! U1 getvar “ip.smtp.server_addr” Result “0.0.0.0” Any valid IP address assigned to the SMTP server Default “0.0.0.
Mobile Printing Systems CPCL Programming Manual ip.snmp.enable type: getvar; setvar This parameter refers to the SNMP protocol. Enabling this parameter will allow the printer to be monitored and managed remotely via network management programs supporting SNMP. getvar result Example setvar choices Example setvar choices Commands pg. 14-129 Instructs the printer to respond with the SNMP setting Syntax ! U1 getvar “ip.snmp.
Mobile Printing Systems CPCL Programming Manual ip.snmp.set_community_name type: getvar; setvar This parameter is used when changing SNMP data remotely. The SNMP client must supply the set community name that matches the printer’s set community name in order to alter any SNMP data. getvar result Example setvar choices Example This will return the SNMP set community name value. Description This command instructs the printer to return the printer’s SNMP “set” community string Syntax ! U1 getvar “ip.
Mobile Printing Systems CPCL Programming Manual ip.snmp.create_mib type: do This parameter refers to creating a file of the printer’s MIB. do parameters pg. 14-131 Syntax ! U1 do “ip.snmp.create_mib” “EXAMPLE1.MIB” Result EXAMPLE1.MIB will be created in the printer’s file system with the printer MIB information stored in it type: getvar; setvar This parameter refers to the TCP socket protocol.
Mobile Printing Systems CPCL Programming Manual ip.telnet.enable type: getvar; setvar This parameter refers to the TELNET protocol. getvar result Example setvar choices Example Commands pg. 14-132 Instructs the printer to respond with the TELNET setting Syntax ! U1 getvar “ip.telnet.enable” Result “on” “on”, “off” Default “on” Description Instructs the printer to enable the TELNET protocol Syntax ! U1 setvar “ip.telnet.
Mobile Printing Systems CPCL Programming Manual Frequency Hopping Spread Spectum (FHSS) Radio Compatibility. The following “wlan.xxx” commands currently either do not support FHSS radios, or have limited support. Refer to the individual commands for more detail. wlan.xxx FHSS Compatibility wlan.current_essid : currently not reported (wlan.essid can be used instead) wlan.encryption_mode : only 40 bit encryption supported. 128 bit encryption is not supported, 40 bits will be used instead. wlan.kerberos.
Mobile Printing Systems CPCL Programming Manual WLAN Parameters Note: The following “wlan.xxx” parameters cannot be used on certain Cameo and Encore series printers. Cameo “N” and Encore “N” series printers must instead use the “LAN” command set detailed in Section 12. wlan.associated type: getvar This parameter refers to whether the printer is associated with an access point (AP).
Mobile Printing Systems CPCL Programming Manual wlan.current_essid type: getvar This parameter refers to the eSSID of the network currently associated with the printer. The eSSID is returned only if the printer is associated with an access point. getvar result Example Description This command instructs the printer respond with the current eSSID Syntax ! U1 getvar “wlan.
Mobile Printing Systems CPCL Programming Manual wlan.auth_type type: getvar;setvar This parameter selects the authentication service to be used between the printer and the Access Point. Open System and Shared Key are the two types of authentication services. getvar result Example setvar choices Example Current authentication type. Description This command instructs the printer to retrieve the current authentication type Syntax ! U1 getvar “wlan.
Mobile Printing Systems CPCL Programming Manual wlan.encryption_index type getvar; setvar This parameter refers to the WEP (Wired Equivalent Privacy) encryption key index. This parameter determines which one of the four encryption keys is to be used by the client (printer). getvar result Example setvar choices Example This will return the current encryption key index that is in use by the printer.
Mobile Printing Systems CPCL Programming Manual wlan.encryption_key1 type: getvar; setvar This parameter refers to the first indexed WEP encryption key. The WEP encryption key is a hexadecimal string that is either 10 or 26 characters long depending on encryption method (40-bit or 128 bit). This key should match the wireless network WEP encryption key 1. getvar result This will return the encryption first encryption key.
Mobile Printing Systems CPCL Programming Manual wlan.encryption_key2 type: getvar; setvar This parameter refers to the second indexed WEP encryption key. The WEP encryption key is a hexadecimal string that is either 10 or 26 characters long depending on encryption method (40-bit or 128 bit). This key should match the wireless network WEP encryption key 2. getvar result This will return the encryption second encryption key.
Mobile Printing Systems CPCL Programming Manual wlan.encryption_key3 type: getvar; setvar This parameter refers to the third indexed WEP encryption key. The WEP encryption key is a hexadecimal string that is either 10 or 26 characters long depending on encryption method (40-bit or 128 bit). This key should match the wireless network WEP encryption key 3. getvar result This will return the encryption third encryption key.
Mobile Printing Systems CPCL Programming Manual wlan.encryption_key4 type: getvar; setvar This parameter refers to the fourth indexed WEP encryption key. The WEP encryption key is a hexadecimal string that is either 10 or 26 characters long depending on encryption method (40-bit or 128 bit). This key should match the wireless network WEP encryption key 4. getvar result This will return the encryption fourth encryption key.
Mobile Printing Systems CPCL Programming Manual wlan.encryption_mode type: getvar; setvar This parameter refers to WEP (Wired Equivalent Privacy) encryption. This parameter enables and disables the printer’s WEP encryption. When using WEP encryption make sure that the encryption key matches the wireless network WEP encryption key. NOTES: 1. When using encryption, make sure that the encryption key is set properly.
Mobile Printing Systems CPCL Programming Manual wlan.essid type: getvar; setvar This parameter refers to the printer’s stored eSSID. Setting the eSSID to “” (no character between quote marks) will set the printer in a “broadcast” mode, where it will search for an access point for association. Example: ! U1 setvar “wlan.essid” “” getvar result Example setvar choices Example Returns the stored eSSID. Description Instructs the printer to respond with the stored eSSID value Syntax ! U1 getvar “wlan.
Mobile Printing Systems CPCL Programming Manual wlan.leap_mode type: getvar; setvar This parameter refers to Cisco LEAP (Lightweight Extensible Authentication Protocol). LEAP provides secure mutual authentication for a wireless client through a Cisco Aironet Access Point, based on user information stored on a backend RADIUS (Remote Authentication in Dial-Up User Service) /AAA (Authentication, Authorization, and Accounting) server.
Mobile Printing Systems CPCL Programming Manual wlan.leap_password type: getvar; setvar This parameter refers to the LEAP password. The password must correspond to a user profile established on the RADIUS/AAA server in use. This parameter is not supported on units with a Frequency Hopping Spread Spectrum (FHSS) radio. getvar result Example setvar choices Example Returns the LEAP password. Description Instructs the printer to respond with the LEAP password Syntax ! U1 getvar “wlan.
Mobile Printing Systems CPCL Programming Manual wlan.leap_username type: getvar; setvar This parameter refers to the LEAP user name. The user name must correspond to a user profile established on the RADIUS/AAA server in use. This parameter is not supported on units with a Frequency Hopping Spread Spectrum (FHSS) radio.
Mobile Printing Systems CPCL Programming Manual wlan.operating_mode type: getvar; setvar This parameter refers to the network operating mode. Infrastructure mode means that the printer will try to associate with an access point. Ad hoc mode means that the printer will try to associate with a device other than an access point and join a stand alone network. To use “ad hoc” mode configure the printer as follows: • Set the eSSID to the new network’s eSSID.
Mobile Printing Systems CPCL Programming Manual wlan.power_save type: getvar ; setvar This parameter refers to the power save modes which affect power consumption of the network radio card in the printer. Two radio cards are currently supported: SYMBOL and CISCO. The SYMBOL radio has a range of power save modes from “1” (best throughput) to “best” (best power save). The CISCO radio has a fast power save mode and a full power save mode (“best”).
Mobile Printing Systems CPCL Programming Manual wlan.preamble type: getvar; setvar This parameter selects the radio preamble length to be used. This parameter is not supported on units with a Frequency Hopping Spread Spectrum (FHSS) radio. getvar result Example setvar choices Example Current preamble length. Description This command instructs the printer to retrieve the current preamble length Syntax ! U1 getvar “wlan.
Mobile Printing Systems CPCL Programming Manual wlan.signal_strength type: getvar Returns the signal strength of the connection to the access point as a percentage value between zero (not connected) and 100 (strongest signal). Values below 40% represent a very poor signal and radio communication will not be reliable. getvar result Example value between 0 and 100 Description Queries the current signal strength Syntax ! U1 getvar “wlan.signal_strength” Result “100” wlan.
Mobile Printing Systems CPCL Programming Manual wlan.tx_rate type: getvar; setvar This parameter refers to specifying the wireless transmit rate. getvar result Wireless transmit rate Description Example setvar choices Example Gets wireless transmit rate Syntax ! U1 getvar “wlan.tx_rate” Result “all” Values: 1, 2, 5.5, 11, all Default “all” Description Sets wireless transmit rate Syntax ! U1 setvar “wlan.tx_rate” “all” wlan.
Mobile Printing Systems CPCL Programming Manual wlan.roam.signal type: getvar; setvar This parameter referes to specifying the wireless roam signal. getvar result Example setvar choices Example Wireless roam signal Description Gets specified wireless roam signal Syntax ! U1 getvar “wlan.roam.signal” Result “50” Values: decimal values between 1 and 75 inclusive Default “50” Description Sets wireless roam signal Syntax ! U1 setvar “wlan.roam.
Mobile Printing Systems CPCL Programming Manual wlan.roam.interval type: getvar; setvar This parameter refers to specifying the wireless roam interval. getvar result Specified wireless roam interval Description Example setvar choices Example Gets specified roam interval Syntax ! U1 getvar “wlan.roam.interval” Result “20” Values: decimal values between 5 and 255 inclusive Default “20” Description Sets wireless roam interval Syntax ! U1 setvar “wlan.roam.intervall” “20” wlan.roam.
Mobile Printing Systems CPCL Programming Manual wlan.roam.max_chan_scan_time type: getvar; setvar This parameter sets how long the radio waits on a channel looking for probe responses. getvar result Example setvar choices Time radio waits on a channel looking for probe responses Description Gets current setting for how long radio waits on a channel looking for probe responses Syntax ! U1 getvar “wlan.roam.
Mobile Printing Systems CPCL Programming Manual wlan.channel type: getvar This parameter retrieves the current WI-FI channel the printer is using. getvar result Example Current WI-FI channel. Description Gets the printer’s current WI-FI channel. Syntax ! U1 getvar “wlan.channel” wlan.wpa.psk type: getvar; setvar This parameter specifies the pre-shared key (PSK) value to use when the WPA authentication is set to PSK.
Mobile Printing Systems CPCL Programming Manual wlan.adhocchannel type: getvar; setvar This parameter refers to specifying the wireless channel for adhoc channel. getvar result Wireless channel for adhoc channel mode Description Example setvar choices Example Gets wireless channel for adhoc channel mode Syntax ! U1 getvar “wlan.
Mobile Printing Systems CPCL Programming Manual wlan.adhocautomode type: getvar; setvar This parameter refers to enabling or disabling the adhoc auto mode. getvar result Example setvar choices Example Adhoc auto mode status Description Gets adhoc auto mode status Syntax ! U1 getvar “wlan.adhocautomode” Result “off” Values: “on” = adhoc auto mode enabled; “off” = adhoc auto mode disabled Default “off” Description Sets adhoc auto mode status Syntax ! U1 setvar “wlan.
Mobile Printing Systems CPCL Programming Manual wlan.ip.addr type: getvar; setvar This parameter allows you to get or set the wireless print server’s IP address. getvar result Example setvar choices Example Wireless print server IP address Description Gets current wireless print server IP address Syntax ! U1 getvar “wlan.ip.addr” Result “0.0.0.0” Values: any valid IP address. Default “0.0.0.0” Description Sets current wireless print server IP address upon power up Syntax ! U1 setvar “wlan.ip.
Mobile Printing Systems CPCL Programming Manual wlan.ip.gateway type: getvar; setvar This parameter instructs the printer to change the wireless print server’s gateway address. getvar result Description Example setvar choices Example Gets wireless print server’s gateway address Syntax ! U1 getvar “wlan.ip.gateway” Result “0.0.0.0” Values: any valid gateway address Default “0.0.0.0” Description Sets wireless print server’s gateway address Syntax ! U1 setvar “wlan.ip.gateway” “0.0.0.0” wlan.ip.
Mobile Printing Systems CPCL Programming Manual wlan.ip.arp_interval type: getvar; setvar This parameter allows you to specify the Address Resolution Protocol (ARP) interval or the ARP cache time out for the wireless print server. getvar result Example setvar choices Example ARP interval or ARP cache time out value Description Gets ARP interval or ARP cache time out value (in seconds) Syntax ! U1 getvar “wlan.ip.
Mobile Printing Systems CPCL Programming Manual wlan.ip.dhcp.request_timeout type: getvar; setvar This parameter sets the maximum time (in seconds) to wait for a response to a DHCP discovery request on the wireless print server. getvar result Example setvar choices Max response time (in seconds) to a DHCP discovery request Description Gets the maximum response time (in seconds) to a DHCP discovery request on the wireless print server. Syntax ! U1 getvar “wlan.ip.dhcp.
Mobile Printing Systems CPCL Programming Manual wlan.ip.dhcp.session_interval type: getvar; setvar This parameter retrieves how long it will take for a DHCP session to time out before a new DHCP session begins on the wireless print server. getvar result Max response time (in seconds) to a DHCP discovery request Description Example setvar choices Example Gets the current DHCP session time out. Syntax ! U1 getvar “wlan.ip.dhcp.
Mobile Printing Systems CPCL Programming Manual wlan.ip.dhcp.lease.time_left type: getvar This parameter retrieves the time (in seconds) left in the current DHCP lease on the wireless print server. getvar result Time left in DHCP lease. Description Gets the time left (in seconds) in the DHCP lease on the wireless print server. Syntax ! U1 getvar “wlan.ip.dhcp.lease.time_left” Example wlan.ip.dhcp.lease.
Mobile Printing Systems CPCL Programming Manual wlan.ip.dhcp.cache_ip type: getvar; setvar This parameter enables or disables the IP cache of the wireless print server. getvar result Status of IP cache. Description Example setvar choices Example Gets the status of the IP cache. Syntax ! U1 getvar “wlan.ip.dhcp.cache_ip” Result “off” Values: “on” = enabled; “off” = disabled Default “off” Description Sets the status of the IP cache. Syntax ! U1 setvar “wlan.ip.dhcp.
Mobile Printing Systems CPCL Programming Manual wlan.ip.dhcp.cid_type type: getvar; setvar This parameter setting defines the type of client identifier (DHCP option 61) that will be sent of DHCP is enabled on the wireless print server. A value of “1” means the type of “Ethernet” and the printer’s MAC address will be used. A value of “0” or “2” means the client identifier sent will be “wlan.ip.dhcp. cid_prefix” concatenated with “wlan.ip.dhcp.cid_suffix”.
Mobile Printing Systems CPCL Programming Manual wlan.ip.dhcp.cid_prefix type: getvar; setvar This parameter defines the prefix to be prepended to the DHCP client identifier (option 61) when DHCP is enabled on the wireless print server and “wlan.ip.dhcp.cid_type” is set to “0” or “2”. getvar result Example setvar choices Example CID prefix of wireless print server. Description Gets the client identifier (CID) prefix of the wireless print server. Syntax ! U1 getvar “wlan.ip.dhcp.
Mobile Printing Systems CPCL Programming Manual wlan.ip.dhcp.cid_enable type: getvar; setvar This parameter determines if DHCP (option 61) is turned on or off of the wireless print server. getvar result Example setvar choices Status of the CID. Description Gets the status of the client identifier of the wireless print server. Syntax ! U1 getvar “wlan.ip.dhcp.
Mobile Printing Systems CPCL Programming Manual wlan.ip.dhcp.cid_suffix type: getvar; setvar This parameter defines the unique suffix to be used as the client identifier (option 61) if DHCP is enabled on the wireless print server and “wlan.ip.dhcp.cid_type” is set to “0” or “2”. getvar result Example setvar choices Example CID suffix of wireless print server. Description Gets the client identifier suffix of the wireless print server. Syntax ! U1 getvar “wlan.ip.dhcp.
Mobile Printing Systems CPCL Programming Manual wlan.ip.dhcp.cid_all type: getvar; setvar This parameter defines the entire client identifier (option 61) if DHCP is enabled on the wireless print server and “wlan.ip.dhcp.cid_type” is set to “0” or “2”. The MAC address is used if the type is set to “1”. getvar result Example setvar choices CID prefix and suffix of wireless print server. Description Gets the client identifier prefix and suffix of the wireless print server. Syntax ! U1 getvar “wlan.ip.
Mobile Printing Systems CPCL Programming Manual wlan.ip.dhcp.option12 type: getvar; setvar This parameter specifies if the DHCP option 12 (host name) is on or off in the discovery packet that is sent from the wireless print server. getvar result Status of DHCP option 12. Description Gets the status of the DHCP option 12 (host name) as being either on or off in the discovery packet that is sent from the wireless print server. Syntax ! U1 getvar “wlan.ip.dhcp.
Mobile Printing Systems CPCL Programming Manual wlan.ip.dhcp.option12_format type: getvar; setvar This parameter specifies the format of the option 12 value to be used in the discovery packet of the wireless print server. getvar result Example setvar choices Format of option 12 value to be used in discovery packet. Description Gets the format of option 12 value to be used in the discovery packet of the wireless print server. Syntax ! U1 getvar “wlan.ip.dhcp.
Mobile Printing Systems CPCL Programming Manual wlan.ip.protocol type: getvar; setvar This parameter configures the IP addressing method used by the wireless print server. getvar result Example setvar choices IP protocol value. Description Gets the value of the currently selected IP protocol used by the wireless print server. Syntax ! U1 getvar “wlan.ip.
Mobile Printing Systems CPCL Programming Manual wlan.ip.default_addr_enable type: getvar; setvar This parameter allows you to default the wireless print server’s IP address. getvar result Example setvar choices Status of default IP address feature. Description Gets the status of the setting of the wireless print server’s default IP address feature. Syntax ! U1 getvar “wlan.ip.
Mobile Printing Systems CPCL Programming Manual wlan.ip.timeout.enable type: getvar; setvar This parameter refers to enabling the connection timeout on the wireless print server. For this to take effect, the print server must be reset. getvar result Timeout checking information, i.e. on or off. Description Example setvar choices Gets information on whether the timeout checking is enabled on the wireless print server. Syntax ! U1 getvar “wlan.ip.timeout.
Mobile Printing Systems CPCL Programming Manual wlan.ip.timeout.value type: getvar; setvar This parameter refers to the number of seconds before the connection times out for the wireless print server. getvar result Example setvar choices Time before connection times out. Description Gets the time (in seconds) before the connection times out. Syntax ! U1 getvar “wlan.ip.timeout.
Mobile Printing Systems CPCL Programming Manual wlan.keep_alive.enable type: getvar; setvar This parameter controls the printer’s ability to send the link service access point (LSAP) packet to the access point on a user-controllable interval. This feature is included to accommodate access points that require a regular confirmation that wireless clients are still active. getvar result The “wlan.keep_alive.enable” setting. Description Example setvar choices Gets the printer to respond with the “wlan.
Mobile Printing Systems CPCL Programming Manual wlan.keep_alive.timeout type: getvar; setvar This parameter manages the interval at which the LSAP packet is sent. getvar result The “wlan.keep_alive.timeout” setting. Description Example setvar choices Gets the printer to respond with the “wlan.keep_alive.timeout” interval value. Syntax ! U1 getvar “wlan.keep_alive.timeout” Result “15” Values: 5 to 300 seconds Default “15” Description Sets the interval at which the printer sends the “wlan.
Mobile Printing Systems CPCL Programming Manual wlan.wep.index type: getvar; setvar This parameter refers to the Wired Equivalent Privacy (WEP) encryption key index. This printer setting determines which one of the four encryption keys is to be used by the client (printer). getvar result Example setvar choices Example The encryption key index. Description Gets the printer to respond with the encryption key index. Syntax ! U1 getvar “wlan.wep.
Mobile Printing Systems CPCL Programming Manual wlan.wep.auth_type type: getvar; setvar For the WEP security type, this parameter selects the authentication type to be used between the printer and the access point. The authentication types are open system and shared key. getvar result The WEP authentication type. Description Example setvar choices Example Gets the printer to retrieve the current WEP authentication type. Syntax ! U1 getvar “wlan.wep.
Mobile Printing Systems CPCL Programming Manual wlan.wep.key1 type: getvar; setvar This parameter refers to the first indexed WEP encryption key. The WEP encryption key is a hexadecimal or string value. This key should match the wireless network WEP encryption key 1. getvar result Example setvar choices Example setvar choices Commands pg. 14-180 Gets the printer to respond with the encryption key. Syntax ! U1 getvar “wlan.wep.
Mobile Printing Systems CPCL Programming Manual wlan.wep.key3 type: getvar; setvar This parameter refers to the second indexed WEP encryption key. The WEP encryption key is a hexadecimal or string value. This key should match the wireless network WEP encryption key 3. getvar result Example setvar choices Example setvar choices Commands pg. 14-181 Gets the printer to respond with the encryption key. Syntax ! U1 getvar “wlan.wep.
Mobile Printing Systems CPCL Programming Manual wlan.security type: getvar; setvar This parameter allows you to specify both the wireless encryption type and authentication type in one command. getvar result The wireless security value. Description Gets the printer to return the name and not the type. If an invalid security mode is entered the printer returns Invalid Mode. Syntax ! U1 getvar “wlan.
Mobile Printing Systems CPCL Programming Manual wlan.private_key_password type: getvar; setvar This parameter allows the setting of the optional private key password. getvar result Example setvar choices Example The private key password. Description Gets the value of the private key password. Syntax ! U1 getvar “wlan.private_key_password” Result “value” (For protection a single “*” prints) Values: a maximum of 32 alphanumeric characters Default “value” Description Sets the private key password.
Mobile Printing Systems CPCL Programming Manual wlan.password type: getvar; setvar This parameter refers to the generic password that is used by the wireless securities that need a password. getvar result Example setvar choices The generic user name. Description Gets the generic password for the wireless securities that need a password. Syntax ! U1 getvar “wlan.
Mobile Printing Systems CPCL Programming Manual wlan.mac_raw type: getvar; setvar This parameter specifies the RAW MAC address of the wireless print server. The RAW MAC address is the MAC address without the colons (“:”). getvar result The RAW MAC address. Description Gets the RAW MAC address of the wireless print server. Syntax ! U1 getvar “wlan.mac_raw” Example Section 14 Configuration/ Control Commands pg.
Mobile Printing Systems CPCL Programming Manual NOTE: The “wlan.xxx” commands described in the following two sections apply only to printers that support the new “Zebra Performance Radio 802.11 b/g”. This option is denoted by the letter “G” in the printer part number (seventh position), i.e. Q3D-LUGA0000-00. Using the Set-Get-Do commands below allows the user to modify the roaming parameters in the printer. Roaming Commands wlan.roam.
Mobile Printing Systems CPCL Programming Manual wlan.roam.max_fail type: getvar; setvar This is the number of consecutive tx packet failures at which point the radio should start its roaming algorithm. This is not supported by all radios. getvar result getvar example setvar choices setvar example Returns the number for the max_fail threshold. Description Get the current max_fail threshold value Syntax ! U1 getvar “wlan.roam.
Mobile Printing Systems CPCL Programming Manual wlan.roam.trig_freq type: getvar; setvar; hidden internal only command This is the number of consecutive received beacons that must meet the RSSI or signal threshold before roaming will be triggered. This is not supported by all radios. See also “wlan.roam.signal” and “wlan. roam.rssi”. (This variable is not referenced in those as this one is hidden.
Mobile Printing Systems CPCL Programming Manual International Mode Using the description below, a user can change the channels to what are supported by their regulatory domains. The user should ensure they set this in accordance with the regulatory domain in their country. wlan.channel_mask type: getvar; setvar This controls which b/g radio channels can be used by the radio for network connections. It is a bit field where a 0 disables a channel and a 1 enables the channel.
Mobile Printing Systems CPCL Programming Manual RFID Parameters Note: The following “rfid.xxx” parameters are applicable only on Zebra mobile printers equipped with a RFID reader/encoder option. More detailed information on RFID commands and parameters may be found in Zebra’s RFID Programming Manual, available on the Zebra website. rfid.error.response type: getvar This command returns any active error message displayed on the printer’s LCD. getvar result Returns any RFID error message.
Mobile Printing Systems CPCL Programming Manual rfid.position.program Type getvar; setvar Description This command sets the read/write position of the RFID transponder in vertical (Y axis) dot rows from the top of the label. Set to 0 (no movement) if the transponder is already in the effective area without moving the media.
Mobile Printing Systems CPCL Programming Manual rfid.reader_1.power.read Type getvar; setvar Description This command sets the RFID reader power level for reading RFID tags. getvar result Example “getvar” instructs the printer to respond with the RFID reader’s current read power level Syntax ! U1 getvar “rfid.reader_1.power.
Mobile Printing Systems CPCL Programming Manual rfid.reader_1.power.write Type getvar; setvar This command sets the RFID reader’s write power level for writing to RFID tags. getvar results Example “getvar” instructs the printer to respond with the RFID reader’s current write power level Syntax ! U1 getvar “rfid.reader_1.power.
Mobile Printing Systems CPCL Programming Manual rfid.tag.calibrate Type: setvar This command sets the RFID programming position through a tag calibration or it restores the programming position back to the printer default. Before running this command load the printer with RFID media and close the printhead. setvar choices Example 1 Example 2 Commands pg.
Mobile Printing Systems CPCL Programming Manual rfid.tag.test Type: setvar This command refers to the RFID tag test results via the display. setvar choices Example 1 Example 2 “quick”, “slow” Description This parameter will perform a quick RFID test which will show a pass or fail message Syntax ! U1 setvar “rfid.tag.test” “quick” Result Printer performs a quick RFID test.
Mobile Printing Systems CPCL Programming Manual USB Parameters NOTE: The following “usb.xxx” parameters are applicable only on Zebra mobile printers configured for USB communications. They cannot be used on Cameo and Encore series printers which do not support USB communications. usb.device.device_id_string type: getvar This parameter refers to the manufacturer assigned IEEE1284 Device Identification string used to describe a particular USB product.
Mobile Printing Systems CPCL Programming Manual usb.device.product_id type: getvar This parameter refers to the Product Identification number that a manufacturer has assigned to a particular product. This number, along with the Vendor ID, allows a USB host to distinguish one device from another. getvar result Example Returns the Product ID stored in the USB library. Format is hexadecimal Description This example retrieves the device’s product ID Syntax ! U1 GETVAR “usb.device.
Mobile Printing Systems CPCL Programming Manual usb.device.device_unique_id type: getvar. setvar This parameter sets or gets the USB Unique Device Id setting. The identifier that makes any printer unique is set by the parameter “usb.device.serial_string” which is reported to the USB driver. By default “usb.device.serial_string” reports the printer’s serial number, which will prompt the user to specify the driver he desires to use each time he plugs in a new device. By setting “usb.
Mobile Printing Systems CPCL Programming Manual usb.halt Type: getvar, setvar Variable used to force the printer to maintain available USB connection when a printer error occurs. getvar result Returns the current “usb.halt” setting stored in the printer. Syntax setvar choices setvar example 1 setvar example 2 ! U1 getvar “usb.halt” yes, no Default yes Description Printer will maintain USB connection on printer error (head open, out of paper) Syntax ! U1 setvar “usb.halt” “no” Result usb.
Mobile Printing Systems CPCL Programming Manual Zebra Printer Mirror Process Zebra “alpha series” mobile printers (e. g. QL 220, RW 420) support a file mirroring process that allows the printer to synchronize files with those stored on an FTP server. Since the process relies solely on the FTP standard, no other special utilities are required.
Mobile Printing Systems CPCL Programming Manual Section 14 Configuration/ Control Commands pg. 14-201 ip.mirror.fetch: Force the mirror process to be run immediately. This variable can be set via SNMP, allowing the mirror process to triggered via SNMP. Example of printer configuration for mirror The following is an example of using the above mirror set/get variables to configure the printer for the mirror process.
Mobile Printing Systems CPCL Programming Manual names must be in 8.3 format. The time stamp of any files in the commands/ subdirectory will be compared to those of commands which were last executed on the printer. Any command files that have never been run or have a more recent time stamp than those on the printer will be downloaded and executed on the printer. It may be useful to put a label command in the most recent command file.
Mobile Printing Systems CPCL Programming Manual ip.mirror.auto type: getvar, setvar This parameter is used to enable or disable the file mirroring process on the printer for the initial powerup sequence and at repeating intervals defined by “ip.mirror.freq”. getvar result Example setvar choices Example The current mirror setting. Description Instructs the printer to respond with the value of the FTP mirror mode Syntax !U1 getvar “ip.mirror.
Mobile Printing Systems CPCL Programming Manual ip.mirror.freq type:getvar; setvar This parameter defines how frequently (in minutes) the mirror process will be performed. This parameter only applies if “ip.mirror.auto” is set to “on”. getvar result Example setvar choices Example The current mirror frequency in minutes Description Instructs the printer to respond with the frequency the mirror process is performed Syntax !U1 getvar “ip.mirror.freq” Result “0” Any value between “0” and “99”.
Mobile Printing Systems CPCL Programming Manual ip.mirror.password type: getvar; setvar This parameter defines FTP password that will be used for the mirror process. getvar result Example setvar choices Example The current mirror password – masked with asterisks Description Instructs the printer to respond with the value of the FTP password Syntax !U1 getvar “ip.mirror.
Mobile Printing Systems CPCL Programming Manual ip.mirror.path type:getvar; setvar This parameter defines the path on the FTP where the mirror directories are located. This can be a relative path based on the FTP username or an absolute path based on the FTP root directory. getvar result Example setvar choices Example The current mirror path. Description Instructs the printer to respond with the FTP path to the mirror directories Syntax !U1 getvar “ip.mirror.
Mobile Printing Systems CPCL Programming Manual ip.mirror.server type:getvar; setvar This parameter defines the FTP server that will be used for the mirror process. getvar result Example setvar choices Example The current mirror server address Description Instructs the printer to respond with the FTP server used for the mirror process Syntax !U1 getvar “ip.mirror.server” Result “0.0.0.0” Either an IP address or any DNS resolvable name up to 40 characters in length Default “0.0.0.
Mobile Printing Systems CPCL Programming Manual ip.mirror.username type: getvar; setvar This parameter defines FTP username that will be used for the mirror process. getvar result Example setvar choices Example The current username. Description Instructs the printer to respond with the value of the FTP user name Syntax !U1 getvar “ip.mirror.
Mobile Printing Systems CPCL Programming Manual Internal Wired Parameters internal_wired.ip.addr type: getvar; setvar This parameter allows you to get or set the internal wired print server’s IP address. getvar result Example setvar choices Example The currrent internal wired print server IP address. Description Gets the printer to respond with its current internal wired print server IP address. Syntax ! U1 getvar ”internal_wired.ip.addr” Result “ 0.0.0.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.netmask type: getvar; setvar This parameter allows you to get or set the internal wired print server’s subnet mask address. This value is ignored if the IP protocol is not set to permanent. getvar result Example setvar choices Example The currrent internal wired print server subnet mask. Description Gets the printer to respond with internal wired print server subnet mask. Syntax ! U1 getvar ”internal_wired.ip.netmask” Result “ 255.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.gateway type: getvar; setvar This parameter instructs the printer to change the internal wired print server’s gateway address. getvar result Example setvar choices Example The currrent internal wired print server gateway address. Description Gets the printer to respond with internal wired print server gateway address. Syntax ! U1 getvar ”internal_wired.ip.gateway” Result “ 0.0.0.0“ Values: any valid gateway address Default “0.0.0.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.port type: getvar; setvar This parameter refers to the internal wired print server’s port number that the TCP print service is listening on. Noarmal TCP communications from the host should be directed to this port. getvar result Example setvar choices Example The currrent internal wired print server TCP/UDP port number. Description Gets the printer to respond with internal wired print server TCP/ UDP port number.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.arp_interval type: getvar; setvar This parameter allows you to specify the Address Resolution Protocol (ARP) interval or the ARP cache time out for the internal wired print server. getvar result Example setvar choices Example The ARP interval or the ARP cache time out value for the internal wired print server..
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.dhcp.requests_per_session type: getvar; setvar This parameter retrieves the maximum amount of DHCP discover requests for a single DHCP session on the internal wired print server. getvar result The max amount of DHCP discover requests for a single DHCP session. Description Gets the currently set maximum amount of DHCP discover requests for a single DHCP session on the internal wired print server. Syntax ! U1 getvar ”internal_wired.ip.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.dhcp.requests_timeout type: getvar; setvar This parameter retrieves the maximum amount of DHCP discover requests for a single DHCP session on the internal wired print server. getvar result The max amount of DHCP discover requests for a single DHCP session. Description Gets the currently set maximum amount of DHCP discover requests for a single DHCP session on the internal wired print server. Syntax ! U1 getvar ”internal_wired.ip.dhcp.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.dhcp.session_interval type: getvar; setvar This parameter retrieves the amount of time (in seconds) it will take for a DHCP session to time out before a new session begins. getvar result Example setvar choices Example The current DHCP session time out. Description Gets the current DHCP session time out. Syntax ! U1 getvar ”internal_wired.ip.dhcp.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.dhcp.lease.time_left type: getvar This parameter retrieves the time (in seconds) left in the current DHCP lease on the internal wired print server. getvar result Example The original time (in seconds) left in the current DHCP lease. Description Gets the original time (in seconds) left in the current DHCP lease on the internal wired print server. Syntax ! U1 getvar ”internal_wired.ip.dhcp.lease.time_left” internal_wired.ip.dhcp.lease.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.dhcp.cache_ip type: getvar; setvar This parameter enables or disables the IP cache on the internal wired print server. getvar result Example setvar choices Example Description Gets the status of the IP cache on the internal wired print server. Syntax ! U1 getvar ”internal_wired.ip.dhcp.cache_ip” Result “off“ Values: “on” = enabled; “off” = disabled Default “off” Description Sets the status of the IP cache.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.dhcp.cid_prefix type: getvar; setvar This parameter defines the prefix to be prepended to the DHCP client identifier (option 61) when DHCP is enabled on the internal wired print server and “internal_wired.ip.dhcp.cid_type” is set to “0” or “2”. getvar result Example setvar choices Example The client identifier prefix. Description Gets the printer to respond with the client identifier prefix of the internal wired print server.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.dhcp.cid_enable type: getvar; setvar This parameter determines if DHCP (option 61) is turned on or off of the internal wired print server. getvar result Example setvar choices Example The status of the client identifier. Description Gets the printer to respond with the status of the client identifier of the internal wired print server. Syntax ! U1 getvar ”internal_wired.ip.dhcp.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.dhcp.cid_suffix type: getvar; setvar This parameter defines the unique suffix to be used as the client identifier (option 61) if DHCP is enabled on the internal wired print server and “internal_wired.ip.dhcp.cid_type” is set to “0” or “2”. getvar result Example setvar choices Example The client identifier suffix. Description Gets the printer to respond with the client identifier suffix of the internal wired print server.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.dhcp.cid_all type: getvar; setvar This parameter defines the entire client identifier (option 61) if DHCP is enabled on the internal wired print server and “internal_wired.ip.dhcp.cid_type” is set to “0” or “2”. The MAC address is used if the type is set to “1”. getvar result Example setvar choices Example The client identifier prefix and suffix.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.dhcp.option12 type: getvar; setvar This parameter specifies if the DHCP option 12 (host name) is on or off in the discovery packet that is sent from the internal wired print server. getvar result Example setvar choices Example The status of the DHCP option 12 in the discovery packet. Description Gets the status of the DHCP option 12 (host name) in the discovery packet of the internal wired print server.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.dhcp.option12_format type: getvar; setvar This parameter specifies the value that will be used for option 12 (host name) to be used in the DHCP discovery packet of the internal wired print server. getvar result The value to be used for option 12 in the DHCP discovery packet. Description Gets the value which will be used for option 12 (host name) to be used in the DHCP discovery packet of the internal wired print server.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.dhcp.option12_value type: getvar This parameter retrieves the actual value which will be used in the discovery packet of the internal wired print server. getvar result Example The actual value used in the discovery packet. Description Gets the actual value which will be used in the discovery packet of the internal wired print server. Syntax ! U1 getvar ”internal_wired.ip.dhcp.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.protocol type: getvar; setvar This parameter configures the IP addressing method used by the internal wired print server. getvar result Example setvar choices Example The IP addressing method. Description Gets the IP addressing method used by the internal wired print server. Syntax ! U1 getvar ”internal_wired.ip.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.default_addr_enable type: getvar; setvar This parameter allows you to default the internal wired print server’s IP address. getvar result Example setvar choices Example The status of the setting of the internal wired print server’s default IP address feature. Description Gets the printer to show the status of the setting of the internal wired print server’s default IP address feature. Syntax ! U1 getvar ”internal_wired.ip.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.timeout.enable type: getvar; setvar This parameter enables the connection timeout on the internal wired print server. For this to take effect, the print server must be reset. getvar result Example setvar choices Example Whether or not the timeout checking is enabled. Description Instructs the printer to return whether the timeout checking is enabled on the internal wired print server. Syntax ! U1 getvar ”internal_wired.ip.timeout.
Mobile Printing Systems CPCL Programming Manual internal_wired.ip.timeout.value type: getvar; setvar This parameter refers to the time (in seconds) before the connection times out for the internal wired print server. For this to take effect, the print server must be reset. getvar result Example setvar choices Example The time (in seconds) until the connection times out.
Mobile Printing Systems CPCL Programming Manual internal_wired.mac_addr type: getvar This parameter retrieves the MAC address of the internal wired print server. getvar result Example The MAC address. Description Gets the printer to respond with the MAC address of the internal wired print server. Syntax ! U1 getvar ”internal_wired.mac_addr” internal_wired.mac_raw type: getvar This parameter identifies the RAW MAC address of the internal wired print server.
Mobile Printing Systems CPCL Programming Manual internal_wired.auto_switchover type: getvar; setvar This parameter instructs the printer to switch from wireless to the internal wired print server when an Ehternet cable is plugged into the printer and the printer detects an active data link. getvar result Example setvar choices Example The current automatic switchover value. Description Gets the current automatic switchover value. Syntax ! U1 getvar ”internal_wired.
Mobile Printing Systems CPCL Programming Manual Interface Parameters interface.network.active.ip_addr type: getvar This parameter retrieves the IP address of the active print server. getvar result Example The IP address of the active print server. Description Gets the IP address of the active print server. Syntax ! U1 getvar ”interface.network.active.ip_addr” interface.network.active.netmask type: getvar This parameter retrieves the netmask of the active print server.
Mobile Printing Systems CPCL Programming Manual interface.network.active.protocol type: getvar This parameter retrieves the IP protocol of the active print server. getvar result Example The IP protocol of the active print server. Description Gets the IP protocol of the active print server. Syntax ! U1 getvar ”interface.network.active.protocol” interface.network.active.mac_addr type: getvar This parameter retrieves the MAC address of the active print server.
Index Appendices Mobile Printing Systems CPCL Programming Manual PRINTER CONFIGURATION AND SETUP Using Label Vista for Printer Configuration The Label Vista label creation application can also be used to re-configure the printer by sending new application, font or .bat files to the printer. The Label Vista utilities are located under the Printer Menu.
Index Mobile Printing Systems CPCL Programming Manual Section 15 Printer Configuration & Setup pg. 15-2 Appendices Port Sets up the communications port via the Commmunications Port dialog box. The user may select from several different methods of communicating with the printer and select the rate at which data is transferred.. The Com1 or Com2 selections allow bi-directional serial communications with the printer.
Index Mobile Printing Systems CPCL Programming Manual Section 15 Printer Configuration & Setup pg. 15-3 Appendices 2 Send Font Downloads a font file (.CSF, .CPF extensions) to the printer. (Refer to the Fonts Menu selection for more information.) 3 Send Picture Downloads a picture file (.PCX) to the printer. Note: Any picture files placed in a label created with Label Vista must also be downloaded to the printer by means of this command. 4 Send Autoexec. Downloads an autoexec.bat file to the printer.
Index Appendices Mobile Printing Systems CPCL Programming Manual Using Label Vista for Wireless Configuration Label Vista can also be used to configure the various versions of Mobile Wireless Printers. A Wireless Configuration Guide is available in the Zebra Web site at: http://www.zebra.com Power Management The printer contains the following power management features: 1. Synchronized On/Off control via DTR line from the attached host (DTR On/Off Control). 2. Programmable inactivity timeout. 3.
Index Appendices Mobile Printing Systems CPCL Programming Manual disconnected. In this case, the printer will attempt to communicate to the host over the short-range radio if the printer is so equipped. In its active (high) state, the DSR line will disable the short-range radio, if any, and will communicate over the RX/TX line of the serial port. For printers that are not equipped with a short-range radio, the host terminal must still keep the DSR line at an active state.
Index Appendices Mobile Printing Systems CPCL Programming Manual Batch Files The printer flash file system can be used to store a start-up file titled AUTOEXEC.BAT. When the printer is powered on, this file will be searched for and, if present, the printer will execute the commands found in this file. The following example shows how to create an AUTOEXEC.BAT file and load it into the printer. AUTOEXEC.BAT Example ! DF AUTOEXEC.
Index Appendices Mobile Printing Systems CPCL Programming Manual RUN.BAT Command/File The printer will execute the RUN.BAT file on power-up, if one exists. This file may be a format or label file. The only time RUN.BAT file is not executed is after a two-key reset (hold feed key down, turn printer on, release feed key when printer starts printing). The following example demonstrates the use of the RUN.
Index Appendices Mobile Printing Systems CPCL Programming Manual RE-RUN Command The RE-RUN command instructs the printer to execute the current file after an end-of-file is encountered. Any format or command file in the printer, with the exception of AUTOEXEC.BAT and CONFIG.SYS, may use the RE-RUN command. GAP-SENSE & BAR-SENSE Commands These commands are used to instruct the printer as to which means of top-of-form detection should be employed. Printers default to BAR-SENSE if no command is specified.
Mobile Printing Systems CPCL Programming Manual INDEX A Acknowledge Printer Reset 11-3 Advanced Utilities examples 10-1 ALL CHRS.LBL 1-6 ANNOUNCE Command 10-10 AUTOEXEC.
Mobile Printing Systems CPCL Programming Manual E ENCODING Command 2-5 Error messages LAN 12-9 F Facing Identification Mark (FIM) 5-13 FG command 3-6 file mirroring 14-200 printer set up 14-200 server settings 14-201 Flash Memory 8-27 Font monospaced 9-17 TrueType™ 9-5 fonts pre-scaled 1-8 Fonts Asian 8-24 Format File Commands 1-8, 8-25 DEFINE FORMAT 8-26 USE-FORMAT 8-27 FORM command 2-6 Form Feed 9-10 Frequency Hopping Spread Spectum Radios compatibility with command parameters 14-133 G GAP-SENS
Mobile Printing Systems CPCL Programming Manual Index Index-3 interface.network.active.mac_raw 14-233 interface.network.active.netmask 14-232 interface.network.active.protocol 14-233 internal_wired.auto_switchover 14-231 internal_wired.ip.addr 14-209 internal_wired.ip.arp_interval 14-213 internal_wired.ip.default_addr_enable 14-227 internal_wired.ip.dhcp.cache_ip 14-218 internal_wired.ip.dhcp.cid_all 14-222 internal_wired.ip.dhcp.cid_enable 14-220 internal_wired.ip.dhcp.cid_prefix 14-219 internal_wired.ip.
Mobile Printing Systems CPCL Programming Manual Index Index-4 ip.pop3.username 14-122 ip.pop3.verbose_headers 14-123 ip.port 14-124 ip.primary_network 14-114 ip.remote 14-125 ip.remote_autoconnect 14-126 ip.remote_port 14-127 ip.smtp.enable 14-127 ip.smtp.server_addr 14-128 ip.snmp.enable 14-129 ip.snmp.get_community_name 14-129 ip.snmp.set_community_name 14-130 ip.tcp.enable 14-131 ip.telnet.enable 14-132 media.feed_length 14-46 media.sense_mode 14-47 media.speed 14-45 media.status 14-47 media.
Mobile Printing Systems CPCL Programming Manual Index Index-5 usb.device.product_string 14-197 usb.device.serial_string 14-197 usb.device.unique_id 14-198 usb.device.vendor_id 14-198 usb.halt 14-199 wlan.adhocautomode 14-157 wlan.adhocchannel 14-156 wlan.associated 14-134 wlan.auth_type 14-136 wlan.bssid 14-134 wlan.channel 14-155 wlan.channel_mask 14-189 wlan.current_essid 14-135 wlan.current_tx_rate 14-135 wlan.encryption_index 14-137 wlan.encryption_key1 14-138 wlan.encryption_key2 14-139 wlan.
Mobile Printing Systems CPCL Programming Manual EPL II 1-1 setting 1-2 ZPL 1-1 I German Post Code 5-9 INVERSE-LINE command 7-3 J JOURNAL command 2-6 JOURNAL Command 14-49 Justification Commands 9-15 Index-6 M MaxiCode 6-1, 6-5 L encoded tags 6-5–6-10 publication: Guide to bar Coding 6-7 Label Coordinate System 1-7 Label Height 1-3 Label Height, MCR-CAN Command 10-28 MCR Command 8-32, 10-23 Data Reporting Options 10-24 Debugging Options 10-24 Error Reporting Options 10-25 Frequency Options 10-24 T
Mobile Printing Systems CPCL Programming Manual NO_PACE Command 8-8 NW7 barcode 5-11 Odometer Parameters 14-64 Off Command 11-6, 15-5 ON-FEED Command 8-16 ON-OUT-OF-PAPER Command 8-15 P PAGE-HEIGHT Command 9-10 PAGE-WIDTH Command 9-7, 9-10 PAPER JAM Command 11-4 PARTIAL-CUT Command 9-15 PATTERN command 7-5 PCX Command 7-8, 9-15 PDF417 Barcode 6-1 POSTFEED Command 8-19 Postnet barcode 5-13 USPS Publication 25 5-13 Power Management and Short-Range Radio Control 15-4 using DSR 15-4 PREFEED Command 8-18 P
Mobile Printing Systems CPCL Programming Manual Index Index-8 ip.bootp.enable 14-81 ip.dhcp.cid_prefix 14-85 ip.dhcp.cid_type 14-86 ip.dhcp.cid_value 14-87 ip.dhcp.enable 14-84 ip.ftp.enable 14-88 ip.gateway 14-98 ip.http.enable 14-100 ip.lpd.enable 14-100 ip.mirror.auto 14-205 ip.mirror.freq 14-206 ip.mirror.password 14-207 ip.mirror.path 14-208 ip.mirror.server 14-209 ip.mirror.username 14-210 ip.netmask 14-102 ip.pop3.enable 14-117, 14-119, 14-120, 14-121, 14-122, 14-123, 14124 ip.pop3.
Mobile Printing Systems CPCL Programming Manual software version, ascertaining 14-1 SPEED Command 8-12 Synchronized On/Off Control 15-4 T TENSION Commands 8-11 TEXT Command 3-4, 6-3 Text Concatenation Commands 4-5 TIMEOUT Command 10-12 Time Stamp, printing 10-20 TONE Command 8-2 TYPE 10-6 U UCC-128 Shipping Standard 5-10 Units Commands 2-6, 9-4, 9-8 UPC and EAN/JAN barcodes number system character 5-3 Plus2 and Plus 5 Extensions 5-4 UPC-E barcode 5-4 UTILITIES Command 9-3 V VCONCAT 3-8 VERSION 10-2 W
Mobile Printing Systems CPCL Programming Manual Appendices A-1 APPENDIX A- FREQUENTLY ASKED QUESTIONS These FAQ’s are in no particular order. They cover the most commonly encountered questions asked about our mobile printers. Q. The first label I print is fine, but the next one starts printing not as close to the top of the label form, then sometimes skips a label, then prints a good label. A. Make sure that you only have one carriage return/line feed pair after the PRINT statement in your label.
Mobile Printing Systems CPCL Programming Manual Appendices A-2 Q. A. Q. A. If the printer will not turn on, check the com port and cable. Now select option 2 (Get printer status) from the menu. If there is no response, you probably have mismatched baud rates. There seems to be missing or garbled characters sent to the printer. Some systems may alter characters before they are sent to the printer. The ‘\’ character for example may be taken as an escape for the following character.
Mobile Printing Systems CPCL Programming Manual APPENDIX B- INTERFACE CABLES BIDIRECTIONAL SERIAL INTERFACE CABLE Part Number BL13402-1 Use only with Bravo printers configured with standard DB9 serial I/O connector UNIDIRECTIONAL PARALLEL INTERFACE CABLE Part Number BL13403-1 Use only with Bravo printers configured with parallel Centronics type I/O connector 10' Pin 18 10' Pin 36 Pin 1 Pin 25 Pin 9 Pin 1 DB-9 Pin Female Plug (to PC) 1 2 3 4 5 6 7 8 9 Signal Names (Vcc) 1 (TXD) 2 (RXD) 3 (DSR) 4 (
Mobile Printing Systems CPCL Programming Manual Appendices A-4 BIDIRECTIONAL SERIAL INTERFACE CABLES Part Number BL11757-000 8-Pin DIN to 9-Pin DB PC Cable Use to connect all Zebra Mobile Printers (except MZ series) to a P.C. Pin 9 PC Signals (TXD) 3 (RXD) 2 (RTS) 7 Pin 1(CTS) 8 (GND) 5 DB-9 Pin (DTR) 4 Female Plug (DSR) 6 (to P.C.
Mobile Printing Systems CPCL Programming Manual Appendices A-5 BIDIRECTIONAL SERIAL INTERFACE CABLE Part Number BL17205-1; RW Mod Plug to 9-Pin DB PC Cable For use with RW Series only. PIN 9 (TXD) 3 (RXD) 2 (DSR) 6 (GND) 5 (DTR) 4 (CTS) 8 PIN 1 (RTS) 7 SHIELD 10 PIN MOD Plug (Printer Signals) 3 (RXD) 4 (TXD) 5 (DTR) 6 (GND) 7 (DSR) 8 (RTS) 9 (CTS) SHIELD PIN 1 USB INTERFACE CABLE Part Number AT17010-1; USB A to USB Mini B Cable For use with QL Plus, RW and MZ Series only.
Mobile Printing Systems CPCL Programming Manual Appendices A-6 More Interface Cables Terminal Cable P/N Cord Lgth/Type Terminal Connector Printer Connector Notes BL12093-3 8’ Coiled RJ45 8 Pin DIN MX1,MX3 BL17757-000 6’/Straight 9 Pin DB 8 Pin DIN 1380,1390,1590 BL17757-000 6’/Straight 9 Pin DB 8 Pin DIN 2325 BL12093-1 8’/Coiled RJ45 8 Pin DIN RT1100/1700 Series BL11537-1 8’ /Coiled 6 Pin MinDIN 8 Pin DIN Over-molded RT1100/1700 Series BL11537-2 12’/Coiled 6 Pin MiniDIN 8
Mobile Printing Systems CPCL Programming Manual Appendices A-7 More Interface Cables Terminal Cable P/N Cord Lgth/Type Terminal Connector Printer Connector 7030 ILR BL13285-2 Coiled 36 Pin IDC Fem 8 Pin DIN 7025 ILR BL13285-1 Coiled 15 Pin DB male 8 Pin DIN 960 BL11122-1 8’ /Coiled RJ45 8 Pin DIN 960SL Adapter for BL11122-1 CC13711-1 n/a n/a n/a 960 (BL11122-1) & 960SL (CC13711-1) CP74005 n/a n/a n/a 960 BL12996-1 8’ /Coiled RJ45 8 Pin DIN-Locking 860 & 912 CL11314-000
Mobile Printing Systems CPCL Programming Manual Appendices A-8 Denso BHT Interface Cable 7 6 1 2 3 3 5 8 1 4 2
Mobile Printing Systems CPCL Programming Manual Appendices A-9 APPENDIX C- CHARACTER TABLES ASCII TABLE hex values INTERNATIONAL ISO SUBSTITUTION CHARACTERS continued
Mobile Printing Systems CPCL Programming Manual A-10 continued Appendices CP-850 Character Set
Mobile Printing Systems CPCL Programming Manual A-11 continued Appendices Latin 1 Character Set
Mobile Printing Systems CPCL Programming Manual Appendices A-12 Latin 9 Character Set
Mobile Printing Systems CPCL Programming Manual Appendices A-13 APPENDIX D - FONT INFORMATION Font Names Name Font Number Standard 0 Script 1 OCR-A 2 Unison 4 Manhattan 5 MICR 6 Warwick 7 Font Heights The following table contains the font heights. The height values are in pixels.
Mobile Printing Systems CPCL Programming Manual Appendices A-14 Fixed-Width Fonts The following table contains the font widths for the fixed-width fonts. Only one width is given for each font/size combination since every character in that font/size combination has the same width. The proportional-width fonts follow, with a separate table for each. The space character will be substituted for empty values in these tables.The width values are in pixels.
Mobile Printing Systems CPCL Programming Manual Appendices A-15 More Proportional Width Fonts Font Width In Dots-FONT 4, SIZES 0-1 Font Width In Dots-FONT 4, SIZES 2-7 continued
Mobile Printing Systems CPCL Programming Manual Appendices A-16 Font Width In Dots, FONT 5, SIZES 2-3 Font Width In Dots-FONT 5, SIZES 0-1 continued
Mobile Printing Systems CPCL Programming Manual Appendices A-17 APPENDIX E-BAR CODE QUICK REFERENCE Bar Code Symbology Bar Code Type Input Length Characters Ideal Wide/ Narrow Ratio Ideal Narrow Dot Width Checksum Calculation UPC-A UPCA 11 or 12 digits* 0-9 only 2:1 2 mod 10 UPC-A plus 2 UPCA2 13 digits* 0-9 only 2:1 2 mod 10 (UPC-A) UPC-A plus 5 UPCA5 16 digits* 0-9 only 2:1 2 mod 10 (UPC-A) UPC-E UPCE 6, 7 or 11 digits* 0-9 only 2:1 2 mod 10 UPC-E plus 2 UPCE2 8 or 1
Mobile Printing Systems CPCL Programming Manual Appendices A-18 Bar Code Symbology Bar Code Type Input Length Characters Ideal Wide/ Narrow Ratio Ideal Narrow Dot Width Checksum Calculation Codabar CODABAR Variable 0-9,A-D,symbol 2.5:1 2 none CODABAR 16 Variable 0-9,A-D, symbol 2.
Mobile Printing Systems CPCL Programming Manual APPENDIX F - PRODUCT SUPPORT Media Supplies To insure maximum printer life and consistent print quality and performance for your individual application, it is recommended that only media produced by Zebra be used. These advantages include: • Consistent quality and reliability of media products. • Large range of stocked and standard formats. • In-house custom format design service.
Mobile Printing Systems CPCL Programming Manual Appendices A-20 Contact Us In the Americas contact Regional Headquarters Technical Support Customer Service Dept. Zebra Technologies Corporation 475 Half Day Road, Suite 500 Lincolnshire, Illinois 60069 U.S.A T: +1 847 793 2600 Toll-free +1 800 423 0422 T: +1 847 913 2259 F: +1 847 913 2578 Hardware: hwtsamerica@zebra.com Software: swtsamerica@zebra.com For printers, parts, media, and ribbon, please call your distributor, or contact us.
www.zebra.com Zebra Technologies Corporation 475 Half Day Road, Suite 500 Lincolnshire, Illinois 60069 USA Phone: + 1.847.634.6700 Toll Free: + 1.800.423.0422 Fax: + 1.847.913.