EasyManua.ls Logo

Zebra CPCL User Manual

Zebra CPCL
376 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Page #1 background imageLoading...
Page #1 background image
PROMAN-CPCL Rev. PApril. 2005
Question and Answer IconNeed help?

Do you have a question about the Zebra CPCL and is the answer not in the manual?

Zebra CPCL Specifications

General IconGeneral
Programming LanguageCPCL
Print MethodDirect Thermal
Resolution203 dpi
Print SpeedUp to 4 ips
Media HandlingRoll-fed
ConnectivityUSB
Memory8 MB
DimensionsVaries by model
WeightVaries by model
Storage Temperature-40°F to 140°F (-40°C to 60°C)

Summary

Programming Section

PROGRAMMING INTRODUCTION

Details commands in CPCL language for text, graphics, barcode printing, and communications.

PROGRAMMING LANGUAGE EMULATION

Explains printer emulation of EPL2 and ZPL programming languages.

PROGRAMMING LANGUAGE RECOMMENDATIONS

Recommends CPCL, ZPL, and EPL based on installation needs.

GETTING PRINTER INFORMATION

Details how to obtain printer status, model, and configuration information.

GETTING PRINTER INFORMATION EXAMPLE

Provides a sample output of the printer information report.

COMMUNICATIONS DIAGNOSTICS MODE

Guides users on entering and using dump mode for diagnosing communication issues.

LABEL COORDINATE SYSTEM

Explains the coordinate system used for label placement in dots.

LABEL VISTA™

Introduces Label Vista, a label design and creation program.

PRINTER COMMANDS

PRINTER Commands

Details the format and parameters for the primary printer command.

PRINT Command

Explains the command that terminates and prints the label file.

FORM Command

Instructs the printer to perform a form feed after printing the label.

JOURNAL Command

Disables automatic media alignment checks during print cycles.

UNITS Commands

Specifies measurement systems (inches, cm, mm, dots) for subsequent commands.

USING COMMENTS

Explains how to add comments to label files using the semicolon character.

TEXT

RESIDENT FONT SAMPLES

Displays samples of built-in fonts and their sizes.

TEXT Commands

Details the TEXT command and its variants for placing text.

USING FONT GROUPS

Explains grouping pre-scaled fonts for dynamic selection.

TEXT CONCATENATION COMMANDS

Allows assigning different character styles to strings on the same line.

MULTILINE (ML) Commands

Enables printing multiple lines of text with consistent font and line height.

COUNT Command

Used for incrementing/decrementing numeric fields in labels or barcodes.

SETMAG Command

Magnifies resident fonts to a specified magnification factor.

SCALABLE TEXT

SCALE-TEXT Commands

Specifies the point size for both width and height of scalable text.

SCALE-TO-FIT Commands

Automatically calculates scale to fit text within a defined window.

SCALABLE CONCATENATION Commands

Combines scalable text strings with uniform spacing.

ROTATE Commands

Rotates scalable text fields by a specified angle.

LINEAR BAR CODES

INTRODUCTION

Introduces barcode benefits and programming considerations.

RESIDENT LINEAR BAR CODE SAMPLES

Shows visual examples of common resident linear barcodes.

UPC AND EAN/JAN BAR CODES

Explains UPC/EAN barcodes used for product marking and pricing.

CODE 39 OR CODE 3 OF 9 BAR CODES

Describes Code 39 barcodes for applications with variable item lengths.

CODE 93 OR CODE 9 OF 3 BAR CODES

Covers Code 93 barcodes for applications requiring heavy error checking.

INTERLEAVED 2 OF 5 BAR CODES

Details Interleaved 2 of 5 barcodes for fixed data length applications.

CODE 128 AND THE UCC-128 SHIPPING STANDARD

Explains Code 128 for applications needing large data amounts like shipping.

CODABAR

Covers Codabar barcodes for numeric symbols that vary in length.

MSI PLESSEY BAR CODES

Describes MSI Plessey barcodes, primarily used in grocery applications.

POSTNET AND FACING IDENTIFICATION MARKS

Explains Postnet barcodes for mail delivery and FIM marks.

BAR CODE COMMANDS

BARCODE Command

Prints barcodes horizontally or vertically at specified dimensions.

BARCODE-TEXT Command

Labels barcodes with the same data, centered below the barcode.

COUNT Command

Used for incrementing/decrementing numeric fields in labels or barcodes.

TWO-DIMENSIONAL BAR CODES

Introduction

Explains the concept and utility of 2D barcodes as portable databases.

PDF417

Details PDF417 barcodes, capable of storing large amounts of data.

MaxiCode

Describes MaxiCode barcodes, designed for automated package delivery.

TWO-DIMENSIONAL BAR CODE COMMANDS

Covers commands for creating and formatting 2D barcodes.

PDF417 (PORTABLE DATA FILE)

Provides format and parameters for the PDF417 barcode.

MAXICODE

Details format and tags for creating MaxiCode barcodes.

GRAPHICS

BOX Command

Produces rectangular shapes with specified line thickness.

LINE Commands

Draws lines of any length, thickness, and orientation.

INVERSE-LINE Commands

Inverts image areas by redrawing black areas white and vice-versa.

PATTERN Command

Changes patterns used to fill shapes like lines and boxes.

GRAPHICS Commands

Details commands for printing bit-mapped graphics using ASCII hex data.

PCX Commands

Allows sending .PCX graphics formatted images to the printer.

ADVANCED COMMANDS

CONTRAST Command

Specifies print darkness for the entire label.

TONE Command

Alternative to CONTRAST for specifying print darkness.

JUSTIFICATION Commands

Controls field alignment (center, left, right) for text.

PAGE-WIDTH Command

Assumes or sets the page width for printing.

PACE Command

Activates batch printing mode requiring manual feed for subsequent labels.

AUTO-PACE Command

Delays printing until the previous label is removed, using a sensor.

NO-PACE Command

Cancels PACE and AUTO-PACE modes.

WAIT Command

Introduces a delay after printing each label.

REWIND Command

Controls the printer's rewind motor (on/off).

TENSION Commands

Adjusts liner tension by running the rewind motor.

SPEED Command

Sets the highest motor speed level for printing.

SETSP Command

Changes spacing between text characters.

ON-OUT-OF-PAPER Command

Defines printer action when an out-of-paper error occurs.

ON-FEED Command

Configures printer response to feed key press or form-feed character.

PREFEED Command

Advances media a specified amount before printing.

POSTFEED Command

Advances media a specified amount after printing.

PRESENT-AT Command

Positions media for easy removal or tear-off.

COUNTRY / CODE PAGE Command

Substitutes character sets for specified countries.

Asian Fonts

Discusses combinations of Asian fonts and printer memory.

USING FORMAT FILES

Explains using DEFINE-FORMAT and USE-FORMAT commands for label templates.

BEEP Command

Instructs the printer to sound its beeper for a specified duration.

CUT Command

Cuts the label after it is printed on printers with cutters.

PARTIAL-CUT Command

Cuts the label, leaving a portion uncut for easier tearing.

CUT-AT Command

Retracts stock by a specified length after a cut or partial cut.

MCR Commands

Configures and activates the optional Magnetic Card Reader.

LINE PRINT MODE

Introduction

Explains line print mode capabilities and assumptions.

Special Commands Using the Utility Function

Details executing multiple utility commands at once or individually.

UNITS Commands

Specifies measurement systems for utility commands.

SETLP Command

Selects the line printer font and carriage return spacing.

SETLF Command

Changes line height without altering the font.

Moving With X and Y Coordinates

Uses X and Y values to move across or down the paper.

LMARGIN Command

Sets the left margin in line print mode.

SETBOLD Command

Makes text bolder and slightly wider.

SETSP Command

Changes spacing between text characters for emphasis.

PAGE-WIDTH Command

Assumes or sets the page width for printing.

PAGE-HEIGHT Command

Controls the page height for receipts.

Special ASCII Characters

Explains Form Feed and Backspace characters.

SETFF Command

Aligns the top of media to the printhead based on sensor marks.

SET-TOF Command

Programs the distance between top-of-form and sensor marks.

Tearing or Cutting the Paper

Covers commands like PRESENT-AT, CUT-AT, CUT, and PARTIAL-CUT.

Bar Codes, Graphics and Lines

Discusses using barcode, graphics, and line commands in line print mode.

SETLP-TIMEOUT Command

Sets a delay before printing if no characters are received.

Designing a Receipt

Provides guidance on creating effective receipt layouts.

ADVANCED UTILITIES

VERSION Utility

Reports the printer's firmware version.

CHECKSUM Utility

Reports the application checksum.

DEL Utility

Deletes specified files from the printer.

DIR Utility

Sends the file directory to a host.

DEFINE-FILE (DF) Utility

Defines a filename to load data into the printer.

TYPE Utility

Reads a text file and sends it from the printer to a host.

BAUD Utility

Sets the printer serial port baud rate.

COUNTRY / CODE-PAGE Utility or CHAR-SET/CODE PAGE Utility

Substitutes character sets for specified countries or character sets.

ANNOUNCE Utility

Activates pre-programmed sounds in the printer.

TIMEOUT Utility

Sets the time before the printer turns off due to inactivity.

BEEP Command

Instructs the printer to sound its beeper.

ON-LOW-BATTERY Command

Defines printer action when battery voltage drops below a set level.

LT Command

Specifies command line terminator characters.

SET-TIME Utility

Sets the printer's real-time clock time.

GET-TIME Utility

Reports the printer's current time.

SET-DATE Utility

Sets the printer's real-time clock date.

GET-DATE Utility

Reports the printer's current date.

Printing a Time Stamp

Shows how to print the current time on a label.

Printing a Date Stamp

Shows how to print the current date on a label.

PAPER-JAM Utility

Establishes parameters for the printer to report paper jams.

Magnetic Card Reader (MCR) Command

Configures and activates the Magnetic Card Reader.

MCR-QUERY Command

Puts the MCR in query mode to report data on demand.

MCR-CAN Command

Terminates MCR activity and cancels pending operations.

S-CARD Command

Accesses the Towitoko Smartcard reader embedded in SC model printers.

DENSO BHT COMMANDS

NOTE: All commands

Compatibility note for Denso BHT commands.

Setting the Data Format

Explains how to set data formats for BHT communication.

Mode 1: (Default) Strip trailing spaces and add CR/LF

Default mode strips trailing spaces and adds CR/LF.

Mode 2: Include all characters in each field (RAW)

RAW mode accepts all characters, including trailing spaces.

Mode 3: Use the first byte as a count of characters to send to the printer

Uses the first byte as a count of characters for data transfer.

Mode 4: Strip trailing spaces

Eliminates trailing spaces without adding CR/LF.

IR or Cable Interface Selection

Discusses printer interface selection for IR or cable data transmission.

BHT-BAUD Command

Sets IR and cable transmit speeds (baud rates).

Setting the Mode for IR Data Transmission

Notes on configuring printers for IR data transmission modes.

Configuring the BHT for IR transmission

Details BHT configuration for IR communication with Zebra printers.

Configuring the BHT for Cable Transmission

Details BHT configuration for cable communication with Zebra printers.

Loading a .DAT file into the BHT

Explains loading .DAT files from a PC into the BHT.

Interrupted Transmissions

Guidance on handling interrupted data transmissions.

BHT-PROTOCOL Command

Overrides default communication methods for BHT.

PRINTER ESCAPE COMMANDS

SET AND READ CODE COMMAND

Redefines or reads the CCL code for command sessions.

PRINTER ESCAPE COMMANDS FORMAT

Details the format for printer escape commands.

STATUS/INFORMATION

Covers commands to get printer status and information.

USER LABEL COUNT

Manages the count of user labels printed.

POWER OFF COMMAND

Instructs the printer to shut off remotely.

WIRELESS NETWORK PRINTERS

Introduction

Introduces network printers and their wireless capabilities.

Network Printer Safety Considerations

Warns about RF radiation exposure and safety precautions.

LAN Command

Interrogates and configures the Wireless LAN card.

Setting the IP Address for Network Printers

Guides on setting the IP address and SSID for network printers.

Network Printer Troubleshooting

Provides steps for diagnosing and resolving network printer issues.

PROGRAMMING FOR THE DISPLAY OPTION

CONFIGURATION/CONTROL COMMANDS

Command Format

Explains the standard format for setvar, getvar, and do commands.

Commands / Parameters

Provides detailed descriptions of set/get/do commands and parameters.

appl.date

Retrieves the printer's application date.

appl.name

Retrieves the printer's application name.

appl.version

Retrieves the printer's application version.

Bluetooth® Parameters

Covers parameters for Bluetooth enabled applications.

bluetooth.address

Retrieves the printer's Bluetooth device address.

bluetooth.authentication

Sets the Bluetooth authentication mode.

bluetooth.bluetooth_pin

Manages the Bluetooth PIN for printer connection.

bluetooth.date

Retrieves the Bluetooth library release date.

bluetooth.discoverable

Sets the Bluetooth discoverable mode.

bluetooth.friendly_name

Sets the friendly name for Bluetooth service discovery.

bluetooth.local_name

Retrieves the printer's local name for service discovery.

bluetooth.version

Retrieves the Bluetooth library version number.

Comm Port Parameters

Covers parameters for printer communication ports.

Device Parameters

Covers device-specific parameters like friendly name and languages.

Display Parameters

Covers display contrast and backlight settings.

File Parameters

Covers commands for managing printer files (delete, dir, print, rename, run, type).

Printer Mechanism Parameters

Covers head latch and media width sensing parameters.

Input Parameter

Covers input capture modes for diagnostics.

Media Parameters

Covers media sense mode and paper status.

Memory Parameters

Details flash and RAM memory sizes and availability.

Odometer Parameters

Tracks label dot length, latch open count, and media marker count.

Power Parameters

Covers printer power management settings like DTR control and timeouts.

Test Function Parameters

Covers functions for testing printer operations like feed and diagnostics.

Networking Parameters

Covers network parameters like MAC address and IP configuration.

ip.addr

Sets or retrieves the printer's IP address.

ip.bootp.enable

Enables or disables the BOOTP protocol for IP address acquisition.

ip.dhcp.enable

Enables or disables DHCP for automatic IP address assignment.

ip.dhcp.cid_prefix

Defines the prefix for the DHCP client identifier.

ip.dhcp.cid_type

Defines the type of Client Identifier used for DHCP.

ip.dhcp.cid_value

Defines the unique value for the client identifier.

ip.ftp.enable

Enables or disables the FTP protocol.

ip.gateway

Sets or retrieves the gateway address for network communication.

ip.http.enable

Enables or disables the HTTP protocol.

ip.lpd.enable

Enables or disables the LPD protocol for host printing.

ip.netmask

Sets or retrieves the subnet mask address.

ip.pop3.enable

Enables or disables the POP3 protocol for email retrieval.

ip.pop3.password

Manages the POP3 mailbox password.

ip.pop3.poll

Sets the frequency for querying POP3 mailboxes.

ip.pop3.print_body

Controls whether email bodies are printed upon POP3 retrieval.

ip.pop3.print_headers

Controls whether email headers are printed upon POP3 retrieval.

ip.pop3.save_attachments

Controls saving email attachments to flash memory.

ip.pop3.server_addr

Sets or retrieves the POP3 server IP address.

ip.username

Manages the POP3 username for email retrieval.

ip.pop3.verbose_headers

Controls printing of verbose email headers.

ip.port

Sets or retrieves the TCP/UDP port number for print service.

ip.remote

Sets or retrieves the remote server address or name.

ip.remote_autoconnect

Determines if the printer automatically initiates TCP connections on power-up.

ip.remote_port

Defines the destination TCP port for remote connections.

ip.smtp.enable

Enables or disables the SMTP protocol for email sending.

ip.snmp.enable

Enables or disables the SNMP protocol for remote monitoring.

ip.snmp.get_community_name

Sets or retrieves the SNMP get community name.

ip.snmp.create_mib

Creates an SNMP MIB file for the printer.

ip.tcp.enable

Enables or disables the TCP socket protocol.

USB Parameters

Covers parameters for USB connectivity on specific printer models.

WLAN Parameters

Covers parameters for Wireless LAN connectivity.

wlan.associated

Checks if the printer is associated with an access point.

wlan.auth_type

Selects the authentication service between printer and access point.

wlan.bssid

Returns the MAC address of the associated access point.

wlan.current_essid

Retrieves the eSSID of the currently associated network.

wlan.current_tx_rate

Retrieves the current transmit rate in Mbps.

wlan.encryption_index

Selects the WEP encryption key index.

wlan.encryption_key1

Sets or retrieves the first WEP encryption key.

wlan.encryption_key2

Sets or retrieves the second WEP encryption key.

wlan.encryption_key3

Sets or retrieves the third WEP encryption key.

wlan.encryption_key4

Sets or retrieves the fourth WEP encryption key.

wlan.encryption_mode

Enables or disables WEP encryption for the printer.

wlan.essid

Sets or retrieves the stored eSSID for network association.

wlan.international_mode

Sets the printer to operate in international wireless network settings.

wlan.kerberos.kdc

Refers to the Kerberos Key Distribution Center (KDC).

wlan.kerberos.mode

Refers to the Kerberos network authentication protocol.

wlan.kerberos.password

Refers to the Kerberos password.

wlan.kerberos.realm

Refers to the Kerberos realm.

wlan.kerberos.username

Refers to the Kerberos user name.

wlan.leap_mode

Refers to Cisco LEAP authentication protocol mode.

wlan.leap_password

Refers to the LEAP password for authentication.

wlan.leap_username

Refers to the LEAP user name for authentication.

wlan.operating_mode

Sets the network operating mode (infrastructure or ad hoc).

wlan.power_save

Configures power save modes for the network radio card.

wlan.signal_strength

Returns the signal strength of the connection to the access point.

wlan.station_name

Refers to the station name, which is the printer's serial number.

Zebra Printer Mirror Process

Describes the file mirroring process to synchronize files with an FTP server.

Server Settings

Details the required directory structure on the FTP server.

ip.mirror.auto

Enables or disables the automatic file mirroring process.

ip.mirror.fetch

Forces the mirror process to run immediately.

ip.mirror.freq

Defines the frequency for performing mirror processes.

ip.mirror.password

Defines the FTP password for the mirror process.

ip.mirror.path

Defines the FTP path for mirror directories.

ip.mirror.server

Defines the FTP server for the mirror process.

ip.mirror.username

Defines the FTP username for the mirror process.

BATCH FILES

Explains storing and executing startup files like AUTOEXEC.BAT.

RUN.BAT Command/File

Describes executing a RUN.BAT file for applications using bar code input.

GAP-SENSE & BAR-SENSE Commands

Instructs the printer on top-of-form detection methods.

Related product manuals