Mobile printer calibration

Media Type

By default the printers use CPCL programming language. By default the printers are set up for bar sensing (black mark)

If you are NOT using bar sensing, one needs to tell the printer what type of media it has.   This can be done through creating a config.sys file for the printer to use upon boot up.

Below is an example of a file that one can send to the printer either through Label Vista or by copying the file through a DOS command prompt.     (c:>copy filename.txt com1)

! DF CONFIG.SYS                         This line tells the printer to create a file called config.sys
! UTILITIES                                    CPCL always starts with a !
GAP-SENSE                                    This line tells the printer to use the gap-sensor 
PRINT                                              CPCL ends with "PRINT"


Use Label Vista to send a file to the printer:

  1. Open Label Vista, Click on the menu item "Printer", then select "1 Send File"
  2. Use the browse button to locate the file that you have created
  3. Make sure the check box for "Store to flash file system" is NOT checked.
  4. Click on send and wait for the process bar to complete.
  5. Power the printer off and on. Test by pressing the feed key to see if it stops at the gap between labels.

Use the Zebra Setup Utility to send file (When available)


Each and every time the printer is now powered on it will look at this config.sys file that was just created  and configure itself accordingly.  

 

 

To make a temporary change on the printer, one is able to send commands to the printer to temporarily change the media type for the current application. This method sends down the commands for gap, bar or journal with each format. It uses the setvar command along with the gap-sense or bar-sense commands. Click here to see details

See the CPCL programming language manual for further details.

 

Page Width

Mobile printers assume that the page width is the full width of the printer.  Also, the maximum height of a print session is determined by the page width and the available printer  memory.  

**There is an option on  some of the newer printers  for a optional  media width auto-sensing feature.

If the printer does not have this option and if you are using a label width smaller than the largest media possible, one can tell the printer the page-width of the media it is using.   

 

                        
! UTILITIES                                    CPCL always starts with a !
PW 406                                             This line tells the printer that the label width is 406 dots
PRINT                                              CPCL ends with "PRINT"
                                                              

 


To make a temporary change on the printer, one is able to send commands to the printer to temporarily change the page-width  for the current application. This method sends down the commands for page-width  with each format. It uses  Page-width (PW) command within the label format. 

An example using CPCL to define the page-width:

! 0 200 200 240 1
LABEL
PAGE-WIDTH 250
                        This line indicates a page-width of 250 dots (1.25 inches)
GAP-SENSE                                  This line indicates that the gap sensor is to be turned on
T 0 0 19 24 Zebra
T 0 0 19 44 Technologies
FORM
PRINT

 


 

ZPL emulation

If one is using ZPL emulation, the printer needs to be calibrated before it will recognize label lengths within ZPL.

Below is an example of a file that one can send to the printer either through Label Vista or by copying the file through a DOS command prompt.  (c:>copy filename.txt com1)

~JC                                          This command tells the printer to calibrate
^XA                                        
ZPL starts with a ^XA
^JUS                                       
This command tells the printer to save the settings
^XZ                                         
ZPL ends with "^XZ"


Use Label Vista to send a file to the printer:

  1. Open Label Vista, Click on the menu item "Printer", then select "1 Send File"
  2. Use the browse button to locate the file that you have created
  3. Make sure the check box for "Store to flash file system" is NOT checked.
  4. Click on send and wait for the process bar to complete.

Use the Zebra Setup Utility to send file (When available)


Tear off Offset

The PRESENT-AT command can be used to position the media at the tear bar of the printer or at a location where the printed label can be easily removed by the operator.   When a PRESENT-AT command is issued, the printer will print a label and then, after a delay period, advance the media a specified distance.  It will then retract the media the same distance before starting a new print job.   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 in a label file or in a utilities command session. 

{command} {length} {delay}

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.   A delay of "1" is equivelant to 1/8 th of a second,  a delay of "4" is equivelant to 1/2 second, etc.

 

The following example instructs the printer to wait 1/4 second and if there is no printer activity within this interval to then advance the media 80 dot lines.  The printer will retract the media by the same amount before printing the next label. 

 

! 0 200 200 250 1

TEXT 7 0 0 10 PRESENT-AT EXAMPLE

PRESENT-AT 80 2

FORM

PRINT