Summary of the content on the page No. 1
Programmer’s Manual
Corporate Headquarters
4501 Parkway Commerce Blvd.
Orlando, Fl 32808
Phone: 407-578-8007
Fax: 407-578-8377
Asia-Pacific Datamax International
19 Loyang Way Herbert House
#01-01 CILC Building 12 Elizabeth Way, Pinnacles
Singapore 508724 Harlow, Essex CM19 5FE UK
Phone: +65 542-2611 Phone: +44 1279 772200
Fax: +65 542-3611 Fax: +44 1279 424448
Summary of the content on the page No. 2
CG Times, based upon Times New Roman under license from the Monotype Corporation CG Triumvirate is a trademark of the AGFA Corporation Macintosh is a trademark of the Apple Corporation. PCL-4 and HP Laser JetII are trademarks of the Hewlett Packard Corporation Windows is a trademark of the Microsoft Corporation Information in this manual is subject to change without notice and does not represent a commitment on the part of Datamax Corporation. No part of this manual may be reproduced or transmit
Summary of the content on the page No. 3
Table of Contents Preface.......................................................................................................1 Who Should Use This Manual.......................................................................................1 Scope of This Manual....................................................................................................1 General Conventions.....................................................................................................2 Computer En
Summary of the content on the page No. 4
STX a Enable Feedback Characters...................................................................12 STX B Get Printer Time and Date Information ....................................................12 STX c Set Continuous Paper Length ..................................................................13 STX d Set Double Buffer Mode...........................................................................13 STX E Set Quantity For Stored Label.......................................................
Summary of the content on the page No. 5
STX r Select Reflective Sensor ..........................................................................19 STX S Set Feed Speed .......................................................................................19 STX s Set Single Buffer Mode ............................................................................20 STX T Print Dot Pattern Label.............................................................................20 STX t Test RAM Memory Module....................................
Summary of the content on the page No. 6
STX KE Character Encoding..................................................................................34 STX Kf Set Present Distance................................................................................36 STX KQ Query Memory Configuration ...................................................................36 STX KR Reset Memory Configuration....................................................................37 STX Kr Reset Resettable Counter.........................................
Summary of the content on the page No. 7
p Set Backfeed Speed ................................................................................47 Q Set Print Quantity .....................................................................................47 R Set Row Offset Amount............................................................................48 r Recall Stored Label Format......................................................................48 S Set Slew Speed....................................................................
Summary of the content on the page No. 8
Generating Label Formats .....................................................................59 Introduction..................................................................................................................59 Format Record Commands .........................................................................................59 Generating Records ....................................................................................................60 The Structure of a Record ...........
Summary of the content on the page No. 9
Appendix D Error Codes .................................................................................................................89 Appendix E Single-Byte Symbol Sets .............................................................................................91 Appendix F Bar Code Summary Data ..........................................................................................101 Bar Code Default Widths and Heights....................................................................
Summary of the content on the page No. 10
Appendix M Image Loading...........................................................................................................143 Appendix N UPC-A and EAN-13: Variable Price and Weight Bar Code .......................................145 Appendix O International Language Print Capability (ILPC) Programming Examples ..................147 Appendix P Downloading Firmware ..............................................................................................153 Appendix Q E-CLASS 4203 / 4
Summary of the content on the page No. 11
Preface Who Should Use This Manual This manual is intended for programmers who wish to create their own label production software. Operators without programming experience may prefer to use a label-creation software package. For programming information on models not covered in this document, a copy may be downloaded from our web site at http://www.datamaxcorp.com. Scope of This Manual This manual explains the Datamax Programming Language (DPL) and its related uses in the writing, loading and sto
Summary of the content on the page No. 12
Preface GENERATING LABEL FORMATS on page 59 Description of the structure of records, the different types, and their use in generating label formats. APPENDICIES A THROUGH R on pages 71 through156 These contain details that cannot be ignored including various tables, programming examples, printer default values, and bar code symbology details. See the Table of Contents for specific content information. GLOSSARY on page 157 Definitions of words, abbreviations, and acronyms used in this manual.
Summary of the content on the page No. 13
Preface Getting to Know the Printer The following highlights basic printer setup and control. For detailed information, including connections, features, media loading, and operating instructions refer to the appropriate Operator’s Manual. • The Power Connection: Depending upon the model (see below), the printer can be connected via an external 110, 220, or auto-ranging AC power supply. Always ensure the power supply included with the printer is compatible with your electrical service. E4203, E42
Summary of the content on the page No. 14
Preface • Interface Cable Connection: Connect the printer using the appropriate cable, as shown below. • Front Panel Operation: The Front Panel consists of three lights and three dual-function buttons. E4203, E4204 and E4304 • Normal Operating Mode: While in the normal operating mode, the printer’s buttons control operations such as pause, feed, and cancel. The FEED button is used to clear a fault after its cause has been removed. For testing and reset functions, combinations of the buttons must
Summary of the content on the page No. 15
Control Codes Introduction The printer requires a special “attention getter” character in order to receive a command sequence, informing the printer that it is about to receive a command and the type of command it will be. Control Commands, System-Level Commands, and Font-Loading Commands have their own unique attention getter, followed by a command character that directs printer action. Attention Getters The attention getters (e.g., “SOH”) are standard ASCII control labels that represent a one
Summary of the content on the page No. 16
Control Codes 6 E-Class DPL Programmer’s Manual
Summary of the content on the page No. 17
Immediate Commands Introduction When the printer receives an Immediate Command, its current operation will be momentarily interrupted to respond to the command. Immediate Commands may be issued before or after System-Level commands; however, they may not be issued among Label-Formatting Commands or during font or image downloading. Immediate Commands consist of: 1. Attention Getter, 0x01 or 0x5E, see Control Codes. 2. Command Character SOH # Reset This command resets the printer. Resetting the p
Summary of the content on the page No. 18
Immediate Commands SOH B Toggle Pause This command toggles the printer’s paused state between on and off. (This is the same function achieved by pressing the PAUSE Button on the front panel.) B Syntax: B Sample: Printer response format: This command will illuminate the Paused Indicator, suspend printing and wait until one of the following occurs: The B command is sent to the printer. The PAUSE Button is pressed. Upon which the printer will turn the Paused Indicator ‘off’ and res
Summary of the content on the page No. 19
Immediate Commands SOH E Send Batch Quantity This command causes the printer to send back a four-digit number indicating the quantity of labels that remain to be printed in the current batch, followed by a carriage return. Communications latency may cause this value to be higher than actual on some printers. E Syntax: nnnn Printer response: nnnn Where: - Is four decimal digits, 0-9999. SOH F Send Status Byte This command instructs the printer to send a single status byte where each bit
Summary of the content on the page No. 20
Immediate Commands 10 E-Class DPL Programmer’s Manual