Datamax 7A300007 Rev. 2 manual Introduction, Datamax-O’Neil Printer Command Language ExPCL

Page 7

Introduction

This manual is intended to be used by software developers and system integrators with the purpose of developing applications that can print output results using Datamax-O’Neil wide range of mobile thermal printers. This section of the manual describes the various printer models, their main technical specifications and the communication interfaces available for each model. For specific information about the operation of each printer refer to the User’s Guide.

Printer Models and Supported Features

The Datamax-O’Neil series of thermal printers offer a wide variety of solutions for printing applications. Communication interfaces and supporting flexible paper widths are shown in the table below. For additional information, please refer to the printer’s User Guide.

Model

Max Paper

Max. Print

Max Print

Sensors

 

 

Communication Interfaces

 

 

Width

Width

Dots

RS-232

USB

BT

IrDA

WiFi

MCR

SCR

 

 

 

 

 

 

 

APEX2

2.28”/58m

1.89”/48mm

384

Front Black

Std

NA

Std

Opt

Opt

Opt

Opt

m

Mark

 

 

 

 

 

 

 

 

 

 

APEX3

3.15”/80m

2.83”/72mm

576

Front Black

Std

NA

Std

Opt

Opt

Opt

Opt

m

Mark

 

 

 

 

 

 

 

 

 

 

ANDES3

3.15”/80m

2.83”/72mm

576

Front & Back

Std

Std

Opt*

Std

Opt*

Opt*

Opt*

m

Black Mark

 

 

 

 

 

 

 

 

 

 

APEX4

4.35”/110.6

4.09”/104m

832

Front Black

Opt

Std

Std

Opt

Opt

Opt

Opt

mm

m

Mark

 

 

 

 

 

 

 

 

 

Std = Standard

NA = Not Available

Opt = Optional

Datamax-O’Neil Printer Command Language (ExPCL)

This section describes the control codes and escape sequences comprising Datamax-O’Neil Printer Command Language (ExPCL).

Control characters defined as the set of characters encoding from 0x00 to .0x1F (ASCII values between 0 to 31)

The ExPCL defines commands that start with the ESC (Hexadecimal 1B or Decimal 27) character and then are followed for the command and the parameters. The general structure of the commands can be defined as follows:

 

ESC <Command> <Param1, Param2, ....,Param n>

Where:

Character Hexadecimal 1B or Decimal 27

ESC

 

Command

One or more ASCII characters that define a unique Datamax-O’Neil

 

Printer Command Language

Param1

Input parameters for the command. The commands that accept just one

 

parameter will be defined as “n” while commands with more than one

 

parameter will be defined as “n1”, “n2”, etc.

Note that spaces are not part of the commands and the parameters are indicated as items typed in italics. For instance, the command ESC k n is used to select the character size of the resident fonts in the printers. The parameter n indicates the font type to choose with possible values between o and 9.

1

Image 7
Contents Apex & Andes Series Page Copyrights Document Revision History Contents ’Neil Line Print mode Communications SettingsDip Switch Settings Introduction Datamax-O’Neil Printer Command Language ExPCLXoff CommunicationsEOT XONSelect Character Set Esc F n Select Character Pitch Mode ESC K n CRCharacter Sets Character Size and Line SpacingApex APEX4 Select Character Pitch Mode ESC k nAndes3 Character Size and Line Spacing Width and Height Character Attributes Emphasized Printing Mode ESC U nUnderline Printing Mode ESC U n Selection U Underline Mode on u Underline Mode OFFRight to Left and Left to Right Printing ESC F n Reverse Print ESC U nSelection R Reverse printing on n Reverse printing OFF Horizontal Tab Horizontal PositionCarriage ReturnCR BackspaceVariable Size Reverse Line Feed ESC Q J n Vertical PositionLine FeedLF Variable Size Line Feed ESC J nSet Form Feed Length in Dot Lines ESC T F n1 n2 Bar CodesSet Vertical Tab Height ESC T V n Form FeedPrint Bar Code with Human Readable Text Code 39 SpecificationsDescription Character set Elements per symbol Code 128 SpecificationsHEX DEC Code a Code B Code C Description UCC/EAN-128 SpecificationsUPC/EAN/JAN Specifications Interleaved 2 of 5 SpecificationsSymbol Character density Codabar SpecificationsElements per Character set QR Code Models GS1 DataBar SpecificationsDecimal Page Page Page QR Code Specifications Error correction Symbol Character/symbolSecurity Level # Error-Check Code Words Compaction Mode Description Encoding CapabilityElement Width Value Length in mil Barcode Height Multiplier ESC z h n GraphicsBit Graphics Graphic String Component Bit Compressed GraphicsFunction ESC P $ Enable Buffer ModeDisable Buffer Mode Select Online Mode Printer Controls Data ProcessingESC P Printer Controls Printed Output AdjustPrint Buffer Contents Buffer Mode ESC P +ESC @ Printer Controls ResetPrinter Controls Power CanCommand String Printer Response Extended Auto Power Down CommandSTX Printer Status CommandsSYN Track Position Track2 Track3 Magnetic Card Command String DescriptionMagnetic Card Reader Query Printer Model and Hardware Revision LevelInterfacing to the Magnetic Card Reader Magnetic Card Read Error MessagesError # Magnetic Card Data Output FormatESC C Black Mark Sensing Control CommandsESC Q R CR Black Mark Sensing Auto Mode Black Mark Sensing Command ModePrinted Receipt/Label Presenter Positive Adjust ESC Q P n Enable Back Black Mark Sensor ESC Q b e CRDisable Back Black Mark Sensor ESC Q b d CR Printed Receipt/Label Presenter Positive Adjust ESC Q D + nESC P P Print Commands ConfigurationPrinted Receipt/Label Presenter Negative Adjust ESC Q D n Enter the Page Printing ModePrint Commands Draw Commands Draw Rectangle DrawRectangle x1, y1, x2, y2,color,width Command NameHeight Type Value Barcode typeForm FiestaTM ESC D S Download Printer Default SetupESC S L Print Hardware Information ESC L g Download Self test Message Hardware InformationStart Hardware Information download process ESC SESC D L CR LF Download LogoDisplay Tables Information Enable Font DownloadingDownload Fonts ESC D F CRESC F Disable Font Download ModeDisplay Font Download Current Settings ESC F S m t k f CR ESC D I CRFlash Select Load Operating Mode ESC F M m CRESC F B CR Important Font Downloading NotesExample 2 BBX 08 23 0 Example 1 BBX 08 23 0Select Pass-Thru Command Mode ESC P U n1 U n2 T t0 t1 t2 CR Bluetooth & WiFi Setup CommandEmulation Language ’Neil Line Print modeEmulation Select Emulation ESC E nEsc C n Esc a n Can Esc V n1 n2 OFF 2USB Communications SettingsDip Switch Settings OFFXON/XOFF Protocol RJ25 Connector PIN # Functional Description Signal NameSerial Communication RS232C Serial Busy ProtocolOverview RS232C Technical SpecificationsDip switch setting USB Communication USBTeraTerm Example Bluetooth CommunicationsSoftware Driver Installation USB Technical SpecificationsSettings Bluetooth Interface Power ModificationManual Power OFF Mode Automatic Power OFF ModeStatus Condition Function Wi-Fi Communication OptionPrinter Status Indicator LED Panel LEDLED Color/ Status Description LED # LED #Action Required Replaceable Fonts Appendix a Flash Font TablesReplaceable Fonts Tables Factory FontsCourier PC Line Graphic Table Courier International Font TableRotated Font Table Monospace Font Table