Tally Dascom DT-210 Programmer's Manual

Tally Dascom DT-210 Programmer's Manual

Thermal receipt printer
Hide thumbs Also See for DT-210:
Table of Contents

Advertisement

Quick Links

Advertisement

Table of Contents
loading

Summary of Contents for Tally Dascom DT-210

  • Page 2: About This Manual

    Tally Dascom DT-210/230 Programming Guide V1.1 About This Manual Please read this technical manual before programming. Main description for command as below: 1) Function This is the first part of command description. Here we propose the command of ASCII code and its function.
  • Page 3: Table Of Contents

    Tally Dascom DT-210/230 Programming Guide V1.1 TABLE OF CONTENTS About This Manual ......................i 1 Bit Image Commands ....................1 Select bit-image mode ............................1 Define downloaded bit image ..........................1 Print downloaded bit image ..........................2 Set graphics data ..............................2 GS ( L pL pH m fn [parameters]..........................
  • Page 4 Tally Dascom DT-210/230 Programming Guide V1.1 4 Miscellaneous Function Commands ................15 DLE ENQ n ................................15 DLE DC4 fn m t (fn=1) ........................... 15 DLE DC4 fn a b (fn = 2) ............................. 16 DLE DC4 fn d1…d7 (fn = 8)..........................16 ESC @..................................
  • Page 5 Tally Dascom DT-210/230 Programming Guide V1.1 DLE EOT n ................................35 8 Barcode Commands ....................38 GS h n ................................... 38 GS f n ..................................38 GS H n ................................... 38 GS k ..................................38 GS w n................................... 40 GS ( k pL pH cn fn [parameters] ......................... 41 <Function 067>...
  • Page 6: Bit Image Commands

    Tally Dascom DT-210/230 Programming Guide V1.1 1 Bit Image Commands Select bit-image mode [Format] ASCII ESC * m nL nH d1...dk 2A m nL nH d1...dk Decimal m nL nH d1...dk [Range] m = 0, 1, 32, 33 1 ≤ (nL + nH × 256) ≤ 2047 (0 ≤...
  • Page 7: Print Downloaded Bit Image

    Tally Dascom DT-210/230 Programming Guide V1.1 Print downloaded bit image [Format] ASCII 2F m Decimal 47 m [Range] 0 ≤ m ≤ 3, 48 ≤ m ≤ 51 Prints downloaded bit image defined by GS ∗ and using the mode specified by m.
  • Page 8 Tally Dascom DT-210/230 Programming Guide V1.1 GS ( L pL pH m fn [parameters] [Format] ASCII pL pH m fn [parameters] 4C pL pH m fn [parameters] Decimal 76 pL pH m fn [parameters] Format Function No. Function name 0, 48 GS ( L pL pH m fn 0,48...
  • Page 9: Transmit The Nv Graphics Memory Capacity

    Tally Dascom DT-210/230 Programming Guide V1.1 Transmit the NV graphics memory capacity [Format] ASCII pL pH m fn 4C pL pH m fn Decimal 76 pL pH m fn [Range] (pL + pH × 256) = 2 (pL = 2, pH = 0)
  • Page 10: Function 65> Gs ( L Pl Ph M Fn D1 D2 D3 (Fn = 65)

    Tally Dascom DT-210/230 Programming Guide V1.1 <Function 65> GS ( L pL pH m fn d1 d2 d3 (fn = 65) [Function] Delete all NV graphics data [Format] ASCII pL pH m fn d1 d2 d3 4C pL pH m fn d1 d2 d3...
  • Page 11: Function 69> Gs ( L Pl Ph M Fn Kc1 Kc2 X Y (Fn = 69)

    Tally Dascom DT-210/230 Programming Guide V1.1 c = 49 [when single-color print control is selected] c = 49, 50 [when two-color print control is selected] 0 ≤ d ≤ 255 k = (int ((xL + xH × 256) + 7) / 8) × (yL + yH × 256) The entire capacity size = 256 KB maximum.
  • Page 12: Function 112> Gs ( L Pl Ph M Fn A Bx By C Xl Xh Yl Yh D1

    Tally Dascom DT-210/230 Programming Guide V1.1 x, y Vertical direction Horizontal direction 180 dpi 180 dpi 90 dpi 90 dpi <Function 112> GS ( L pL pH m fn a bx by c xL xH yL yH d1...dk (fn = 112)
  • Page 13: Print Position Commands

    Tally Dascom DT-210/230 Programming Guide V1.1 2 Print Position Commands [Function] Horizontal Tabs [Format] ASCII Decimal [Description] Moves the print position to the next horizontal tab position. ESC $ nL nH [Function] Set absolute print position [Format] ASCII nL nH...
  • Page 14: Esc \ Nl Nh

    Tally Dascom DT-210/230 Programming Guide V1.1 ESC \ nL nH [Function] Set relative print position [Format] ASCII Decimal [Range] -32768 ≤ (nL + nH × 256) ≤ 32767 [Description] • Moves the print position to [(nL + nH × 256) × (horizontal or vertical motion unit)] from the current position.
  • Page 15: Esc A N

    Tally Dascom DT-210/230 Programming Guide V1.1 ESC a n [Function] Select justification [Format] ASCII ESC a Decimal [Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Default] n = 0 [Description] In standard mode, aligns all the data in one line to the selected layout.
  • Page 16: Gs W Nl Nh

    Tally Dascom DT-210/230 Programming Guide V1.1 GS W nL nH [Function] Set print area width [Format] ASCII W nL nH 57 nL nH Decimal 87 nL nH [Range] 0 ≤ (nL + nH × 256) ≤ 65535 (0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255) [Default] (nL + nH ×...
  • Page 17: Print Commands

    Tally Dascom DT-210/230 Programming Guide V1.1 3 Print Commands [Function] Print and line feed [Format] ASCII Decimal [Description] Prints the data in the print buffer and feeds one line, based on the current line spacing. FF (In page mode) [Function]...
  • Page 18: Esc J N

    Tally Dascom DT-210/230 Programming Guide V1.1 ESC J n [Function] Print and feed paper [Format] ASCII ESC J 4A n Decimal [Range] 0 ≤n ≤ 255 [Description] Prints the data in the print buffer and feeds the paper [n × (vertical or horizontal motion unit)].
  • Page 19 Tally Dascom DT-210/230 Programming Guide V1.1 GS ( A pL pH n m [Function] Execute test print [Format] ASCII Decimal [Range] (pL + pH × 256) = 2 (pL = 2, pH = 0) 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 1 ≤...
  • Page 20: Miscellaneous Function Commands

    Tally Dascom DT-210/230 Programming Guide V1.1 4 Miscellaneous Function Commands DLE ENQ n [Function] Send real-time request to printer [Format] ASCII DLE ENQ Decimal [Range] n = 1, 2 [Description] Respond to a request in real-time from the host computer.
  • Page 21: Dle Dc4 Fn A B (Fn = 2)

    Tally Dascom DT-210/230 Programming Guide V1.1 command. Users must consider this. Example: Graphic data might accidentally include a data string matching this command. • Do not embed this command within another command. Example: Graphic data might include this command. DLE DC4 fn a b (fn = 2)
  • Page 22: Esc

    Tally Dascom DT-210/230 Programming Guide V1.1 Example: Graphic data might include this command. • Do not transmit the subsequent data until the status is received after transmitting this command. ESC @ [Function] Initialize printer [Format] ASCII Decimal [Description] • Clears the data in the print buffer and resets the printer modes to the modes that were in effect when the power was turned on.
  • Page 23: Esc P M T1 T2

    Tally Dascom DT-210/230 Programming Guide V1.1 [Format] ASCII ESC L Decimal [Description] Switches from standard mode to page mode ESC p m t1 t2 [Function] Generate pulse [Format] ASCII ESC p Decimal 112 m [Range] m = 0, 1, 48, 49 0 ≤...
  • Page 24: Gs P X Y

    Tally Dascom DT-210/230 Programming Guide V1.1 Type ID Off/On Decimal Content Multi-byte code characters not supported. Multi-byte code characters supported Auto cutter Installed. (Fixed) __ __ __ Not used. Fixed. __ __ __ Reserved. __ __ __ Not used. Fixed.
  • Page 25: Gs ( D Pl Ph M [A1 B1]

    Tally Dascom DT-210/230 Programming Guide V1.1 GS ( D pL pH m [a1 b1]...[ak bk]) [Function] Enable/disable real-time command [Format] ASCII D pL pH m [ a1 b1 ]...[ ak bk ] 28 44 pL pH m [ a1 b1 ]...[ ak bk ] Decimal 40 68 pL pH m [ a1 b1 ]...[ ak bk ]...
  • Page 26: Function 1> Gs ( E Pl Ph Fn D1 D2 (Fn = 1)

    Tally Dascom DT-210/230 Programming Guide V1.1 [Note] • Frequent write command executions by an NV memory write command may damage the NV memory. Therefore, it is recommended to limit writing the commands into the NV memory to less than 10 times a day.
  • Page 27: Function 5>Gs

    Tally Dascom DT-210/230 Programming Guide V1.1 <Function 5>GS ( E pL pH fn [a1 n1L n1H]...[ak nkL nkH] (fn = 5) [Function] Set the customized setting values [Format] ASCII E pL pH fn [a1 n1L n1H] ... [ak nkL nkH] 1D 28 45 pL pH fn [a1 n1L n1H] ...
  • Page 28 Tally Dascom DT-210/230 Programming Guide V1.1 • Print speed setting (a = 6) (nL + nH × 256) Print speed level Print speed level 1. slow Print speed level 2 Print speed level 3 Print speed level 4 Print speed level 5...
  • Page 29: Function 6> Gs ( E Pl Ph Fn A (Fn = 6)

    Tally Dascom DT-210/230 Programming Guide V1.1 <Function 6> GS ( E pL pH fn a (fn = 6) [Function] Transmit the customized setting values [Format] ASCII pL pH fn a 1D 28 45 pL pH fn a Decimal 40 69 pL pH fn a [Range] (pL + pH ×...
  • Page 30: Function 12> Gs ( E Pl Ph Fn A (Fn = 12)

    Tally Dascom DT-210/230 Programming Guide V1.1 printer to communicate with the host computer. <Function 12> GS ( E pL pH fn a (fn = 12) [Function] Transmit the configuration item for the serial interface [Format] ASCII GS ( E pL pH fn a...
  • Page 31: Character Control Commands

    Tally Dascom DT-210/230 Programming Guide V1.1 5 Character Control Commands ESC ! n [Function] Select print mode(s) [Format] ASCII ESC ! Decimal [Range] 0 ≤ n ≤ 255 [Default] n = 0 [Description] Select the character font and styles (emphasized, double-height, double-width, and underlined) together.
  • Page 32: Esc & Y C1 C2 [X1 D1

    Tally Dascom DT-210/230 Programming Guide V1.1 ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)] [Function] Define user-defined characters [Format] ASCII ESC & y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)] y c1 c2 [x1 d1...d(y × x1)]...[xk d1...d(y × xk)] Decimal y c1 c2 [x1 d1...d(y ×...
  • Page 33: Esc - N

    Tally Dascom DT-210/230 Programming Guide V1.1 ESC – n [Function] Turn underline mode on/off [Format] ASCII Decimal [Range] 0 ≤ n ≤2, 48 ≤n ≤ 50 [Default] n = 0 [Description] Turns underline mode on or off. Function 0, 48...
  • Page 34: Esc M N

    Tally Dascom DT-210/230 Programming Guide V1.1 Italy Spain I Japan Norway Denmark II Spain II Latin America Korea Slovenia / Croatia China ESC M n [Function] Select character font [Format] ASCII ESC M 4D n Decimal [Range] n = 0, 1, 48, 49...
  • Page 35: Esc { N

    Tally Dascom DT-210/230 Programming Guide V1.1 ESC { n [Function] Selecting upside-down printing mode ESC { [Format] ASCII 7B n Decimal 123 n [Range] 0 ≤ n ≤ 255 [Default] n = 0 [Description] • In standard mode, turns upside-down print mode on or off.
  • Page 36: Esc T N

    Tally Dascom DT-210/230 Programming Guide V1.1 (n) Bit Off/On Decimal Function 0 - 2 See table [Height magnification] Selects the height magnification. Reserved. 4 - 6 See table [Width magnification]. Selects the width magnification. Reserved. [Height magnification] [Width magnification] Decimal...
  • Page 37: Macro Function Commands

    Tally Dascom DT-210/230 Programming Guide V1.1 6 Macro Function Commands GS : [Function] Start/end macro definition [Format] ASCII Decimal [Description] Starts or ends macro definition. [Note] The contents of the macro can be defined up to 2048 bytes. GS ^ r t m...
  • Page 38: Status Commands

    Tally Dascom DT-210/230 Programming Guide V1.1 7 Status Commands GS a n [Function] Enable/disable Automatic Status Back (ASB) [Format] ASCII 61 n Decimal 97 n [Range] 0 ≤ n ≤ 255 [Default] n = 0 [when DIP switch [SW 2-1] is off.] n = 2 [when DIP switch [SW 2-1] is on.]...
  • Page 39 Tally Dascom DT-210/230 Programming Guide V1.1 • Second byte (printer information) Off/On Decimal Status __ __ __ Reserved. No auto cutter error. Auto cutter error occurred. Fixed No unrecoverable error Unrecoverable error occurred. No automatically recoverable error Automatically recoverable error occurred.
  • Page 40: Dle Eot N

    Tally Dascom DT-210/230 Programming Guide V1.1 DLE EOT n [Function] Transmit real-time status [Format] ASCII DLE EOT n Decimal [Range] 1 ≤ n ≤ 4 [Description] Transmit the real-time status. Function Transmits printer status. Transmits offline cause status. Transmits error cause status.
  • Page 41 Tally Dascom DT-210/230 Programming Guide V1.1 Fixed. • Error cause status (n = 3) Off/On Decimal Status Fixed. Fixed. Reserved. No auto cutter error. Auto cutter error occurred. Fixed. No unrecoverable error Unrecoverable error occurred. No automatically recoverable error. Automatically recoverable error occurred Fixed.
  • Page 42 Tally Dascom DT-210/230 Programming Guide V1.1 up to 4 commands at once. In this case, the subsequent data must not be transmitted until the all status is received. If this command is transmitted without using the above method, the status may not be received.
  • Page 43: Barcode Commands

    Tally Dascom DT-210/230 Programming Guide V1.1 8 Barcode Commands GS h n [Function] Set bar code height [Format] ASCII Decimal 104 n [Range] 1 ≤ n ≤ 255 [Default] n = 162 [Description] • Sets the height of the bar code to n dots.
  • Page 44 Tally Dascom DT-210/230 Programming Guide V1.1 [Function] Print barcode [Format] <A> ASCII m d1...dk NUL m d1...dk 00 Decimal 107 m d1...dk 0 <B> ASCII m n d1...dn m n d1...dn Decimal 107 m n d1...dn [Range] <A> 0 ≤ m ≤ 6 (For the range of k and d, see [Description].) <B>...
  • Page 45: Gs W N

    Tally Dascom DT-210/230 Programming Guide V1.1 Bar code system Range of n Range of d UPC-A n = 11, 12 48 ≤ d ≤ 57 UPC-E n = 11, 12 48 ≤ d ≤ 57 [where d1 = 48] JAN13 / EAN13 n = 12, 13 48 ≤...
  • Page 46 Tally Dascom DT-210/230 Programming Guide V1.1 GS ( k pL pH cn fn [parameters] [Function] Set up and print symbol [Description] • Processes the data for symbols. • pL, pH specify (pL + pH × 256) as the number of bytes after pH (cn, fn, and [parameters]).
  • Page 47: Function 067> Gs ( K Pl Ph Cn Fn N (Cn = 48, Fn = 67)

    Tally Dascom DT-210/230 Programming Guide V1.1 <Function 067> GS ( k pL pH cn fn n (cn = 48, fn = 67) [Function] PDF417: Set the width of the module [Format] ASCII k pL pH cn fn n 28 6B pL pH cn fn n...
  • Page 48: Function 082> Gs ( K Pl Ph Cn Fn M (Cn = 48, Fn = 82)

    Tally Dascom DT-210/230 Programming Guide V1.1 fn = 81 m = 48 [Description] Encodes and prints the PDF417 symbol data in the symbol storage area with GS ( k <Function 080>. [Note] • User must secure the quiet zone (left, right, upward, and downward space areas defined by the PDF417 symbol specifications) for PDF417 printing.
  • Page 49: Function 180> Gs ( K Pl Ph Cn Fn M D1

    Tally Dascom DT-210/230 Programming Guide V1.1 48 ≤ n ≤ 51 [Default] n = 48 [Description] • Selects the error correction level for QR Code. Function Reference: Approx. figure of recovery Select error correction level L Select error correction level M 1...
  • Page 50: Mechanical Control Commands

    Tally Dascom DT-210/230 Programming Guide V1.1 9 Mechanical Control Commands GS V [Function] Select cut mode and cut paper [Format] <A> ASCII GS V 1D 56 Decimal <B> ASCII GS V 1D 56 Decimal [Range] <A> m = 0, 1, 48, 49 <B>...
  • Page 51: 10 Other Commands

    Tally Dascom DT-210/230 Programming Guide V1.1 10 Other Commands FS p n m [obsolete command] GS ( L <Function 69>, which is the upward-compatible command replacing FS p, is recommended to use, since FS p is an obsolete command in the ESC/POS command system.
  • Page 52: Gs V 0 M Xl Xh Yl Yh D1

    Tally Dascom DT-210/230 Programming Guide V1.1 off or do not reset the printer via an interface while this command is being executed. • While processing this command, the printer may become BUSY while writing data to the NV memory and stops receiving data.
  • Page 53: Fs G 2 M A1 A2 A3 A4 Nl Nh [Obsolete Command]

    Tally Dascom DT-210/230 Programming Guide V1.1 32 ≤ d ≤ 255 k = (nL + nH × 256) The entire capacity size = 1KB. [Description] Stores the data (d1...dk) in the area from (a1 + a2 × 256 + a3 × 65536 + a4 × 16777216) to (nL + nH ×...
  • Page 54: Esc 2

    Tally Dascom DT-210/230 Programming Guide V1.1 (nL + nH × 256) Maintenance counter [Units] Decimal Number of lines fed. [Lines] Number of head energization. [Times] Number of auto cutter operations. [Times]. Duration of printer operation. [Hours]. [Note] • Frequent write command executions by an NV memory write command may damage the NV memory.
  • Page 55: Esc C 3 N

    Tally Dascom DT-210/230 Programming Guide V1.1 ESC c 3 n [Type] Paper sensor [Function] Select paper sensor(s) to output paper-end signals [Format] ASCII ESC c Decimal [Range] 0 ≤ n ≤ 255 [Default] n = 0 [when DIP switch [SW 1-3] is on.] n = 15 [when DIP switch [SW 1-3] is off.]...
  • Page 56: Esc C 5 N

    Tally Dascom DT-210/230 Programming Guide V1.1 ESC c 5 n [Type] Panel button [Function] Enable/disable panel buttons [Format] ASCII ESC c Decimal [Range] 0 ≤ n ≤ 255 [Default] n = 0 [Description] • Enables or disables the panel buttons.
  • Page 57: Dascom Representatives

    Tally Dascom DT-210/230 Programming Guide V1.1 DASCOM REPRESENTATIVES GERMANY SINGAPORE (ASIA PACIFIC) DASCOM Europe GmbH DASCOM AP Pte Ltd Heuweg 3 21 Bukit Batok Crescent D-89079 Ulm #29-81, WCEGA Tower Deutschland Singapore 658065 Tel.: +49 (0) 731 2075 0 Phone: +65 6760 8833...

This manual is also suitable for:

Dt-230

Table of Contents