Home
PROMAN-CPCL Rev. P • April. 2005
Contents
1. Country 5 United Kingdom 5 5 Germany 5 5 Italy 5 5 2 Sweden Spain 5 5 i Orsay sleja gt eae via 24 Mobile Printer CPCLProgramming Manual APPENDIX C continued 850 CHARACTER SET Mobile Printer CPCLProgramming Manual A 25 APPENDIX continued LATIN 1 CHARACTER SET eee A 26 Mobile Printer CPCLProgramming Manual continued APPENDIX C LATIN 9 CHARACTER SET ELELLLEBEEEE SEES SIE Be Ee Hekel a eee Eh SII mz LIII JEGEDNNEBEBEUD eeke tete afell ehee eeke e ele lt lt 4 EE e lt 7 Z lt Latin 9 T x Hex Location A 27 Mobile Printer CPCLProgramming Manual APPENDIX D Font Information FONT NAMES Name Font Number Standard 0 tex d tt 1 OCRA tut 2 eee 4 Manhattan 5 6 Ree 7 FONT HEIGHTS The following table contains the font heights The height values are in pixels Font FontSize gt 0 1 2 3 4 5 6 7 0 u
2. 13 1 2 D UM LE 13 5 CONFIGURATION CONTROL COMMANDS P14 1 INTRODUCTION aa ctum S P14 1 COMMAND FORMAT d totes pado P14 1 COMMANDS P14 3 BLUETOOTH 14 5 COMM PORT PARAMETERS P14 11 DEVICE PARAMETERS 14 13 DISPLAY PARAMETERS 14 15 FILE PARAMETERS SA 14 17 PRINTER MECHANISM PARAMETERS P14 19 hae acct P14 22 vi Mobile Printer CPCLProgramming Manual MEDIA PARAMETERS rrr tnter tuere anneau P14 24 MEMORY PARAMETERS 14 27 ODOMETER PARAMETERS P14 28 POWER PARAMETERS ccc P14 32 TEST FUNCTION PARAMETERS P14 36 NETWORKING PARAMETERS 3n hs P14 37 USB PARAMETERS sued do 14 59 WLAN 250 14 63 WLAN XXX FHSS 14 63 ZEBRA PRINTER MIRROR PROCESS P14 86 PRINTER CONFIGURATION AND SETUP P15 1 U
3. Print using x scales of 10 points SCALE TEXT PLL_LAT CSF 10 10 0 10 10 POINT FONT Print using x scale of 2 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 scale of 20 points SCALE TEXT PLL_LAT CSF 10 20 0 150 TALLER FONT FORM PRINT 10 POINT FONT WIDER FONT TALLER FONT Mobile Printer CPCLProgramming Manual P4 3 SCALE TO FIT Commands The SCALE TO FIT commands automatically calculate the scale in order to fit text inside a window Format command width height xj yj data where commana Choose from the following SCALE TO FIT Prints scaled text horizontally or STF VSCALE TO FIT Prints scaled text vertically or VSTF fname Font name width Unit width of the window height Unit height of the window Horizontal starting position D Vertical starting position aata Text to be printed P4 4 Mobile Printer CPCLProgramming Manual SCALE TO FIT Example Input CSTF LBL 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 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 LAT CSF 40 20 30 SALE FORM PRINT SALE SAL
4. 8 11 TENSION COMMANDS P8 12 SPEED COMMAND P8 13 SETSP COMMAND 2S cu cL are P8 14 ON OUT OF PAPER P8 15 ON FEED COMMAND te ca iac P8 16 PREFEED COMMAND urea oct ef rudes P8 18 POSTFEED 8 19 PRESENT AT 8 20 COUNTRY CODE PAGE P8 22 8 24 BEEP COMMAND 8 27 CUT COMMAND P8 28 PARTIAL GUI P8 29 CUT AT COMMAND P8 30 MGR nd 8 31 2555 020 9 1 INTRODUGTION 9 1 SPECIAL COMMANDS USING THE UTILITY FUNCTION P9 2 UNITS COMMANDS odes sa enti P9 3 SETEP COMMAND crt cola CO P9 4 iv Mobile Printer CPCLProgramming Manual SETEF turae nnne nre nare P9 5 MOVING WITH X AND Y P9 6 EMARGIN COMMAND Ur Rv br retia Sven P9 7 SETB
5. Font 8 0 at SETMAG 1 1 Font SETMAG 2 Font O at SETMAG 2 1 Font at SETMAG 2 2 Font 0 0 at SETMAG 2 4 Mobile Printer CPCLProgramming Manual P3 15 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 The printer can contain scalable font files as part of the application or scalable font files can be downloaded to the printer using one of the utilities on the supplied disk A scalable text file must be present in your printer s memory in order to use scalable text features Mobile Printer CPCLProgramming Manual P4 1 SCALE TEXT Commands The SCALE TEXT commands allow the user to specify the point size of both the width and height of the font Format command width height xj yj data where command Choose from the following SCALE TEXT Prints scaled text horizontally or ST VSCALE TEXT Prints scaled text vertically or VST fname Font name wath Font width point size height Font height point size Horizontal starting position Vie Vertical starting position aata Text to be printed P4 2 Mobile Printer CPCLProgramming Manual SCALE TEXT Example Input CSCALE LBL 200 200 300 1
6. ejeuM HVA LAD 01 5199 5 udej6ejeg eui 1 y JO 5 151 1e Aej dsip 1512 Huo 02 S e dsip eui ejou osje 47 49 01 5141 uo yeoug aur 09108 JO e seje oeq 091 9 spues JNM saq lt gt lt lt JOWI gt lt UUU 9n eA gt lt gt uondo 1ejuud oz puA lt gt lt 6666 e lt gt d lt 1q gt WELEU ZN 9 gt AV IdSIQ lt 14519 gt lt WM gt 7 lt gt uondo q24 5 uo pasn TNM 1 13 7 Mobile Printer CPCLProgramming Manual penssi SI y 1942 y pesn SI lt gt eu y si 94 uonoeg y ui HVAT3S y payioeds si uondo eu p9199J8S 61 9972 uouM 6666 e sjueululo uondo oz puA
7. down Default 77 Description Syntax Result Set display contrast level to 8 U1 setvar display contrast 8 Printer will set the display contrast to 8 display backlight setvar This parameter refers to the printer display backlight getvar result Example State of backlight control on or off Description Get current backlight setting Syntax U1 getvar display backlight Result on off Default Description Syntax Result setvar choices Example Turn backlight off U1 setvar display backlight off Printer will turn display backlight off continued on next page P14 16 Mobile Printer CPCLProgramming Manual display text 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 The text currently displayed on the printer Example Description Get the current text displayed Syntax U1 getvar display text Result Zebra QL 320 setvar choices Text to be displayed The tab character will move text position to next line Specifying more than 80 characters will result in text to wrap Default Zebra followed by printer model e g QL 320 Example Description Change the displayed text Syntax U1 setvar display text Please picku
8. Result Printer will enable DTR power off Mobile Printer CPCLProgramming Manual P14 33 power inactivity_timeout getvar setvar This parameter refers to the inactivity timeout getvar result Current inactivity timeout in seconds Example Description Instructs the printer to respond with the inactivity timeout value Syntax U1 getvar power inactivity timeout Result 120 Seconds setvar choices 0 through 65535 Values are specified in seconds A value of 0 disables inactivity timeout Default 120 Example Description Set inactivity timeout to 120 seconds Syntax U1 setvar power inactivity timeout 120 Result Printer inactivity timeout will be set to 120 seconds 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 speci fied low battery time out getvar result Current low battery timeout in seconds Example Description Get current low battery timeout Syntax U1 getvar power low battery timeout Result 60 setvar choices 0 through 65535 Values are specified in seconds A value of 0 disables low battery timeout Default 60 Example Description Set low battery timeout to 60 seconds Syntax U1 setvar power low battery timeout 60 Result Print
9. P14 86 Mobile Printer CPCLProgramming 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 stan dard no other special utilities are required The files on the FTP server can be printer firmware files fonts as well as lists of printer configuration commands such as com mands to change the printer s WEP key In order for this file synchronization process to work properly it is only re quired that the FTP server support Unix style directory listings and that the modification time stamps of the files stored on the FTP server are accurate Printer set up to Support mirror process In order to enable the mirror process on the printer the following set get variables are available ip mirror auto on off If on printer will automatically perform a mirror fetch command on power up and subsequently every freq minutes see ip mirror freq below ip mirror username 20 bytes string Username to use for FTP login ip mirror password 20 bytes string Password for FTP account ip mirror server 40 bytes string Server ip address or name if DNS server info is provided via DHCP ip mirror path 50 bytes string Path on the FTP server where the mirror directory is located Defaults to companyname model
10. SETBOLD value where value is an offset number from 0 to 5 Note that 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 If UNITS is in centimeters the offset value range is 0 0625 cm If UNITS is in millimeters the offset value range is 0 625 mm Be sure to issue a U1 SETBOLD 0 command to turn the bolding off when done Example U1 SETBOLD 2 This text 15 in bold U1 SETBOLD 0 but this text 15 normal This text is in bold but this text is normal P9 8 Mobile Printer CPCLProgramming Manual 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 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 Note that this command is affected by the UNITS command setting Refer to the SETBOLD command above Example Normal Text U1 SETSP 5 SPREAD OUT TEXT Normal Text SPREAD OUT TEXT Mobile Printer CPCLProgramming Manual P9 9 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
11. 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 This is the default way to handle data sent to the printer RAW The RAW 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 COUNTED STRING This mode is based on the first charac ter of a data field being interpreted as a count of data bytes that follow In the counted string mode the number of bytes specified by the count will be transferred into the printer The count byte s maximum value is limited to the data field size minus 1 STRIP SPACES This mode eliminates trailing spaces in continued Mobile Printer CPCLProgramming Manual P10 49 each data field of a record Note unlike the STRIP ADD CRLF mode no CR LF pair is added to the data after stripping the trailing spaces 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 Ihe character indicate
12. Description Change mirror frequency to 25 Syntax U1 setvar ip mirror freq 25 Result If ip mirror auto is then the mirror process will be performed on initial power up and every 25 min utes thereafter P14 92 Mobile Printer CPCLProgramming Manual ip mirror password getvar setvar This parameter defines FTP password that will be used for the mirror process getvar result The current mirror password masked with aster isks Example Description Instructs the printer to respond with the value of the FTP password Syntax U1 getvar ip mirror password Result A 00 setvar choices Any text string up to 20 characters in length Default password Example Description Change mirror password to secret Syntax U1 setvar ip mirror password secret Result The next time the mirror process is performed the printer will use the FTP password secret ip mirror path 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 The current mirror path Example Description Instructs the printer to respond with the FTP path to the mirror directo ries Syntax 11 getvar ip mirror path Result Zebra QL 320 setvar choices Any text string up to 50 characters in length D
13. P10 42 CONFIGURING THE BHT FOR CABLE TRANSMISSION P10 43 LOADING DAT FILE INTO THE BHT P10 44 INTERRUPTED TRANSMISSIONS P10 45 EXAMPLE DAT P10 46 SRF ACCESS AND END SRF ACCESS COMMANDS P10 47 BHT BAUD COMMAND tette pt ies P10 48 BHT MODE 10 49 BHT PROTOCOL COMMAND 55 10 53 PRINTER ESCAPE COMMANDS P11 1 SET AND READ CODE COMMAND P11 1 PRINTER ESCAPE COMMANDS FORMAT P11 2 STATUSANFORMATION 2 11 3 USERLABEL COUNT 11 5 POWER OFF COMMAND titre aid 11 5 WIRELESS NETWORK PRINTERS P12 1 INTRODUCTION P12 1 NETWORK PRINTER SAFETY CONSIDERATIONS P12 1 LAN COMMAND UN IL LA E P12 1 SETTING THE IP ADDRESS FOR NETWORK PRINTERS P12 7 LAN COMMAND RESPONSE 12 8 NETWORK PRINTER TROUBLESHOOTING 12 9 WIRELESS LAN REPORT EXAMPLE P12 10 PROGRAMMING FOR THE DISPLAY OPTION P13 1 VIN RODS CT IOI rei 13 1 EXAMPLE T
14. e g Zebra QL 320 NOTE this must be an absolute path i e it must start with or ip mirror freq 0 65535 minutes Number of minutes to wait before performing an other mirror fetch If this value is 0 the mirror pro cess will only be performed once immediately on Mobile Printer CPCLProgramming Manual P14 87 power up This parameter only applies if ip mirror auto is on Caution should be used if set ting a low value otherwise the printer may spend most of its time performing the mirror process 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 These commands could be put in a text file and sent to the printer as in the following example 01 setvar ip mirror path Zebra QL320 U1 setvar ip mirror server 10 14 4 12 01 setvar ip mirror freq 0 U1 setvar LP mirror guto 01 setvar ip mirror username brian U1 setvar ip mirror password password In the above example the printer will only perform the mirror process once on power up since the ip mirror freq variable is set to 0 Server Settings On the server the mirror directory structure should look like this
15. 1 5 gt lt lt gt lt gt lt 6666 19999 6666 N LA ed A op Mobile Printer CPCLProgramming Manual P13 8 CONFIGURATION CONTROL COMMANDS Introduction The following section covers a set of commands to con figure and query printer parameters and perform various printer control functions Examples of this set of com mands include setting printer s IP address querying printer s baud rate or instructing the printer to advance its media to top of form This set of commands is referred to as the set get do commands and is available in the printer applications version 40 and above The software version can be ascertained by performing a two key reset as described in Section 1 of this manual The number in the Software listing on the second report must end in 40 or above e g Software HTLK40d These commands follow a standard format as described below Note All commands must be terminated with a CR LF 0x0D 0x0A Actions and parameter names must be specified in lower case Parameter values should be specified in lower case unless the parameter value itself is case sensitive such as a printer s WLAN eSSID Command Format Three commands are available setvar getvar and do setvar commands are used to configure printer operating parameters to specified values getvar commands are u
16. Address up to 39 characters long Default 0 0 0 0 Example Description Instructs the printer to change the remote IP address to 10 14 4 235 Syntax U1 setvar ip remote 10 14 4 235 Result This will change the remote server to 10 14 4 235 P14 52 Mobile Printer CPCLProgramming Manual ip remote_autoconnect setvar This parameter will determine whether the printer will at tempt to automatically initiate a TCP connection to a re mote 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 remote is on the printer will attempt to maintain a constant connection to this server address Anytime the connection is lost the printer will attempt to re establish the connection to the remote address getvar result The current auto connect setting Example Description Instructs the printer to respond with the currently stored ip rermote autoconnect status Syntax U1 ip remote autoconnect Result off setvar choices Default off Example Description Instructs the printer to change the Ip remote autoconnect status to on Syntax U1 setvar ip remote autoconnect Result On power u
17. Name number of the font size Size identifier for the font Horizontal starting position D Vertical starting position aata Text to be printed lt ENDMULTILINE gt Terminates MULTILINE or ENDML Mobile Printer CPCLProgramming Manual MULTILINE Example Input CMULTIL LBL 200 200 210 1 ML 47 TEXT 4 0 10 20 1st line of text 2nd line of text Nth line of text 1st line of text 2nd line of text Nth line of text Mobile Printer CPCLProgramming Manual P3 11 COUNT Command The COUNT command is used for printing multiple labels where a numeric text field or numeric data encoded in bar code is to be incremented or decremented for each label The TEXT BARCODE command string must con tain this numeric data as the last characters of the string The numeric data portion can be up to 20 characters and be preceded by the sign Incrementing or decrementing the numeric data thru 0 is not allowed Leading zeros will be retained Up to 3 COUNT com mands can be used in a label file The numeric data incremented decremented is contained in the TEXT or BARCODE command that immediately preceded the COUNT command Format command numeric value where command COUNT numeric value integer value up to 20 charac ters The value can be preceded by a sign if decrementing of the TEXT BARCODE value is desired Leading zeros will be retained in the output P3 12 Mobile P
18. Mobile Printer CPCLProgramming Manual Index 11 INDEX continued ip telnet enable P14 59 ip udp enable P14 59 media sense mode P14 25 media tof P14 26 media type P14 27 media width sense enable P14 20 odometer latch open count P14 30 odometer media marker count P14 31 odometer user label count P14 32 power dtr power off P14 33 power inactivity timeout P14 34 power low battery timeout P14 34 wlan auth type P14 65 wlan encryption index P14 67 wlan encryption key1 P14 68 wlan encryption key2 P14 69 wlan encryption key3 P14 70 wlan encryption key4 P14 71 wlan encryption mode P14 72 wlan essid P14 73 wlan international mode P14 74 wlan kerberos kdc P14 75 wlan kerberos mode P14 72 P14 76 wlan kerberos password P14 77 wlan kerberos realm P14 78 wlan kerberos username P14 79 wlan leap mode P14 80 wlan leap password P14 81 wlan leap username P14 82 wlan operating mode P14 83 wlan power save P14 84 wlan preamble P14 85 Short Range Radio Control See POWER MANAGEMENT SmartCard reader See S CARD command software version ascertaining P14 1 SPEED Command P8 13 Synchronized On Off Control P15 4 T TENSION Commands P8 12 TEXT Command P3 4 P6 5 Text Concatenation Commands P3 8 P4 6 Index 12 Mobile Printer CPCLProgramming Manual Time stamp Printing P10 22 TIMEOUT Command P10 14 TONE Command P8 2 top of form See SET TOF Command See SET TOF Command Two Dimensional Barcode Commands 6 1 two key reset See Printer Informati
19. Mobile Printer CPCLProgramming Manual P14 75 wlan kerberos mode getvar setvar This parameter refers to the Kerberos network authenti cation protocol Kerberos provides secure mutual au thentication for a wireless client through a Symbol Access Point based on user information stored on a Kerberos KDC Key Distribution Center server This parameter is not supported on units with a Frequency Hopping Spread Spectrum FHSS radio getvar result This will return the current Kerberos mode Example Description This command instructs the printer to respond with the current Kerberos mode Syntax getvar wlan kerberos mode Result off setvar choices off Default off Example Description This command instructs the printer to turn on Kerberos mode Syntax U1 setvar wlan kerberos mode on Result This will set the Kerberos mode to 14 76 Mobile Printer CPCLProgramming Manual wlan kerberos password getvar setvar This parameter refers to the Kerberos password The password must correspond to a user profile established on the Kerberos KDC server in use This parameter is not supported on units with a Frequency Hopping Spread Spectrum FHSS radio getvar result This will return the Kerberos password Example Description This command instructs the printer to respond with the current Kerberos password Syntax U
20. VERT Mobile Printer CPCLProgramming Manual P5 17 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 commana BARCODE TEXT or BT font number font number to use when annotating the bar code font size The font size to use when annotat ing the bar code offset Unit distance to offset text away from the bar code P5 18 Mobile Printer CPCLProgramming Manual Input CBARTEXT LBL 200 200 400 1 JOURNAL CENTER Annotate bar codes using font 7 size 0 and offset 5 dots from the bar code BARCODE TEXT 7 5 BARCODE 128 1 1 50 0 20 123456789 128 1 1 50 40 400 112233445 BARCODE TEXT OFF DOTT TIT i 5 Mobile Printer CPCLProgramming Manual P5 19 COUNT Command The COUNT command is used for printing multiple labels where a numeric text field or numeric data encoded in bar code is to be incremented or decremented for each label The TEXT BARCODE command string must con tain this numeric data as the last characters of the string The numeric data portion can be up to 20 characters and can be prec
21. user Result The LEAP user name will be set to user P14 82 Mobile Printer CPCLProgramming Manual wlan operating mode getvar setvar This parameter refers to the network operating mode In frastructure mode means that the printer will try to associ ate with an access point Ad hoc mode means that the printer will try to associate with a device other than an ac cess point and join a stand alone network To use hoc mode configure the printer as follows Setthe eSSID to the new network s eSSID Turn off the DHCP and assign an IP Address to the printer Set the Subnet mask on the printer to the new network s Subnet mask Change the operating mode on the printer to hoc The ad hoc setvar option is not supported on units with a Frequency Hop ping Spread Spectrum FHSS radio getvar result Returns the current operating mode Example Description Instructs the printer to respond with the value of the network mode Syntax U1 getvar wlan operating mode Result infrastructure setvar choices ad hoc infrastructure Default infrastructure Example Description This command instructs the printer to change the network mode to infrastructure Syntax U1 setvar wlan operating mode infrastructure Result This will set the printer s operating mode to infrastructure Mobile Printer CPCLProgramming Manual P14 83 wlan power_save getva
22. 30 00 ELSEWHERE ZD 180 KL 043645032841 10 46 Mobile Printer CPCLProgramming Manual SRF ACCESS 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 communi cation via the BHT CABLE protocol Input PROBHT CBL DF AUTOEXEC BAT UTILITIES SRF ACCESS BHT PROTOCOL BHT BHT PROTOCOL CABLE BHT BAUD 19200 BHT MODE STRIP ADD CRLF END SRF ACCESS PRINT continued Mobile Printer CPCLProgramming Manual P10 47 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 lt baud rate gt command Format command baud rate where command BHT BAUD baud rate 9600 19200 Default value for Zebra mobile printers is 9600 BPS BHT BAUD Command Example The following example sets BHT IR communications to use a baud rate of 19200 BPS and to strip spaces from received data fields DF AUTOEXEC BAT UTILITIES SRF ACCESS BHT MODE STRIP SPACES BHT BAUD 19200 END SRF ACCESS PRINT P10 48 Mobile Printer CPCLProgramming Manual 5 This command sets
23. A sales receipt should contain a few basic fields to prevent confusion First place the business name on the top of the receipt preferably in a font to differentiate it from everything else Choose a large font which is either resident in the printer or custom created with the Label Vista software package Resident font 4 size O or 1 and font 5 size 2 or 3 are perfect for this function If you desire to keep the receipt size small font 7 size 1 is tall enough to set the text apart from everything else yet it conserves space Seta little space between your busi ness name and the next line Next put the address and telephone number of the business under the name Customers will appreciate not P9 16 Mobile Printer CPCLProgramming Manual having to flip through the phone book the next they want to buy something from you Also this helps track which stores sell which items when dealing with returns and special sales promotions Set at least two lines of space between the header and the rest of the receipt Consider other important items on the receipt Add the date and time of the sale the ID number of the cashier or salesperson 15 the action a sale return price adjust ment or a sales quote Next the itemized bill of sale contains a SKU or UPC code a product description and a price Consider using a fixed width font or a monospaced font for this section A monospaced font keeps the characters an even width for every charac
24. COMMAND EXAMPE Ee vedi ven 10 15 ON LOW BATTERY 10 16 ET COMMAND La uS Fa eun NE P10 17 LT COMMAND EXAMPLES rne erra n Rhen P10 17 SET TIME TY epa Ee P10 18 GET TIME UTILITY iain Ste bae easet cs P10 19 UTILITY um 10 20 GET DATE U 10 21 PRINTING TIME 5 10 22 PRINTING A DATE 10 23 HTILITY t tr rene m ed DN EQ denaro P10 24 MAGNETIC CARD READER MCR COMMAND P10 25 MCR QUERY COMMAND rni een t ere eina P10 31 MCR CAN COMMAND nnne P10 33 S CARD COMMAND istinc sod pae deb io ge ades P10 34 S CARD COMMAND P10 37 DENSO BHT COMMANDS P10 38 SETTING THE DATA FORMAT usc bietet deeper des P10 38 Mobile Printer CPCLProgramming Manual V TABLE OF CONTENTS continued IR OR CABLE INTERFACE SELECTION P10 40 BHT BAUECOMMAND 10 40 SETTING THE MODE FOR IR DATA TRANSMISSION P10 40 CONFIGURING THE BHT FOR IR TRANSMISSION P10 41 BHT IR FILE TRANSMISSION 6s
25. Country Connection Type Character Set h x w Code Cable IrDA Bluetooth Japanese Chinese Simplified Chinese Simplified Chinese Traditional Korean Myeong Note If you are unsure of your printer s memory configuration or which fonts are loaded in your printer perform a two key reset as detailed in Getting Printer Information in Section 1 Input 200 200 250 1 COUNTRY 8165 SETSP 10 5 0 10 10 CHINESE TRADITIONAL SAMPLE SETMAG 2 2 550 10 50 550 10 100 SETMAG 1 1 PRINT Output Chinese Traditional Sample P8 24 Mobile Printer CPCLProgramming 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 Input CNOFORMAT LBL 200 200 210 1 CENTER TEXT 4 3 0 15 22 99 TEXT 4 0 0 95 SWEATSHIRT BARCODE UPCA 1 1 40 0 145 40123456784 TEXT 7 185 40123456784 FORM PRINT Output 22 99 SWEATSHIRT 40123456784 The following pages illustrate separating the above example into a format file and data Mobile Printer CPCLProgramming Manual P8 25 USING FORMAT FILES continued Defining a label format file is accomplished using the DEFINE FORMAT or DF command to mar
26. Syntax Ut getvar ip pop3 password Result password setvar choices Text string up to 19 characters in length Default password Example Description Instructs the printer to change the POP3 password Syntax U1 setvar ip pop3 username new password Result Changes the password to new password This change will take effect upon cycling the power or issuing the device reset continued on next page Mobile Printer CPCLProgramming Manual P14 47 ip pop3 poll type getvar setvar This parameter refers to the frequency in seconds that the printer will query a POPS mailbox for new mail This only applies if the ip pop3 enable is set to 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 get varresults This will return the poll frequency in seconds Example Description This command instructs the printer to respond with the POP3 poll fre quency in seconds Syntax U1 getvar ip pop3 poll Result 240 set var choices 0 through 65535 A value of O will cause the printer to only query the POP3 mailbox once on printer power up Default 240 Example Description This command instructs the printer to poll the POP3 mailbox every four minutes Syntax U1 setvar ip pop3 poll 240 Result
27. 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 OxOD character is the line terminator LF Line feed Ox0A character is the line terminator CR LF Carriage return line feed 0 00 0x0A characters are the line terminator CR X LF Line terminator is carriage return 0x0D followed by any number of char acters followed by the line feed 0x0A character Characters found between the carriage return and line feed characters are discarded LT Command Examples the printer to require line feeds only as a terminating character UTILITIES LT LF PRINT Set the printer to ignore any characters found between a carriage return character and a line feed character UTILITIES LT CR X LF PRINT Mobile Printer CPCLProgramming Manual P10 17 P SET TIME Utility This command sets the time in the real time clock ule Time should be a valid time and be given in the specified format This command will be ignored by print ers that are not equipped with a real time clock module Format lt gt lt UTILITIES gt command time stamp lt PRINT gt where command SET TIME hh mm ss hh hours 00 23 mm minutes 00 59 ss seconds 00 59 P10 18 Mobile Printer CPCLProgramming Manual Utility This command r
28. 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 lt gt lt Setup Comm Baud Card lt i OCA C ck ck ck ck KKK KKK KKK ok ok kkk KKK kkk gt Begin card card name is baud the title is Com Baud when the 20 second timer expires go to card called status card id baud title Com Baud ontimer status gt timer value 200 timer Display the current baud rate after four spaces p S S vnd zo comm baud lt p gt Do a line break br Display 9600 and three spaces after it if 9600 is selected then execute the command to change the baud rate to 9600 do lt do gt and refresh the display do type accept label 90600 setvar name vnd zo comm baud value 9600 gt lt refresh gt lt do gt lt p gt lt p gt Display 19200 if 19200 is selected then execute setvar command change the baud rate to 19200 in the do lt gt and refresh the display do type accept label 19200 setvar name vnd zo comm baud value 19200 gt lt refresh gt lt do gt Do a line break lt br gt Link the card back the previous menu lt p gt lt a href comm gt Back lt a gt lt p gt Link the card bac
29. swVersion LAN software version MAC addr hh hh hh hh hh hh associated link state Where nnn nnn nnn nnn a typical TCP IP address the user name a descriptive username set in the radio LAN firmware version a descriptive firmware ver sion set in the radio LAN software version a descriptive software ver sion set in the radio hh hh hh hh hh hh the IEEE network address of the LAN card link state YES or NO Syntax GET STATUS ooton Where ootion PRINT or REPLY Example U1 LAN GET STATUS PRINT GET CONFIG This operation causes the printer to report its current WLAN configuration The two op tions 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 nnn powerMode power mode state quiet quiet state protocol protocol selected essID SSID string DHCP DHCP state DHCP_SAVE DHCP_SAVE state P12 4 Mobile Printer CPCLProgramming Manual Where nnn nnn nnn nnn a typical TCP IP address power mode state SAVE or FULL quiet state YES or NO YES means the radio only transmits normal data NO means the radio transmits link status information on power up and sta tus change protocol selected LPD or TCP SSID string the System Set ID string DHCP state ON or OFF D
30. verify that the SSID and IP address are set to the values you expect as described in the Printer Setup section above If not repeat the printer setup If the information is still not cor rect call Zebra tech support Verify that the printer is associating with the RF Access Point Bring the printer as close as you can to the RF Access Point you are using and do a 2 key reset Check that the value for the associated parameter under RF LAN INFOR MATION is YES If not call Zebra tech support If you do not get a label when you try printing verify that the printer is on Mobile Printer CPCLProgramming Manual P12 9 Wireless LAN Report Example Zebra Encore3 v79 00 11 29 00 Serial Number XECOO 10 0042 unit Serial Number Program Firmware HTE27915 18 Chksum 116B Software HTLAN28M e plication Network Chksum Printers will have Ver L4 R79 15 U126 B15 T19 A0 HTLAN prefix Cable Communications 19200 BPS N 8 1 Handshake Xon Xoff hardware Wireless Communications RF LAN INFORMATION Release 3 23 Date 11 21 2000 ipAdr 10 14 2 204 Adaress fwersion 54 40 000720 swersion Version 4 40 9 Radio Software addr 00 20 68 8 35 05 associated YES 96 Unit is associated with Device ID 00 12 0042 LAN Yes No subne
31. 21 30 25 22 Ls s n 26 p 2 2r 5o 4o T 9 14 21 15 30 12 21 21 12 17 26 12 18 LA MAMMA AM3 B 24 12 30 20 21 DEN 3 pou mE 30 NE 31 APPENDIX E BAR CODE QUICK REFERENCE Ideal Ideal Bar code Bar code Wide Narrow Narrow Checksum Symbology Type Input Length Characters Ratio Dot Width Calculation UPC A UPCA 11 12 digits 0 9 only 2 1 2 mod 10 UPC Aplus2 UPCA2 13 digits 0 9 only 21 2 mod 10 UPC A UPC A 5 5 16 digits 0 9 only 2 1 2 mod 10 UPC A UPC E UPCE 6 7 or 11 digits 0 9 only 24 2 10 UPC E plus 2 UPCE2 80r 13 digits 0 9 only 2 1 2 mod 10 UPC E UPC E plus5 5 11 or 16 digits 0 9 only 2 1 2 mod 10 UPC E EAN JAN 13 13 12 13 digits 0 9 only 2 1 2 mod 10 EAN JAN 13 mod 10 plus 2 EAN132 14 digits 0 9 only 2 1 2 EAN13 EAN JAN 13 mod 10 plus 5 135 17 digits 0 9 only 2 1 2 EAN13 EAN JAN 8 EAN8 6 7 or 8 digits 0 9 only 2 1 2 mod 10 EAN JAN 8 plus 2 EAN82 9 digits 0 9 only 21 2 10 8 CEANJANS SS plus 5 85 12 digits 0 9 21 2 10 8 Code 39 3 of 9 39 Variable See notes 2 5 1 2 none 39C Variable See notes 2 5 1 2 mod 43 F39 Variable See notes 2 5 1 2 none F39C Variable See notes 2 571 2 mod 43 Code 93
32. 9 of 3 93 Variable 128 ASCII 1 5 1 1 two mod 47 Interleaved 2015 12025 See notes 0 9 only 2 5 1 2 See notes Interleaved 2 of 5 w checkdigt 12050 See notes 0 9 only 2 51 2 10 Industrial INDUST 2015 2085 See notes 0 9 only 2 5 1 2 See notes Industrial 2 of 5 INDUST w check digit _ 20250 See notes 0 9 only 2 5 1 2 mod 10 Code 128 A B C Auto 128 Variable See notes 1 5 1 1 mod 103 UCC 128Std See See 3 1 3 mod 103 16 notes notes Codabar CODABAR Variable 0 9 A D 2 5 1 2 symbol CODABAR Variable 0 9 A D 2 5 1 2 mod 16 16 symbol A 32 Mobile Printer CPCLProgramming Manual APPENDIX continued Ideal Ideal Bar code Bar code Wide Narrow Narrow Checksum Symbology Type Input Length Characters Ratio Dot Width Calculation MSI Plessey MSI 13 digits max 0 9 only 21 2 5110 13 digits max 0 9 only 21 2 10 511010 13 digits max 0 9 only 21 2 10 511110 13 digits max 0 9 only 21 2 11 10 Postnet POSTNET 5 9 11 digits 0 9 only 3 511 3 mod 10 Facing Ident Mark FIM A B orConl 1 51 6 N A Refer to the discussion of this particular bar code in Section Five for more information make a HIBCC compliant bar code use bar code type F39C See the document The Health Industry Bar Code HIBC Supplier Labeling Standard from the Health Industry Business Council 5110 N 40 Street Suite 250 Phoenix Arizona 85018 Mobile Printer CPCLProgramming Manu
33. A command of this type has the following form CT DATA Length of command card command in ascii form Example U1 S CARD CT DATA 10 8010000008 Description DATA indicates the command is to go to the smart card 10 length of command 8010000008 Command to go to the card in ascii form This command is converted to binary and sent to the card Response for successful command ACK LENGTH DATA SW1 SW2 Explanation of response lt gt Successfully send command to the card and received a response LENGTH The response length This length is for data only i e SW1 and SW not included in response length DATA This is the response from the continued Mobile Printer CPCLProgramming Manual P10 35 card in binary form SW1 Status byte from card lt SW2 gt Status byte from card Note See ISO 7816 3 for an explana tion of SW1 and SW2 Response for an unsuccessful command lt NAK gt lt ERROR CODE gt See Error Codes below for an explana tion of possible error codes CT_CLOSE This command will power down the reader and turn off the red LED on the smartcard module This command should be used after communicating to the card with the DATA command DEBUG ON Enables debug on the printer This will cause some messages to print out as the printer configures itself for pass through mode The messages printed relate to port parameters for the
34. Also the U1 command can be placed ANYWHERE in a text line to execute the command Example Although this text is all on the same line U1 SETLP 5 0 24 this font is new Although this text is all on the same line this font is new To change the default settings for the printer any of these commands can be placed in an AUTOEXEC BAT file Please see the Batch Files section in Printer Configuration and Setup in the Programming Manual Section 13 P9 2 Mobile Printer CPCLProgramming Manual UNITS Commands The units commands specify a measurement system for all subsequent command fields in a utility session Coor dinates widths and heights for all utility commands can be entered with precision to four decimal places The printer measurement system will default to dots until a units command is issued Format lt gt UTILITIES command PRINT where command Choose from the following IN INCHES Measurement in inches IN CENTIMETERS Measurement in centimeters IN MILLIMETERS Measurement in millimeters IN DOTS Measurement in dots The default unit of measurement is in dots Mobile Printer CPCLProgramming Manual P9 3 Command Selecting the line printer font 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 0 0 U1
35. Continue to press the C key to exit back 1 menu at a continued P10 42 Mobile Printer CPCLProgramming Manual time if desired The SYSTEM MENU is the top level menu 5 After a successful UPLOAD the CIS DAT file must be re selected again to transfer to the printer NOTES arrow keys a numeric keypress can be used 1o select menu option The arrow keys are F5 through F8 A press of ENT key usually needs accompany the option selection Hold down the PW key for 1 2 seconds fo turn the BHT off or let it power down automatically Communication errors can occur infrequently during BHT IR transmission If a transmission is unsuccessful data should be re sent Configuring the BHT for Cable Transmission The BHT can also be configured for cable communica tions with Zebra mobile printers using either the BHT or the BHT IR protocol All parameters that must be set are found in the BHT Set System AE Communication menu option The following notes apply The protocol type is set to BHT or BHT IR protocol Printer default is BHT IR 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 continued
36. FORM PRINT Mobile Printer CPCLProgramming Manual P8 31 5 These commands MCR MCR QUERY MCR CAN can be used to configure and activate the optional Mag netic 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 Refer to the discussion of the MCR commands in Section 10 Advanced Utilitiies of this manual for complete information on using the MCR option P8 32 Mobile Printer CPCLProgramming 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 A printer in line print mode can interpret special com mands to change the font the spacing of characters or even to print out bar codes and graphics Receipts can be just as ornate and detailed as your most complex label design In line print mode the printer will use the spacing fonts and form feed instructions in a raw text ASCII file The printer will interpret line feed and carriage returns as well as form feed characters It will not print tab characters In label mode the user must
37. Mobile Printer CPCLProgramming Manual P10 43 Loading file into the BHT Zebra mobile printers will only print files with the DAT extension sent from the BHT The following example file CIS DAT contains a label file that can be loaded from a PC into the BHT via a serial cable using the TU3 EXE utility provided by DENSO The file can then be sent a Zebra mobile printer to produce a label Files with a DAT extension contain records composed of one or more record fields For CIS DAT each record will be specified as having only one field with a width of 40 bytes The 40 byte width was chosen because no single line in the example CIS DAT file exceeds 40 bytes The resulting records transferred to the BHT will each contain a single field 40 bytes wide The BHT and BHT IR protocol will add space characters as needed to any field containing less than 40 bytes Thus the CIS DAT file contains 24 lines that will be interpreted as 24 records containing a single field of 40 bytes Note that while the example uses the TU3 EXE utility to download the file from a PC these files could also be created under control of an application program execut ing directly on the BHT The command line that will transfer this file into the BHT is 9600 CIS DAT 40 The BHT will now contain the file CIS DAT continued P10 44 Mobile Printer CPCLProgramming Manual Sending Example Label File to the Printer Zebra mobile
38. data transmission Plugging in the communications cable will disable the IR interface removing the cable will make it active This default method of interface selection can be overridden by means of a BHT PROTOCOL command in an autoexec bat file Refer to the examples at the end of this section on setting the mode for IR or cable data transmissions BHT PROTOCOL CABLE enables BHT or BHT IR protocol via cable If the BHT PROTOCOL CABLE command is zo present data is sent raw over the serial cable if it is detected BHT PROTOCOL BHT sends data in the BHT mode BHT PROTOCOL BHTIR sends data in the BHT IR mode Performing a two key reset of the printer will return it to its normal automatic selection mode Refer to pg P1 2 in this manual for the reset procedure BHT BAUD Command The printers support 9600 and 19200 BPS baud rates The default baud rate for communication with Zebra mobile printers is 9600 BPS Configuring a BHT baud rate will set both the IR and the cable 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 lt baud rate gt command Refer to the BHT BAUD com mand 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 The following notes apply Unless specified otherwise with a BHT PRO
39. mirror path gt appl files commands Appl Appl will contain only one file the current printer app The file name should be the exact printer app name fol lowed by hex If the file in the appl subdirectory is named differently than the current printer version the printer will download the new application and will auto matically re program itself with this new firmware Files Files will be a flat directory no subdirectories that con tains all the files that should be installed on the printer P14 88 Mobile Printer CPCLProgramming Manual File names must be 8 3 format Any new files those with more recent time stamps will be automatically cop ied to the file system on the printer commands The commands directory will contain files with CPCL commands For example U1 setvar wlan essid myessid This will allow the changing of printer set tings automatically Command file 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 re cent command file This will provide visual feedback that the printer successfully performed the mirror process For example the example opposite could be the
40. on Result Turns the pop3 printheaders on setvar choices Mobile Printer CPCLProgramming Manual P14 49 ip pop3 save_attachments 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 getvar result This will return the pop3 save attachments status on or off Example Description This command instructs the printer to respond with the save at tachments value Syntax U1 getvar ip pop3 save attachments Result off setvar choices off Default Example Description This command instructs the printer to disable POP3 save attachments Syntax U1 setvar ip pop3 save attachments off Result This will turn the pop3 save attach ments off ip pop3 server getvar sefvar This parameter refers to the POP3 server IP address the printer contacts when checking for new mail This only ap plies if ip pop3 enable is set to on getvar result This will return the server address setting Example Description Instructs the printer to respond with the server address Syntax U1 getvar ip pop3 server Result 0 0 0 0 setvar choices valid server address
41. parameter above do Command The do command can be used to instruct the printer to perform predefined actions Some do commands require one or more parameters These parameters should be P14 2 Mobile Printer CPCLProgramming Manual enclosed double quotes This command must termi nated by CR LF 0x0D The printer will perform the specified function immediately after receiving the command Format do Action name parameter Action name action to perform Please refer to the parameter list for valid action names parameter some actions require one or more parameters The parameters should be specified as required by the corresponding action enclosed within double quotes For actions that do not re quire a parameter an empty parameter list should specified 1 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 continued on next page Mobile Printer CPCLProgramming Manual P14 3 appl date getvar This parameter refers to the printer s application date getvar result Printer will respond with the applications date in the mm dd yy format Example Description Get printer application s date Syntax U1 getvar ap
42. wlan leap password getvar setvar This parameter refers to the LEAP password The pass word 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 Returns the LEAP password Example Description Instructs the printer to respond with the LEAP password Syntax getvar wlan leap password Result password setvar choices 4 32 ASCII characters Default password Example Description Instructs the printer to set the LEAP password to password Syntax U1 setvar wlan leap password password Result The LEAP password will be set to password Mobile Printer CPCLProgramming Manual P14 81 wlan leap username 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 getvar result This will return the LEAP user name Example Description This command instructs the printer to respond with the LEAP user name Syntax U1 getvar wlan leap username Result user setvar choices 0 32 ASCII characters Default User Example Description This command instructs the printer to set the LEAP user name to user Syntax U1 setvar wlan leap username
43. 9320 aid e 116 QL 420 oe 106 RPS abies tee eels 142 P9 12 Mobile Printer CPCLProgramming Manual 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 Input CSETTOF LBL UTILITIES SET TOF 101 PRINT SET TOF Command Example 2 label with gaps The following example sets the top of form to end of next eye sense mark gap to 0 dots measured from the top of form to the end of the next lower label s gap Input CSETTOF2 LBL UTILITIES SET TOF 0 PRINT Mobile Printer CPCLProgramming Manual P9 13 Tearing or Cutting Paper PRESENT AT Command CUT AT Command CUT Command PARTIAL CUT 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 If your printer can move stock bi directionally the PRESENT AT command will advance the paper enough to rip off the receipt and not tear through the last line of text Then when the printer starts on the next item it will automatically retract the paper before printing to save on paper Using PRESENT AT without an argument will s
44. BHT PROTOCOL Command Examples continued Example Cable printing with BHT IR protocol Print using cable BHT IR protocol Input PROBHTIR CBL 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 IR printing with BHT IR protocol Print using IR with BHT IR protocol Input PROBHTIR IR DF AUTOEXEC BAT UTILITIES SRF ACCESS BHT BAUD 19200 BHT PROTOCOL BHTIR BHT MODE STRIP ADD CRLF END SRF ACCESS PRINT Mobile Printer CPCLProgramming Manual P10 55 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 com mand Send the following sequence to redefine the code Set CCL Code ESC 0x1b 0x7D W 0x57 1 0x31 new code SETCCL LBL Where new CCL code is a one byte character repre senting the new CCL code Once the CCL Code is changed all CCL sessions should be started with the new CCL code For example if CCL code is changed to then instead of issuing a UTILI TIES command to the printer UTILITIES should be issued The printer will retain the new CCL code for as long as it remains powered If the printer is powered
45. CABLE Part Number AT17010 1 USB A to USB Mini B Cable For use with QL Plus and RW Series only 8 USB MINI B 4 5 Circuit 1 Circuit 3 4 fF 4 Circuit 2 Circuit 2 3 3 GQircuit 43 2 2 Circuit 44 1 1 Circuit 5 USBA USB A 20 Mobile Printer CPCLProgramming Manual APPENDIX continued INTERFACE CABLES 8 4 uO9J8 d 10 AG HO UO 2 8 10 690 1 9 oquifs jejdepy 22258 104 6 pesn eq 8 8 8 JJO NO AAO NO Ny 8 8 8 NIC 8 8 AG 8 8 Uld 8 8 10129uuo2 J9 ulad Stry 8 Stry 02 8 Uld 6 6 9 szga 8 46 1 6 45 9 UIA 9 8 Ud 9 2 8 Ud 9 8 Gt 2 8 Ud 9 Ud 9 0 8 0 8 6 9 6 19 9 Stra palo 8 9 edAL Y4 67 22602 1d 59195 00161044 seues 0019 L 60c 1d 0096 00 1214 000 252 178 seues 0071 00
46. Connect Male Plug to PC to Printer DB 9 Pin DB 9 Pin 1 2 3 4 5 6 7 8 9 UNIDIRECTIONAL PARALLEL INTERFACE CABLE Part Number BL13403 1 Use only with printers configured with parallel Centronics type I O connector DB 25 Pin Male Plug Centronics 36 Pin to PC Male Plug to printer A 18 Mobile Printer CPCLProgramming Manual APPENDIX continued BIDIRECTIONAL SERIAL INTERFACE CABLE Part Number BL11757 000 8 Pin DIN to 9 Pin DB PC Cable Use to connect all Zebra Mobile Printers to a P C 9 Signals Printer Signals TXD 3 1 RXD 2 4 TXD RTS 7 3 CTS Pint CTS 84 4 4 RTS GND 5 5 GND DB 9 Pin DTR 4 7 088 8 Female Plug DSR 6 8 DTR Male Plug to Shield Shield to printer Part Number BL16555 1 Molded Right Angle DIN Hous ing to 9 Pin DB For use on Zebra Alpha Series Printers e g QL 220 DB 9 PIN FEMALE 8 PIN DIN PC Signals Printer Signals TXD 3 1 RXD RXD 2 2 TXD RTS 7 3 CTS CTS 8 4 RTS GND 5 5 GND 1 DTR 4 7 DSR DSR 6 8 8 Pin Plug SHIELD SHIELD to printer Mobile Printer CPCLProgramming Manual A 19 APPENDIX continued USB INTERFACE
47. FH card getvar result Returns the International mode Example Description This command instructs printer to respond with current International mode Syntax U1 getvar wlan international mode Result off off Default on for 802 11 FH off for 802 11b Example Description This command instructs the printer to turn on International mode Syntax U1 setvar wlan international mode Result Sets the International mode to setvar choices P14 74 Mobile Printer CPCLProgramming Manual wlan kerberos kdc setvar This parameter refers to the Kerberos Key Distribution Center KDC The KDC is a trusted server which main tains a database with account information for all security principals users for a particular site or administrative do main realm This parameter is not supported on units with a Frequency Hopping Spread Spectrum FHSS radio getvar result This will return the current Kerberos KDC Example 1 Description This command instructs the printer to respond with the current Kerberos KDC Syntax getvar wlan kerberos kdc Result krbtgt setvar choices 0 32 ASCII characters Default krbtgt Example 2 Description This command instructs the printer to set the Kerberos to krbtgt Syntax U1 setvar wlan kerberos kdc krbtgt Result The Kerberos KDC will be set to krbtgt
48. Format command length where command Choose one of the following PRE TENSION Perform tension adjustment prior to printing the label POST TENSION Perform tension adjustment after printing the label length The unit length the rewind motor should advance to tighten the liner tension The re wind motor will slip once tension is adjusted it will not pull the stock out of adjustment for the next print cycle TENSION Command Example In this example the printer is instructed to run the rewind motor for 30 dot lines removing any slack in the liner to adjust the liner tension prior to printing the label Input CTENSION LBL 200 200 150 1 PRE TENSION 30 TEXT 5 0 0 20 ADJUSTS TENSION P8 12 Mobile Printer CPCLProgramming Manual 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 condi tions The battery or power supply voltage stock thick ness print darkness applicator usage peeler usage and label length are among the factors that could limit the maximum attainable print speed WARNING By exercising this command the user overrides the factory programmed speed for the label being printed which may adversely affect print qual
49. OF THE FLASH FILE SYSTEM Directory directory has the following 2 files PLL_LLAT CSF 17306 PLB LAT CSF 18423 PRINT CLOSE THE UTILITIES SESSION Note Text printed in italic type refers to data sent to the printer Text printed in bold type refers to data sent from the printer Mobile Printer CPCLProgramming Manual P10 1 VERSION Utility This command reports the firmware version as a four character null terminated ASCII string Format lt gt UTILITIES command lt PRINT gt where command VERSION Example Input CVERSION LBL UTILITIES VERSION PRINT P10 2 Mobile Printer CPCLProgramming Manual CHECKSUM Utility This command reports the application checksum as a four character null terminated ASCII string Format lt gt UTILITIES command lt PRINT gt where command CHECKSUM CHECKSUM Example Input CHECKSUM LBL UTILITIES CHECKSUM PRINT Mobile Printer CPCLProgramming Manual P10 3 DEL Utility The DEL command deletes the specified file Format lt gt UTILITIES command name ext PRINT where command DEL Name of file to be deleted Note DEL may be used to globally delete all files P10 4 Mobile Printer CPCLProgramming Manual DIR Utility The DIR command sends the file directory to a host Format lt gt UTILITIES command PRINT where command DIR Mobile Printer CPCLP
50. P9 5 SETLP See SETLP command SETLP Command P9 4 SETLP TIMEOUT Command P9 16 SETMAG command P3 14 SETSP Command 8 14 P9 9 setvar Command P14 2 setvar parameters bluetooth authentication P14 6 bluetooth bluetooth pin P14 7 bluetooth discoverable P14 8 bluetooth friendly name P14 9 Index 10 Mobile Printer CPCLProgramming Manual comm baud 14 11 comm parity 14 11 comm stop_bits 14 12 device friendly name 14 13 device languages P1 2 P14 14 display backlight P14 16 display contrast P14 16 display text P14 17 input capture P14 23 ip addr P14 38 ip bootp enable P14 39 ip dhcp cid_prefix P14 41 ip dhcp cid_type P14 42 ip dhcp cid_value P14 43 ip dhcp enable P14 40 ip ftp enable P14 44 ip gateway P14 44 ip http enable P14 45 ip lpd enable P14 45 ip mirror auto P14 91 ip mirror freq P14 92 ip mirror password P14 93 ip mirror path P14 93 ip mirror server P14 94 ip mirror username P14 94 ip netmask P14 46 ip pop3 enable P14 47 14 49 P14 50 P14 51 ip pop3 password P14 47 ip pop3 poll P14 48 ip pop3 print body P14 49 ip pop3 print headers P14 49 P14 51 ip pop3 save attachments P14 50 ip pop3 server addr P14 50 ip pop3 username 14 51 ip pop3 verbose headers P14 51 ip port P14 52 ip remote 14 52 ip remote autoconnect P14 53 ip remote port P14 54 ip smtp enable P14 54 ip smtp server addr P14 55 ip snmp enable P14 55 ip snmp get community name P14 56 ip snmp set community name P14 57 ip tcp enable P14 58
51. 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 SETLP allows you to use either the resident fonts or pre scaled fonts downloaded to the flash memory The Label Vista design software can create and upload a font for the printer from any available TrueType font Appen dix D contains a table of all resident font heights and their proper unit height You can set the printer font multiple times when using the line printer to make a receipt For example to put the company name in a larger font at the top of a label change to font 5 size 2 and then to font 7 size O Example U1 SETLP 5 2 46 AURORA S FABRIC SHOP U1 SETLP 7 0 24 123 Castle Drive Kingston RI 02881 401 555 4 0 AURORA S FABRIC SHOP 123 Castle Drive Kingston RI 02881 401 555 4CUT 1 TrueType is a trademark of Apple Computer Inc P9 4 Mobile Printer CPCLProgramming Manual Command Use the SETLF command to change the height of each line without changing the font U1 SETLF unit height The command U1 SETLF 40 will advance the paper 40 dots for every LF line feed hex value character it receives SETLF Command Example Input CSETLF2 LBL U SETLP 4 0 40 SETLF 40 PRINT Output 2 Text Line Text Line Text Line Output Output 2 Text line T
52. Swabs Reorder No AT700 2 Recommended use with printer Cleaning Kit with Cleaning Pen and and 5 Cleaning Swabs Reorder No AT702 1 Recommended for use with Bravo and QL series printers Cleaning Pen 10 Pack Reorder No 11209 1 Recommended tor use with all Zebra mobile printers Mobile Printer CPCLProgramming Manual A 35 APPENDIX continued TECHNICAL SUPPORT For product support contact Zebra Technologies at www zebra com Zebra Technologies International LLC 333 Corporate Woods Parkway Vernon Hills Illinois 60061 3109 USA Phone 1 847 793 2600 or 1 800 423 0422 Fax 1 847 913 8766 Zebra Technologies Europe Limited Zebra House The Valley Centre Gordon Road High Wycombe Buckinghamshire HP13 6EQ UK Phone 44 1494 472872 Fax 44 1494 450103 Zebra Technologies Latin American Sales Office 9800 NW 41 Street Suite 220 Doral Florida 33178 USA Phone 1 305 558 8470 Fax 1 305 558 8485 Zebra Technologies Asia Pacific LLC 16 New Industrial Road 05 03 Hudson TechnoCentre Singapore 536204 Phone 65 68580722 Fax 65 68850838 A 36 Mobile Printer CPCLProgramming Manual WS www zebra com Zebra Technologies International LLC 333 Corporate Woods Parkway Vernon Hills Illinois 60061 3109 USA Phone 1 847 634 6700 Toll Free 1 800 423 0422 Fax 1 847 913 8766
53. The quick reference table in Appendix E lists specific data for each bar code in one location All the information on ideal widths and ratios comes directly from the uniform symbology specification Please note that all measurements contained in this document are in printer dots On 200 dot per inch dpi printers one dot is equal to 0 005 or 0 13 millimeters on 300 dpi printers one dot is equal to 0 003 or 0 07 millimeters Mobile Printer CPCLProgramming Manual P5 1 RESIDENT LINEAR BAR CODE SAMPLES UPC A 01234567890 EAN 13 UPC EAN Plus 2 Extender 12 CODE 39 CODE 39 12 5 128 0123456789 PLESSY MS110 12345678 IT EAN 8 umm UPC EAN Plus 5 Extender 12345 CODE 93 C93 Ext CODE 128 CODE 128 CODABAR POSTNET 012345678 Mobile Printer CPCLProgramming Manual UPC AND EAN JAN 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 For best results this text should be an resident font 2 a sans serif font resident font 7 or an OCR B font The f
54. This is MAXICODE low priority message P6 8 Mobile Printer CPCLProgramming Manual Same example with zipper contrast patterns 0 200 200 600 1 JOURNAL B MAXICODE 20 20 CC 12345 MSG This 15 MAXICODE pri ority message SC 12345 POST 2886 ZIPPER 1 ENDMAXICODE PRINT Mobile Printer CPCLProgramming Manual P6 9 Example using tags for UPS 200 200 600 1 JOURNAL B MAXICODE 20 20 VAL Y STADDR 30 PLAN WAY WEIGH 210 SHIPID 42 PICKDAY 193 SHIPPER 12345 1712345675 CC 860 SC 1 POST 02886 ZIPPER 1 SHIPPER 12345E NX 1 2 UPS5 1 CITY WARWICK ST RI ENDMAXICODE PRINT AO 2 ae NS Decodes to gt RS 01 GS 98028860000 GS 860 GS 001 GS 1Z12 345675 GS USPN GS 12345E GS 193 GS 42 GS 1 2 GS 210 GS Y GS 30 PLAN WAY GS WARWICK GS RI RS EOT Output P6 10 Mobile Printer CPCLProgramming Manual GRAPHICS BOX Command The BOX command provides the user with the ability to produce rectangular shapes of specified line thickness Format command Wo Xy O y with where command BOX KoF X coordinate of the top left corner Wo Y coordinate of the top left corner X coordinate of the bottom right corner WH Y coordinate of the bottom right corner width Unit width or thickness of the lines forming the box BOX Example Input CBOX LBL 0 200 200 210 1 BOX 0 0 200 200 1 FORM PRINT 200 200 Note Text c
55. This will set the pop3 polling fre quency to 240 seconds 4 min utes P14 48 Mobile Printer CPCLProgramming Manual ip pop3 print body getvar setvar This parameter refers to whether the email body will be printed when the email is retrieved via This only applies if the ip pop3 enable is set to on getvar result Returns the pop3 print body status on or off Example 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 print body Result on on off Default Off Example Description Instructs the printer not to print the body of the email retrieved via POP3 Syntax U1 setvar ip pop3 print body off Result Turns off the pop3 print body pa rameter set var choices ip pop3 print headers 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 the ip pop3 enable is set to getvar result Returns the status of the pop3 printheaders on or off Example Description Instructs the printer to respond with the print headers value Syntax Ut getvar 3 headers Result off on off Default off Example Description Instructs the printer to enable the POP3 print headers Syntax U1 setvar ip pop3 print headers
56. been loaded into the printer s flash file system and given the name IMAGE PCX The lt 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 CIMAGE LBL 200 200 500 1 0 30 lt IMAGE PCX 7 12 Mobile Printer CPCLProgramming Manual 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 In order to maximize printing efficiency always use the lowest contrast level possible Format command level where command CONTRAST level Contrast level 0 Default 1 Medium 2 Dark 3 Very Dark Mobile Printer CPCLProgramming Manual P8 1 Command be used instead of the TRAST 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 CON TRAST commands cannofrbe used in combination with one another Format command level where command TONE fevel select a value
57. choices EPL ZPL epl_zpl line_print Default line_print Example Description Set language to ZPL Syntax setvar device languages Result programming language set to ZPL device reset Instructs the printer to perform a soft reset do parameters None Example Description Perform a soft reset Syntax U1 device reset Result The printer will perform a soft reset P14 14 Mobile Printer CPCLProgramming Manual device restore defaults Qo Instructs the printer to restore factory default values for the specified category of parameters do parameters Printer parameter category wlan ip display or power Example Description Restore the network card s wlan parameters to their default values Syntax U1 do device restore defaults wlan Result Printer will restore wlan param eters to their factory default values eSSID 247 etc Mobile Printer CPCLProgramming Manual P14 15 Display Parameters display contrast getvar setvar This parameter refers to the contrast level on the printer s display Valid only on printers with an optional display in stalled getvar result Display s contrast level 0 through 14 Description setvar choices Syntax Result 0 through 1 Get the current display contrast level U1 getvar display contrast 4
58. command By default the printer will report 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 Multiple MCR QUERY commands may be issued keep ing in mind that the response or lack thereof to the MCR QUERY reflects the card swipe data at the moment MCR QUERY is issued Format commana Where commana MCR QUERY MCR QUERY Command Example In this example the printer is instructed to report the MCR read operation results U1 MCR QUERY P10 32 Mobile Printer CPCLProgramming Manual MCR CAN Command The MCR CAN command will terminate the current MCR activity and if error message reporting is enabled via the MCR command ERROR option will transmit the Cancel error message to host Format commana Where command MCR CAN MCR CAN Command Example In this example the printer is instructed to deactivate the printer MCR and cancel any pending read operations U1 MCR CAN Mobile Printer CPCLProgramming Manual P10 33 5 S CARD command be used to access Towitoko Smartcard reader embedded within Zebra SC model mobile printers The smart card library implements the T 1 protocol 1507816 compliant cards This allows users to send ASCII commands to the printer and the printer will in turn forward this command to the smart card with the
59. command instructs the printer to respond with DHCP setting Syntax U1 getvar ip dhcp enable Result on off Default on Example Description This command instructs the printer to enable DHCP Syntax U1 setvar ip dhcp enable off Result The printer s DHCP will be off upon cycling printer power or issuing the device reset setvar choices P14 40 Mobile Printer CPCLProgramming Manual ip dhcp cid prefix 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 O NOTE This parameter is only applicable if ip dhcp enable is set to getvar result The current client identifier prefix Example Description This command instructs the printer to respond with the client identifier prefix Syntax getvar ip dhcp cid prefix Result Sa setvar choices Any text string up to 10 characters in length Default Description Change CID prefix to ZEB Syntax U1 setvar ip dhcp cid_prefix ZEB Result The next time the printer sends a DHCP request if ip dhcp cid type is 0 the client identifier sent will be prefixed with the string ZEB e g if ip dhcp cid value is PRT001 the actual client identi fier sent will be ZEBPRTOO 1 continued on next page Mobile Printer CPC
60. getvar card mac_addr Result OOAOF83AA589 ip addr 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 The printer s IP address Example Description Instructs the printer to respond with its current IP address Syntax U1 getvar ip addr Result 10 14 4 159 setvar choices Any valid IP address Default 0 0 0 0 Example Description Instructs the printer to change its IP address to 10 14 4 235 Syntax U1 setvar ip addr 10 14 4 235 Result The IP address will change to 10 14 4 235 upon cycling the power or issuing the device reset continued on next page P14 38 Mobile Printer CPCLProgramming Manual ip bootp enable getvar setvar This parameter will turn BOOTP on or off BOOTP is a method for acquiring an IP address netmask and gate way automatically on printer power up It requires a BOOTP server on the local network If you are using static ip addressing BOOTP must be oft NOTE It is not recommended that 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 You should contact you
61. in dots per inch The maximum height of the label The maximum label height is calculated by mea suring from the bottom of the first black bar or label gap to the top of the next black bar or label gap Then 1 16 1 5mm is subtracted from this distance to obtain the maximum height In dots subtract 12 dots on 203 d p i printers 18 dots on 306 d p i printers 1 black bar or gap maximum ht d 062 g 1 5mm 2 black bar or gap Quantity of labels to be printed Maximum 1024 Mobile Printer CPCLProgramming Manual PRINTER Command Example Input CHELLO LBL 200 200 210 1 TEXT 4 0 30 4 Hello World FORM PRINT Hello World 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 Format command where command PRINT Mobile Printer CPCLProgramming Manual P2 3 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 setti
62. internal communication port communicating with the Smartcard reader and a message will also print out when the printer has been taken out of pass through mode Once in pass through mode no debug messages are printed Error Codes Errors from the S CARD command are of the following format lt NAK gt lt ERROR CODE gt Where any of the following are possible error codes 0x02 Protocol not supported card is not using T 1 protocol 0x10 No card detected continued P10 36 Mobile Printer CPCLProgramming Manual 0x11 Invalid drive type currently only the Towitoko CHIPDRIVE micro is supported lt 0 12 gt Invalid operation 0x16 Invalid command length S CARD command S CARD COMMAND EXAMPLES This section provides some examples for using the S CARD command to communicate with the internal Smartcard reader from the External Terminal Read card ATR U1 S CARD CT ATR Response lt gt lt 0 gt lt 00 FF 91 81 71 26 44 00 54 54 54 gt Traceability command 01 S CARD CT_DATA 10 8010000008 Note When the printer actually sends this command to the printer it converts the command to binary adds the appro priate T 1 header and computes the overall command checksum Then the printer sends this command to the smart card Response lt ACK gt lt 8 gt lt C9 1C 92 AA 66 19 00 gt lt 90 gt lt 00 gt CT CLOSE command U1 S CARD CT_CLOSE Mobile
63. is affected by the justification commands like 01 CENTER See JUSTIFICATION Commands in section 8 of the manual for more informa tion Graphics The printer can print PCX formatted graphics files in line print mode This is not recommended however in order to keep print times to a minimum The graphic should be loaded into the flash file system on the printer to achieve maximum printing speed Please see Section 7 of this manual for more information on graphics lines boxes and PCX Commands continued on next page Mobile Printer CPCLProgramming Manual P9 15 Example PCX x coordinate coordinate lt filename pcx 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 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 Designing a Receipt It is now possible to create a receipt using the com mands just described First list all the fields that you want on the receipt Will there be different types of re ceipts used in the business Is this a receipt for picking up goods or is this an itemized list of products ordered and paid for Will there be a need to differentiate quickly between different types of receipts to prevent errors In a nutshell what do you need this thing to look like
64. 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 BAT file for an application that uses a bar code scanner connected to the printer s serial port for data input The scanner must be set to the same baud rate as the printer and be configured for 8 data bits 1 stop bit no parity Scanned data must be terminated with both carriage return and line feed 0 00 characters The following RUN BAT file is first sent to the printer s flash file system When the printer is turned ON this file is found and executed The keyword RE RUN is used in the file to instruct the printer to execute this file repeat edly In this case the BARCODE command data will be taken from the serial input The printer will produce a label each time a bar code is scanned P15 8 Mobile Printer CPCLProgramming Manual RUN BAT Example Input CRUN LBL DF RUN BAT 200 200 210 1 CENTER BARCODE TEXT 705 BARCODE 128 1 1 50 0 90 NN RE RUN FORM PRINT Input from scanner SCANRUN LBL Output 123456789 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 Mobile Printer CPCL
65. last label moved 1 last label not removed yet Paper jam 1 detected 0 not detected Reserved Reserved Reserved Reserved FA Notes 1 Mask all reserved bits when reading status 2 The PAPER JAM command must be issued prior to requesting the paper jam status P11 4 Mobile Printer CPCLProgramming Manual USER LABEL COUNT Get User Label Count GULC LBL 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 Reset User Label Count RULC LBL ESC 0x1b J 0x4a 0x57 0x61 0x63 0x63 0x4e 0x56 M 0 4 U 0x55 This command instructs the printer to clear its user label count to zero POWER OFF COMMAND Off Command OFF LBL 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 Mobile Printer CPCLProgramming Manual P11 5 WIRELESS NETWORK PRINTERS Introduction Zebra Cameo 3N and Encore 3N Network Printers are equipped with a WLAN Wireless Local Area Network card Network printers allow wireless communication as a node within a local area network and its wireless bilities allow communications from any
66. of a print session Format command width where command Choose from the following PAGE WIDTH Specifies page width or PW width Unit width of the page P8 4 Mobile Printer CPCLProgramming Manual PAGE WIDTH Example Input 1 CPW1 LBL UTILITIES SETLP 7 15 PW 300 PRINT This text 1S printed with Label memory width set to 300 dots This text is printed with Output 1 label memory width set t o 300 dots Input 2 CPW2 LBL UTILITIES SETLP 7 0 15 PW 200 PRINT This text is printed with label memory width set to 200 dots This text is prin Output Td ted with label me width set to 200 dots Mobile Printer CPCLProgramming Manual P8 5 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 quan tity is exhausted By default pacing is disabled on power up Format command where commana PACE 8 6 Mobile Printer CPCLProgramming Manual Example In the following example the command file shown was sent to the printer once The two additional printouts were produced by pressing the FEED key once for each additional printout Input CPACE LBL 0 200 200 210 3 Tell printer to print a label after each FEED key press until all 3 labels are printed PACE Printer holds journal stock JOURNAL
67. off and back on again it will revert back to normal operations and will expect as the CCL code Send the following sequence to read the CCL code Read CCL Code ESC 0x1b 7 0 70 0x52 1 0x31 READCCL LBL After the above command is issued the printer will return the one character CCL code Mobile Printer CPCLProgramming Manual P11 1 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 control utility session UTILITIES PRINT OR 0 PRINT P11 2 Mobile Printer CPCLProgramming Manual STATUS INFORMATION Get Printer Status ESC 0x1b h 0x68 This command requests a status byte from the printer If one is returned it indicates that the printer is opera tional and has finished processing the previous label It should be called before loading or printing a label in order to make sure that the host software is synchro nized with the printer If bit 3 of the status byte is high it indicates that the battery is low If bit 4 is high it indicates that the printer has been powered on and reset See the Reset Status function This command requests a status byte from the printer with the follow ing format Bit Description Printer reset O reset cleared 1 printer
68. printers with the BHT application will print files with the DAT extension As noted before the default action of the printer when a record 15 received 15 to strip all trailing spaces from all record fields then append a carriage return line feed pair to the data Using this de fault the trailing spaces in every field of the example CIS DAT file will be stripped and a CR LF pair will be added Interrupted Transmissions If a transmission from the terminal to the printer is inter rupted 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 continued Mobile Printer CPCLProgramming Manual P10 45 Example dat File Input CCIS DAT 200 200 581 1 MEDIA P N 10 90 75 LABEL CONTRAST 0 0 SPEED 3 PAGE WIDTH 240 BAR SENSE PAGE 0000000002400600 TEXT 0 1 3 560 DEPT 34 90 4 3 36 288 22 88 90 5 2 163 273 SWEATSHIRT UPCA 2 1 45 139 576 04364503284 90 191 511 043645032841 90 4 524 90 30 508 30 00 90 115 575 ZD 180 KL 90 119 269 ALL COTTON 90 114 389 01 17 98 90 208 173 00 732 00560 90 82 519 ELSEWHERE BOX 189 358 217 527 1 FORM PRINT ALL COTTON SWEATSHIRT 22 88 01 17 98 COMPARE AT
69. provide a X and Y coordi nate for every item on the label In line print mode the printer can automaticaly calculate these coordinates or use the ones the user provides This section explains how to use line print mode to its full advantage It covers the basics of how to use utility commands and the most commonly used commands to create receipts The end of this section includes sample files and results as well as how to design a unique and professional receipt It is assumed that the user knows how to communicate with the printer and how to create a basic ASCII file using a text editor like DOS EDIT or Windows Notepad Note Line print mode is not available in devices run ning EPL Eltron printer emulation ZPL Zebra printer emulation or PECTAB versions of printer applications Mobile Printer CPCLProgramming Manual P9 1 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 The UTILITIES command for short must be ended by the terminator PRINT followed by a CR LF Carriage Return Line Feed or Enter to end the utility session The 01 command only executes one utility command and must be followed by a CR LF
70. read whichever occurs first CANCEL This error is reported when a MCR CAN command is received This error message will confirm that the MCR is turned off TIME OUT This error is reported when the printer MCR times out before a successful read Mobile Printer CPCLProgramming Manual P10 29 EPREFIX This option is similar to the PREFIX command but applies to error mes sages 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 The default error prefix is Error Command Examples Example 1 This example sets the MCR in the printer for reading tracks one and two with a timeout of 10 seconds 10 1 8th seconds 80 The last option of the MCR command must be terminated with U1 MCR 80 T1 T2 Once the card is swiped successfully the following is sent to host T1 B4000001234562 PUBLIC JR JOHN Q MR 9209101999999999 lt cr Lf gt 2 4000001234562 9209101999999999 lt gt If the printer times out the card not read the printer will not return anything to the host because ER RORS option is not specified in this example Example 2 This example sets the MCR in the printer for reading tracks one and two with a timeout of 10 seconds 10 1 8th seconds 80 The ECHO command will instruct the printer to print the MCR data in addition to sending
71. received When in run mode the printer will save captured incom ing data to files as above but will otherwise run the in coming data commands normally The capture files should be deleted from printer memory after retrieving them Leaving the printer in print or run mode and not deleting the capture files will reduce the printer s available flash memory The off mode is the printer s normal operating mode Cycling power will also return the printer to off mode continued on next page Mobile Printer CPCLProgramming Manual P14 23 getvar result The current input capture mode Example mode Description Syntax Result Get current staus of input capture getvar input capture off Default setvar choices print ru n off off Example 1 Example 2 P14 24 Description Syntax Result Description Syntax Result Place the printer in print input capture mode U1 setvar input capture print Printer will enter diagnostics ture mode Any data received by the printer will be saved to files named in dmp The data s text amp hexadecimal representation will be printed Place the printer in run input cap ture mode U1 setvar input capture run Printer will enter diagnostics cap ture mode Any data received by the printer will be saved to files named in dmp prior to being processed by
72. server in use This parameter is not supported on units with a Frequency Hopping Spread Spectrum FHSS radio getvar result This will return the Kerberos user name Example Description This command instructs the printer to respond with the current Kerberos user name U1 getvar wlan kerberos username Example Description This command instructs the printer to set the Kerberos user name to user Syntax U1 setvar wlan kerberos username user Result Mobile Printer CPCLProgramming Manual P14 79 wlan leap mode getvar setvar This parameter refers to Cisco LEAP Lightweight Exten sible 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 Authoriza tion and Accounting server This parameter is not supported on units with a Frequency Hopping Spread Spectrum FHSS radio Returns the LEAP mode Example Description This command instructs the printer to respond with the LEAP mode Syntax U1 getvar mode Result off setvar choices Default off Example Description This command instructs the printer to turn on LEAP mode U1 setvar wlan leap mode Sets the LEAP mode to on P14 80 Mobile Printer CPCLProgramming Manual
73. setvar This parameter refers to the LPD protocol setting LPD communications from the host should be directed to port 515 getvar result This will return the LPD protocol status on or off Example Description This command instructs the printer to respond with the LPD value Syntax U1 getvar ip lpd enable Result on off setvar choices Default on Example Description This command instructs the printer to enable the LPD protocol Syntax U1 setvar ip lpd enable Result The LPD protocol will be turned on upon cycling the power or issuing continued on next page Mobile Printer CPCLProgramming Manual P14 45 ip netmask Iype getvar setvar This parameter refers to the subnet mask address This value is ignored if DHCP is enabled getvar result This will return the printer s subnet mask Example Description This command instructs the printer to respond with the subnet mask Syntax U1 getvar ip netmask Result 255 255 255 0 setvar choices valid netmask Default 255 255 255 0 Example Description This command instructs the printer to change the subnet mask to 255 255 0 0 Syntax U1 setvar ip netmask 255 255 0 0 Result The subnet mask will be set to 255 255 0 0 upon cycling the power or issuing the device reset ip ping_remote type do This parameter directs the printer to ping a specifie
74. the previously stored address unchanged Syntax DHCP SAVE ooton Where footon ON or OFF Example U1 LAN DHCP SAVE ON DHCP TIMEOUT This operation allows for control of number of times the DHCP client will attempt to ob tain 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 Syntax PORT PortNumber Example Ut LAN PORT 515 P12 6 Mobile Printer CPCLProgramming Manual Setting 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 in formation 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 lt CRLF gt Save the file in a convenient location 2 Using a serial communications cable p n BL11757 000 connect the printer to the serial port of a PC loaded with the Label Vista program Open Label Vista and se lect the Diagnostic Send utility under the Printer menu 3 Use the Browse button to navigate t
75. the printer Mobile Printer CPCLProgramming Manual Media Parameters media sense_mode getvar setvar This parameter refers to media sense mode getvar result Media sense mode Example Description Syntax Result Get current media sense mode Ut getvar media sense mode setvar choices Default Description Syntax Result media status getvar Set media sense mode to bar black index mark U1 setvar media sense_mode bar Printer will switch to bar sense mode This parameter refers to the paper status getvar result out Example Syntax Result Mobile Printer CPCLProgramming Manual Description Get current media status U1 getvar media status 14 25 media tof 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 getvar result Current top of form setting Example Description Get current top of form setting Syntax U1 getvar media
76. to match the new printer settings before the host can communicate again getvar result Printer baud rate Example Description Get printer s comm port baud rate Syntax U1 getvar comm baud Result 19200 setvar choices 9600 19200 38400 57600 115200 Default 19200 Example Description Set printer s comm baud rate to 19200 BPS Syntax U1 setvar comm baud 19200 Result Printer will change its comm baud rate to 19200 BPS continued on next page Mobile Printer CPCLProgramming Manual P14 11 comm stop_bits 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 Stop bits Example Description Get printer s comm port stop bits Syntax U1 getvar comm stop_bits Result ld setvar choices Default 1 Description Set printer s comm port stop bits to 1 Syntax setvar comm stop_bits 1 Result Printer will configure the comm port for 1 stop bit P14 12 Mobile Printer CPCLProgramming Manual Device Parameters device friendly_name getvar setvar This parameter refers to the device s friendly name The printer will report its seria
77. tof Result 0 setvar choices 0 through 119 Default 119 Description This parameter sets the printer s top of form Syntax U1 setvar media tof 119 Result Printer will set top of form to 119 continued on next page P14 26 Mobile Printer CPCLProgramming Manual media type 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 Please refer to the status inquiry command Get Extended Printer Status for details on checking for out of paper condition getvar result Current media type Example setvar choices Description Get current media type Syntax U1 getvar media type Result label label journal Default label Example Description Set media type to journal Syntax U1 setvar media type journal Result Printer will set media type to journal Mobile Printer CPCLProgramming Manual Memory Parameters memory flash_size getvar This parameter refers to the total amount of Fla
78. used to connect to the printer only when the bluetooth authentication parameter is set to setpin This parameter is when the bluetooth authentication parameter is set to default or off See bluetooth authentication getvar result returns the printer s bluetooth PIN value Example Description Instructs the printer to respond with the Bluetooth PIN value Syntax IU1 getvar pluetooth bluetooth pin Result MyPin setvar choices text string up to 10 characters Default Example Description Instructs the printer to change the Bluetooth PIN value Syntax IU1 setvar bluetooth bluetooth pin Result Changes password to MyPin continued on next page Mobile Printer CPCLProgramming Manual P14 7 bluetooth date getvar This parameter is the release date of the Bluetooth mod ule getvar result Printer s Bluetooth library release date in the format mm dd yy Example Description Get printer s Bluetooth module release date Syntax U1 getvar bluetooth date Result 02 12 02 bluetooth discoverable getvar setvar This parameter sets the Bluetooth discoverable mode getvar result Current discoverable mode setting off or on Example Description Get the current Bluetooth discover able mode U1 getvar Result off Default on setvar choices Example Description Disa
79. 0 250 10 TEXT 7 0 0 10 NO PACE EXAMPLE Mobile Printer CPCLProgramming Manual P8 9 This command is used to introduce a delay after 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 INPUT CWAIT LBL 200 200 150 5 80 TEXT 5 0 0 20 DELAY 10 SECONDS P8 10 Mobile Printer CPCLProgramming Manual This command is used to turn the rewind 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 format command where command Choose one of the following REWIND OFF REWIND ON REWIND Command Example INPUT CREWIND LBL 200 200 150 1 REWIND OFF TEXT 5 0 0 20 TURNS REWIND OFF PRINT Mobile Printer CPCLProgramming Manual P8 11 TENSION Commands The tension commands are used to adjust the liner ten sion 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
80. 0 L6 LLT8 seues 1 000 252 178 00 9 seues OOZL OOLLLY 8626 seues 002 00 14 1 08 119 seues OOZL OOLLLY 6082114 seues 006919 2 2651118 002 00 14 266111 seues 0041 00LL1H 602114 0222 000 2922 18 065106610861 000 5 114 LXIN 3x1 6602114 3asdWoo Hed 21 Mobile Printer CPCLProgramming Manual 5 e gt 5 5 a LI CO 5 lt q 5 ul eur JO UO Jewod O eur1 HL JjO UO ON lt LL tc 8 1 8 e u e u NIC Uld 8 Uld 8 scga e u e u Stry SI Uld 8 96 Uld 8 Uld 8 Uld 8 Uld 8 Uld 8 NIC Uld 8 10129uu02 Wid Wid Wid Wid J0129uu05 8 8 e u e u 8 pelo pelo 9 9 9 pello5 9 2100 6 p l 09 6 ed Aj u163 p109 000 716 L 9662 14 9007742 L LLZELOO L 88c V 1d 1 VI LZELLOO VI LZE
81. 1 getvar wlan kerberos password Result password setvar choices 0 32 ASCII characters Default password Example Description This command instructs the printer to set the Kerberos password to password Syntax U1 setvar wlan kerberos password pass word Result The Kerberos password will be set to password Mobile Printer CPCLProgramming Manual P14 77 wlan kerberos realm getvar setvar This parameter refers to the Kerberos realm an adminis trative domain with its own Kerberos server KDC Note realm must be all upper case if using a Windows 2000 Server This parameter is not supported on units with a Frequency Hopping Spread Spectrum FHSS radio getvar result This will return the current Kerberos realm Example Description This command instructs the printer to respond with the current Kerberos realm Syntax U1 getvar wlan kerberos realm zebra setvar choices 0 64 ASCII characters Default Zebra Example Description This command instructs the printer to set the Kerberos user name to zebra Syntax U1 setvar wlan kerberos realm Zebra Result The Kerberos realm will be set to zebra P14 78 Mobile Printer CPCLProgramming Manual wlan kerberos username getvar setvar This parameter refers to the Kerberos user name The user name must correspond to a user profile established on the Kerberos KDC
82. 23 23 7 8 32 39 24 30 8 14 23 30 27 23 21 9 14 12 28 10 21 17 21 25 10 20 BREESE 12722 28 _ 11 125 D 14 25 2 Mobile Printer CPCLProgramming Manual A 29 APPENDIX continued FONT WIDTH IN DOTS FONT 4 SIZES 2 7 Hie 6 51 us ES or 3 51 mE EE RE ES um 82 51 i ce i Tm 7 22 51 E 8 END 54 8 bs UE EM GN FONT WIDTH DOTS FONT 5 SIZES 0 1 2 3 415 6 7 8 19 ols e Peps po is 28211 10 A 30 Mobile Printer CPCLProgramming Manual APPENDIX continued FONT WIDTH IN DOTS FONT 5 S IZES 2 3 Mobile Printer CPCLProgramming Manual Hex afeta s e Eco poc ww aa 1 621 4 21
83. 896 0123456789 0123456789 0123 Font Size 9 1 Be Dd Ee FF Ge 01 2545967389 6125 Font Size 0 2 fa Bb Cc Dd Eg Ff Ge Hh li Kk LI Nn 00 01 23456789 80129455789 30123455789 0122 Font Size 0 3 Cc Dd FF Ga 01 23456789 8123 Fonti Size 0 4 Aa Bb Cc Id 601 Mobile Printer CPCLProgramming Manual Aa Bb Cc Dd Ee FF Gg 41 23456783 0123 Font Size 0 6 Bb Cc Dd 81 2345678 Fonti Size 1 Aa Bb Co Dd Fe 01 23456 78H 40723 Font Size 2 0 0L 23456789 Font Size 2 1 D 501 0345 6789 P3 1 RESIDENT FONT SAMPLES continued Font Size Font Size 4 0 4 5 Aa Bb Cc Dd Ee Ff 01 23456789 Font Size i 4 1 ha Bb Cc 123 4 6 Font Size 4 2 120 34 Font Size 4 120 34 120 34 Mobile Printer CPCLProgramming Manual Font Size RESIDENT FONT SAMPLES continued Font Size 0 Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj 501 234567894 01 234567890 Font Size 5 1 Aa Bb Dd Ee Ff Gg Hh i Jj 01 23456789 01 23456789 Font Size 5 2 Bb Cc Dd Ff 01 23456789 Font Size 5 3 Aa Bb Ce 1 23 10 Mobile Printer CPCLProgramming Manual Font Size 6 0 Ob23456789 Font Size 7 9 Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj 01 23456789 01 234567890 Font Size 7 1 Ac Bb Cc Dd Ee FF Gg H
84. AN barcodes POST TENSION See TENSION Commands POSTFEED Command P8 19 Postnet barcode P5 13 USPS Publication 25 P5 14 Power Management P15 4 and Short Range Radio Control P15 5 Off Command P11 5 See also Printer Escape Commands using DSR P15 4 Power On Off Control See Power Management PRE TENSION See TENSION Commands PREFEED Command P8 18 PRESENT AT Command P8 20 P9 14 Presentation peeler sensor See Get Extended Printer Status PRINT command P2 3 Printer Configuration and Setup P15 1 Printer Control Commands P2 2 Printer Escape Commands P11 1 P11 2 Printer Information P1 3 Programming Language setting P14 14 Programming Language Emulation P1 1 recommended use of P1 2 Mobile Printer CPCLProgramming Manual Index 9 INDEX continued Q QL series printers LCD control panel P13 1 R RE RUN command 15 9 READCCL LBL P11 1 REPRINT See ON FEED Command REWIND Command 8 11 REWIND OFF See REWIND Command REWIND ON See REWIND Command Ribbon status See Get Extended Printer Status RIGHT See Justification Commands ROTATE Commands P4 8 RUN BAT Command P15 8 S S CARD Command P10 34 Scalable Concatenation Commands P3 8 P4 6 SCALE TO FIT Commands P4 4 SCALE TEXT Commands P4 2 SET DATE command P10 20 SET TIME command P10 18 SET TOF Command P9 12 P14 26 set get do commands P14 1 Bluetooth parameters P14 5 networking parameters P14 38 SETBOLD Command P9 8 SETCCL LBL P11 1 SETFF Command P2 4 P9 11 SETLF Command
85. Center the text CENTER TEXT 4 1 0 10 Print 3 labels TEXT 4 1 0 90 Using PRINT Print 3 labels Using PACE Print 3 labels Using PACE Print 3 labels Using PACE Mobile Printer CPCLProgramming Manual P8 7 This command can be used to instruct 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 re moved before printing the next label Input CAPACE LBL 200 200 250 10 CENTER TEXT 7 10 AUTO PACE EXAMPLE AUTO PACE FORM PRINT P8 8 Mobile Printer CPCLProgramming Manual This command cancels PACE and 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 The second set of 10 labels will be printed in batch mode and the printer will not wait for the operator to remove the labels Input CNO PACE LBL 0 200 200 250 10 TEXT 7 0 0 10 AUTO PACE EXAMPLE AUTO PACE FORM PRINT 200 20
86. DS ciis gites te e P5 15 BARCODE COMMAND ires Gara ias tide dius P5 16 BARCODE TEXT 5 18 Mobile Printer CPCLProgramming Manual iii TABLE OF CONTENTS continued COUNT 5 225645 5 20 TWO DIMENSIONAL BAR CODES P6 1 7 5 6 1 6 2 MAXIGODE 6 2 TWO DIMENSIONAL CODE COMMANDS P6 3 PDF417 PORTABLE DATA 6 4 GRAPHICS Ua KG IE GIA P7 1 BOX COMMAND sette pep RD MD P7 1 LINE COMMANDS ted eed due 7 2 INVERSE LINE COMMANDS 7 4 7 6 GRAPHICS COMMANDS 7 8 POX COMMAND 7 10 ADVANCED COMMANDS P8 1 CONTRAST COMMAND datei base detecte tieu P8 1 TONE COMMAND P8 2 JUSTIFICATION P8 3 PAGE WIDTH P8 4 PACE COMMAND ata P8 6 COMMAND P8 9 WALT COMMAND tct mackie P8 10 REWIND COMMAND
87. Default 0 0 0 0 Example Description Instructs the printer to change the POP3 server address to 10 19 3 1 Syntax U1 setvar 10 19 3 1 Result Sets the server address to 10 19 3 1 P14 50 Mobile Printer CPCLProgramming Manual ip pop3 username getvar setvar This parameter refers to the username This only applies if the ip pop3 enable is set to on getvar result This command instructs the printer to respond with the username value Example Description This command instructs the printer to respond with the username value Syntax U1 getvar ip pop3 username Result user setvar choices Text string up to 19 characters in length Default User Example Description This command instructs the printer to change the POP3 username to U1 setvar ip pop3 username user1 Result This will change the pop3 username to ip pop3 verbose headers 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 This will return the pop3 verbose headers status on or off Example Description This command instructs the printer to respond with the verbose header value Syntax U1 getvar ip pop3 verbose he
88. E FORMAT DF or the Visual Label Utility application for example the file information is written to flash memory Unlike RAM flash memory does not require battery for retaining data and is immune to data corruption due to static discharge Although flash memory is superior to RAM for safe guarding file contents it is limited to an average of 10 000 write cycles i e file creations For this reason the user should exercise the file creation commands such that the stated limit is not exceeded Mobile Printer CPCLProgramming Manual P8 27 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 Command Example This example instructs the printer to beep for two sec onds 16 x 125 seconds 2 seconds Input CBEEP LBL 200 200 210 1 CENTER TEXT 5 10 BEEPS FOR TWO SECONDS BEEP 16 FORM PRINT P8 28 Mobile Printer CPCLProgramming Manual On printers equipped with cutters this command will cut the label after it is printed Format command where command CUT CUT Example Input CCUT LBL 0 200 200 1 5 1 IN INCHES Journal label 300 dots long CENTER Print some text TEXT 4 0 0 15 CUT COMMAND T
89. E PRICE SALE Mobile Printer CPCLProgramming Manual P4 5 SCALABLE 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 See also Text Concatenation Commands Format xj yj S7 name width height offset data lt S7 gt name width height offset data lt ENDCONCAT gt where command Choose from the following CONCAT Horizontal concatenation VCONCAT Vertical concatenation Horizontal starting position Vie Vertical starting position fname Font name width Font width point size height Font height point size 07520 Unit value to offset text from the starting position Used to align individual text strings or create superscript subscript characters foala Text to be printed lt ENDCONCAT gt Terminates concatenation P4 6 Mobile Printer CPCLProgramming Manual SCALABLE CONCATENATION Example Input CSTC LBL 0 200 200 210 1 CENTER Concatenate 3 scalable font strings and 1 Resident font string 0 20 410 2 ST PLL_LAT CSF 20 20 1 ST LAT CSF 40 40 0 ST LAT CSF 20 20 0 Mobile Printer CPCLProgramming Manual P4 7 ROTATE Commands ROTATE commands are used to rotate all subsequent scal
90. E12345 Output PDF Data ABCDE 12345 Mobile Printer CPCLProgramming Manual P6 5 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 Format command type x y tag options tag options lt ENDMAXICODE gt where command BARCODE or B Prints bar code type MAXICODE x Horizontal starting position Vertical starting position tag Tags not supplied will be filled with default values Use only the tags that you require Tags can be in any order lt gt Final tag in Maxicode bar code Tags encoded in the high priority message of all Maxicodes Tag Definition Default Value POST Postal or ZIP Code empty CC Country Code 840 USA from ISO 3166 SC Service Class 1 6 6 Mobile Printer CPCLProgramming Manual Tags to control the type of bar code created Tag Definition Default Value UPS5 Use UPS5 tags to 0 create the low priority message On 1 Off 0 ZIPPER the zipper and contrast patterns on or off On 1 Off O 0 FILLC Low priority message fill character Messa
91. EXT 4 0 0 5 EXAMPLE After we print the label cut it CUT PRINT Mobile Printer CPCLProgramming Manual P8 29 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 Example Input CPCUT LBL 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 5 EXAMPLE After we print the label partially cut the label PARTIAL CUT PRINT P8 30 Mobile Printer CPCLProgramming Manual 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 Format command length Where command CUT AT length The unit length the stock should be retracted after performing a cut or partial cut CUT AT Command Example This example instructs the printer to print a label perform a form feed cut the label and retract the stock by 100 dot lines Input CCUTAT LBL 200 200 250 1 CENTER TEXT 7 0 0 20 CUT AT EXAMPLE CUT CUT AT 100
92. F Baud 9600 Manchester Enabled Sleep Mode Enabled CC Threshold 18 Extra CCF Disabled Busy Mode Disabled Low Battery Shutdown Debug Mode Disabled ipherals SRRF Software version SRRF settings Wireless Communications Section with IR Wireless Option Installed Chksum 5910 Software 28 Chksum E332 Ver L4 R79 12 U129 815 T19 A28 Cable Communications 115200 BPS N 8 1 Handshake hardware Wireless Communications IrDA Version 12 Rarinherals IR Software version Mobile Printer CPCLProgramming Manual P1 5 GETTING PRINTER INFORMATION EXAMPLE CONT Continuation of Second Report Peripherals Power Management In activity Timeout Secs Low battery Timeout 6 Secs Remote DTR pwr off Disabled Voltage 184 Low bat Warning 178 Low bat Shut down 168 Memory Flash 1048575 Bytes RAM 262143 Bytes Label Width 576 dots 72 mm Height 2224 dots 278 mm Sensors Adj Pres DAC 0 Thr 120 Cur 254 Label Removed Gap DAC 215 Thr 30 Cur 120 Bar DAC 111 Thr 70 11 Temperature 179 Voltage 184 Resident Fonts Sizes 17 FT1 9 18 File Directory FTI 9 18 CPF 808000 Bytes Free Command Language CCL Key 21 End of report Press FEED key to enter DUMP mode Dump mode not entered P1 6 Flash Mernory Size Maximum Label Size Refer to P1 7 Resident Fonts Pre scaled or Scalable Fonts if any loaded in Memory Files Loaded in P
93. FILES The printer flash file system can be used to store a start up file titted AUTOEXEC BAT When the printer is pow ered 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 DF AUTOEXEC BAT UTILITIES SETLP 5 1 40 PRINT Line one uses the D efine F ile command to label this file as AUTOEXEC BAT The end of an AUTOEXEC BAT file is indicated by a PRINT command as shown in line four When this file is executed the printer will select font number 5 size 0 as the default front for line printer mode and the printer will advance 40 dots for every carriage return received Note Every time a file is created on the printer by using the DEFINE FORMAT DF the file information is written to flash memory Unlike RAM flash memory does not require battery power for retaining data and is immune to data corruption due to static discharge Although flash memory is superior to RAM for safeguarding file contents it is limited to an average of 10 000 write cycles i e file creations The user should use the file creation commands only when needed to ensure this write cycle limit is not exceeded Mobile Printer CPCLProgramming Manual P15 7 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
94. Format lt gt UTILITIES command name PRINT where command COUNTRY or CHAR SET fname Choose from the following P10 10 USA GERMANY FRANCE SWEDEN SPAIN NORWAY ITALY CP850 UK LATIN9 CP874 Thai CHINA Simplified Chinese Double Byte Charac ter Set KOREA Korean Double Byte Character Set BIG5 Traditional Chinese Double Byte Character Set JAPAN S S JIS Double Byte Character Set Mobile Printer CPCLProgramming Manual COUNTRY CODE PAGE Utility Example Input CCOUNTRY1 LBL UTILITIES Tell the printer to use font 4 size 0 for line printer mode with 5 millime ters Line spacing IN MILLIMETERS SETLP 405 COUNTRY USA or CHAR SET USA PRINT This is text with Country set to USA Z e N 1 UTILITIES COUNTRY ITALY or CHAR SET ITALY PRINT This is text with Country set to ITALY 50 4 This is text with Country set to USA S N 1 This is text with Country set to Note The printer must be configured with fonts that contain the extended character sets used in the selected country Mobile Printer CPCLProgramming Manual P10 11 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 lt gt UTILITIES command me
95. G P10 49 RAW P10 49 STRIP ADD CRLF P10 49 STRIP SPACES P10 49 BHT PROTOCOL Command P10 53 BHT Mode P10 53 BHTIR Mode P10 53 CABLE Mode P10 53 BHT Terminal P10 38 configuring for cable communications P10 43 BHT BAUD command P10 40 P10 48 BHT PROTOCOL Command P10 40 BlueTooth commands using set get do parameters P14 5 BOX command P7 1 Mobile Printer CPCLProgramming Manual Index 1 INDEX continued C CENTER See Justification Commands CHAR SET Command P10 10 CHECKSUM P10 3 See 2 Advanced Utilities Checksum calculation Codabar P5 11 Code 128 P5 10 Code 39 P5 6 Code 93 P5 8 Postnet P5 13 UPC EAN P5 4 Codabar barcode P5 11 Code 128 barcode P5 9 Code 39 barcode P5 6 Code 93 barcode P5 8 Comments P2 8 Communications Diagnostics P1 7 COMPRESSED GRAPHICS Command See Graphics Commands CONCAT P3 8 SeeTEXT Concatenation Commands CONTRAST Command P8 1 COUNT command P3 12 P5 20 COUNTRY Command P8 22 10 10 CUT Command P8 29 P9 15 CUT AT Command P8 31 P9 14 D Date stamp Printing P10 23 DEFINE FORMAT See Format File Commands DEL P10 4 See a so Advanced Utilities Denso Barcode Handy Terminal See BHT Terminal DF Command P10 6 DIR P10 5 See a so Advanced Utilities do Command P14 2 do parameters device reset P14 14 device restore defaults P14 15 file delete P14 18 file print P14 18 P14 19 P14 19 P14 19 Index 2 Mobile Printer CPCLProgramming Manual ip mir
96. HCP_SAVE state ON or OFF Syntax GET CONFIG footon Where PRINT or REPLY Example U1 LAN GET CONFIG PRINT SOFT_RESET This operation resets the WLAN card If the application determines that the WLAN card is not responding e g 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 is not responding e g if a GET STATUS query goes unanswered it may try to reset the card The SOFT RESET command should be tried first and if that fails then RESET should be used Example U1 LAN RESET DHCP This operation allows for control over setting of the WLAN card s IP address The options for this operation are enabled ON or disabled OFF If Mobile Printer CPCLProgramming Manual P12 5 DHCP is enabled the WLAN card will attempt to ob tain an IP address from a DHCP server If DHCP is disabled the WLAN card will use the IP address pro grammed into its non volatile storage Syntax DHCP ootion Where ON or OFF Example 01 LAN DHCP ON DHCP SAVE This operation allows for control of the storing of addresses obtained by DHCP If ON a new address obtained from DHCP will be stored If OFF the new address will be used for this session only leaving
97. Ideal Barcode Bar code Wide Narrow Narrow Checksum Symbology Type Input Length Characters Ratio Dot Width Calculation Code 39 39 Variable Refertext 2 5 1 2 none 39C Variable Refertext 2 5 1 2 mod 43 F39 Variable Refertext 2 5 1 2 none 9 Variable Refertext 2 5 1 2 mod 43 Mobile Printer CPCLProgramming Manual 5 7 CODE 93 OR CODE 9 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 This bar code type can use the entire ASCII 128 character set It is useful for encoding data and phrases like Code 93 The two checksums in this bar code are located as the last and second to last characters in the decoded bar code Code 93 has a complex checksum calculation Please see the bar code symbology specification for information on how to create and decode this checksum Please also note that the bar code symbology specifica tion does not state any ideal values for the ratio and the width of the narrow bar CODE 93 SPECIFICATIONS Ideal Ideal Barcode Bar code Wide Narrow Narrow Checksum Symbology Type Input Length Characters Ratio Dot Width Calculation Code 93 93 Variabl
98. LLOO 1 879119 L 8vS 1 1d JOQUINN Hed 4 216 8 098 096 L LLZELOO 15096 9 1 211119 096 L 2Z 10 15096 096 NOX13L 9204 060 SIDOTMAL seues 0089 9 seues 0089 9 seues 008 1 seues OO8ELOV LYT seues 00 145 seues 00 1145 1 Mobile Printer CPCLProgramming Manual A 22 APPENDIX continued DENSO BHT CABLE INTERFACE BHT 3 Pole Printer 8 Pin Mini Stereo Plug Male DIN Plug 1 2 3 BHT Signal Names Printer Signal Names SD 1 9 1 RD 2 2 TXD Not Connected 3 CTS Not Connected lt 4 RTS SG 3 X 5 GND 7 DSR 8 Not Connected lt gt Shield Mobile Printer CPCLProgramming Manual A 23 APPENDIX C Character Tables ASCII TABLE HEX VALUES 2 3141516 17 8 9 Eso ib INTERNATIONAL ISO SUBSTITUTION CHARACTERS This table references the ISO symbol set substitutions performed for various countries The ISO symbol set contains the same characters as the ASCII symbol set except for the character values listed in the table HEX Character Values
99. LProgramming Manual P14 41 ip dhcp cid_type 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 dress will be used A value of O means the type is syn thetic 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 getvar result The current Client Identifier type to be used with DHCP Example Description This command instructs the printer to respond with the client identifier type Syntax U1 getvar ip dhcp cid type Result nd setvar choices 0 synthetic string 1 use printer s MAC address Default me Example Description Enable synthetic Client Identifier Syntax U1 setvar ip dhcp cid_type 0 Result The next time the printer is pow ered on and DHCP is enabled the Client Identifier option 61 sent will be a synthetic type P14 42 Mobile Printer CPCLProgramming Manual ip dhcp cid_value 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 The c
100. NG COMMENTS A See ME P2 8 TEX T5 1 RESIDENT FONT SAMPLES P3 1 TEXT ec P3 4 USING FONT GROUPS taie etie bec P3 6 TEXT CONCATENATION P3 8 MULTILINE ML COMMANDS P3 10 COUNT COMMAND cies obruit P3 12 SETMAG COMMAND 14 SCALABLE TEXT nitri 4 1 SCALE TEXT COMMANDS P4 2 SCALE TO FIT COMMANDS P4 4 SCALABLE CONCATENATION COMMANDS P4 6 ROTATE COMMANDS el 4 8 LINEAR BAR CODES 5 1 25 scent 5 1 UPC AND EAN JAN BAR CODES P5 3 CODE 39 OR CODE OF 9 BAR 5 P5 6 CODE 93 OR CODE 9 OF BAR CODES P5 8 INTERLEAVED 2 OF 5 BAR P5 8 CODE 128 AND THE UCC 128 SHIPPING STANDARD P5 9 siue DE A P5 11 MSI PLESSEY BAR CODES duda 5 12 POSTNET AND FACING IDENTIFICATION MARKS P5 13 BAR CODE COMMAN
101. OLD GOMMANB NE XE P9 8 SETSP COMMAND 2 iir tna tese tb FEE are aad P9 9 PAGE WIDTH COMMAND amp PAGE HEIGHT COMMAND P9 10 SPECIAL ASCII CHARACTERS edens P9 10 SETFF COMMAND inerenti ttu ante enn P9 11 SET TOP COMMAND viisi ierunt nnn 9 12 TEARING OR CUTTING THE P9 14 BAR CODES GRAPHICS AND LINES P9 15 SETLP TIMEOUT 9 16 DESIGNING A RECEIPT 9 16 ADVANCED UTILITIES P10 1 VERSION U TIEI Y re en Dr ERR Rr Eod aid raa P10 2 CHECKSUM UTILITY ies ssepe e Dd og ace Pci atta P10 3 DEL a exper P10 4 DIPS OTE NPY QT tase P10 5 DEFINEsFIEE DR WIR Yast 10 6 TPE UT ite 10 8 10 9 COUNTRY CODE PAGE UTILITY P10 10 CHAR SET CODE PAGE UTILITY iiir cnn nne P10 10 ANNOUNCE 10 12 TIMEOUT UTILITY 10 14 TIMEOUT UTILITY EXAMPLE 2 2 P10 14 BEEP COMMAND 10 15
102. P14 20 media width sense in cm P14 21 media width sense in dots P14 22 media width sense in inches P14 22 media width sense in mm P14 21 memory flash free P14 28 memory flash size P14 28 memory ram free P14 28 memory ram size P14 28 odometer label dot length P14 29 odometer latch open count P14 30 odometer media marker count P14 31 odometer user label count P14 32 power ascii graph P14 33 power dtr power off P14 33 power inactivity timeout P14 34 power low battery shutdown P14 35 power low battery timeout P14 34 Mobile Printer CPCLProgramming Manual Index 5 INDEX continued power low battery warning P14 35 power percent full P14 35 power status P14 35 power voltage P14 36 test feed P14 37 usb device device id string P14 60 usb device device version P14 60 usb device manufacturer string P14 61 usb device product id P14 61 usb device product string P14 62 usb device serial string P14 62 usb device vendor id P14 63 wlan associated P14 65 P14 66 wlan auth type P14 65 wlan bssid P14 66 wlan current essid P14 66 wlan current tx rate P14 67 wlan encryption index P14 67 wlan encryption key1 P14 68 wlan encryption key2 P14 69 wlan encryption key3 P14 70 wlan encryption key4 14 71 wlan encryption mode P14 72 wlan essid P14 73 wlan international mode P14 74 wlan kerberos kdc P14 75 wlan kerberos mode P14 72 P14 76 wlan kerberos password P14 77 wlan kerberos realm P14 78 wlan kerberos username P14 79 wlan leap mode P14 80 wl
103. P14 21 media width_sense in_dots getvar This parameter returns the current media width installed in the printer measured in dots The media width sense enable parameter must be set to 1 on Note The media width sensing mechanism has a tolerance of 21 dots at the standard resolution of 200 d p i getvar result Media width as measured in dots Example Description Get width of installed media Syntax U1 getvar media width_sense in_dots Result 832 media width_sense in_inches 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 Note The media width sensing mechanism has a tolerance of 1 getvar result Media width as measured in inches Example Description Get width of installed media Syntax U1 getvar media width_sense in_inches Result 4 098 P14 22 Mobile Printer CPCLProgramming Manual Input Parameter input capture 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 exam ine data received by the printer When in print mode the printer will save incoming data to files named in dmp where 15 a number be tween 001 to 999 The printer will then print the text and hexadecimal representation of data bytes
104. 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 dpi printer The data sent to the bar code can be 5 9 or 11 digits long For example to send mail to 30 Plan Way Warwick RI 02886 1234 the data would be 5 digits ZIP Code only 02886 9 digits ZIP 4 Code 028861234 11 digits ZIP 4 Code and last two digits in address 02886123430 The Postnet bar code also contains an automatically calculated checksum as the last character in the decoded bar code As a short example our data will be 02881123430 1 Add the numerical value of all the characters 0 2 8 8 1 1 2 3 4 3 0 32 2 Divide this number by 10 and use the remain der or modulo In our example this is 2 Sep 3 Subtract the remainder or modulo from 10 to get the check sum The check sum for our example would be 8 10 32 mod 10 for programmers A Facing Identification Mark FIM is the bar in the upper right corner of an envelope near the stamp To comply with postal regulations set the height of the bar code to 125 dots the ratio to 1 5 1 dots and the width of the narrow bar to 6 dots There are three different char acters you can send as data A B and C FIM A Courtesy Reply Mail with Postnet Bar code FIM B Business Reply Mail Penalty Mail or Franked Mob
105. Printer CPCLProgramming Manual P10 37 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 down loaded 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 Refer to Cable w BHT PROBHT CBL IR w BHT PROBHT IR Cable w BHT IR PROBHTIR CBL IR w BHT IR PROBHTIR IR Data is sent to the printer formatted as a BHT DAT file The printer will check for the DAT filename extension Since the format of data using this protocol is not always what the printer requires there are several modes of operation that can be set within the printer to specify how record data fields delivered by the protocol are inter preted Setting the Data Format If the default mode strip trailing spaces then add CR LF for each data field is not desired any of the operating modes can be set by loading an AUTOEXEC BAT com mand file into the printer s flash memory Note that any commands intended to modify the BHT operating modes must be placed between the SHF ACCESS and the END SRF ACCESS command lines continued P10 38 Mobile Printer CPCLProgramming Manual Mode 1 Default Strip trailing spaces and Each data field in a record has any trailing spaces stripped and ca
106. Programming Manual P15 9 GAP SENSE 8 BAR SENSE Commands These commands are used to instruct the printer as to which means of top of form detection should be em ployed Printers default to BAR SENSE if no command is specified Printers that are not equipped with a gap sensor will attempt a pSeudo gap sense Format command where command Choose one of the following GAP SENSE 0 255 BAR SENSE 0 255 Gap and Bar Sense commands can be followed by a number to adjust sensitivity This is useful for gap sense stock from vendors other than Zebra GAP SENSE Command Example The following example configures the printer for gap sensing In addition it specifies that the distance from top of form to the gap is zero Input CGAPSENSE LBL UTILITIES GAP SENSE SET TOF 0 PRINT P15 10 Mobile Printer CPCLProgramming Manual Index INDEX Symbols U1 Command See UTILITIES Command cpf files See fonts pre scaled A Accessories CD P1 1 Acknowledge Printer Reset P11 3 See a so Printer Escape Com mands Advanced Control Commands P8 1 Advanced Utilities examples P10 1 ALL CHRS LBL P1 7 ANNOUNCE Command P10 12 AUTOEXEC BAT P9 2 P10 38 P15 7 Backspace P9 10 BAR SENSE Command P9 10 P15 10 BARCODE Command P5 16 P9 15 BARCODE TEXT P5 18 P6 5 Barcodes standard samples P5 2 BATCH FILES P15 7 See also AUTOEXEC BAT BAUD Command P10 9 BEEP Command P8 28 P10 15 BHT MODE Commands P10 49 COUNTED STRIN
107. S FEED KEY REPRINT THIS TEXT PRESS FEED KEY TO REPRINT THIS TEXT PREFEED Command The PREFEED command instructs the printer to advance the media a specified amount prior to printing Format command length where command PREFEED length Unit length the printer advances media prior to printing PREFEED Command Example The following example sets up the printer for pre feeding 40 dot lines prior to printing Input CPREFEED LBL 200 200 210 1 PREEFEED 40 TEXT 7 20 PREFEED EXAMPLE FORM PRINT P8 18 Mobile Printer CPCLProgramming Manual POSTFEED Command The POSTFEED command instructs the printer to ad vance 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 Input CPOSTFEED LBL 200 200 210 1 TEXT 7 0 0 20 POSTFEED EXAMPLE FORM POSTFEED 40 PRINT Mobile Printer CPCLProgramming Manual P8 19 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 15 issued the printer will print a label and then after a delay period advance the media a specified distance It will then re
108. SING LABEL VISTA FOR PRINTER CONFIGURATION P15 1 USING LABEL VISTA FOR WIRELESS CONFIGURATION P15 3 POWER 15 4 BATOH FILES Cau M MA P15 7 BUNSBAT COMMAND FILE c ect P15 8 RE RUN COMMAND ied dolus P15 9 GAP SENSE 8 BAR SENSE COMMANDS P15 10 INDEX deco 1 APPENDIX A FREQUENTLY ASKED QUESTIONS 14 APPENDIX B INTERFACE A 19 APPENDIX C CHARACTER TABLES A 24 APPENDIX D FONT INFORMATION A 28 APPENDIX E BAR CODE QUICK REFERENCE A 32 APPENDIX PRODUCT SUPPORT 34 Mobile Printer CPCLProgramming Manual vii Programming Section viii Mobile Printer CPCLProgramming Manual PROGRAMMING INTRODUCTION This manual details the various commands in the CPCL language which allow the programmer to utilize the built in text graphics bar code printing and communications capabilities of Zebra mobile printers The following nota tion conventions are used throughout this manual Required item LI Optional item 7 Abbreviated command lt gt Literal item A space character is used to delimit each field in a com mand line Many commands are accompanied by examples of the command in use After the
109. TOCOL CABLE command communication over a serial cable continued P10 40 Mobile Printer CPCLProgramming Manual does not use the BHT protocol In this default mode any Zebra mobile printer utility for reprogramming adding or deleting files will be in effect f the printer has been configured to include the BHT or BHT IR protocol with the serial cable the following procedure may be used to force the printer to com municate raw i e using no protocol for the pur poses of reprogramming or the adding or deleting of files 1 Connect the printer to a host terminal loaded with the desired communications software 2 Turn the printer on by starting the terminal s communications program 3 Turn the printer off then while holding the Feed key down turn the printer back on 4 The printer will print a status report When the printout is complete the communications protocol will be in the raw mode Refer to the BHT MODE Commands examples at the end of this section Configuring the BHT for IR transmission The BHT must also be configured correctly to communi cate with Zebra mobile printers using the BHT or BHT IR protocol All parameters that must be set are found in the BHT Set System gt Communication menu area The following notes apply The pulse width for optical communications must be set to 1 63uS The protocol is set to match the protocol in the printer Default fo
110. TOTAL 187 10 RHODE ISLAND SALES TAX 7 00 2 60 TOTAL 189 70 PLEASE BRING THIS RECEIPT TO THE CASHIER WITH THE REST OF YOUR PURCHASES Mobile Printer CPCLProgramming Manual P9 21 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 coun tries and to set several operating parameters The following example illustrates the use of some of the commands you will find in this section The example assumes that the printer is connected to a host computer capable of full duplex serial communication Comments to the right are not part of the session Comments in UPPERCASE are commands sent from the host to the printer Comments in lower case are printer responses to the host These commands are further explained as you read through this section UTILITIES STARTA UTILITIES SESSION VERSION GET THE FIRMWARE VERS ON 6001 firmware version is 60 01 CHECKSUM GET APPLICATION CHECKSUM F723 checksum is F723 DIR GET DIRECTORY OF THE FLASH FILE SYSTEM Directory directory has the following 3 files PLL_LAT CSF 17306 17306 byte file PLL_LAT CSF 18423 18423 byte file AUTOEXEC BAT 96 96byte file TYPE AUTOEXEC BAT WHAT S INAUTOEXEC BAT UTILITIES autoexec bat line 1 SETLP 5 1 40 autoexec bat line 2 PRINT autoexec bat line 3 DEL AUTOEXEC BAT DELETE THE AUTOEXEC BAT FILE DIR DIRECTORY
111. TRY CODE PAGE Command The COUNTRY control command substitutes the appro priate character set for the specified country Format command name where command COUNTRY fname Choose from the following P8 22 USA GERMANY FRANCE SWEDEN SPAIN NORWAY ITALY CP850 UK LATIN9 CP874 Thai CHINA Simplified Chinese Double Byte Charac ter Set see Asian Fonts topic on Pg 8 24 KOREA Korean Double Byte Character Set see Asian Fonts topic on Pg 8 24 BIG5 Traditional Chinese Double Byte Character see Asian Fonts topic on Pg 8 24 JAPAN S S JIS Double Byte Character Set see Asian Fonts topic on Pg 8 24 Mobile Printer CPCLProgramming Manual COUNTRY CODE PAGE Example Input CCOUNTRY LBL 200 200 80 1 IN MILLIMETERS JOURNAL CENTER Set the country as USA COUNTRY USA Now Print Text From ISO sub stitution Table TEXT 400 8 COUNTRY IS USA TEXT 4 0 0 15 1 Set country for France and print the same text COUNTRY FRANCE TEXT 4 28 COUNTRY IS FRANCE TEXT 4 0 0 35 4 Il PRINT Output COUNTRY IS USA n 71 COUNTRY IS FRANCE 4 6 Mobile Printer CPCLProgramming Manual P8 23 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
112. W Mobile Printing Systems CPCL Programming Manual PROMAN CPCL Rev P April 2005 Proprietary Statement This manual contains proprietary information of Zebra Technologies Corporation and its subsidiaries Zebra Technologies It is intended solely for the information and use of parties operating and maintaining the equipment described herein Such propriety information may not be used reproduced or disclosed to any other parties for any other purpose without the expressed written permission of Zebra Technologies Product Improvements Continuous improvement of products is a policy of Zebra Technologies All specifications and designs are subject to change without notice FCC Compliance Statement Digital apparatus has been tested and found to comply with the limits for a Class B Digital Device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the product manuals may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense The user is cautioned that any changes or modifications not expressly appro
113. able by the user The bar code can contain the entire ASCII 255 set of characters and has the capa bility to use different encoding schemes and different levels of security to correct errors The largest amount of data that can be encoded is 2725 characters MaxiCode MaxiCode was originally designed by the United Parcel Service to help them automate package delivery and sort packages coming down a quick conveyor belt It consists of a bulls eye to help the imaging system target the bar code and an array of hexagons to represent the data stored in the bar code It can contain a maximum of 93 alphanumeric characters or 138 numeric characters has two different error 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 specifica tion If you are developing software to be used with the UPS MaxiCode shipping system contact UPS for infor mation on how to order the information on the Maxicode shipping system P6 2 Mobile Printer CPCLProgramming Manual TWO DIMENSIONAL CODE COMMANDS The following commands are used for the creation and formatting of two dimensional bar codes Insure that the bar code symbology chosen agrees with its intended use We recommend acquiring the specification for the desired code to supplement the discu
114. able text fields at a specified angle Rotation direc tion 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 Choose from the following ROTATE Rotates scalable fonts or R angle Degree of rotation ccw P4 8 Mobile Printer CPCLProgramming Manual ROTATE Example Input CROTATE LBL 200 200 440 1 TEXT 4 1 0 50 Rotate Strings 45 50 300 ST PLL_LAT CSF 20 20 2 ST PLL_LAT CSF 40 40 0 ST PLL_LAT CSF 20 20 0 0 5 2 9 2 9 Mobile Printer CPCLProgramming Manual P4 9 LINEAR BAR CODES 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 If you plan to create software using these bar codes we recommend ordering the uniform symbology specifi cation from AIM or the UCC to determine the uses and limitations pertaining to that type of bar code The infor mation in this document is in no way complete The following discussions contain basic information and some suggested applications for each type of bar code
115. ables 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 The encryption key and the encryption index should match the en cryption key and encryption index of the access point or the other network devices when in AD HOC mode When all settings are changed the printer must be wlan kerberos mode 2 128 bit encryption is not supported on units with Frequency Hop ping Spread Spectrum FHSS radios 40 bit encryption will be used instead getvar result Returns the type of encryption that is currently being used by the printer Example Description Instructs the printer to respond with the encryption value Syntax U1 getvar Result wlan encryption mode setvar choices off 40 bit and 128 bit Default off Example Description This command instructs the printer to turn encryption off Syntax U1 setvar wlan encryption mode off Result Sets the encryption mode to off P14 72 Mobile Printer CPCLProgramming Manual wlan essid getvar setvar This parameter refers to the printer s stored eSSID Set ting the eSSID to will set the printer in a broadcast mode where it will search for an access point to associ ate with Example U1 setvar wlan essid getvar result Returns the stored eSSID Example D
116. aders Result off setvar choices off Default off Example Description Instructs the printer to enable verbose headers Syntax U1 setvar ip pop3 verbose headers Result Turns verbose headers on All email headers will be printed Mobile Printer CPCLProgramming Manual P14 51 ip port getvar setvar This parameter refers to the port number that the TCP and UDP print service is listening on Normal TCP com munications from the host should be directed to this port getvar result Returns current TCP UDP port setting Example Description Instructs the printer to respond with the TCP UDP port number Syntax U1 getvar ip port Result 6101 setvar choices 1 65535 excluding 20 21 used for FTP 23 used for telnet 80 used for HTTP and 515 used for LPD Default 6101 Example Description Instructs the printer to set the TCP UDP port number to 6102 Syntax U1 setvar ip port 6102 Result Changes the TCP UDP listening port to 6102 ip remote type getvar setvar This parameter refers to the remote server address or name getvar result Returns the current remote server address or name Example 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 setvar choices
117. al A 33 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 Large production capacity which services the needs of many large and small media consumers including major retail chains world wide Media products that meet or exceed industry stan dards For more information call Zebra Technologies Corpora tion at 1 866 230 9495 and ask to speak to a Media Sales Representative A 34 Mobile Printer CPCLProgramming Manual APPENDIX continued MAINTENANCE SUPPLIES In addition to quality media provided by Zebra it is rec ommended that the print head be cleaned as prescribed in the User s Manual for individual models The following items are available for this purpose Print Head Cleaning Pads 10 pack Reorder No AN11207 1 For use with all Zebra mobile printers Print Head Cleaning Cards 10 pack Reorder No AN11208 1 Recommended use with MP50XX 2 M4 printers e Cleaning Kit with Alcohol Cleaning Card and Cotton Swabs Reorder No AT700 Recommended for use with MP50XX M2 and M4 printers Cleaning Kit with Alcohol Cleaning Pad and Cotton
118. alid values Any string up to 20 characters long Default private Example Description This command instructs the printer to set the SNMP set community string Syntax U1 setvar set community name private Result private1 continued on next page Mobile Printer CPCLProgramming Manual P14 57 ip snmp create_mib This parameter refers to creating a file of the printer s MIB do parameters Filename NOTE The filename is up to eight characters in length with a three character exten sion Example Description ip tcp enable getvar setvar This command instructs the printer to create an SNMP MIB file based in the current set get param eters in the printer s application The file will be stored on the printer s file system with the filename supplied as the parameter in the do command The MIB file can then be retrieved via Label Vista FTP or other wired wireless connection to the printer and passed onto any SNMP based util ity to provide a means to monitor and configure all the printer s pa rameters via SNMP U1 do ip snmp create_mib EXAMPLE1 MIB EXAMPLE1 MIB will be created in the printer s file system with the printer MIB information stored in it This parameter refers to the TCP socket protocol getvar result Returns the TCP protocol status on or off Example Description Syntax Result Inst
119. align top of form Valid values are 0 20 000 skio length Unit length printer advances past top of form Valid values are 5 50 SETFF Command Example The following example programs the printer to advance the paper until the eye sense mark is found or the paper has been advanced a maximum of 25 millimeters If an eye sense mark is found the paper will be advanced an additional 2 5 millimeters Input CSETFF LBL UTILITIES IN MILLIMETERS SETFF 25 2 5 PRINT Mobile Printer CPCLProgramming Manual P9 11 SET TOF Command This command is used to program the distance be tween 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 which ever is closer The specified value should be negative if the previous eye sense mark is used as reference or positive if the next eye sense mark is used The following are the maximum values in DOTS that can be specified for each model in Zebra s Mobile Printer line 2 3 79 Encore 2 119 127 MP5022 amp 5033 101 MP5044 133 ade 89
120. an leap password P14 81 wlan leap username P14 82 wlan operating mode P14 66 P14 83 wlan power save P14 84 wlan preamble P14 85 wlan signal strength P14 85 wlan station name P14 86 Graphics Commands P7 1 P7 8 IGNORE See ON FEED Command IN CENTIMETERS See Units Utility Commands IN DOTS See Units Utility Commands IN INCHES See Units Utility Commands IN MILLIMETERS See Units Utility Commands Interleaved 2 of 5 barcode P5 8 German Post Code P5 9 INVERSE LINE command P7 4 J JOURNAL Command P14 27 JOURNAL command P2 5 Justification Commands P8 3 P9 15 L Label Coordinate System P1 8 Label Height P1 3 Label Height maximum P2 2 Label Vista P1 9 P5 1 P9 4 P9 16 P13 1 P15 1 LAN Command P12 1 See a so Network Printers error messages See Error messages LAN gateway IP address setting P12 2 getting configuation settings P12 4 getting status of P12 3 hard resetting WLAN card P12 5 IP address P12 2 P12 5 P12 7 obtaining P12 6 saving P12 6 Mode setting LPD 12 3 P12 7 12 3 Remote address setting P12 2 soft resetting WLAN card P12 5 SSID setting P12 3 P12 7 subnet mask setting P12 3 TCP port setting P12 6 Language programminmg CPCL P1 1 EPL Il P1 1 setting P1 2 Mobile Printer CPCLProgramming Manual Index 7 INDEX continued ZPL P1 1 LEFT See Justification Commands LINE command P7 2 line print mode P9 1 P11 1 Line terminator characters P10 17 LMARGIN Command P9 7 Low Battery Time
121. appropriate header and checksum informa tion The printer then returns the card s response The S CARD command set is only valid on SC model printers with a printer application at version 41h or above The software version can be verified by performing a two key reset as described in Section 1 of this manual The number in the Software listing on the second report must end in 41h or above e g Software HTLK41h Format Command Operation Options where command S CARD The Operation argument indicates how to access the reader All options must be separated by a space unless stated otherwise The options may appear in any order The S CARD command must be issued using the printer utility session command U1 and terminated by a CRLF pair OxODOx04A Operation The Operation command is a required element An error will be returned if an invalid operation is specified see S CARD Command Response for error codes The pos sible Operation commands are ATR Each smart card has a unique Answer To Reset or ATR This ATR contains continued P10 34 Mobile Printer CPCLProgramming Manual information relevant to data transmis sion and the card itself This command response has the following form Command U1 S CARD Response ACK LENGTH ATR DATA CT DATA This command is used to send a com mand to the smart card The response from the card is returned
122. atically on mirror will be performed automatically when the printer is first powered on and at the interval defined by ip mirror freq Default off Example Description Enable the mirror process Syntax U1 setvar ip mirror auto on Result The printer will perform the mirror process on initial power up and at the repeated interval defined by ip mirror freq ip mirror fetch This command will force the mirror process to be per formed immediately do choices Any text string Example Description Perform the mirror process Syntax U1 do ip mirror fetch yes Result The printer will immediately contact the FTP server defined by ip mirror server log on with the defined username and password and look for mirror file updates Mobile Printer CPCLProgramming Manual P14 91 ip mirror freq Iype 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 The current mirror frequency in minutes Example Description Instructs the printer to respond with the frequency the mirror process is performed Syntax 11 getvar ip mirror freq Result 0 setvar choices value between 0 99 A value of 0 means the mirror process will only be per formed on power up Default 0
123. ble discoverable mode Syntax U1 setvar bluetooth discoverable off Result Printer will disable discoverable mode P14 8 Mobile Printer CPCLProgramming Manual bluetooth friendly_name 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 is sued getvar result Returns the friendly_name Example Description Get printer friendly_name Syntax U1 getvar pluetooth friendly name Result 01 11 0389 set var choices any string of 20 characters or less default printer serial number Example Description Set the friendly name Syntax 11 setvar bluetooth friendly name 16314A Results Friendly_name will become 16314A Local_name will become Encore 3 16314A Authentcation PIN will change bluetooth local_ name getvar This parameter is the local name that will be provided during service discovery It is a combination of the printer model name and the friendly_name getvar result Returns the printer s name Example Description Get printers local Syntax getvar bluetooth local_name Resu
124. by 10 resulting in 6 witha remainder of 2 Subtract the remainder from 10 In our example 10 2 8 The checksum is this final number 8 Append this to the end of your data Note that if the remainder was a zero your checksum should be zero INTERLEAVED 2 OF 5 SPECIFICATIONS Ideal Ideal Barcode Bar code Wide Narrow Narrow Checksum Symbology Type Input Length Characters Ratio Dot Width Calculation Interleaved 2015 120 5 Varies 0 9 only 2 5 1 2 See text Interleaved 2 of 5 I2OF5C Varies 0 9 only 251 2 See text with checksum German Post 20 56 11 12 0 9 2 511 2 10 13 or 14 weights 4 9 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 char Mobile Printer CPCLProgramming Manual P5 9 acter in the code which ensures that data remains intact Code 128 can use the entire ASCII 128 character set as well as other subsets available in the universal sym bology specification The three start and stop characters determine which character set to use The checksum for this bar code is located immediately before the stop character The bar code symbology specification con tains all the information on calculating this checksum For a short example we desi
125. ca tions parameters for both the printer and the device connected to it You can determine the printer s settings by turning the printer off then while holding the feed key down turning the printer back on It should respond by printing a report pause for about 3 seconds then print a second report If you look through these reports you will find an entry for the current baud rate setting A good progression for finding problems like this is to use the MPU EXE utility Connect the cable then turn the printer off Now run the MPU utility When this utility starts it should turn the printer on 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 response you probably have mismatched baud rates There seems to be missing or garbled characters sent the printer Some systems may alter characters before they are sent to the printer The 7 character for example Mobile Printer CPCLProgramming Manual APPENDIX continued may be taken as an escape for the following charac ter You can place the printer in a DUMP mode to see exactly what characters are being received In this mode any character that comes into the printer is printed in both its ASCII form and as a hex value To place the printer in dump mode turn the printer off hold down the FEED key and turn the printer on When a report begins to print release the feed key After t
126. cc CIE 77 94 45 90 180 2701360 4501 5 24 46 922 T 21 FIXED WIDTH FONTS The following table contains the font widths for the fixed width fonts Only 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 A 28 Mobile Printer CPCLProgramming Manual APPENDIX continued PROPORTIONAL WIDTH FONTS FONT WIDTH IN DOTS FONT 1 SIZE 0 0 is 19 22 126 291151 19 2 1 3 26 25 E gar queque X cfle 2 12 2 20 25 eem De ce CE 23 p Pt 10 22 23 14 p 20 18 Ep B 18 1 24 16 16 13 C io 19 17 26 11 14 pp 18 26 127 17 HEE 17 19 23 24 is gt E 1 FONT WIDTH DOTS FONT 4 SIZES 0 1 6 7 8 9 12 123 43 28 14 2 L L1 LG 3 29 39 ajal 5 4 EO OCELE ER ET WS 4 23 23 30 26 Sh Rf 23 28 29
127. charac ter styles to strings printing them with uniform spacing on the same text line This command can be used in combi nation with scalable fonts See Scalable Concatenation Commands P3 8 Format command xj ty font size offset data font size offset data lt ENDCONCAT gt where command Choose from the following CONCAT Horizontal concatenation VCONCAT Vertical concatenation Horizontal starting position D Vertical starting position font Name number of the font size Size identifier for the font 07520 Unit value to offset text from the starting position Used to align individual text strings or create superscript subscript characters aata Text to be printed lt ENDCONCAT gt Terminates concatenation Mobile Printer CPCLProgramming Manual TEXT Example Input CCONCAT LBL 200 200 210 1 CONCAT 75 75 425 43012 425 34 Mobile Printer CPCLProgramming Manual P3 9 MULTILINE ML Commands MULTILINE ML allows you to print multiple lines of text using the same font and line height P3 10 Format command height font size aata aata lt ENDMULTILINE gt where command Choose from the following MULTILINE Prints multiple lines of text or ML height Unit height for each line of text text Text command TEXT VTEXT etc
128. commands The Encore 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 PW unit width If the size of the receipts should remain a constant and the paper stock does not have a black bar to denote the top of form use the PAGE HEIGHT or PH command The printer will then partition the data you send into fixed page sizes U1 PH unit height Special ASCII Characters Form Feed ASCII Character 0xOc will advance the paper to either the next index mark or the length specified by the PAGE HEIGHT SETFF or SET TOF commands The index mark is either a black line on the back of the stock or the gap between labels See GAP SENSE or BAR SENSE in Section 12 of this manual Backspace ASCII Character 0x08 acts as a non destructive backspace The character after the backspace character will appear on top of the previous character P9 10 Mobile Printer CPCLProgramming Manual SETFF Command The SETFF command is used to align top of media to printhead Once this command is executed the align ment will occur when feed key is pressed form feed character 0 0 is issued FORM command is issued Format lt gt lt UTILITIES gt command inax leed skip length lt PRINT gt where command SETFF max feed Maximum unit length the printer advances searching for the next eye sense mark to
129. contains application information The last digits in the application number indicate the software version e g Software HTLK40d indicates a software version of 40 If no second report appears there is no application loaded The Wireless Communications report will appear if a Short Range Radio SRRF infrared IrDA or wireless LAN RF LAN option has been installed in the printer no wireless options are installed the Wireless Communi cations Section will consist of a blank line The RF LAN Information section will only appear on Net work Printers units equipped with a WLAN card Net work printers are covered in detail in Section 12 of this manual The Label section shown in the second report reports the maximum size label that can be printed based on a printer resolution of 203 dots inch 8 dots mm In the example the Label Height is 2224 dots which means for a label width of 576 dots 2 8 inches or 72 mm you can print labels up to 10 9 inches 278 mm long Reducing the label width results in a correspond ing increase in the maximum label length Mobile Printer CPCLProgramming Manual P1 3 GETTING PRINTER INFORMATION EXAMPLE Zebra Encore3 79 15 11 12 00 Printhead Test CHK FFFF 00 10 0042 HTE27915 18 Testing Memory Memory tested and Baud Rate 19200 BPS In activity Timeout Secs Low battery Shut down 168 End of r
130. contents of a command file U1 setvar wlan essid myessid 01 setvar wlan encryption mode 128 bit 01 setvar auth type 01 setvar wlan encryption index U1 setvar wlan encryption_key1 12345678901234567890123456 01 setvar wlan encryption_key2 23456789012345678901234567 01 setvar wlan encryption_key3 34567890123456789012345678 01 setvar wlan encryption 4 45678901234567890123456789 U1 setvar ip mirror auto off 0 200 200 240 1 LABEL PAGE WIDTH 600 T 0 3 84 17 Network settings updated shared 9 17 continued on next page Mobile Printer CPCLProgramming Manual P14 89 In this example the printer will print a label with the text Network settings updated after it downloads this file and updates its network settings Refer to the following pages for exposition of the ip mirror variables P14 90 Mobile Printer CPCLProgramming Manual ip mirror auto getvar setvar This parameter is used to enable or disable the file mir roring process on the printer for the initial power up se quence and at repeating intervals defined by ip mirror freq getvar result The current mirror setting Example Description Instructs the printer to respond with the value of the FTP mirror mode Syntax 11 getvar ip mirror auto Result off setvar choices off mirror will not be performed autom
131. d ad dress x number of times The address to be pinged is set by setvar ip remote ip address number of times to ping Example Description This command instructs the printer to ping the address set by the jo remote parameter ten times Syntax U1 do ip ping remote 10 Result Printer creates a report similar to the following Pinging 10 14 4 162 10 times Results 10 of 10 succeeded Min 20 Max 40 Avg 22 min max times in mSec P14 46 Mobile Printer CPCLProgramming Manual ip pop3 enable setvar This parameter refers to whether the printer will query a mailbox for mail getvar result This will return the POP3 enable status on or off Example Description This command instructs the printer to respond with the POPS setting Syntax U1 getvar ip pop3 enable Result on on off Default off Example Description This command instructs the printer to disable the POP3 querying Syntax U1 setvar ip pop3 enable on Result This will turn on the POP3 query ing upon cycling the power or issuing the device reset setvar choices ip pop3 password getvar setvar This parameter refers to the mailbox password This only applies if ip pop3 enable is set to getvar result Returns the password set in the printer Example Description Instructs the printer to respond with the POP3 password value
132. d using the Label Vista application Refer to pg P1 8 and the Label Vista documentation for more information cancel Communications Diagnostics Mode 1 Turn the printer OFF 2 Wait 5 seconds 3 Turn the printer ON Mobile Printer CPCLProgramming Manual P1 7 LABEL COORDINATE SYSTEM The x and y coordinates are expressed here in terms of dots Coordinates are for 200 dot per inch printers On 200 d p i printers 8 dots either horizontally or verti cally equal 1 millimeter and 203 dots equate approxi mately to 1 inch Coordinates for 300 dot per inch printers On 300 d p i printers 12 dots equal 1 millimeter and 305 dots equate approximately to 1 inch 831 0 1246 0 383 0 r mum 447 116700 575 0 862 0 4 rs 9 zl E Bs i N SEO e N pn X o 5 E a Fes EK 222321 P 25 5 Sepe es i I y S T LO go 2 55 5 10 Notes 1 Coordinates refer to the actual printing area of the printers 2 the available label height which can vary with the resident application See Getting Printer Information Page 1 3 P1 8 Mobile Printer CPCLProgramming Manual LABEL VISTA Label Vista is a stand alone program
133. data where command Choose from the following type P5 16 BARCODE or B Prints bar code horizontally VBARCODE Prints bar code vertically or VB Symbology UPC A UPC E EAN JAN 13 EAN JAN 8 Code 39 Code 93 Ext 93 Interleaved 2 of 5 Interleaved 2 of 5 with checksum German Post Code Code 128 Auto UCC EAN 128 Codabar MSI Plessy Postnet FIM Choose from the following table use UPCA UPCA2 UPCA5 UPCE UPCE2 UPCE5 EAN13 EAN132 EAN135 82 85 39 39 9 9 93 120 5 I2OF5C I2OF5G 128 UCCEAN 128 CODABAR CODABAR16 MSI MSI10 MSI1010 MSI1110 POSTNET FIM Mobile Printer CPCLProgramming Manual width ratio Unit width of the narrow bar Ratio of the wide bar to the narrow bar Refer to the table in Appendix E for appro priate settings 0 1 5 1 20 2 0 1 26 2 6 1 1 2 0 1 21 2 1 1 27 d 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 01 25 2 511 Note The ratios the Appendix are suggested for best results however any ratio can be assigned height Unit height of the bar code 7 Horizontal starting position D Vertical starting position aata Bar code data BAR CODE Example Input CBARCODE LBL 200 200 210 1 BARCODE 128 1 1 50 150 10 HORIZ TEXT 7 0 210 60 HORIZ VBARCODE 128 1 1 50 10 200 VERT 7 0 60 140 VERT HORIZ
134. de Narrow Narrow Checksum Symbology Type Input Length Characters Ratio Dot Width Calculation UPC A UPCA 11 or 12 digits 0 9 only 2 1 2 mod 10 UPC A plus 2UPCA2 13 digits 0 9 only 21 2 mod 10 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 13 digits 0 9 only 21 2 10 UPC E UPC E plus 5UPCE5 110r 16 digits 0 9 only 21 2 mod 10 EAN JAN 13 13 12 13 digits 0 9 only 2 1 2 mod 10 EAN JAN 13 mod 10 plus 2 EAN132 14 digits 0 9 only 2 1 2 EAN13 EAN JAN 13 mod 10 plus 5 EAN135 17 digits 0 9 only 2 1 2 EAN13 EAN JAN 8 EAN8 6 7 or 8 digits 0 9 only 2 1 2 mod 10 _ M plus 2 EAN82 9 digits 0 9 only 2 1 2 mod 10 EAN JAN 8 plus 5 EAN85 12 digits 0 9 only 2 1 2 mod 10 EAN8 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 period space dollar sign forward slash plus and percent There is also a special charac ter called S S used as a start stop character The F39 and 9 typ
135. e 128 ASCII 1 51 1 two mod 47 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 Therefore to prevent this problem you must keep the length of data to a constant and perform an error check ing routine on the decoding program to determine if the data is correct Only the digits 0 9 can be encoded and there should P5 8 Mobile Printer CPCLProgramming Manual an even number of digits in the data If there is an odd number of digits the printer will automatically insert a zero 0 at the beginning of the bar code There are two bar code varieties with a checksum Interleaved 2 of 5 with checksum and German Post Code German Post Code has fixed length either 12 or 14 characters including checksum Here is an example how to calculate modulo 10 checksum Step 1 To calculate the checksum first ensure that you are starting with an odd number of digits in the data If not add a zero 0 to the beginning of the data Step 2 Multiply every other digit by 3 and add up the numbers So if your data was 43827 your calcula tion should be 4 x 3 3 8x 3 2 7 x 3 62 Step 3 Divide this number
136. e INVERSE2 LBL portions of the text field created after the INVERSE LINE command remain black hence invisible even though placed within the IN VERSE LINE area Format command Wol tx yj ty with where command Choose from the following INVERSE LINE Prints a line over an existing or IL field to invert the image X coordinate of the top left corner Wol Y coordinate of the top left corner X coordinate of top right corner for horizontal bottom left corner for vertical yj X Y coordinate of top right corner for horizontal bottom left corner for vertical width Unit width or thickness of the inverse line P7 4 Mobile Printer CPCLProgramming Manual INVERSE LINE Examples Input 1 CINVERSE1 LBL 200 200 210 1 CENTER TEXT 4 45 SAVE TEXT 4 95 MORE INVERSE LINE 0 45 145 45 45 INVERSE LINE 0 95 145 95 45 Output 1 Input 2 CINVERSE2 LBL 200 210 1 20 123 45 0 70 678 90 0 350 40 90 0 120 5432 10 Mobile Printer CPCLProgramming Manual P7 5 PATTERN command is used with the LINE 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 Ver
137. e message defined in the alert parameter P10 24 Mobile Printer CPCLProgramming Manual Magnetic Card Reader 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 MCR command can be issued in a label 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 To make the MCR active on power up the MCR command can be issued from autoexec bat or run bat files The RXD LED of the printer will blink while the MCR is active When the MCR times out or after a successful read provided the MCR is not in MULTIPLE read mode the will deactivate thereby returning the RXD LED back to its normal state Format commana time out options Where command MCHR time out time out is the inactivity shut down time in 1 8th of a sec ond For example time out 80 for 10 second inactivity time out 10 8 or time out 160 for 20 second inactivity time out 20 seconds 8 The MCR timer starts ticking once the last option of MCR command is received by the printer When MCR times out it will not read a new card until anew MCR com Mobile Printer CPCLProgramming Manual P10 25 Track Options mand is issued The only exception
138. e printer to set the authentication type to Shared Key Syntax U1 setvar wlan auth type shared Result The authentication type will be set to Shared Key after power cycle Mobile Printer CPCLProgramming Manual P14 65 wlan bssid getvar Returns the MAC address of the access point with which the printer is associated This value is only relevant when wlan associated returns yes getvar result MAC address of access point Example Description Get the MAC address of the AP Syntax U1 getvar wlan bssid Result 00 d0 f2 57 13 3d wlan current_essid getvar This parameter refers to the eSSID of the network cur rently associated with the printer The eSSID is returned only if the printer is associated with an access point getvar result This will return the eSSID that the printer is asso ciated with in Infrastructure mode When the printer is in Ad Hoc mode it will return the stored eSSID For more information on Infrastructure and Ad Hoc modes see wlan operating_mode Example Description This command instructs the printer respond with the current eSSID Syntax U1 getvar wlan current_essid Result ZebraNet Note This parameter is not supported in units using a Frequency Hopping Spread Spectrum FHSS radio The wlan essid parameter can be used in stead P14 66 Mobile Printer CPCLProgramming Manual wlan current tx rate getvar T
139. ed before making the next print attempt number of retries n Specify how many times the printer should attempt to print the label The default printer configuration is ON OUT OF PAPER PURGE 2 ON OUT OF PAPER Command Example This example instructs the printer to attempt to print the label twice Input COOP LBL 200 200 150 1 ON OUT OF PAPER WAIT 2 TEXT 5 0 0 20 MAKE TWO ATTEMPT FORM PRINT Mobile Printer CPCLProgramming Manual P8 15 Your printer be configured to ignore form feed reprint the last label when the feed key is pressed or when it receives a form feed character 0 0 Format command faction where command ON FEED faction Choose from the following IGNORE Don t take any action when the feed key is pressed or when the form feed character is received FEED Feed to top of form when the feed key is pressed or when the form feed character is received REPRINT REPRINT the last label when the feed key is pressed or when the form feed character is received In the following example the command file shown was sent to the printer only once The two additional labels were produced by pressing the printer FEED key once for each additional label P8 16 Mobile Printer CPCLProgramming Manual Input CONFEED LBL 200 200 300 1 ON FEED REPRINT output PRESS FEED KEY TO REPRINT THIS TEXT PRES
140. eded by the sign Counts of 9 gt 0 will wrap to 9 Counts of 00 gt 99 will wrap to 00 Leading zeros will be retained Up to 3 COUNT commands can be used in a label file The numeric data incremented decremented is contained in the TEXT or BARCODE command that immediately preceded the COUNT command Format command numeric value where command COUNT numeric value integer value up to 20 charac ters The value can be preceded by a sign if decrementing of the TEXT BARCODE value is desired Leading zeros will be retained in the output 5 20 Mobile Printer CPCLProgramming Manual COUNT Example Input CCOUNT LBL 200 200 210 3 Print 3 labels CENTER TEXT 40 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 IESTING 901 e Value is ESTING 002 Value is 12345 TESTING 003 Barcode Value is 123456769 Mobile Printer CPCLProgramming Manual P5 21 TWO DIMENSIONAL CODES Introduction A two dimensional bar code can be regarded as a por table 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 If the computer system was unavailable for any reason the information you were looking for would also be un availab
141. efault Zebra QL 320 Example Description Change mirror path to Syntax U1 setvar ip mirror path zebra ql Result The next time the mirror process is performed the printer will look for the updates in the zebra ql rela Mobile Printer CPCLProgramming Manual P14 93 ip mirror server Iype getvar setvar This parameter defines the FTP server that will be used for the mirror process getvar result The current mirror server address Example Description Instructs the printer to respond with the FTP server used for the mirror process Syntax 11 getvar ip mirror server Result 0 0 0 0 setvar choices Either address DNS resolvable up to 40 characters length Default 0 0 0 0 Example Description Change mirror server to 192 168 1 1 U1 setvar ip mirror server 192 168 1 1 Result The next time the mirror process is performed the printer will connect to the FTP server at address 192 168 1 1 ip mirror username getvar setvar This parameter defines FTP username that will be used for the mirror process getvar result The current username Example Description Instructs the printer to respond with the value of the FTP user name Syntax 11 getvar ip mirror username Result username setvar choices Any text string up to 20 characters in length Default us
142. en lt display gt Begin card named netset with no and a 10 second delay go back the main card card id netset title ontimer main gt timer value 100 timer Display the IP adaress Xp IP S vnd zo ip addr p Line Break lt gt continued on next Mobile Printer CPCLProgramming Manual P13 1 Display PORT number lt gt Port vnd zo ip port lt p gt Line Break lt br gt Display the ESSID lt p gt eSSID vnd zo wlan current_essid lt p gt Line Break lt br gt Display the associated status lt p gt Associated vnd zo wlan associated lt p gt Display a link back to the main card lt p gt lt a href main gt back lt a gt lt p gt Close the card tag lt card gt Begin a card named main with a title and refresh rate of 1 second lt card id main title Zebra 320 Status ontimer main gt timer value 10 gt lt timer gt Line Break lt br gt Display battery voltage and battery status lt p gt Battery vnd zo power voltage V 5 20 status lt gt Line Break lt br gt Display head latch status lt p gt Latch vnd zo head latch lt p gt Line Break lt br gt Display paper out status and a space after it lt p gt Paper S vnd zo media status lt p gt Insert four spaces and put a link the card lt p gt lt a href netset gt more lt a
143. eport Zebra Encore3 79 00 11 29 00 Serial Number XXEC O 10 0042 Program HTE2 7915 18 Chksum 1168 Software 28 Chksum A7EB Ver L4 R79 15 U126 B15 T19 A00 Cable Communications 19200 BPS N 8 1 Handshake Xon Xoff har Wireless Communications RF LAN INFORMATION Release 3 23 Date 11 21 2000 ipAdr 10 14 2 204 fwersion 54 40 000720 swWersion Version 4 40 MAC addr 0 40 8 8 35 05 associated YES Device ID 00 10 0042 subnet 255 255 255 0 protocol LPD powermode SAVE essID ZebraNet DHCP OFF DHCP_SAVE OFF 10 14 2 224 e End of First Report Unit Serial Number Application Number Report appears only on units with wireless options installed see RF LAN section below and next page Units with no wireless options will print an emply line and resume report RF LAN Section Network Printers only Refer to Section 12 Second report continues on P1 5 Mobile Printer CPCLProgramming Manual GETTING PRINTER INFORMATION EXAMPLE CONT Wireless Communications Section with Short Range Radio SRRF Wireless Option Installed BPS M andshake hardware Wireless Communications NO LINK ATTEMPTED SRRF Version 5 17 12W Release Date 05 08 00 Src Address 1140850687 Dest Address Data Retries 5 Packet Size 1000 RF Baud 9600 Max R
144. eports the current time if valid an eight character null terminated ASCII string This com mand will be ignored by printers that are not equipped with a real time clock module Format lt gt UTILITIES command lt PRINT gt where command GET TIME Printer output hh mm ss 0 hh hours 00 23 mm minutes 00 59 ss seconds 00 59 null terminator OOH Mobile Printer CPCLProgramming Manual P10 19 SET DATE Utility This command sets the date in the real time clock mod ule Date should be a valid date and be given in the specified format This command will be ignored by print ers that are not equipped with a real time clock module Format lt gt lt UTILITIES gt command date stamp lt PRINT gt where command SET DATE mm month 01 12 dd day 01 31 yyyy year 1990 2089 P10 20 Mobile Printer CPCLProgramming Manual Utility This command reports the current date if valid as eight character null terminated ASCII string This com mand will be ignored by printers that are not equipped with a real time clock module Format I UTILITIES command PRINT where command GET DATE Printer output mm dd yyyy o mm month 01 12 dd day 01 31 yy year 1990 2089 V0 null terminator OOH Mobile Printer CPCLProgramming Manual P10 21 Printin
145. er I Comtec Info Systems continued P10 52 Mobile Printer CPCLProgramming 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 proto col via cable If the BHT PROTOCOL CABLE command is 70 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 Format Command mode where Command BHT PROTOCOL mode BHT This mode establishes that data will be sent in BHT protocol mode CABLE This mode enables BHT or BHT IR protocol via cable If the BHT PROTO COL CABLE command is detected the BHT PROTOCOL BHT command sends data in the BHT mode BHTIR Sends data in the BHT IR mode continued Mobile Printer CPCLProgramming Manual P10 53 BHT PROTOCOL Command Examples Example Cable printing with BHT protocol Using Cable with BHT protocol Input PROBHT CBL DF AUTOEXEC BAT UTILITIES SRF ACCESS BHT PROTOCOL BHT BHT PROTOCOL CABLE BHT BAUD 19200 BHT MODE STRIP ADD CRLF END SRF ACCESS PRINT EXAMPLE IR printing with BHT protocol Print using IR communications with BHT protocol INPUT PROBHT IR DF AUTOEXEC BAT UTILITIES SRF ACCESS BHT BAUD 19200 BHT PROTOCOL BHT BHT MODE STRIP ADD CRLF END SRF ACCESS continued P10 54 Mobile Printer CPCLProgramming Manual
146. er low battery timeout will be set to 60 P14 34 Mobile Printer CPCLProgramming Manual power low_battery_shutdown getvar This parameter refers to the low battery shutdown level getvar result Current low battery shutdown level in volts Example Description Get current low battery shutdown level Syntax U1 getvar power low battery shutdown Result 6 47 166 power low_battery_warning getvar This parameter refers to the low battery warning level getvar result Current low battery warning level in volts Example Description Get current low battery warning level Syntax U1 getvar power low_battery_warning Result 6 86 176 power percent_full getvar This parameter refers to the battery status getvar result Battery status as percent full Example Description Get current battery status Syntax U1 getvar power percent_full Result 43 Full power status getvar This parameter refers to the battery status getvar result ok low Example Description Get current battery status Syntax U1 getvar power status Result ok continued on next page Mobile Printer CPCLProgramming Manual P14 35 power voltage getvar This parameter refers to the battery voltage getvar result Battery voltage Example Description Get current battery voltage Syntax U1 getvar power
147. eration allows manual specification of the printer s TCP IP address See the DHCP op eration for a description of automatic address assign ment 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 sepa rated by dots E g 100 150 200 150 is a valid ad dress This value will most likely need to be assigned by the administrator of the network the printer will op erate on If an invalid address is specified this opera tion has no effect other than to print an error mes sage Syntax IPADDR IP Address Where IP Address nnn nnn nnn nnn Each nnn may range from O to 255 Example U1 LAN IPADDR 90 80 70 60 GATEWAY IPADDR This command can be used to set the gateway IP address of the printer Available in printer application versions 30A and higher Syntax GATEWAY IPADDR IP Address Where address is the dotted decimal representa tion of the address For example 10 14 2 25 Example Ut LAN GATEWAY IPADDR 12 15 10 3 REMOTE IPADDR This command can be used to set the remote IP address of the printer Available in printer application versions 30A and higher Syntax REMOTE IPADDR IP Address P12 2 Mobile Printer CPCLProgramming Manual Where address is the dotted decimal representa tion of the address For example 10 14 2 25 Example U1 LAN REMOTE IPADDR 12 15 10 3 SUBMASK This command can be used to set the subset
148. ername Example Description Change mirror username to test Syntax U1 setvar ip mirror username test Result The next time the mirror process is performed the printer will use the FTP username test P14 94 Mobile Printer CPCLProgramming Manual PRINTER CONFIGURATION AND SETUP Printer Com Port Setup Read Files Printer Settings Network Settings Network Setup FTP File Transfer Mirror Ping Utilities Update Printer Paper Cut Paper 1 Send File 2 Send Font 3 Send Picture 4 Send Autoexec 5 Send as Run bat 6 Send as 7 Send all Files in Label 8 Diagnostic Send rmi caen Por 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 You should first establish communi cations between your printer and a PC running label vista by using the Com Port Setup menu detailed below Port Sets up the communications port via the ComPort 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 Come selections allow bi directional serial communications with the printer Note The LPT1 write read LPT1 write COM2 read mc options a
149. es allow the use of carriage return line feed and null characters The checksum for this bar code is located as the last or least significant digit of the decoded bar code To assure data integrity in your application use a bar code with a checksum The printer will automatically supply P5 6 Mobile Printer CPCLProgramming Manual this digit if the user selects 39 a F39C bar code Check Character Numerical Value Table Char Value Char Value Char Value Char Value 0 0 12 24 36 1 1 D 13 P 25 37 2 2 14 26 38 3 3 F 15 R 27 39 4 4 G 16 S 28 40 5 5 H 17 T 29 41 6 6 18 U 30 42 7 7 J 19 V 31 full 43 8 8 K 20 W 32 full 44 9 9 L 21 X 33 full 45 10 M 22 Y 34 full 46 11 23 2 35 Full represents 9 F39C for Full ASCII Refer to the full bar code symbology specification for complete information on checksum calculation Fora short example take an example bar code with the data CODE 39 Step 1 Assign a value to each character per the Char acter Numerical Value Table above C 12 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 Step 4 Referring to the table 27 is the character R Therefore the checksum in the bar code should be R The final code reads CODE 398 when it is decoded CODE 39 3 OF 9 SPECIFICATIONS Ideal
150. escription Syntax Result Instructs the printer to respond with the stored eSSID value U1 getvar wlan essid 247 setvar choices 26 character text string can be alpha numeric Default 247 Example Description Syntax Result Instructs the printer to set the eSSID to ZebraNet U1 setvar wlan essid ZebraNet This will set the eSSID to ZebraNet Mobile Printer CPCLProgramming Manual P14 73 wlan international_ mode get var set var This parameter refers to International mode in 802 11 FH Frequency Hopping and 802 11b wireless cards Set ting this parameter to on allows a printer to operate in wireless networks with settings different from standard US Canada wireless network settings Setting this pa rameter to off instructs printer to operate according to US Canada wireless network standards Two radio cards are currently supported Symbol Spectrum24 802 11b and Symbol Spectrum24 802 11 Frequency Hopping FH Cisco radio cards are not currently supported NOTE This parameter must be set according to the wireless network infra structure used Setting this parameter to on for an 802 11b card without hav ing active wireless access points with non US Canada settings stops the printer from communicating via its 802 11b card Setting this parameter to on for 802 11 FH radios causes the printer to take an additional 4 seconds to initiate the 802 11
151. et the units to advance to the default for that printer Use caution when implementing the PRESENT AT command with preprinted media The media may not reposition itself exactly when it is retracted prior to resum ing printing and the amount of this error is not repeatable from label to label A buffer zone of 18 dots is recom mended at the beginning and trailing edge of each re ceipt if PRESENT AT is used PRESENT AT units to advance after print U1 PRESENT AT For printers with a cutter the CUT AT command will advance the paper cut then retract back to not waste paper Using CUT AT without any argument will set the units to advance to the default for that printer P9 14 Mobile Printer CPCLProgramming Manual CUT AT units to advance after print 101 CUT AT 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 U1 CUT U1 PARTIAL CUT These commands are discussed more fully in Section 8 of this manual Bar Codes Graphics and Lines Bar Codes The printer can create any 1 D bar code in line print mode The BARCODE command works just like it would in a label file See Section 5 of this manual on the BAR CODE command for more details The BARCODE command
152. ext line Text line Mobile Printer CPCLProgramming Manual P9 5 Moving With and 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 X unit value unit value XY x unit value unit value RX unit x value to move relative to present position RY unit value to move relative to present position U1 RXY unit x value to move relative to present position unit y value to move relative to present posi tion This command is useful for moving across the paper without using extra spaces or moving down the paper without needing to set the SETLF command to a specific value Negative values cannot be used for Y coordinates P9 6 Mobile Printer CPCLProgramming Manual LMARGIN Command The LMARGIN command sets the left margin in line print mode Instead of issuing several X commands or inserting spaces the LMARGIN command moves every thing over the number of dots you choose U1 LMARGIN dots to offset from left This function can be used with the PAGE WIDTH com mand LMARGIN will move the left margin over the set number of dots from the automatically calculated side of the paper Mobile Printer CPCLProgramming Manual P9 7 SETBOLD Command The SETBOLD command will make text bolder and slightly wider The SETBOLD command takes one oper and to set how black the text should be made
153. font group is used in a text command the printer will use the argestfont 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 When specified in the TEXT command the font parameter is specified as FG and the size parameter is specified as the fg Note that a user can also specify an FG command within a CONCAT ENCONCAT command Format command fn fs fn fs where command FG 07 Font group number Up to 10 font groups can be specified Valid font groups range from 0 to 9 tn Name number of the font fs Size identifier for the font NOTE Up to 10 font number font size pairs can be assigned to a font group P3 6 Mobile Printer CPCLProgramming Manual In the example the descriptions will be printed with the largest font in the specified font group that is capable of fitting the requested text in a 250 dot label field Input CFG LBL 0 200 200 250 1 Specify fonts 0 0 7 0 5 0 4 0 as members of font group 3 FG300705040 VT FG 3 10 250 Ketchup VT FG 3 70 250 Fancy Ketchup VT FG 3 120 250 Extra Fancy Ketchup VT FG 3 180 250 Large Size Extra Fancy Ketchup FORM PRINT a P Q gt 5 t Fancy Ketchup Mobile Printer CPCLProgramming Manual P3 7 TEXT CONCATENATION COMMANDS Text concatenation allows you to assign different
154. from 99 gt 200 Contrast to Tone level equivalents Contrast 0 Tone 0 Contrast 1 Tone 100 Contrast 2 Tone 200 Contrast 3 No equivalent 8 2 Mobile Printer CPCLProgramming Manual JUSTIFICATION Commands Alignment of fields can be controlled by using the justifi cation 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 ena where command Choose from the following CENTER Center justifies all subsequent fields LEFT Left justifies all subsequent fields RIGHT Right justifies all subsequent fields ena End point of justification If no parameter is entered justification commands use the printhead s width for horizontal printing or zero top of form for vertical printing JUSTIFICATION Example Input CJUSTIFY LBL 0 200 200 210 1 CENTER 383 TEXT 4 0 075 LEFT TEXT 4 0 0 75 RIGHT 383 TEXT 4 0 0 5 FORM PRINT Mobile Printer CPCLProgramming Manual P8 3 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
155. g a PA PT 40x or another Zebra printer using ZPL with a Zebra mobile printer EPL Zebra Desktops R402 When an installation already emulation RFID printer TR 220 uses EPL the most commonly available on PS 21xx Series used Zebra language as a QL Encore standard language and needs to or Cameo maintaina consistant language series and for all thermal printers std on RW If you are replacing Eltron amp QL plus Transport or Xport mobile series printers a Zebra mobile with an EPL emulation will ease the transition Note QL Plus and RW Series printers have EPL and ZPL emulation built into their operating system See the device languages command under the Device Parameters topic in Section 14 for more information on setting programming languages with these products P1 2 Mobile Printer CPCLProgramming Manual 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 fol lowing 1 Turn the printer OFF 2 While holding the FEED key down turn the printer ON 3 When printing begins release the FEED key The printer prints a line of interlocking x characters and then produces two reports The first report indicates the printer model ROM version serial number baud rate etc The second report
156. g a Time Stamp To print a time stamp on a label use any text command and insert TIME in place of the text to be printed Example Input TIME LBL 0 200 200 210 1 TEXT 4 0 0 100 TIME FORM PRINT Output 14 47 23 P10 22 Mobile Printer CPCLProgramming Manual Printing Date Stamp To print a date stamp on a label use any text command and insert DATE in place of the text to be printed Example Input CDATE LBL 0 200 200 210 1 TEXT 4 0 0 100 DATE Output 02 24 1998 Mobile Printer CPCLProgramming Manual P10 23 PAPER JAM Utility This command establishes the parameters that allow the printer to report a paper jam This command works in conjunction with the Get Extended Printer Status es cape command detailed in Section 11 Format I lt UTILITIES gt command method bar distance alert mes sage PRINT where command PAPER JAM method PRESENTATION BAR GAP This parameter establishes which sen sor will be used to detect a paper jam bar distance Maximum distance within which index mark of next label is expected alert message ALERT Paper jam detected The alert parameter is optional Once the PAPER JAM command has been set for ex ample as part of a config sys file the Get Extended Printer Status escape command will report back any conditions that do not meet the bar distance parameter and the printer will send th
157. ges shorter than 84 characters will be padded with this character Tags used when UPS5 is turned off Tag Definition Default Value MSG Low priority message field empty maximum of 84 characters overwritten by UPS5 tags Tags used when 55 is turned Tag Definition Default Value LPMS Low priority message header gt RS HEAD Transportation data 01 GS 98 format header TN Tracking Number GS SCAC Standard Carrier Aloha Code UPSN 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 GS ST Ship to state GS EXTRA Extra user defined fields empty EOT End of transmission character 0x004h GS Field separator character GS 0x01Dh RS Format type separator RS Mobile Printer CPCLProgramming Manual P6 7 Please see the document to Bar Coding with UPS OnLine for Customers Generating Bar Code Labels Version amp available from the United Parcel Service for more information on creating labels for the UPS shipping system MAXICODE Examples Basic example with minimal required fields to print a bar code 0 200 200 600 1 JOURNAL B MAXICODE 20 20 CC 12345 MSG This 15 MAXICODE pri ority message SC 12345 POST 2886 ENDMAXICODE PRINT Decodes to 028860000 GS 057 GS 057 GS
158. gt lt p gt Close the card tag lt card gt Close the display tag lt display gt Close the WML tag lt wml gt P13 2 Mobile Printer CPCLProgramming Manual Example 1 looks like this lt wml gt lt display gt lt card id netset title ontimer main gt lt timer value 100 gt lt timer gt lt p gt IP S vnd zo ip addr lt p gt lt br gt lt gt Port vnd zo ip port lt p gt lt br gt lt p gt eSSID vnd zo wlan current_essid lt p gt lt br gt p Associated vnd zo wlan associated lt gt lt p gt lt a href main gt back lt a gt lt p gt lt card gt lt card id main title Zebra OL 320 Status ontimer main gt lt br gt timer value 10 timer lt p gt Battery vnd zo power voltage V S vnd zo power status lt p gt lt br gt lt p gt Latch vnd zo head latch lt p gt lt br gt lt p gt Paper S vnd zo media status lt p gt lt p gt a href netset gt more lt a gt lt p gt lt card gt lt display gt lt wml gt continued on next page Mobile Printer CPCLProgramming Manual P13 3 LCD Output for Example 1 Zebra QL 320 Status Battery 7 80V ok Latch ok Paper ok more IP 8 1100 14 4 97 Peicic 82 0 eSSID ZebraNet Associated yes back Note The LCD screen is 20 characters across and 4 lines P13 4 Mobile Printer CPCLProgramming Manual 2
159. h active transition on this line will cause the printer to turn ON A high active to low transition on this line will cause the printer to turn OFF only if it is configured to do so The factory default con figuration enables power off on high to low transition on DSR This setting can be changed using the MP Utilities program NOTE A minimum of 500 milliseconds delay is required after DTR has been set high to allow the printer to power up and fully initialize prior to sending data This is true regardless of the state of CTS if hardware handshaking is used Failure to provide this delay may cause missed characters at the start of the file The printer will stay ON for as long as DSR is high ac tive unless it reaches low battery shut down point or it receives a command to shut down Please note that the inactivity time out is disabled while DSR is high active P15 4 Mobile Printer CPCLProgramming Manual POWER MANAGEMENT continued 2 Short Range Radio Control The short range radio is enabled when DSR line is low inactive or when the host to printer cable is discon nected In this case the printer will attempt to communi cate 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 communi cate over the RX TX line of the serial port For printers that are not equipped with a short range radio the host terminal mu
160. h Ii J 01 23456789 01 234567800 5 The TEXT command is used to place text a label This command and its variants control the specific font num ber and size used the location of the text on the label and the orientation of this text Standard resident fonts can be rotated to 90 increments as shown in the ex ample Format command font size ty data where commana Choose from the following TEXT Prints text horizontally or T VTEXT Prints text vertically rotated 90 or VT degrees counterclockwise TEXT90 Same as VTEXT above or T90 TEXT180 Prints text upside down rotated or T180 180 degrees counterclockwise TEXT270 Prints text vertically rotated 270 or T270 degrees counterclockwise font Name number of the font size Size identifier for the font Horizontal starting position D Vertical starting position aata The text to be printed P3 4 Mobile Printer CPCLProgramming Manual Input 181 200 200 210 1 4 0 200 100 90 4 0 200 100 90 180 4 0 200 100 1180 TEXT270 4 0 200 100 1270 Mobile Printer CPCLProgramming Manual P3 5 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
161. haracter Our final bar code looks like A37859 B Mobile Printer CPCLProgramming Manual P5 11 The bar code type NW7 is for reverse compatibility only We do not recommend using this command for new systems There is no difference between CODABAR and NW7 CODABAR SPECIFICATIONS Ideal Ideal Barcode Bar code Wide Narrow Narrow Checksum Symbology Type Input Length Characters Ratio Dot Width Calculation Codabar CODABAR Variable 0 9 A D 2 54 2 symbol CODABAR Variable 0 9 A D 2 51 2 mod 16 16 symbol 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 informa tion on how to calculate these checksums The bar code type PLESSEY is used for reverse compatibility only We do not recommend using this command for new systems The PLESSEY type will force a 2 1 ratio of the wide to narrow bar width MSI PLESSY SPECIFICATIONS Ideal Ideal Barcode Bar code Wide Narrow Narrow Checksum Symbology Type Input Length Characters Ratio Dot Width Calculation MSI Plessey MSI 13 digits max 0 9 only 2 1 2 none MSI10 13 digits max 0 9 only 2 1 2 mod 10 MSI1110 13 digits max 0 9 only 2 1 2 mod 11 mod 10 P5 12 Mobile Printer CPCLProgramming Manual POSTNET AND FACING IDENTIFICATION MARKS The US
162. he SNMP protocol Syntax Ut setvar ip snmp enable off Result Turns off the SNMP protocol continued on next page Mobile Printer CPCLProgramming Manual P14 55 ip snmp get_community_name setvar This parameter is used when making SNMP queries The SNMP client must supply the get community name that matches the printer s get community name in order to query any SNMP data getvar result Returns the SNMP community name Example Description Instructs the printer to get the SNMP get community string Syntax U1 getvar ip snmp get community name Result public setvar choices Any string up to 20 characters long Default public Example Description Instructs the printer to set the SNMP set community string Syntax U1 setvar ip snmp get community name private Result Changes the community name to private P14 56 Mobile Printer CPCLProgramming Manual ip snmp set_community_name getvar setvar This parameter is used when changing SNMP data re motely 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 This will return the SNMP set community name value Example Description This command instructs the printer to return the printer s SNMP set community string Syntax U1 getvar ip snmp set community name Result private setvar choices V
163. he cutting table where a salesperson measures out the fabric The cashier then scans the bar code at the bot tom 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 Mobile Printer CPCLProgramming Manual P9 19 Example 2 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 2 PM Thursday June 04 2020 Store 142 Order Number 59285691 Status U1 SETSP 10 INCOMPLETE U1 5 5 0 Item Description Quant Price Subtotal Tax 1211 45 Buckram 5 yds 3 42 yd 17 10 Y 2121 60 Blue Silk 10 yds 15 00 yd 150 00 Z829 60 Muslin 20 yds 1 00 yd 20 00 Y SUBTOTAL 187 10 RHODE ISLAND SALES TAX 7 00 2 60 TOTAL 189 70 U1 SETLP 7 1 48 PLEASE BRING THIS RECEIPT TO THE CASHIER WITH THE REST OF YOUR PURCHASES U1 CENTER U1 B 128 1 2 100 0 0 59285691 ST 187 10 T 2 60 P9 20 Mobile Printer CPCLProgramming Manual Example 2 Output AURORA S FABRIC SHOP 123 Castle Drive Kingston 02881 401 555 4CUT 4 20 PM Thursday June 04 2020 Store Order Number 859285691 Status INCOMPLETE Item Description Quant Price Subtotal 1211 45 Buckram 5 yds 6 3 42 yd 17 10 2121 60 Blue Silk 10 yds 15 00 yd 150 00 2829 60 Muslin 20 yds 1 00 20 00 SUB
164. he first report there will be a pause then a second report At the end of this report you will have about 3 seconds to press the feed key to enter Communications Diagnostic DUMP Mode Refer to pg P1 6 If you are successful you will see the message Dump Mode Entered on the label along with the Com port settings You can now send your data to the printer then examine the resulting label to determine if all characters received are as ex pected Q The labels am producing have fields missing but the command syntax to produce these fields seems 1o be correct A Insure that the entire text or bar code fields you are trying to print are positioned within the label borders when printed Some commands will print the requested field only if it will fit on the label Also insure that the requested font and size speci fied in your label file is resident in the printer Some applications make use of the flash file system to store custom fonts If these fonts are missing the result is a blank field This also applies for any PCX image files that may be used in your label files Mobile Printer CPCLProgramming Manual A 17 APPENDIX B Interface Cables BIDIRECTIONAL SERIAL INTERFACE CABLE Part Number BL13402 1 Use only with Bravo printers configured with standard 089 serial I O connector Signal Names lt Vcc TXD RXD DSR GND i DTR CTS lt RTS Female Plug No
165. his parameter retrieves the current transmit tx rate mbps This rate will vary depending on several factors such as the Access Point s settngs and the printer s dis tance from the AP Possible values are 1 2 5 5 and 11 getvar result Current transmit rate Example Description This command instructs the printer to respond with the current tx rate Syntax 01 getvar wlan current tx rate Result 11 wlan encryption index getvar setvar This parameter refers to the WEP Wired Equivalent Pri vacy encryption key index This parameter determines which one of the four encryption keys is to be used by the client printer getvar result This will return the current encryption key index that is in use by the printer Example Description This command instructs the printer respond with the encryption key index value Syntax U1 getvar wlan encryption index Result bs setvar choices 41 2 3 or 4 Default 4 Description Instructs the printer to the en cryption key index Syntax U1 setvar wlan encryption index 4 Result Sets the encryption key index to 1 continued on next page Mobile Printer CPCLProgramming Manual P14 67 wlan encryption key1 Iype 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 e
166. ile Printer CPCLProgramming Manual P5 13 Mail without Postnet Bar code FIM C Business Reply Mail Penalty Mail or Franked Mail with Postnet Bar code For more information please see Publication 25 from the USPS Postal Business Center If you are making a label with an address try using resident font 7 or font 4 for best results with the optical character recognition software used by the post office POSTNET AND FIM SPECIFICATIONS Ideal Ideal Barcode Bar code Wide Narrow Narrow Checksum Symbology Type Input Length Characters Ratio Dot Width Calculation Postnet POSTNET 5 9 11 digits 0 9 only 3 5 1 3 mod 10 Facing Ident FIM A B orC only A B orC 1 51 6 N A P5 14 Mobile Printer CPCLProgramming Manual BAR CODE COMMANDS The following commands are used for the creation and formatting of bar codes on labels Insure that the bar code symbology chosen agrees with its intended use and that it conforms to the guidelines in the previous section A Quick Reference Guide for the linear bar code sym bologies discussed in this manual can be found in Appen dix E Note that the COUNT command is also discussed in Section 3 of this manual Mobile Printer CPCLProgramming Manual P5 15 The BARCODE command prints bar codes both verti cal and horizontal orientations at specified widths and heights Standard Bar Codes Format command type width ratio height x ty
167. illimeters IN DOTS Measurement in dots P2 6 Mobile Printer CPCLProgramming Manual UNITS Examples Input 1 CUNITS1 LBL 0 3937 200 200 1 1 IN INCHES 4 0 0 01 0 3937 IN DOTS T4 0 48 1 mm 8 dots B 128 1 1 48 16 112 UNITS T 4 0 48 160 UNITS FORM PRINT 1 0 3937 1mm 8 dots UNITS Output 1 Input 2 CUNITS2 LBL 200 200 2 54 1 IN CENTIMETERS T4010 1 2 54 cm IN MILLIMETERS T4 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 1 2 54 203 dots 25 4 mm UNITS Output 2 Mobile Printer CPCLProgramming Manual P2 7 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 P2 8 Mobile Printer CPCLProgramming Manual COMMENTS Example Input CCOMMENT LBL 200 200 25 1 IN MILLIMETERS JOURNAL Center justify text CENTER Print the words COMMENT TEXT 5 10 5 A COMMENT Print the label and go to top of ngxt fc FORM PRINT COMMENT Mobile Printer CPCLProgramming Manual P2 9 RESIDENT FONT SAMPLES Font Size Font Size 0 0 0 Bb Cc Dd Ee Ff Ge Hh 11 Jj Kk 11 Nn Oo 01 234567
168. irst number in the UPC EAN bar code is the num ber system character The specification lists use of characters 0 through 9 as follows 0 Regular UPC codes UPC A UPC E Reserved 2 Random weight items like store packaged meat UPC A only National Drug Code and National Health Related Items Code in current 10 digit code length UPC A only 4 In store marking of non food items without code format restriction and with check digit protection UPC A only Coupons UPC A only Regular UPC codes UPC A only Regular UPC codes UPC A only Reserved ON Reserved Number system 3 has the following note in the specification the symbol is not affected by the various internal structures possible with the NDC or HRI codes The users should determine what effect this statement may have on their program It will not change how bar codes are printed Mobile Printer CPCLProgramming Manual P5 3 checksum is the last number bar code and can be used to make certain that the bar code is decoded properly This digit is automatically calculated by the printer The UPC bar code specification has the full instructions for calculating this checksum The methodol ogy is as follows For this example the bar code will be 01234567890 Step 1 Starting at the left including the number system character add up all the numbers in the ODD posi tions 0 2 4 6 8 0 20 Step 2 M
169. is example retrieves the device s serial number string Syntax U1 GETVAR usb device serial_string Result 1234567890 P14 62 Mobile Printer CPCLProgramming Manual usb device vendor id getvar This parameter refers to the Vendor Identification number that the USB organization has assigned to a particular group This number along with the Product ID allows a USB host to distinguish one device from another getvar result Returns the Vendor ID stored in the USB library Format is hexadecimal Example Description This example retrieves the device s vendor ID Syntax 01 GETVAR usb device vendor id Result Oabdf Mobile Printer CPCLProgramming Manual P14 63 WLAN Parameters NOTE The following wlan xxx parameters cannot be used on Cameo and Encore series printers Cameo N and Encore N series printers must use the LAN comand set detailed in section 12 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 P14 64 wlan current essid currently not reported wlan essid can be used instead wlan encryption mode only 40 bit encryp tion supported 128 bit encryption is not sup ported 40 bits will be used instead wlan kerberos kdc not supported wlan kerberos mode not su
170. ity If print quality suffers using the current SPEED setting the printer speed should be reduced Format command speed level where command SPEED speed level A number between 0 and 5 0 being the slowest speed SPEED Command Example Input CSPEED LBL 200 200 150 1 SPEED 4 TEXT 5 0 0 20 PRINTS AT SPEED 4 FORM PRINT Mobile Printer CPCLProgramming Manual P8 13 SETSP Command The SETSP command is used to change spacing be tween text characters Format command spacing where command spacing Unit measurement between characters The default for spacing is zero Note that this command is affected by the UNITS command setting SETSP CommandExample Input CSETSP LBL 200 210 1 10 Normal Spacing 50 Spread Spacing 90 Normal Spacing Normal Spacing Spread Spacing Normal Spacing P8 14 Mobile Printer CPCLProgramming Manual 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 WAIT Do not discard the label if print error is encountered In this mode the printer will wait for the error to be correct
171. k the begin ning of the format and PRINT to mark the end double backslash acts as a place holder for data Input CFORMATF LBL DF SHELF FMT 200 200 210 1 CENTER TEXT 430 15 NN TEXT 40 0 95 NN BARCODE UPCA 1 1 40 0 145 NN TEXT 7 0 0 185 NN FORM PRINT 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 V delimiters with the data supplied producing the desired label Input CFORMATD LBL UF SHELF 22 99 SWEATSHIRT 40123456784 40123456784 P8 26 Mobile Printer CPCLProgramming Manual USING FORMAT FILES continued As with all print commands each line in a format file and its accompanying variables must be terminated with the carriage return and line feed character sequence Once defined a format will remain in the printer s non volatile memory for future reference An existing format can be changed by over writing the file By using the DEL command the format file can be deleted Format file names can consist of no more than 8 letters or digits and format file extensions can be no more than 3 letters or digits Any lowercase letter in the format file name or extension will be converted to upper case Note Every time a file is created on the printer using the I DEFIN
172. k to the main menu lt p gt lt a href main gt Main lt a gt lt p gt End the card lt card gt continued on next page Mobile Printer CPCLProgramming Manual P13 5 Example 2 looks like this lt 1 KR KKK KKKKKKKKKKKKKKKKK KKK KKK KKK gt E eee Setup Comm Baud Card lt 1 CKCKCkCK Ck KC KK Kk KK KK KK KK KK gt card id baud title Com Baud ontimer status gt timer value 200 timer lt p gt S vnd zo comm baud lt p gt lt br gt do type accept label 9600 setvar name vnd zo comm baud value 9600 gt lt refresh gt lt do gt lt p gt lt p gt lt do type accept 1 1 19200 gt lt setvar name vnd zo comm baud value 19200 gt lt refresh gt lt do gt lt br gt lt p gt lt a href comm gt Back lt a gt lt p gt lt p gt lt a href main gt Main lt a gt lt p gt lt card gt LCD Output for Example 2 Com Baud 19200 9600 19200 Main Note The LCD screen is 20 characters across and 4 lines P13 6 Mobile Printer CPCLProgramming Manual y uondo y ui parjioeds 01 sseJd y JO puooes JO 540 UI 0 uuu anjen 5195 5 HVA 39 991 yey 0 95 9 y uodo ue si
173. l filename and new filename Example Description Rename file abc cpf to efg cpf Syntax U1 do abc cpf efg cpf Result File abc cpf will be renamed to efg cpf file run This command can be used to execute a batch file or la bel file stored in the printer s file system do parameters File to execute Example Description This command instructs the printer to execute the file called ftn bat Syntax U1 do file run ftn bat Result The file ftn bat will be executed file type This command can be used to retrieve contents of a file do parameters Filename to display contents Example 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 10 2 PRINT Mobile Printer CPCLProgramming Manual P14 19 Printer Mechanism Parameters head latch getvar This parameter refers to the status of the printer head latch The head latch must be closed for printing getvar result Example Description Get current status of printhead latch Syntax U1 getvar head latch Result ok media width_sense enable getvar setvar This parameter turns the Media Width Sensing option or off This parameter only applies to printers equipped with the Media Wid
174. l number as friendly name if a name has not been assigned to it yet getvar result The friendly name assigned to the printer Example Description Syntax Result Retrieve the current friendly name of the printer getvar device friendly_name Printer will respond with the current friendly name for example XXQT02 02 0555 setvar choices string of up to 16 characters enclosed in double quotes Default Printer s serial number enclosed in double quotes Example Description Syntax Result Assign station 2 to the printer as its friendly name U1 setvar device friendly name station 2 The printer friendly name will be changed to station 2 continued on next page Mobile Printer CPCLProgramming Manual P14 13 device languages getvar setvar NOTE This command is only valid with RW amp QL Plus series SH3 based printers This parameter sets the programming language recog nized by the printer Refer to the programming lan guages topics in Section 1 for more information Please note that CPCL is ALWAYS active and that line_print is ONLY active when selected getvar result The programming language currently used by the printer Example Description Retrieve the current programming language used by the printer Syntax getva r device languages Result Printer will respond with the current language in use for example ZPL setvar
175. le A 2D bar code however can contain several different fields of information in them essentially a data base attached to a package The first 2D bar code was just an extension of a one dimensional bar code The user could stack several Code 39 bar codes on top of another These types of codes are called stacked symbology or multi row codes Development of scanners capable of 2D scan ning allowed use of more compact and useful symbolo gies like PDF417 from Symbol and MaxiCode from the United Parcel Service Zebra mobile printers have capabilities to print PDF417 and MaxiCode symbols If your application requires the use of PDF417 or MaxiCode symbols we highly recom mend acquiring the universal symbol specification to assist your programming The specifications include suggestions on how to structure your data in the code to make it easier to use Please note that you must load a special application before using PDF417 or MaxiCode on your Zebra mobile printer The standard application loaded in your printer does not support the ability to print these bar codes Contact the Help Desk for more information on how to load this application Mobile Printer CPCLProgramming Manual P6 1 PDF417 The PDF417 bar code is a 2D bar code that can contain a very large amount of data in a small space If you look at a PDF417 bar code carefully it is actually a stack of smaller bar codes The number and height of the stacks are controll
176. lt Encore3 2 01 0317 continued on next page Mobile Printer CPCLProgramming Manual P14 9 bluetooth version getvar This parameter is the Bluetooth library version number getvar result Bluetooth module version in the format x y z Example Description Get Bluetooth module version Syntax U1 getvar Bluetooth version Result 214100 14 10 Mobile Printer CPCLProgramming Manual Comm Port Parameters comm parity 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 Printer s comm port parity See setvar choices for possible values Example Description Get printer s comm parity setting Syntax U1 getvar comm parity m Result n setvar choices n none and Default Example Description Set printer s comm port parity to None no parity Syntax setvar comm parity Result Printer will change its comm port s parity to None comm baud 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
177. mask of the printer Available in printer ap plication versions 30A and higher Syntax SUBMASK IP Address Where address is the dotted decimal representa tion 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 This ID al lows several RF networks to operate independently in the same area without interference The printer must have the same SSID as the RF Access Point to which it is supposed to link The option for this opera tion may be any string up to 32 characters long Syntax SSID SSID string Where SSID string 32 characters Example 01 LAN SSID ZebraNet MODE This operation sets the operating mode of the printer The two options are LPD and LPD is the standard printer protocol used by Unix and available for Windows NT TCP affords the ability to allow bare sends using only the TCP protocol Syntax MODE fopton Where footon LPD or TCP Example U1 LAN MODE LPD 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 15 printed If REPLY is used the status dump is sent out over the CABLE The status report is of the Mobile Printer CPCLProgramming Manual P12 3 following form LAN Status report ipAdr nnn nnn nnn nnn userName the user name fwVersion LAN firmware version
178. mod 103 A B C Auto UCC 128Std UCCEAN Refer text Refer text 3 1 3 mod 103 16 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 char acters 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 The bar code symbology specification contains all the information on calculating the checksum As a short example our data will be A37859B where A and B are start stop characters The characters 0 through 9 are assigned the numerical values through 9 respectively is 10 is 11 715 12 13 is 14 15 15 and start stop characters A B C and D are 16 17 18 and 19 respectively Step 1 Add the numerical value of all the characters 16 3 7 8 5 9 17 65 Step 2 Divide this number by 16 and use the remain der or modulo In our example this is 1 Step 3 Subtract the modulo from 16 This is the small est number that can be added to the sum in step 1 to make a multiple of 16 65 15 280 80 16 5 Therefore the check sum for our example is 15 Step 4 The character that corresponds to 15 is and is added in before the stop c
179. n cryption 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 Example Description This command instructs the printer respond with the encryption key value This example assumes that the printer is using 40 bit encryption Syntax U1 getvar wlan encryption_key1 Result 0000000000 setvar choices 10 hexadecimal characters for 40 bit encryption 26 hexadecimal characters for 128 bit encryption Default All zeros Example Description This command instructs the printer to set the encryption key value This example assumes that the printer is using 40 bit encryption Syntax U1 setvar wlan encryption_key1 A1B2C3D4F5 Result The first encryption key will be set to A1B2C3D4F5 continued on next page P14 68 Mobile Printer CPCLProgramming Manual wlan encryption key2 Iype getvar setvar This parameter refers to the second indexed WEP en cryption 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 Example Description This command instructs the printer respond with the encryption key value This example assumes that the printer is using 40 bit encrypti
180. n the Browse button allows the user to select a file to be downloaded via the standard Windows interface A bar at the bottom of the dialog box monitors downloading process This interface is common to all of the file download utilities 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 file placed in the label with the Picture tool must also be downloaded to the printer by means of this command P15 2 Mobile Printer CPCLProgramming Manual 4 Send Downloads an autoexec bat file to the printer If a lbl type file is downloaded using this command It will be converted from an lbl file into an autoexec bat type file The printer will execute this file on power up i e print the label described in the file 5 Send as Run bat Sends either a label or a format file to the printer as a RUN BAT file Upon power up and after running any resident AUTOEXEC BAT files the printer will auto matically execute a RUN BAT file 6 Send as FF BAT Sends a selected label file to the printer as a FF BAT file The printer will automatically execute a FF BAT file whenever its Feed key is pressed 7 Send all Files in Label This command will send all fonts and pictures associ ated with the current label file to the printer There must be sufficient memory in the
181. nable the SMTP protocol Syntax U1 setvar ip smtp enable Result This will turn on the smtp protocol in the printer setvar choices P14 54 Mobile Printer CPCLProgramming 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 Returns the IP address of the SMTP server used for sending email Example Description Instructs the printer to respond with the current SMTP server address Syntax getvar ip smtp server addr Result 0 0 0 0 setvar choices Any valid IP address assigned to the SMTP server Default 0 0 0 0 Description Instructs the printer to change the SMTP server address to 10 10 10 10 Syntax U1 setvar ip smtp server_addr 10 10 10 10 Result Changes the SMTP server address the printer uses to send email to 10 10 10 10 ip snmp enable 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 Returns the SNMP status on or off Example Description Instructs the printer to respond with the SNMP setting Syntax getvar ip snmp enable Result on setvar choices Default on Example Description Instructs the printer to disable t
182. nable the UDP protocol Syntax U1 setvar ip UDP enable Result The UDP protocol will be turned on upon cycling the power or issuing the device reset Mobile Printer CPCLProgramming Manual P14 59 USB Parameters NOTE The following usb xxx parameters are applicable only on Zebra QL plus and RW series printers equipped with the USB communications op tion They cannot be used on Cameo and Encore series printers which do not support USB communications usb device device_id_string getvar This parameter refers to the manufacturer assigned IEEE1284 Device Identification string used to describe a particular USB product getvar result Returns the Device ID String stored in the USB library Example Description This example retrieves the device s Device ID string Syntax 01 usb device device id string Result MFG Zebra CMD CPCL MDL QL 420 usb device device_version getvar This parameter refers to the version of the USB device being queried getvar result Returns the device version stored in the USB library Example Description This example retrieves the device version value from the printer Syntax GETVAR usb device device_version Result 14 60 Mobile Printer CPCLProgramming Manual usb device manufacturer_string getvar This parameter refers to the string containing the name of the manufacturer of
183. ncryption Syntax U1 setvar wlan encryption_key3 A1B2C3D4F5 Result The third encryption key will be set to A1B2C3D4F5 continued on next page P14 70 Mobile Printer CPCLProgramming Manual wlan encryption key4 Iype getvar setvar This parameter refers to the fourth indexed WEP encryp tion 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 Example Description This command instructs the printer respond with the encryption key value This example assumes that the printer is using 40 bit encryption Syntax U1 getvar wlan encryption_key4 Result 0000000000 setvar choices 10 hexadecimal characters for 40 bit encryption 26 hexadecimal character for 128 bit encryption Default All zeros Example Description This command instructs the printer to set the encryption key value This example assumes that the printer is using 40 bit encryption Syntax U1 setvar wlan encryption key4 A1B2C3D4F5 Result The fourth encryption key will be set to A1B2C3D4F5 Mobile Printer CPCLProgramming Manual P14 71 wlan encryption mode Iype getvar setvar This parameter refers to WEP Wired Equivalent Privacy encryption This parameter enables and dis
184. ng printer behavior when the FORM command is executed Input FORM LBL 200 200 3 1 5 TEXT 410 5 Form Command FORM PRINT P2 4 Mobile Printer CPCLProgramming Manual JOURNAL Command By default the printer will check for correct media align ment if it encounters the eye sense mark black horizon tal bars on back of media during a print cycle LABEL mode If necessary 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 in JOURNAL mode Please refer to the status inquiry command for details on checking for out of paper condition Format command where command JOURNAL Mobile Printer CPCLProgramming Manual P2 5 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 measure ment system will also apply to the offset and height fields The printer measurement system will default to dots until a units command 15 issued Format command where command Choose from the following IN INCHES Measurement in inches IN CENTIMETERS Measurement in centimeters IN MILLIMETERS Measurement in m
185. o the file you cre ated in step 1 and click on the Send button The file will be sent to the printer and the dialog box will indicate the download progress Once the IP address has been downloaded successfully it will stay resident in the printer s memory until a new IP address is sent The IP address can be verified by per forming a 2 key reset on the printer The 2 key reset is initiated by the following key se quence 1 Press the FEED key 2 While still holding down the FEED key press and re lease the ON OFF key Cameo or the On key core 3 3 Keep the FEED key depressed until printing starts The printer will produce a line of interlocking x charac ters to insure all elements of the printhead are working and then print out a status report The resulting printout should include a Wireless Commu nications section You should verify that the following lines are included with your IP address and SSID Mobile Printer CPCLProgramming Manual P12 7 your IP address associated YES protocol LPD essID SSID DHCP OFF If there is no Wireless Communications section or the pa rameter values do not match what is expected please re fer to the Network Printer Troubleshooting discussion at the end of this section Details of this method of setting the IP address are cov ered earlier in this section in the discussions of the IPADDR SSID and MODE ope
186. on U1 getvar wlan encryption_key2 0000000000 setvar choices 10 hexadecimal characters for 40 bit encryption 26 hexadecimal character for 128 bit encryption Default All zeros Example Description This command instructs the printer to set the encryption key value This example assumes that the printer is using 40 bit encryption Syntax U1 setvar wlan encryption_key2 A1B2C3D4F5 Result The first encryption key will be set to A1B2C3D4F5 continued on next page Mobile Printer CPCLProgramming Manual P14 69 wlan encryption key3 Iype getvar setvar This parameter refers to the third indexed WEP encryp tion 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 Example Description This command instructs the printer respond with the encryption key value This example assumes that the printer is using 40 bit encryption U1 getvar wlan encryption_key3 0000000000 setvar choices 10 hexadecimal characters for 40 bit encryption 26 hexadecimal character for 128 bit encryption Default All zeros Example Description This command instructs the printer to set the encryption key value This example assumes that the printer is using 40 bit e
187. on TYPE P10 8 See a so Advanced Utilities U UCC 128 Shipping Standard P5 10 Units Commands P2 6 P9 3 P9 8 UPC and EAN JAN barcodes number system character P5 3 Plus2 and Plus 5 Extensions P5 5 UPC E barcode P5 4 USE FORMAT See Format File Commands UTILITIES Command P9 2 VBARCODE See BARCODE command VCOMPRESSED GRAPHICS Command See Graphics Com mands VCONCAT P3 8 SeeTEXT Concatenation Commands VERSION P10 2 See a so Advanced Utilities VEXPANDED GRAPHICS Command See Graphics Commands VSCALE TEXT See SCALE TEXT Commands VSCALE TO FIT See SCALE TO FIT Commands 8 10 Wireless Network Printers See Network Printers WML language P13 1 tags used for LCD display P13 7 X X and Y Values moving with P9 6 Mobile Printer CPCLProgramming Manual Index 13 Appendices APPENDIX A Frequently Asked Questions These FAQ s are in no particular order They cover the most commonly encountered questions asked about our portable 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 good label Make sure that you only have one carriage return line feed pair after the PRINT statement in your label If there is more than one CR LF pair the printer prints the label then sees the extra CH LF pairs as data to be printed in line print mode This advance causes the next label
188. ond with the length of the last label printed Syntax U1 getvar odometer label dot length Result 416 Mobile Printer CPCLProgramming Manual P14 29 odometer latch_open_count setvar This parameter refers to the number of times the printer s latch has been opened The latch open count can be set to an initial value and incremented every time the latch is opened Typically the latch is opened each time a roll of media is loaded getvar result This will return the number of times the printer s latch has been opened Example Description This command instructs the printer to respond with the latch_open count Syntax U1 getvar odometer latch_open_count Result 100 setvar choices 0 65535 Default 0 Description This command instructs the printer to set latch_open count to 0 Syntax U1 setvar odometer latch open count 0 Result The user latch open count odom eter will be set to 0 P14 30 Mobile Printer CPCLProgramming Manual odometer media_marker_count setvar This parameter refers to the media marker count The media marker counter keeps track of how many labels have passed through the printer if they have been printed or not by counting the bar sense marks on the back of the media Contrast this to the odometer user_label_ count parameter below The me dia marker count can be
189. oordinates in output are shown for illustration purposes only Mobile Printer CPCLProgramming Manual P7 1 LINE Commands Lines of any length thickness and angular orientation can be drawn using the LINE command Format command Wo Xy y jj with where commana Choose from the following LINE Prints a line or L of the top left corner Yo of the top left corner X coordinate of top right corner for horizontal bottom left corner for vertical yj X Y coordinate of top right corner for horizontal bottom left corner for vertical width Unit width or thickness of the line P7 2 Mobile Printer CPCLProgramming Manual LINE Example Input CLINE LBL 200 200 210 1 LINE 0 0 2000 1 LINE 0 200 200 2 LINE 0 0 0 200 3 2272 200 200 Note Text coordinates in output are shown for illustration purposes only Mobile Printer CPCLProgramming Manual P7 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 INVERSE LINE has no effect on objects created after its location even if they fall within its covered area In exampl
190. ooth friendly name P14 9 bluetooth local name P14 9 bluetooth version P14 10 card mac addr P14 38 comm baud P14 11 P14 11 comm stop bits P14 12 device friendly name P14 13 device languages P14 14 display backlight P14 16 display contrast P14 16 display text P14 17 file dir P14 18 head latch P14 20 input capture P14 23 ip addr P14 38 ip bootp enable P14 39 ip dhcp cid prefix P14 41 ip dhcp cid type P14 42 ip dhcp cid value P14 43 ip dhcp enable P14 40 ip ftp enable P14 44 ip gateway P14 44 ip http enable P14 45 ip Ipd enable P14 45 ip mirror auto P14 91 ip mirror freq P14 92 ip mirror password P14 93 ip mirror path P14 93 ip mirror server P14 94 ip mirror username 14 94 Index 4 Mobile Printer CPCLProgramming Manual ip netmask P14 46 ip pop3 enable P14 47 P14 48 P14 49 P14 50 P14 51 ip pop3 password P14 47 ip pop3 poll P14 48 ip pop3 print_body P14 49 ip pop3 print_headers P14 49 P14 51 ip pop3 save_attachments P14 50 ip pop3 server_addr P14 50 ip pop3 username 14 51 ip pop3 verbose headers P14 51 ip port P14 52 ip remote P14 52 ip remote_autoconnect P14 53 ip remote_port P14 54 ip smtp enable P14 54 ip smtp server_addr P14 55 ip snmp enable P14 55 ip snmp get community name 14 56 ip snmp set community name P14 57 ip tcp enable P14 58 ip telnet enable P14 59 ip udp enable P14 59 media sense mode P14 25 media status P14 25 media tof P14 26 media type P14 27 media width sense enable
191. or to RAM for safe guarding file contents it is limited to an average of 10 000 write cycles i e file cre ations For this reason the user should exercise the file creation commands such that the stated limit is not exceeded Mobile Printer CPCLProgramming Manual P10 7 TYPE Utility The TYPE command allows you to read a text file by sending it from the printer to a host Format lt gt UTILITIES command name ext PRINT where command TYPE Name of text file to be sent to host P10 8 Mobile Printer CPCLProgramming 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 Format lt gt UTILITIES command baud lt PRINT gt Note that lt PRINT gt must be sent at the new baud rate where command BAUD baud Choose from the following 1200 4800 9600 19200 38400 57600 115200 BAUD Example Input CBAUD LBL UTILITIES BAUD 19200 PRINT Mobile Printer CPCLProgramming Manual P10 9 COUNTRY CODE PAGE Utility CHAR SET CODE PAGE Utility The COUNTRY or CHAR SET utility command substi tutes 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
192. oth authentication 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 bluetooth pin parameter NOTE this parameter and the following bluetooth bluetooth pin parameter apply only when Bluetooth library versions 1 2 3 or later are installed in the printer Refer to Getting Printer information in Section 1 for information on obtaining installed printer software versions getvar result Current authentication mode setting off fault setpin Example setvar choices Description Get the current Bluetooth authenti cation mode Syntax U1 getvar bluetooth authentication Result off off default setpin Default off Example P14 6 Description Enable Bluetooth authentication Syntax U1 setvar bluetooth authentication default Result Printer will enable Bluetooth authentication with user defined PIN set in the bluetooth bluetooth pin param eter Mobile Printer CPCLProgramming Manual bluetooth bluetooth_pin getvar setvar This parameter is
193. out P15 5 See POWER MANAGEMENT Low Power Mode P15 6 LT command P10 17 MaxiCode P6 2 P6 6 encoded tags P6 6 P6 8 publication Guide to bar Coding P6 8 MCR Command P8 32 P10 25 Data Reporting Options P10 27 Debugging Options P10 27 Error Reporting Options P10 29 Frequency Options P10 26 Track Data Transmit Options P10 27 Track Options P10 26 MCR CAN Command P10 33 MCR QUERY Command P10 31 Messages resident P10 12 See 2 50 ANNOUNCE Command MSI Plessey barcode P5 12 MULTILINE Commands P3 10 N Network Printers P12 1 See a so LAN Command QL series FTP sessions P13 1 safety considerations P12 1 setting IP address P12 7 WLAN operating modes infrastructure mode P14 83 WILAN operating modes ad hoc mode P14 83 Networking commands using set get do parameters P14 38 NO PACE Command 8 9 NW7 barcode P5 12 Index 8 Mobile Printer CPCLProgramming Manual O Odometer Parameters P14 29 Off Command P15 6 ON FEED Command P8 16 ON OUT OF PAPER Command P8 15 P PACE Command P8 6 PAGE HEIGHT Command P9 10 PAGE WIDTH Command P8 4 P9 7 P9 10 PAPER JAM Command P11 4 Paper supply status See Get Extended Printer Status PAPER JAM Command P10 24 PARTIAL CUT Command P8 30 P9 15 See 4 50 Com mand PATTERN command P7 6 PCX Command P7 10 9 15 See a so Graphics Commands PDF Portable Data File Bar Code See Two Dimensional Barcode Commands PDF417 Barcode P6 2 Plus 2 amp plus 5 extensions See UPC and EAN J
194. p the printer will initiate a TCP socket connection to the address defined by ip remote connecting to the TCP port number defined by ip remote port Any time the connection is lost the printer will automatically attempt to re establish it continued on next page Mobile Printer CPCLProgramming Manual P14 53 ip remote_port 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 Returns the current TCP port number Example Description Instructs the printer to respond with the currently stored TCP Port num ber Syntax U1 getvar ip remote port Result 10013 setvar choices 0 65535 Default 10013 Example Description Instructs the printer to change the TCP port number to 6000 Syntax U1 setvar ip remote 6000 Result If ip remote _autoconnect is the printer will attempt to connect to TCP port 6000 of the remote server ip smtp enable getvar setvar This parameter refers to the SMTP protocol getvar result This will return the status of the SMTP protocol on or off Example Description Instructs the printer to return the SMTP setting Syntax U1 getvar ip smtp enable Result off on off Default On Example Description Instructs the printer to e
195. p the printed SKU list and bring to customer service desk Result Printer will display Please pickup the printed SKU list and bring to customer service desk Mobile Printer CPCLProgramming Manual P14 17 File Parameters file delete 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 Name of file to be deleted Example 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 dir getvar This parameter refers to the printer file directory getvar result Printer directory Example Description Get printer file directory Syntax U1 getvar file dir Result Directory INDEX WML 631 CONFIG SYS 19 1793000 Bytes Free ok file print do This command can be used to print the contents of printer files do parameters File Example Description 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 continued on next page P14 18 Mobile Printer CPCLProgramming Manual file rename This command can be used to rename printer files do parameters Origina
196. pl date Result 01 29 02 getvar This parameter refers to the printer s application getvar result Printer s application name will be returned Example Description Get printer application name Syntax U1 getvar appl name Result htstd40a hex E appl version Type getvar This parameter refers to the printer s application version getvar result Printer application version as a 4 digit hex number Example Description Get printer application s version Syntax U1 getvar appl version Result 7940 P14 4 Mobile Printer CPCLProgramming 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 estab lished 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 address getvar This parameter is the Bluetooth device address pro grammed into each radio getvar result Returns the printer s Bluetooth address Example Description Get printers Bluetooth address Syntax U1 getvar bluetooth address Result 00 80 37 16 87 71 continued on next page Mobile Printer CPCLProgramming Manual P14 5 blueto
197. point within the LAN s perimeter The following section details commands used with Net work Printers to configure various characteristics and to interrogate the printer for its network settings Note If you are using WLAN enabled QL series printer you should use the get set do parameters detailed in Section 14 rather than the LAN command detailed below Network Printer Safety Considerations warnine Use of the Network Printers will result in exposure to Radio Frequency radiation To conform to FCC RF exposure requirements these printers must be used only in the intended orientation and in the in tended manner Refer to the User s Manual for the Network Printer in use for more specific safety instructions In all cases avoid prolonged exposure closer than 5 cm 2 in to the radiat ing area around this unit s antenna LAN Command Format LAN Ooeration Ootions J Qoeration Ootions The LAN command can be used to interrogate and con figure the Wireless LAN WLAN card in a Zebra Network Printer The entire LAN command must be terminated by a CRLF pair Mobile Printer CPCLProgramming Manual P12 1 is required element An error will re turned if an invalid operation is specified see LAN Com mand Response for error codes Any desired number of Operations can be entered after the LAN command The possible Operations are IPADDR This op
198. pported wlan kerberos password not supported wlan kerberos realm not supported wlan kerberos username not supported wlan leap mode not supported wlan leap password not supported wlan leap username not supported wlan operating mode infrastructure option only Ad Hoc is not supported wlan power save currently not supported Support is under development wlan preamble not supported wlan tx power not supported wlan tx rate choices supported are 1 and 2 Mobile Printer CPCLProgramming Manual wlan associated getvar This parameter refers to whether the printer is associated with an access point AP getvar result This will return yes if the printer is associated and no if the printer is not associated with the access point Example Description This command instructs the printer to respond with yes or no Syntax getvar wlan associated Result yes wlan auth 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 authentica tion services getvar result Current authentication type Example Description This command instructs the printer to retrieve the current authentication type Syntax U1 getvar wlan auth type Result open setvar choices open shared Default open Example Description This command instructs th
199. printer to accept all of the files and they must all be located in the current Label Vista working directory 8 Diagnostic Send Downloads a file without checking for status or validity This function is usually used when the printer has been placed in the Communications Diagnostics Mode Refer to Section 1 of this manual for complete informa tion on utilizing the Communications Diagnostic Mode Label Vista has an extensive set of context sensitive help files which will aid you in using the various file utili ties available Using Label Vista for Wireless Configuration Label Vista can also be used to configure the various versions of Mobile Wireless Printers A Wireless Configu ration Guide is available in the Zebra Web site at htto www zebra convSS manuals Wireless QuickStart paf Mobile Printer CPCLProgramming Manual P15 3 The printer contains the following power management features 1 Synchronized On Off control DTR line from the attached host DTR On Off Control Programmable inactivity timeout Programmable low battery timeout Shutdown command Enters low power mode when idle SYNCHRONIZED ON OFF CONTROL PRINTER S DSR LINE The DSR line is an input to the printer and is controlled by the attached host s DTR line The DSR line controls the power on off and the operation of the short range radio module 1 Power On Off Control A low inactive to hig
200. r setvar This parameter refers to the power save modes which af fect power consumption of the network radio card in the printer Two radio cards are currently supported SYM BOL 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 Any setting other than best 1 4 sets the radio to fast power save and is not scal able The off setting puts either radio into Con stant Awake Mode This parameter is not supported on units with a Frequency Hopping Spread Spectrum FHSS radio as of this writing Support is pending getvar result The printer responds with current power save mode setting Example Description Instructs the printer to respond with the value of the wlan power_save mode Syntax U1 getvar wlan power_save Result off setvar choices off 2 3 4 best Default best Example Description Instructs the printer to set the value of the power save mode Syntax U1 setvar wlan power save 2 Result Changes the power save mode to 2 if a Symbol radio is used or fast power save mode if a Cisco radio is used P14 84 Mobile Printer CPCLProgramming Manual wlan preamble getvar setvar This parameter selects the radio preamble length to be used This parameter is not
201. r network administrator to determine whether your network supports either BOOTP or DHCP and enable only the proper parameter on the printer getvar result The current BOOTP setting Example Description Instructs the printer to respond with the current BOOTP setting Syntax getvar ip bootp enable Result off setvar choices Printer will use BOOTP to get its IP infor mation on startup off Printer will not use BOOTP Default Example Description Turn the BOOTP feature on Syntax U1 setvar ip bootp enable on Result On power up the printer will use the BOOTP protocol to receive its IP settings from a network server Mobile Printer CPCLProgramming Manual P14 39 ip dhcp enable 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 You should contact your network administrator to determine whether your network supports either BOOTP or DHCP and enable only the proper parameter on the printer getvar result The printer printer s DHCP status on or off Example Description This
202. r the printer is BHT IR unless continued Mobile Printer CPCLProgramming Manual P10 41 specified as BHT by AUTOEXEC BAT file The baud rate if the printer uses the default is set to 9600 BPS The Serial Number 15 set to ON Zebra mobile printers use a ID number of 9 You should avoid using this ID value for the terminal The Com port is set to OPTICAL BHT IR File Transmission 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 1 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 A regular power on PW key will boot into the BHT applica tion 2 Select option 3 UPLOAD Press the ENT key The UPLOAD menu should now be displayed Select option 1 DRIVE A Press the ENT key Use the arrow keys F5 and F6 to scroll through the menu options to the desired file CIS DAT in our ex ample When CIS DAT is highlighted press the ENT key IR on the BHT should be pointed towards the IR window on the printer The transfer of data will power on the printer if it is not already on When file transfer is complete Completed is displayed for the user and a beep sounds The file will then print Press the C key to exit this screen 4
203. rations LAN Command Response If an operation unsupported by the LAN command is given the printer will generate the following message Tnvalid LAN option operation where operation is the invalid operation operation with an option unsupported by the LAN command is given the printer will print the following mes sage Illegal operation toption option where option is the invalid option P12 8 Mobile Printer CPCLProgramming Manual Network Printer Troubleshooting If the printer does not behave as described in this sec tion please take the following diagnostic steps 1 Perform a 2 key reset on the printer 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 in terlocking x characters to insure all elements of the printhead are working and then print out a status report Refer to next page for an anno tated sample of a status report Under the status report s Program heading the software should have a label similar to HTLANxxx If not the LAN application is not loaded on this printer and LAN operation is not supported Call Zebra tech support Under the RF LAN INFORMATION section if you see Could not get WLAN status or Could not get WLAN config the internal radio is not responding If you repeat step 1 with the same result call Zebra tech support Under the RF LAN INFORMATION section
204. re only used with the Bravo series Ferd Eun of desk top printers Two network protocols are available to talk to Zebra printers equipped with wireless network capabilities NET WORK TCPIP and Mobile Printer CPCLProgramming Manual P15 1 NETWORK LPD In order to communicate with the printer choose the protocol that the printer is configured for If you are unsure as to which protocol the printer is setup for turn the printer off and while holding the feed key down turn the printer back on This will print the printer s 2 key report The protocol that the printer is configured to use is listed under the RF LAN section If the printer is using a Symbol MOM card choose the NETWORK SYMBOL MOM CARD option This is a TCP protocol that does not close the network connection In order to talk to a network printer the IP address and port must also be entered The printer s current IP ad dress and port are also listed on the 2 key report Baudrate allows selection of the rate at which data is sent over either COM port Baud rates range from 2400 to 115200 b p s Checking the Set Printer Baud Rate box allows Label Vista to automatically set the Baud rate for the program and the printer Once Communications have been established between Label Vista and the printer you can send files to the printer with the various Send options 1 Send File Downloads a file to the printer Clicking o
205. re to encode BAR128 bar code We will use A as our start and stop character in this example Step 1 The symbology specification assigns a numeri cal value for each character Find the values of all the characters in the data Step 2 Add the value of the start character and all the data characters multiplied by its position in the bar code For our example the calculation would be 103 34 x 1 32 x 2 50x 3 17x 4 18x 5 24 x 6 672 Step 3 Divide this number by 103 The remainder or modulo 54 is the checksum The character that assigned to 54 in the specification is V Our final code will look like ABAR128V where is the start character BAR128 is the data and V is the checksum The UCC 128 Shipping Standard is part of a document called Ago ication Standard Shipping Container Codes available from the Uniform Code Council This 90 page guide contains the entire specification on marking any shipment sent anywhere in the United States Seventeen pages are dedicated to the technical considerations of using placing and printing these bar codes We highly recommend getting this information if your application involves shipping P5 10 Mobile Printer CPCLProgramming Manual CODE 128 UCC 128 SPECIFICATIONS Ideal Ideal Barcode Bar code Wide Narrow Narrow Checksum Symbology Type Input Length Characters Ratio Dot Width Calculation Code 128 128 Variable Refer text 1 51 1
206. reset Battery status O voltage OK 1 low battery Latch status O latch closed 1 latch open Paper status O paper present 1 out of paper Printer status O printer ready 1 printer busy OPIBUS Acknowledge Printer Reset ESC 0x1b N 0x46 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 power up 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 Printer CPCLProgramming Manual P11 3 STATUS INFORMATION continued Get Printer Information GPI LBL ESC 0x1b v 0x76 This command instructs the printer to return a null terminated string containing its model number firm ware revision and serial number In practice a search for the NUL character should be used since the length of the string returned may change Get Extended Printer Status ESC 0x1b i 0x69 This command requests the extended status byte from the printer Printer program versions 24 and higher respond to this command The extended status byte returned from the printer is in the following for mat Bit Description 7 Ribbon status O ribbon detected 1 ribbon detected 6 Paper supply status O paper supply is OK 1 paper supply is low 5 Presentation peeler sensor O
207. rinter Memory will include Pre scaled or Scalable Fonts Amount of Memory Available Instructions on entering Communications Diagnostics Dump Mode Refer to P1 6 Mobile Printer CPCLProgramming 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 charac ter As a test of the printer the ALL CHRS LBL file on the MPU disk may be sent To enter Communications Diagnostics Mode 1 Turn the printer OFF 2 Hold FEED key down 3 Turn the printer ON 4 Release FEED key when printer starts printing the diagnostics 5 At the end of 2nd diagnostics report the printer will print Press FEED key to enter DUMP mode 6 Now press the FEED key The printer will print Entering DUMP mode Note Ifthe FEED key 15 not pressed within 3 sec onds the printer will print DUMP mode not entered and will resume normal operation 7 At this point the printer is in DUMP mode and will print the ASCII hex codes of the data sent to it and their text representation or if not a printable character Additionally a file with a dmp extension contain ing the ASCII information will be created and stored in the printer s memory It can be viewed cloned or delete
208. rinter CPCLProgramming Manual COUNT Example Input CCOUNT LBL 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 128 1 1 50 0 130 123456789 COUNT 10 FORM PRINT Output IESTING 901 e Value is ESTING 002 Value is 12345 TESTING 003 Barcode Value is 123456769 Mobile Printer CPCLProgramming Manual P3 13 SETMAG Command The SETMAG command magnifies a resident font to the magnification factor specified Format command w h where command SETMAG mw Width magnification of the font Valid magnifications are 1 thru 16 f 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 To cancel any SETMAG values and allow the printer to use its default font sizes use the SETMAG command with magnifications of 0 0 P3 14 Mobile Printer CPCLProgramming Manual SETMAG Example Input CSETMAG LBL 0 200 200 210 1 SETMAG TEXT 0 SETMAG TEXT 0 SETMAG TEXT 0 SETMAG TEXT 0 SETMAG TEXT 0 145 Font 0 0 at SETMAG 2 4 Restore default font sizes SETMAG 0 0 10 Font 0 0 at SETMAG 1 1 40 Font 0 0 at SETMAG 1 2 80 Font 0 0 at SETMAG 2 1 110 Font 0 0 at SETMAG 2 2
209. rogramming Manual P10 5 DEFINE FILE DF Utility The DF command defines a file name for a file to be loaded into the printer 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 lt gt command filename ext aata terminator where command DF flename ext Name of file to be created aata The contents of the file The file must be ASCII and cannot contain any terminator keyword termmnator Choose from the following PRINT Ifthe PRINT terminator is used it is also written to the file END If the END terminator is used it is not written to the file P10 6 Mobile Printer CPCLProgramming Manual DEFINE FILE Example Input CDF LBL DF UTILITIES SETFF 200 20 PRINT In this example the file AUTOEXEC BAT is created in the printer flash file system The file contents are UTILITIES SETFF 200 20 PRINT Note Every time a file is created on the printer using the I DEFINE FORMAT DF or the Visual Label Utility application for example the file information is written to flash memory Unlike RAM flash memory does not require battery for retaining data and is immune to data corruption due to static discharge Although flash memory is superi
210. ror fetch P14 91 ip ping_remote P14 46 ip snmp create_mib P14 58 test print_diags P14 37 test report_diags P14 37 E Error messages LAN P12 8 EXPANDED GRAPHICS See Graphics Commands F Facing Identification Mark FIM P5 13 FEED See ON FEED Command FG command P3 6 FHSS See Frequency Hopping Spread Spectum Radios compat ibility with command parameters Frequency Hopping Spread Spectum Radios parameters file mirroring P14 87 printer set up P14 87 server settings P14 88 Flash Memory P8 27 Font monospaced P9 17 TrueType P9 4 Font group See FG command Fonts Asian P8 24 double byte encoded See Fonts Asian fonts pre scaled P1 9 FORM command P2 4 Form Feed 9 10 Format File Commands P1 9 P8 25 P8 26 P8 27 Frequency Hopping Spread Spectum Radios compatibility with command parameters P14 64 G GAP SENSE Command P9 10 P15 10 German Post Code See Interleaved 2 of 5 barcode German Post Code Get Extended Printer Status P10 24 P11 4 P14 27 Get Printer Information P11 4 See a so Printer Escape Commands Get Printer Status P11 3 See a so Printer Escape Commands Mobile Printer CPCLProgramming Manual Index 3 INDEX continued GET DATE command P10 21 GET TIME command P10 19 getvar Command P14 2 getvar parameters appl date P14 4 appl name P14 4 appl version P14 4 bluetooth address P14 5 bluetooth authentication P14 6 bluetooth baud P14 8 bluetooth bluetooth pin P14 7 bluetooth discoverable P14 8 bluet
211. rriage 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 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 Mode 3 Use the first byte as a count of characters to send to the printer This mode is based on the first character of a data field being interpreted as a count of data bytes that follow It is similar to a counted string as found in the Pascal pro gramming language String data type In the counted string mode the number of bytes specified by the count will be transferred into the printer The count byte s maxi mum value is limited to the data field size minus 1 Note that in this example the count byte is shown as ASCII but would actually be sent as a binary number Mode 4 Strip trailing spaces This mode eliminates trailing spaces in each data field of a record Note that unlike Mode 1 no CR LF pair is added to the data after stripping the trailing spaces Refer to pgs P10 44 thru P10 47 for examples using the BHT MODE commands continued Mobile Printer CPCLProgramming Manual P10 39 IR Cable Interface Selection The printers are normally self configuring for IR or cable
212. ructs the printer to respond with the TCP setting U1 getvar ip tcp enable setvar choices off Default Description Syntax Result P14 58 Instructs the printer to enable the TCP protocol U1 setvar ip tcp enable on The TCP protocol will be turned on upon cycling the power or issuing device reset Mobile Printer CPCLProgramming Manual ip telnet enable getvar setvar This parameter refers to the TELNET protocol getvar result Returns the TELNET protocol status on or off Example Description Instructs the printer to respond with the TELNET setting Syntax U1 getvar ip telnet enable Result on setvar choices off Default on Example Description Instructs the printer to enable the TELNET protocol Syntax setvar ip telnet enable on Result The TELNET protocol will be turned on upon cycling the power or issuing the device reset ip udp enable getvar setvar This parameter refers to the UDP socket protocol getvar result Returns the UDP protocol status on or off Example Description This command instructs the printer to respond with the UDP setting Syntax U1 getvar ip udp enable Result on setvar choices off Default on Example Description This command instructs the printer to e
213. running in Windows 95 NT that allows users with little or no pro gramming background to design labels which can be printed on certain model Zebra portable printers It com bines an intuitive graphically based user environment with powerful but easily mastered editing tools Label Vista allows the creation of printable fixed size pre scaled fonts derived from an included library of TrueType fonts which greatly enhances the versatility of this program In addition Label Vista allows the easy creation of format files which can remain resident in the printer and be merged with variable data files sent from the host This provides a very efficient method of printing labels that have a mixture of data fields that change from label to la bel and elements that remain constant Refer to Section 8 of this Manual for more information on format files Label Vista also provides a powerful set of diagnostics tools It is recommended that the Label Vista documen tation package be consulted for a more detailed descrip tion of the printer diagnostics available in this program Label Vista utilizes a subset of the full Mobile Printing Systems Programming Language described in this manual Files created in Label Vista are fully compatible with any other label files created using the complete set of Mobile Printer commands Label Vista requires an IBM compatible personal com puter running Windows 95 or later APC with the mini mum configuration
214. s a space character Other combinations of fields and field lengths can be used as long as they conform with the BHT protocols data file record field formats Example 1 Strip Spaces and Add CR LF Input ADDCRLF BAT DF autoexec bat UTILITIES SRF ACCESS BHT MODE STRIP ADD CRLF END SRF ACCESS PRINT Output Data Record ee ee eee A ee ee Info ASystemsAAAAAAAAAAAA Data Sent to printer Comtec lt CR gt lt LF gt AInfo lt CR gt lt LF gt ASystems lt CR gt lt LF gt continued P10 50 Mobile Printer CPCLProgramming Manual BHT MODE Command Examples continued Example 2 Send Raw Data Input SENDRAW BAT DF autoexec bat UTILITIES SRF ACCESS BHT MODE RAW END SRF ACCESS PRINT Output Data Record Comtec Info Systems AAAAAAAAA Sent to printer Comtec Info Systems AAAAAAAAA Example 3 Counted String Input COUNTED BAT DF autoexec bat UTILITIES SRF ACCESS BHT MODE COUNTED STRING END SRF ACCESS PRINT Data Record 6Comtec 6 Info ZSystemsAAAAAAAAAAAA Sent to printer Comtec Info Systems continued Mobile Printer CPCLProgramming Manual P10 51 BHT MODE Command Examples continued Example4 Strip Spaces Input 55 5 DF autoexec bat UTILITIES SRF ACCESS BHT MODE STRIP SPACES END SRF ACCESS PRINT Output Data Record Comtec Info Systems AAAAAAAA Data Sent to print
215. s 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 incre ments BEEP Command Example This example instructs the printer to beep for two sec onds 16 x 125 seconds 2 seconds Input CBEEP LBL UTILITIES BEEP 16 PRINT Mobile Printer CPCLProgramming Manual P10 15 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 in cluded between quote marks out the serial port ALARM Sounds the printer s beeper in 1 8 second increments Printers not equipped with a beeper will ignore this option ON LOW BATTERY Command Example This example instructs the printer to transmit the mes sage LOW BATTERY ALERT and sound the beeper for 5 seconds 1 8 second x 40 Input UTILITIES OLB ALERT LOW BATTERY ALERT ALARM 40 10 16 Mobile Printer CPCLProgramming Manual 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
216. sed to query the printer for its parameter values do commands are used to instruct the printer to perform various functions Entering the line lt parameter in a label file will print the value of the parameter specified between The formats of these commands are as follows continued on next page Mobile Printer CPCLProgramming Manual P14 1 getvar Command The getvar command is used to get the current value of printer parameters This command must be terminated by CR LF 0 00 0x0A The printer will respond with the parameter value of if the parameter does not exist usually due to incorrect spelling of the parameter name or it has not been configured yet The parameter name should be specified in lower case 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 OxOD The parameter name must be in lower case Parameter values must be specified in lower case unless the parameter value itself is case sensitive such as a printer s WLAN eSSID Format setvar Parameter Value Parameter name The name of the parameter to be set Please refer to the parameter list for valid parameter names Value The new value to assign to the specified
217. set setvar choices ip gateway setvar This parameter refers to the gateway address This value is ignored if DHCP is enabled getvar result This will return the gateway setting in the printer Example Description This command instructs the printer to respond with the gateway address Syntax getvar ip gateway Result 1019512 setvar choices Any valid gateway address Default 0 0 0 0 Example Description This command instructs the printer to change the gateway address to 38 10 4 1 Syntax U1 setvar ip gateway 38 10 4 1 Result This will set the gateway address to 38 10 4 1 upon cycling the power or issuing the device reset P14 44 Mobile Printer CPCLProgramming Manual ip http enable getvar setvar This parameter refers to the HTTP protocol web sever setting getvar result This will return the HTTP protocol status on or off Example Description This command instructs the printer to respond with the HTTP setting Syntax U1 getvar ip http enable Result on off Default Description This command instructs the printer to enable the HTTP protocol Syntax U1 setvar ip http enable on Result The HTTP protocol will be turned on upon cycling the power or issuing the device reset setvar choices ip lpd enable getvar
218. set to an initial value and is incremented every time a label is printed or fed getvar result This will return the number of bar sense marks that have passed through the printer Example Description This command instructs the printer to respond with the media marker count Syntax U1 getvar odometer media_marker_count Result 105 setvar choices 0 65535 Default 0 Description This command instructs the printer to set the media marker count to 0 Syntax U1 setvar odometer media_marker_count 0 Result The media marker count odometer will be set to 0 Mobile Printer CPCLProgramming Manual P14 31 odometer user_label_count 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 la bel 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 getvar result This will return the number of labels printed by the printer Example Description This command instructs the printer to respond with the user label count Syntax U1 getvar odometer user_label_ count Result 100 setvar choices 0 65000 Default 0 Description This command instructs
219. sh memory getvar result Flash memory size Example Description Get Flash memory size Syntax U1 getvar memory flash_size Result 2097151 Bytes memory flash_free getvar This parameter refers to the amount of available Flash memory getvar result Flash memory available Example Description Get current availably Flash memory Syntax U1 getvar memory flash_free Result 1345000 Bytes Free memory ram_size getvar This parameter refers to the total amount of Random Ac cess Memory Description Get RAM size Syntax U1 getvar memory ram_size Result 2097151 Bytes memory ram_free getvar This parameter refers to the amount of available RAM getvar result Available RAM Example Description Get current availably RAM Syntax U1 getvar memory ram_free Result 456000 Bytes Free P14 28 Mobile Printer CPCLProgramming Manual Odometer Parameters odometer label dot length 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 This will return the length of the last label printed in dots Example Description This command instructs the printer to resp
220. ssage PRINT where command ANNOUNCE message Choose from the following Code Spoken Messages pauses between sounds point 0 Zero 1 2 two 3 three 4 four 5 five 6 Six 8 9 I N version T go to aisle latch is open y battery is low Tt out of paper P10 12 Mobile Printer CPCLProgramming Manual ANNOUNCE Utility Example Input CANNOUNCE LBL UTILITIES ANNOUNCE 12 25 PRINT Output The speaker will play the message one two point two five Mobile Printer CPCLProgramming Manual P10 13 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 Format lt gt UTILITIES command time lt PRINT gt where command TIMEOUT time Time in 1 8 seconds of inactivity before printer will turn itself off TIMEOUT Utility Example Input CTIMEOUT LBL UTILITIES TIMEOUT 960 PRINT This example sets the printer to turn off after 2 minutes of inactivity 120 seconds X 8 960 P10 14 Mobile Printer CPCLProgramming Manual This command instructs the printer to sound the beeper for a given time length Printer
221. ssions in this manual Note that Codablock A and F are not fully supported in this release of the manual Mobile Printer CPCLProgramming Manual P6 3 417 PORTABLE DATA FILE Format command type x ty XD n YD n C 715 nj aata lt ENDPDF gt where command Choose from the following BARCODE Prints bar code horizontally or B VBARCODE Prints bar code vertically or VB type PDF 417 Horizontal starting position D Vertical starting position XD Unit width of the narrowest ment Range is 1 to 32 Default is 2 YD nf Unit height of the narrowest element Range is 1 to 32 Default is 6 Number of columns to use col umns do not include start stop charac ters and left right indicators Range is 1 to 30 Default is 3 P6 4 Mobile Printer CPCLProgramming Manual PDF 417 PORTABLE DATA FILE continued continued 5 nf Security level indicates maximum amount of errors to be detected and or corrected Range is 0 to 8 Default is 1 aata Bar code data lt ENDPDF gt Terminates PDF 417 Note The BARCODE TEXT command does not work with the PDF 417 bar code type Any desired human readable text must be entered seperately with the TEXT command as in the example below PDF417 Example Input CPDF LBL 200 200 210 1 B PDF 417 10 20 XD 3 YD 12 C3 S2 PDF Data ABCDE12345 ENDPDF T 4 10 120 PDF Data T 4 10 170 ABCD
222. st still keep the DSR line at an active state The printer can be programmed to time out and shut itself off reaching a predefined inactivity period The factory default inactivity time out is 2 minutes This setting can be changed using the MP Utilities program the Label Vista application or by sending the following command to the printer UTILITIES TIMEOUT END Where n is the inactivity timeout in 1 8 second For example 960 for a 2 minute inactivity timeout 120 seconds X 8 A timeout of 0 disables inactivity timeout PROGRAMMABLE LOW BATTERY TIMEOUT The printer can be programmed to timeout and shut itself off upon reaching a predefined period after low battery condition is detected The factory default low battery timeout is 1 minute This setting can be changed using the MP Utilities program or the Label Vista application Mobile Printer CPCLProgramming Manual P15 5 POWER MANAGEMENT continued SHUTTING OFF THE PRINTER REMOTELY The printer can be turned off by sending the following shut down command Off Command ESC 0x1b p 0x70 This function can be used instead of lowering DTR caus ing the printer to shut down ENTERING LOW POWER MODE WHEN IDLE The printer automatically enters low power mode when it is idle in order to conserve power All resident data and images will be preserved while the printer is in low power mode P15 6 Mobile Printer CPCLProgramming Manual BATCH
223. supported on units with a Frequency Hopping Spread Spectrum FHSS radio getvar result Current preamble length Example Description This command instructs the printer to retrieve the current preamble length Syntax U1 getvar wlan preamble Result long setvar choices long short Default long Example Description This command instructs the printer to set the authentication type to short Syntax U1 setvar wlan preamble short Result The preamble length will be set to short after power cycle wlan signal_strength getvar Returns the signal strength of the connection to the ac cess point as a percentage value between zero not con nected and 100 strongest signal Values below 40 represent a very poor signal and radio communication will not be reliable getvar result value between 0 and 100 Example Description Query the current signal strength Syntax U1 getvar wlan signal_strength Result 100 Mobile Printer CPCLProgramming Manual P14 85 wlan station name getvar This parameter refers to the station name The station name reported is the printer s serial number getvar result The printer will return its station name The station name is the printer s serial number Example Description Instructs the printer to respond with the value of its station name Syntax U1 getvar wlan station name Result XXQT02 02 0001
224. t 255 255 255 0 protocol LPD 510 ZebraNet SSID Adaress DHCP SAVE OFF 10 14 2 204 l P P12 10 Mobile Printer CPCLProgramming Manual PROGRAMMING FOR THE DISPLAY OPTION Introduction 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 parameter name you can display the value of that parameter name as seen in example 1 Refer to Section 14 of this manual for complete informa tion on available parameters Refer to Table 1 at the end of this section for information on WML tags used by printers with the display option The first card to be displayed should always be called main The following example demonstrates the timer function and uses this to refresh the LCD to give a cur rent battery voltage head latch status and paper out status In the example each line is followed by a CR LF 0x0D 0Ox04A Example 1 This is a complete menu that demonstrates most of the tags from Table 1 at the end of this section The do tag is shown is Example 2 Language Tag lt wml gt Direct output to the LCD scre
225. t the number system character must be set to O Number systems 1 through 9 do not support UPC E and bar codes may not be decoded by a laser scanning device In case your application requires it the number system may be set to something other than O Second if the programmer supplies a checksum digit the printer will create the bar code with that check digit even incorrect f the check digit is incorrect most laser scanning devices will not be able to decode the bar code Therefore the programmer may send six digits no num ber system no checksum seven digits number system no checksum or eight digits number system and checksum and create a bar code Plus 2 and plus 5 bar code extensions are only used for periodicals and paperback books Specifically the bar code specification states that the plus 2 extension should only be used for a periodical issue number The plus 2 and plus 5 extensions do not contain any checksum according to the bar code specification To create an extended bar code place a space be tween 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 55 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 Printer CPCLProgramming Manual 5 5 UPC EAN SPECIFICATIONS Ideal Ideal Barcode Bar code Wi
226. t to the line printer module forcing the data to be printed as well as being transmitted to the host computer Track Data Transmit Options PREFIX prefix This option specifies the track data prefix The printer defaults to no prefix The PREFIX command should be followed by the data that needs to be sent from the printer to the host up to 10 characters and terminated with space or carriage return line feed char acters An example of a typical prefix option is PREFIX START POSTFIX postfix This option specifies the track data postfix The printer de faults to no postfix The POSTFIX com mand should be followed by the data Mobile Printer CPCLProgramming Manual P10 27 10 28 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 carriage return line feed characters An example of a typical postfix option is POSTFIX END DEL Ir Defines the track number delimit ers where is the left delimiter charac ter and is the right delimiter charac ter Default delimiters for the printer are DEL T meaning that the printer will transmit T followed by the track number if track number reporting is specified via the TN option and the 7 The transmit ted data will T1 or or T2 depending on the options selected DELAY nnn This option specifies the inter character delay of da
227. ta sent from the printer to the host in milliseconds This command is typically used where the host computer can not collect data transmitted from the printer fast enough resulting in missed characters The default DELAY is 0 An example of the DELAY option is DELAY 15 which instructs the printer to observe a 15 millisecond delay before sending the next character data to the host TN This option enables the reporting of track number between the delimiters see DEL command The printer will report the track number by default continued Mobile Printer CPCLProgramming Manual NTN This options disables the reporting of the track number inserted between the delimiters The printer enables track number reporting by default Error Reporting Options ERRORS This option turns error reporting on Error reporting is turned off by default The following is a list of the error mes sages Please note that the following error messages will be transmitted only if error reporting is turned on via the ERRORS option in the MCR command READ ERROR This error is reported when the card could not be read due to errors such as parity check LRC check sum no end sentinel or invalid charac ters It indicates that either 1 the card is bad or 2 the card was not swiped correctly The printer will leave the MCR on and will continue to try to read future card swipe retries by the user until it times out or until a successful
228. ter For example an is the same width as an character The resident fonts 0 and 7 monospaced as well as other monospaced fonts avail able with the Label Vista software package Finally at the end many companies like to put a slogan or advertisement of coming events Be certain to put a few CR LF characters at the end after your final line to ensure that the bottom of the receipt does not get torn off through a printed part of the receipt Mobile Printer CPCLProgramming Manual P9 17 Receipt Examples The program must set up the file with all the spacing already inserted Use only spaces not tab characters to make things line up correctly Note that when you issue a command like U1 SETSP 0 it must be followed by a CR LF or enter This will not advance the printer to the next line it will only execute the utility command Example 1 U1 JOURNAL 01 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 01 SETSP 0 4 41 Thank you for shopping at YOURCO YOURCO RETAIL STORES 14 40 PM Thursday 06 04 20 Quantity Item Unit Total 1 Babelfish 4 20 4 20 Tax 5 0 21 Total 4 41 Thank you for shopping at YOURCO P9 18 Mobile Printer CPCLProgramming Manual example the next two pages is more complex design for a fabric shop This receipt would print at t
229. th Sensing option other s will ignore this command off Description getvar result Example Get current status of media width sensing option U1 getvar media width sense enable Syntax setvar choices Result on off on Default off Example P14 20 Description Syntax Result Change the media widt hsense en able status U1 setvar media width sense enable on Media width sensing is enabled continued on next page Mobile Printer CPCLProgramming Manual media width sense in mm getvar This parameter returns the current media width installed in the printer measured in millimeters The media width sense enable parameter must be set to on Note The media width sensing mechanism has a tolerance of 2 5 mm getvar result Media width as measured in millmeters Example Description Get width of installed media Syntax U1 getvar media width sense in mm Result 104 0 media width sense in cm 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 getvar result Media width as measured in centimeters Example Description Get width of installed media Syntax U1 getvar media width_sense in_cm Result 10 4 Mobile Printer CPCLProgramming Manual
230. that data to the host The ERRORS option instructs the printer to report read errors time outs or cancellations if any The last option of the MCR com mand must be terminated with cr If continued P10 30 Mobile Printer CPCLProgramming Manual 01 80 1 2 5 Once the is swiped successfully the following is sent to host and printed T1 B4000001234562 PUBLIC JR JOHN Q MR 9209101999999999 cr lf 12 4000001234562 9209101999999999 lt 1 f gt If the printer times out before a successful read it will send the following message to host and printed on the printer Error T1 Time out Error T2 Time out 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 STARTC1 B4000001234562 PUBLIC JR JOHN Q MR 9209101999999999END cr 1f START C254000001234562 9209101999999999END cr 1f If the printer times out before a successful read it will send the following message to host and printed on the printer ERRC1 Time out cr lf ERRC2 Time out cr lf 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 Mobile Printer CPCLProgramming Manual P10 31 QUERY
231. the USB device getvar result Returns the Manufacturer String stored in the USB library Example Description This example retrieves the device s Manufacturer string Syntax 01 usb device manufacturer_string Result Zebra usb device product_id getvar This parameter refers to the Product Identification num ber 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 Returns the Product ID stored in the USB library Format is hexadecimal Example Description This example retrieves the device s product ID Syntax U1 GETVAR usb device product_id Result 003D Mobile Printer CPCLProgramming Manual P14 61 usb device product_string getvar This parameter refers to the manufacturer assigned string describing a particular USB product getvar result Returns the Product String stored in the USB library Example Description This example retrieves the device s vendor ID Syntax U1 GETVAR usb device product_string Result QL420 usb device serial string getvar This parameter refers to the manufacturer assigned serial number string describing a particular USB product This string should be unique to a particular device getvar result eturns the USB library Example Description Th
232. the printer to set the user label count to 0 Syntax U1 setvar odometer user_label_ count 0 Result The user label count odometer will be set to 0 P14 32 Mobile Printer CPCLProgramming Manual Power Parameters power ascii_graph getvar This parameter refers to the battery status depicted by ASCII graphics characters getvar result The battery graph represented by ASCII graphics characters Example Description Get current battery status graph Syntax U1 getvar graph 11 1 power dtr power off 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 DTR power 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 The printer will stay ON as long as DSR is high unless it reaches low battery shutdown or receives a command to shut down NOTE The inactivity time out is disabled while DSR is active getvar result Current DTR power off setting Example Description Get current DTR power off setting Syntax getvar power dtr power off Result on on off Default Example Description Enable DTR power off Syntax U1 setvar power dtr power off on setvar choices
233. tical lines 103 Right rising diagonal lines 104 Left rising diagonal lines 105 Square pattern 106 Cross hatch pattern P7 6 Mobile Printer CPCLProgramming Manual Input CPATTERN LBL 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 106 LINE 170 115 350 115 40 Draw a scalable text character with cross hatch pattern PATTERN 106 ST PLB_LAT CSF 40 40 2 180 HELLO FORM PRINT inl Mobile Printer CPCLProgramming Manual P7 7 GRAPHICS Commands Bit mapped graphics can be printed by using graphics commands ASCII hex hexadecimal is used for ex panded 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 Format P7 8 command width height x ty data where command Choose from the following EXPANDED GRAPHICS Prints expanded or EG graphics horizontally VEXPANDED GRAPHICS Prints expanded or VEG graphics vertically COMPRESSED GRAPHICS Prints compressed or CG graphics horizontally VCOMPRESSED GRAPHICS Prints compressed or VCG graphics verticall
234. to this rule is when MCR is in MULTIPLE read mode See below for description of MULTIPLE read mode A time out of 0 will instruct the printer to never time out and wait for a successful read The options listed below can be specified in any order and must be separated with spaces The last option must be terminated with cr If carriage return line feed characters Options are accumulative meaning that MCR 10 ERRORS 11 and MCR 40 2 are equivalent to MCR 40 ERRORS 1 2 The time out field is not accumulative and only the last specified time out is used Select from the following options T1 Read Track 1 can specify one or more tracks to read T2 Read Track 2 T3 Read Track 3 Currently not sup ported Frequency Options P10 26 MULTIPLE Read multiple swipes MCR will continue to read and report card swipes until the MCR times out SINGLE read is the default mode SINGLE Read and report one success ful card swipe No data will be reported continued Mobile Printer CPCLProgramming Manual if the MCR times before a successful read SINGLE read is the default read frequency mode Data Reporting Options QUERY Report MCR data when que ried In response to MCR QUERY command see MCR QUERY By default the printer will report MCR data when valid MCR data is decoded before the MCR times out Debugging Options ECHO The printer will print the MCR data by internally routing i
235. to be registered incorrectly when a new label file is sent send a label to the printer and the label begins fo print Before all of the label is printed there is a feed to the next label This happens for 2 attempts before the printer stops Make sure that the label length specified in your command line is shorter than the distance between your eye sense marks on the label stock If you are asking to print say a 400 dot long label and the label stock eye sense marks are 300 dots apart the printer sees an eye sense mark before the entire label has printed and assumes the label stock was not at top of form It then feeds to the next top of form and tries again After 2 tries the printer ad vances to the next top of form and stops When I send a label the printer the label file printed and not the label itself Mobile Printer CPCLProgramming Manual A 15 APPENDIX continued If you are getting the label file printed instead of the label the syntax of the first line may be incor rect Check that the syntax is something like 0 200 200 210 1 where the 210 is the label length and 1 is the quantity If the printer detects an invalid first line the command mode is not entered Instead the printer acts as a generic line printer and the remain ing lines are treated as raw text to be printed printer doesn t seem to respond when send anything to it Make sure that you have the same communi
236. to run Windows 95 will have sufficient memory to run Label Vista Note Label Vista has proven to be compatible with Windows XP in informal testing however compatibility problems with certain unusual combinations of hardware and software may arise Mobile Printer CPCLProgramming Manual P1 9 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 con taining 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 com mands A space character is used to delimit each field in a com mand line Note Every line in the command session must be terminated with both carriage return and line feed characters All Printer Commands must be in uppercase characters ONLY Mobile Printer CPCLProgramming Manual P2 1 PRINTER Commands Format lt gt offset lt 200 gt 200 height qty where c offset lt 200 gt lt 200 gt height qty P2 2 Use to begin a control session The horizontal offset for the entire label This value causes all fields to be offset horizontally by the specified number of UNITS Horizontal resolution in dots per inch Vertical resolution
237. tract the media the same distance before starting a new print job The delay parameter is used to avoid unnecessary advance retract operations when printing a batch of print jobs The PRESENT AT command can be issued label file or in a utilities command session IUTILITIES PRINT Caution When using this command an added buffer area of 18 dots should be applied to the leading and trailing edges of the label Registration between any preprinting graphics on the media and the file being printed may vary from label to label Format command length delay where command PRESENT AT length Unit length in dot lines the media is advanced after printing and retracted before printing the next label delay The interval after printing the label the printer waits prior to advancing the media Increments are in 1 8 of a second Adelay of 1 is equivalent to 1 8 of a second A delay of 4 is equivalent to 1 2 second etc P8 20 Mobile Printer CPCLProgramming Manual PRESENT AT Command Example The following example instructs the printer to wait 1 4 second and if there is no printer activity within this inter val to then advance the media 80 dot lines The printer will retract the media by the same amount before printing the next label Input CPRESENT AT LBL 200 200 250 1 TEXT 7 10 PRESENT AT EXAMPLE PRESENT AT 8 2 FORM PRINT Mobile Printer CPCLProgramming Manual P8 21 COUN
238. ty of such damages Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages so the above limitation or exclusion may not apply to you Copyrights The copyrights in this manual and the label printer described therein are owned by Zebra Technologies All rights are reserved Unauthorized reproduction of this manual or the software in the label printer may result in imprisonment of up to one year and fines of up to 10 000 17 U S C 506 Copyright violators may be subject to civil liability 2005 ZIH Corp All trademarks and registered trademarks are property of their respective owners All rights reserved 5 PROGRAMMING INTRODUCTION P1 1 PROGRAMMING LANGUAGE EMULATION 1 1 PROGRAMMING LANGUAGE RECOMMENDATIONS P1 2 GETTING PRINTER P1 3 GETTING PRINTER INFORMATION EXAMPLE P1 4 COMMUNICATIONS DIAGNOSTICS P1 7 LABEL COORDINATE SYSTEM 1 8 LABEL VIS TAM P1 9 PRINTER COMMANDS 1 P2 1 PRINTER COMMAND SS cco chart arate P2 2 PRINT COMMAND tuit P2 3 FOBMICOMMAND ed P2 4 JOURNAL COMMAND See recette sateen P2 5 UNITS COMMANDS s etsi Qa dera de P2 6 USI
239. ultiply 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 60 25 85 Step 5 The checksum is the smallest number when added to step 4 will equal a multiple of ten In our example 85 5 90 which is a multiple of 10 Therefore the check digit should be 5 It is called a modulo checksum because you take the modulo or remainder of the sum For the programmers it is 10 85 mod 10 the checksum UPC A and 13 bar codes can be created with and without a checksum supplied If the programmer supplies a checksum digit the printer will create the bar code with that check digit even f it s incorrect Most laser scan ning devices will not be able to decode the bar code if the check digit is incorrect UPC E bar codes useful for small items like candy and gum are created through the method of zero suppres sion For example if you were to encode 01000000567 the resulting bar code would be a compressed bar code 5 4 Mobile Printer CPCLProgramming Manual that only contains the data the compression scheme and the checksum without all the extra zeros For our example the bar code would decode to 1056707 Please refer to the UPC Symbol Specification Manual from the Uniform Code Council for more information on zero suppression UPC E and EAN8 bar codes have a few restrictions Firs
240. urrent client identifier value Example Description This command instructs the printer to respond with the client identifier value Syntax U1 getvar ip dhcp cid_value Result setvar choices Any text string up to 20 characters in length Default f ip dhcp cid_type is 0 the default is the printer s friendly name see device friendly name If ip dhcp cid type is 1 the default is the printer s MAC ad dress Example Description Change CID value to PRT001 Syntax U1 setvar ip dhcp cid value PRT001 Result The next time the printer sends a DHCP request if ip dhcp cid type is 0 the client identifier sent will be ip dhcp cid prefix plus PRT001 e g if ip dhcp cid prefix is ZEB the actual client identifier sent will be ZEBPRTOO continued on next page Mobile Printer CPCLProgramming Manual P14 43 ip ftp enable setvar This parameter refers to the FTP protocol setting getvar result Returns printer s FTP status on or off Example Description This command instructs the printer to respond with the FTP setting Syntax U1 getvar ip ftp enable Result on on off Default on Example Description This command instructs the printer to disable FTP Syntax U1 setvar ip ftp enable off Result FTP service will be disabled upon cycling the power or issuing the device re
241. ved by Zebra Technologies could void the user s authority to operate the equipment This unit was tested with shielded cables on the peripheral devices Shielded cables must be used with the unit to insure compliance WARNING EXPOSURE TO RADIO FREQUENCY RADIATION ON SOME MODELS TO CONFORM TO FCC RF EXPOSURE REQUIREMENTS THIS DEVICE SHALL BE USED IN ACCORDANCE WITH THE OPERATING CONDITIONS AND INSTRUCTIONS LISTED IN THE UNIT S USER S MANUAL Canadian DOC Compliance Statement Digital apparatus does not exceed the Class A limits for radio noise emissions from digital apparatus as set out in the radio interference regulations of the Canadian Department of Communications Liability Disclaimer Zebra Technologies takes steps to assure that its published Engineering specifications and manuals are correct however errors do occur Zebra Technologies reserves the right to correct any such errors and disclaims liability resulting therefrom Limitation of Liability In no event shall Zebra Technologies or anyone else involved in the creation production or delivery of the accompanying product including hardware and software be liable for any damages whatsoever including without limitation consequential damages including loss of business profits business interruption or loss of business information arising out of the use of or the results of use of or inability to use such product even if Zebra Technologies has been advised of the possibili
242. voltage Result Po P14 36 Mobile Printer CPCLProgramming Manual Test Function Parameters test feed This command can be used to advance media to top of form do parameters None Example Description Perform form feed Syntax U1 do test feed Result Printer will advance to top of form test print diags This command can be used to print a diagnostics report do parameters None Example Description Print diagnostics report Syntax U1 do test print diags Result Printer will print a diagnostics report test report diags This command can be used to retrieve a diagnostics re port from the printer do parameters None Example Description Retrieve diagnostics report Syntax U1 do test report diags Result Zebra QL 320 V79 40 02 01 02 CHK FFFF End of report Mobile Printer CPCLProgramming Manual P14 37 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 card mac_addr getvar This parameter refers to the MAC address of the network card getvar result MAC address of the printer Example Description This parameter instructs the printer to respond with the MAC address Syntax U1
243. word Input in each example the file name of that example will appear in parentheses This manual can also be found on the Accessories CD Part Number 46984 available from Zebra PROGRAMMING LANGUAGE EMULATION Zebra Mobile Printers can emulate the EPL2TM and ZPL9 programming languages used by other types of Zebra printers Printers using emulation must be configured with more memory and have a special emulation program loaded For more information on the appropriate uses of these languages refer to the following language compari son chart continued on next page Mobile Printer CPCLProgramming Manual P1 1 PROGRAMMING LANGUAGE RECOMMENDATIONS Native in Reccommended Use Cameo Encore In new installations of QL RW and older mobiles where CPCL is easily Comtec models integrated into the host application When older Comtec models are being upgraded so that the customer can use existing application without code modifications ZPL PA PT Series mobile When an installation already emulation printers Zebra High uses ZPL as a standard language available on Performance Industrial amp needs to maintain a consistant QL series Commercial printers language for all thermal printers std on R 140 RFID printer When certain printer functions QL plus amp LP TLP 2844 Z and are not available in CPCL or RW Series PAX applicator printers EPL such as ZBI Datamatrix Code 11 Micro PDF When replacin
244. y width Byte width of image height Dot height of image Horizontal starting position Whe Vertical starting position aata Graphics data Mobile Printer CPCLProgramming Manual GRAPHICS Example Input CGRAPHIC LBL 200 200 210 1 2 16 90 45 FOFOFOFOFOFOFOFOOFOFOFOFOFOFOFOF FOFOFOFOFOFOFOFOQFOFOFOFOFOFOFOF FORM PRINT Note Graphic output has been magnified Actual size is 1 4 of output shown Mobile Printer CPCLProgramming Manual P7 9 5 PCX command gives 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 xj yj aata where command PCX 7 X coordinate of the top left corner 7 Y coordinate of the top left corner aata PCX image data P7 10 Mobile Printer CPCLProgramming Manual PCX Examples EXAMPLE 1 In the example below the image is sent in three steps First the printer is sent commands to expect a PCX formatted file The second input to the printer is the PCX image This image must be a 2 color black and white image The last step is to tell the printer to print the label Input 1 CSTARTPCX LBL 200 200 500 1 0 30 Input 2 CIMAGE PCX Input 3 CENDPCX LBL FORM PRINT Mobile Printer CPCLProgramming Manual P7 11 Examples continued EXAMPLE 2 In this example the PCX image has
Download Pdf Manuals
Related Search
Related Contents
Samsung SP-M255 Käyttöopas User`s Manual MOM2 MOM2 Win LG LDF7551WW dishwasher KOHLER K-7114-A-2BZ Installation Guide Transcend Information SDHC Class 6 User's Manual UVc(ultraviolett)-Lampe - WilTec Wildanger Technik LM315GC Bedienungsanleitung 2013 ビデオカメラ レコーダー 資料1 パブリックコメント意見概要と回答(案)(PDF形式 Copyright © All rights reserved.
Failed to retrieve file