Datamax E-class E-3202 Programmer's Manual

Hide thumbs Also See for E-class E-3202:

Advertisement

(
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

Advertisement

Table of Contents
loading

Summary of Contents for Datamax E-class E-3202

  • Page 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...
  • Page 2 Information in this document is subject to change without notice and does not represent a commitment on the part of Datamax Barcode Products Corporation. No part of this manual may be reproduced or transmitted in any form or by any means, for any purpose other than the purchaser's personal use, without the expressed written permission of Datamax Corporation.
  • Page 4: Table Of Contents

    Contents 1 Set of Commands..................... 1 2 Print and Line Spacing Commands............... 3 3 Character Commands..................... 5 4 Print Position and Bit Image Commands ............. 7 5 Status Commands....................11 6 Bar Code Commands .................... 15 7 Macro Function and Mechanism Control Commands........19 8 Miscellaneous Function and Specific Commands ..........
  • Page 6: Set Of Commands

    Set of Commands If you wish to use BASIC, use CHR$ to send ASCII codes to the printer. Put the Decimal into brackets after CHR$. For example to send ASCII code FF, send CHR$ (12). The printer will execute the set of commands shown in the chart below: COMMAND Note Name...
  • Page 7 COMMAND Note Name Function type HEX. DEC. Page ASCII ESC u Transmit peripheral device status Status 1B 75 27 117 ESC v Transmit paper sensor status Status 1B 76 27 118 ESC  Turn upside-down printing mode on/off Character 1B 7B 27 123 Fs G Select font...
  • Page 8: Print And Line Spacing Commands

    Print and Line Spacing Commands Print Commands: LF : Print and line feed ESC d n : Print and feed n lines ASCII: ASCII: ESC d n Hexadecimal: Hexadecimal: 1B 64 n Decimal: Decimal: 27 100 n LF prints the data in the print buffer and feeds one line. ESC d prints the data in the print buffer and feeds n lines.
  • Page 9 E-3202 Programmer’s Manual...
  • Page 10: Character Commands

    Characters Commands ESC SP n : Set right side character spacing ESC R n : Select an international character set ASCII: ESC R n ASCII: ESC SP n Hexadecimal: 1B 52 n Hexadecimal: 1B 20 n Decimal: 27 82 n Decimal: 27 32 n Selects an international character set n as follows :...
  • Page 11 ESC E n : Turn emphasized mode on / off GS ! n : Select character size ASCII: ESC E n ASCII: GS ! n Hexadecimal: 1B 45 n Hexadecimal: 1D 21 n Decimal: 27 69 n Decimal: 29 33 n 0 ≤...
  • Page 12: Print Position And Bit Image Commands

    Print Position and Bit Image Commands Print Position commands: ESC $ nL nH : Set Absolute print position ESC D n1 nk NUL : Set horizontal tab positions ASCII: ESC $ nL nH ASCII: ESC D n1...nk NUL Hexadecimal: 1B 24 nL nH Hexadecimal: 1B 44 n1...nk 00 Decimal:...
  • Page 13 ESC W xL xH yL yH dxL dxH dyL dyH : Set printing area in page mode GS $ nL nH : Set Absolute vertical print position in page mode ASCII: ESC W xL xH yL yH dxL dxH dyL dyH ASCII: GS $ nL nH Hexadecimal:...
  • Page 14 Bit image commands: ESC * m nL nH d1 ... dk : Select bit-image mode GS * x y d1...d (x * y * 8) : Define downloaded bit image ASCII: ESC * m n1 nH d1 … dk ASCII: GS * x y d1...d (x * y * 8) Hexadecimal: 1B 2A m n1 nH d1 …...
  • Page 15 E-3202 Programmer’s Manual...
  • Page 16: Status Commands

    Status Commands GS a n : Enable / Disable automatic status Back (ASB) ASCII : GS a n Hexadecimal : 1 D 61 n Decimal : 29 97 n 0 ≤ n ≤ 255 Selects a status for ASB transmission. The printer automatically transmits a 4-byte status message whenever the status changes. Multiple status items can be selected. When n=0 ASB is disabled.
  • Page 17 Third byte – paper sensor information Bit On/Off Decimal Function Paper roll near-end sensor : paper adequate Paper roll near-end sensor : near end Paper roll end sensor : paper present Paper roll end sensor : paper not present Not used . Fixed to off Not defined Not used.
  • Page 18 Printer status Bit On/Off Decimal Function Not used, Fixed to off Not used, Fixed to off Drawer kick out connector pin 3 is low Drawer kick out connector pin 3 is high On line Off line Not used. Fixed to on Not defined Not used.
  • Page 19 Esc u n : transmit peripheral device status ASCII : ESC u n Hexadecimal : 1B 75 n Decimal : 27 117 n n = 0,48 Transmits the status of the drawer kick-out connector pin 3 as 1 byte of data when n= 0 or 48. This allows the host to determine the status of a peripheral device. Bit On/Off Decimal Function...
  • Page 20: Bar Code Commands

    Bar Code Commands The following barcode symbologies are available with ESC POS: UPC-A (+2,+5), UPC-E (+2,+5), EAN 13 (+2,+5), EAN 8 (+2,+5), Code39, ITF, CODABAR, Code 93, Code 128 (A, B, C, auto), Code 2/5, EAN 128, Postnet, QR code, PDF417 GS h n : Set bar code height ASCII : GS h n...
  • Page 21 These commands select a bar code symbology and print the bar code, m specifies the bar code symbology as follows: Bar code Number of Remarks system characters 48 ≤ d ≤ 57 UPC-A k = 10 48 ≤ d ≤ 57 UPC-E K = 10 48 ≤...
  • Page 22 GS f n : Select printing position of human readable characters ASCII : GS f n Hexadecimal : 1D 66 n Decimal : 29 102 n n = 0, 1 ,48, 49 This command selects a font for human readable characters used when printing a bar code. 12 x 24 : n = 0 or 48 9 x 24 : N = 1 or 49 The default setting is n=0.
  • Page 23 E-3202 Programmer’s Manual...
  • Page 24: Macro Function And Mechanism Control Commands

    Macro Function and Mechanism Control Commands Macro Function Commands: GS ^ r t m : execute macro GS : start / end macro definition ASCII : GS ^ r 00 ASCII : GS : Hexadecimal : 1 D 5E r 00 Hexadecimal : 1 D 3A Decimal...
  • Page 25 E-3202 Programmer’s Manual...
  • Page 26: Miscellaneous Function And Specific Commands

    Miscellaneous Function and Specific Commands Miscellaneous Function Commands: GS P x y : Set horizontal and vertical motion unit ESC = n : Select peripheral device ASCII : GS P x y ASCII : ESC = n Hexadecimal : 1D 50 x y Hexadecimal : 1B 3D n Decimal...
  • Page 27 Specific commands: Fs G n Fs R n : Paper forced Return ASCII : Fs R n ASCII : Fs G n Hexadecimal : 1C 52 n Hexadecimal : 1C 47 n Decimal : 28 82 n Decimal : 28 71 n Used for paper return during parameter settings.
  • Page 28: Appendix A Sample Programming

    Sample Programming Programming the E-3202 When programming the E-3203 using EDIT in DOS you need to first make sure that your keyboard is set to United States style. This can be done by using the Keyboard Properties window located in the Windows Control Panel. Add a keyboard by selecting the Add key on the panel, then add the English (United States) keyboard.
  • Page 29 Below is a sample program and the printout it will create: ←@↔! ←a-Datamax Corporation Matt & Derek European Tech Support Feb 2000 DMX-E-3202 POS/Label Printer ESC/POS Print Examples↔!2↔B-←a Reverse Text ↔B ↔LD ↔H2↔kCE750224523908 *Commands in this sample with a character in it, is actually a NUL value.
  • Page 30 Selecting character size. GS ! n The command is accessed by Ctrl ] (Alt029). This will give us the attention getter GS character is shown as ↔. Follow up with the function character ! (on key pad Alt 033) Explanation of the changeable character n for the width and height DecW Width DecH...
  • Page 31 Following the previous command insert the Text we would like to print. At this point we use the RETURN (ENTER) key to insert carriage returns into our program. This Text will all be printed center justified. ←@↔! ←a-Datamax Corporation <CR> Matt & Derek <CR>...
  • Page 32 ASCII Character for the Decimal value 50. Refer to ASCII Table for information on characters. *NOTE: This command follows up on previous command is entered without any carriage returns. See below for sample: ←@↔! ←a-Datamax Corporation Matt & Derek European Tech Support...
  • Page 33 Selecting the left margin GS L nL nH If we would like to move the barcode to a position on the label we will use this command. Please note that nH will always be a NUL value. Where nL is the value that moves the barcode to the right when increased. Selecting position for HRI GS H n This command selects the printing position of the Human Readable characters for the barcode.
  • Page 34: Character Sets

    Character Sets Character Sets: The following character sets are available IBM and WINDOWS EMULATION Table 437 E-3202 Programmer’s Manual...
  • Page 35 Table 850 Table 852 E-3202 Programmer’s Manual...
  • Page 36 Table 857 Table 860 E-3202 Programmer’s Manual...
  • Page 37 Table 861 Table 863 E-3202 Programmer’s Manual...
  • Page 38 Table 869 E-3202 Programmer’s Manual...
  • Page 39 ASCII Control Code Chart Char Ctrl @ Ctrl A Ctrl B “ Ctrl C Ctrl D Ctrl E Ctrl F & Ctrl G ‘ Ctrl H Ctrl I Ctrl J Ctrl K Ctrl L Ctrl M Ctrl N Ctrl O Ctrl P Ctrl Q Ctrl R...

Table of Contents