background image

Tally Dascom DT-210/230                                                                            Programming Guide V1.1  

- 8 - 

 

2 Print Position Commands 

 

HT 

[Function]   

Horizontal Tabs 

[Format] 

ASCII 

HT 

 

Hex 

09 

 

Decimal 

[Description] 

Moves the print position to the next horizontal tab position. 

 

ESC $ nL nH

 

[Function]   

Set absolute print position 

[Format] 

ASCII 

ESC        $        nL    nH 

 

Hex 

1B          24      nL    nH 

 

Decimal 

27        36        nL    nH 

[Range] 

0 ≤ (nL + nH × 256) ≤ 65535 

 

(0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255) 

[Description] 

Moves the print position to [(nL + nH × 256) × (horizontal or vertical motion unit)] from 

the left edge of the print area. 

 

ESC T n 

[Function]   

Select print direction in page mode 

[Format] 

ASCII 

ESC      T       

 

Hex 

1B        54      n 

 

Decimal 

27        84    n 

[Range] 

0 ≤ n ≤ 3, 48 ≤ n ≤ 51 

[Default] 

n = 0 

[Description] 

In page mode, selects the print direction and starting position. 

 

Print direction 

Starting position 

0, 48 

Left to right 

Upper left 

1, 49 

Bottom to top 

Lower left 

2, 50 

Right to left L 

Lower right 

3, 51 

Top to bottom 

Upper right 

 

GS $ nL nH 

[Function]   

Set absolute vertical print position in page mode 

[Format] 

ASCII 

GS     

$      nL    nH 

 

Hex 

1D   

24      nL    nH 

 

Decimal 

29   

36      nL    nH 

[Range] 

0≤(nL + nH × 256)≤65535    (0≤nL≤255, 0≤nH≤255) 

[Description] 

In  page  mode,  moves  the  vertical  print  position  to  [(nL  +  nH  ×  256)  ×  (vertical  or 

horizontal motion unit)] from the starting position set with 

ESC T.

 

 

Summary of Contents for DT-210

Page 1: ......

Page 2: ...function 2 Format This part describes the command with ASCII code format HEX format and Decimal format 3 Range The range of the variable The range value is default as decimal digit For example 1 n 4...

Page 3: ...4 4 Function 65 GS L pL pH m fn d1 d2 d3 fn 65 5 Function 66 GS L pL pH m fn kc1 kc2 fn 66 5 Function 67 GS L pL pH m fn a kc1 kc2 b xL xH yL yH c d1 dk 1 c d1 dk b fn 67 5 Function 69 GS L pL pH m fn...

Page 4: ...d1 d2 fn 1 21 Function 2 GS E pL pH fn d1 d2 d3 fn 2 21 Function 5 GS E pL pH fn a1 n1L n1H ak nkL nkH fn 5 22 Function 6 GS E pL pH fn a fn 6 24 Function 11 GS E pL pH fn a d1 dk fn 11 24 Function 1...

Page 5: ...n fn n cn 49 fn 67 43 Function 169 GS k pL pH cn fn n cn 49 fn 69 43 Function 180 GS k pL pH cn fn m d1 dk cn 49 fn 80 44 Function 181 GS k pL pH cn fn m cn 49 fn 81 44 9 Mechanical Control Commands 4...

Page 6: ...dpi 1 8 dots dual density 60 dpi 180 dpi 32 24 dot single density 180 dpi 90 dpi 33 24 dot double density 180 dpi 180 dpi nL nH specifies the number of dots of the image data in the horizontal direct...

Page 7: ...only GS L is used for explanation Note that GS L and GS 8 L have the same function If the parameters in the Format column in the table below exceed 65533 bytes use GS 8 L The only differences between...

Page 8: ...e specified NV graphics data 112 GS L pL pH m fn a bx by c xL xH yL yH d1 dk 112 Store the graphics data in the print buffer raster format Note Frequent write command executions by an NV memory write...

Page 9: ...50 Description Prints the buffered graphics data stored by processing of GS L Function 112 Function 51 GS L pL pH m fn fn 3 51 Function Transmit the remaining capacity of the NV graphics memory Format...

Page 10: ...ete the NV graphics data defined by the key codes kc1 and kc2 Function 67 GS L pL pH m fn a kc1 kc2 b xL xH yL yH c d1 dk 1 c d1 dk b fn 67 Function Define the NV graphics data raster format Format AS...

Page 11: ...ient capacity is not available for storing NV graphics data specified by xL xH 256 and yL yH 256 this function is ignored The number of items of NV graphics registered should be within 50 to shorten t...

Page 12: ...xL xH 256 2047 0 xL 255 0 xH 7 When single color print control is selected 1 yL yH 256 1662 0 yL 255 0 yH 6 when by 1 1 yL yH 256 831 0 yL 255 0 yH 3 when by 2 When two color print control is selected...

Page 13: ...T n Function Select print direction in page mode Format ASCII ESC T n Hex 1B 54 n Decimal 27 84 n Range 0 n 3 48 n 51 Default n 0 Description In page mode selects the print direction and starting pos...

Page 14: ...5535 0 dyL 255 0 dyH 255 Default xL xH 256 0 xL 0 xH 0 yL yH 256 0 yL 0 yH 0 dxL dxH 256 512 dxL 0 dxH 2 80 mm paper width model dxL dxH 256 360 dxL 104 dxH 4 58 mm paper width model dyL dyH 256 1662...

Page 15: ...1B 44 n1 nk 00 Decimal 27 68 n1 nk 0 Range 1 n1 n2 nk 255 0 k 32 Default n 8 16 24 32 40 232 240 248 for Font A 12 24 in a standard character size width Description Sets horizontal tab positions n sp...

Page 16: ...r width model Description In standard mode sets the print area width to nL nH 256 horizontal motion unit GS nL nH Function Set relative vertical print position in page mode Format ASCII GS nL nH Hex 1...

Page 17: ...all the data in the print buffer collectively and switches from page mode to standard mode CR Function Print and carriage return Format ASCII CR Hex 0D Decimal 13 Description Execute one of the follow...

Page 18: ...27 100 n Range 0 n 255 Description Prints the data in the print buffer and feeds the paper n current line spacing Note The maximum paper feed amount is 1016 mm 40 GS K pL pH fn parameters Function Se...

Page 19: ...ytes after pH n and m n specifies the paper used for the test print n Paper source 0 48 Basic sheet roll paper 1 49 2 50 Roll paper m specifies a test pattern M Test pattern 1 49 Hexadecimal dump prin...

Page 20: ...error Take the following into consideration If the received data includes a data string matching this command the printer performs the command Users must consider this Example Graphic data might accid...

Page 21: ...his command Do not embed this command within another command Example Graphic data might include this command This command does not shut the power off The operator must turn the power off after receivi...

Page 22: ...data Contents stored in the NV user memory Contents defined for the NV graphics NV bit image Maintenance counter value Setting value specified with GS E ESC n Function Select peripheral device Format...

Page 23: ...connector pin 2 1 49 Drawer kick out connector pin 5 t1 specifies the pulse on time as t1 2 ms t2 specifies the pulse off time as t2 2 ms Note Specify a value t1 t2 so that the off time is longer than...

Page 24: ...nt data until the status is received GS P x y Function Set horizontal and vertical motion units Format ASCII GS P x y Hex 1D 50 x y Decimal 29 80 x y Range 0 x 255 0 y 255 Default x 180 y 360 Descript...

Page 25: ...nabled Note If graphics data includes a data string matching DLE DC4 fn 1 or 2 it is recommended to use this command in advance to disable the real time commands GS E pL pH fn parameters Function Set...

Page 26: ...e printer is BUSY When Function 1 6 or 12 is transmitted the data following must not be transmitted until the status is received Function 1 GS E pL pH fn d1 d2 fn 1 Function Change into the user setti...

Page 27: ...6 9 nL 9 nH 0 when a 6 nL nH 256 128 nL 128 nH 0 when a 97 nL nH 256 1 nL 1 nH 0 when a 116 nL nH 256 85 nL 85 nH 0 when a 118 Description Sets the customized value specified by a to the values specif...

Page 28: ...nL nH 256 Number of division of thermal head energization 1 One part energization 2 Two part energization 4 Four part energization 128 Automatic control of thermal head energization Print control sing...

Page 29: ...dk fn 11 Function Set the configuration item for the serial interface Format ASCII GS E pL pH fn a d1 dk Hex 1D 28 45 pL pH fn a d1 dk Decimal 29 40 69 pL pH fn a d1 dk Range 3 pL pH 256 65535 0 pL 25...

Page 30: ...a fn 12 Function Transmit the configuration item for the serial interface Format ASCII GS E pL pH fn a Hex 1D 28 45 pL pH fn a Decimal 29 40 69 pL pH fn a Range pL pH 256 2 pL 2 pH 0 fn 12 a 1 Descri...

Page 31: ...rved 3 Off 00 0 Emphasized mode is turned off On 08 8 Emphasized mode is turned on 4 Off 00 0 Double height canceled On 10 16 Double height selected 5 Off 00 0 Double width canceled On 20 32 Double wi...

Page 32: ...orizontal direction from the left edge ESC n Function Cancel user defined characters Format ASCII ESC n Hex 1B 3F n Decimal 27 63 n Range 32 n 126 Description Deletes the user defined character patter...

Page 33: ...urn emphasized mode on off Format ASCII ESC E n Hex 1B 45 n Decimal 27 69 n Range 0 n 255 Default n 0 Description Turns emphasized mode on or off When the LSB of n is 0 turns off emphasized mode When...

Page 34: ...0 Description Selects a character font n Character font 0 48 Character font A 12 24 1 49 Character font B 9 17 Reference 3 2 13 International Character Sets ESC V n Function Turn 90 clockwise rotatio...

Page 35: ...the LSB of n is 0 turns off double strike mode When the LSB of n is 1 turns on double strike mode GS B n Function Turn white black reverse print mode on off Format ASCII GS B n Hex 1D 42 n Decimal 29...

Page 36: ...2 3 times 20 32 3 times 03 3 4 times 30 48 4 times 04 4 5 times 40 64 5 times 05 5 6 times 50 80 6 times 06 6 7 times 60 96 7 times 07 7 8 times 70 112 8 times ESC t n Function Select character code...

Page 37: ...2048 bytes GS r t m Function Execute macro Format ASCII GS r t m Hex 1D 5E r t m Decimal 29 94 r t m Range 1 r 255 0 t 255 m 0 1 Description Executes the macro that was defined with GS m Operation 0 E...

Page 38: ...0 Error status disabled On 04 4 Error status enabled 3 Off 00 0 Roll paper sensor status disabled On 08 8 Roll paper sensor status enabled 4 7 Off 00 0 Reserved While basic ASB is active the selected...

Page 39: ...ird byte paper sensor information Bit Off On Hex Decimal Status 0 1 Off 00 0 Roll paper near end sensor paper adequate On 03 3 Roll paper near end sensor paper near end 2 3 Off 00 0 Roll paper end sen...

Page 40: ...Hex Decimal Status 0 Off 00 0 Fixed 1 On 02 2 Fixed 2 Off 00 0 Drawer kick out connector pin 3 is LOW On 04 4 Drawer kick out connector pin 3 is HIGH 3 Off 00 0 Online On 08 8 Offline 4 On 10 16 Fixe...

Page 41: ...On 10 16 Fixed 5 6 Off 00 0 Roll paper end sensor paper sensor paper present On 60 96 Roll paper end sensor paper sensor paper not present 7 Off 00 0 Fixed Bits 5 and 6 While the cover is open this sh...

Page 42: ...amming Guide V1 1 37 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 th...

Page 43: ...Range n 0 1 48 49 Default n 0 Description Select a font for the HRI characters when printing a bar code n Font for the HRI characters 0 48 Character font A 12 24 1 49 Character font B 9 17 GS H n Fun...

Page 44: ...on Print the bar code using the bar code system specified by m For Function A m Bar code system Range of k Range of d 0 UPC A k 11 12 48 d 57 1 UPC E k 11 12 48 d 57 where d1 48 2 JAN13 EAN13 k 12 13...

Page 45: ...B specifies the number of bytes of bar code data d specifies the bar code data Users must secure the quiet zone left or right side space area defined by the bar code standard for bar code printing GS...

Page 46: ...m d1 dk 080 PDF417 Store the data in the symbol storage area 81 GS k pL pH cn fn m 081 PDF417 Print the symbol data in the symbol storage area 82 GS k pL pH cn fn m 082 PDF417 Transmit the size inform...

Page 47: ...pH 256 3 pL 3 pH 0 cn 48 fn 68 2 n 8 Default n 3 Description Set the row height for PDF417 to n the width of the module Function 080 GS k pL pH cn fn m d1 dk cn 48 fn 80 Function PDF417 Store the dat...

Page 48: ...H 0 cn 48 fn 82 m 48 Description Transmit the size information for the encoded PDF417 symbol data in the symbol storage area with GS k Function 080 Note This function does not print The size informati...

Page 49: ...fn m d1 dk Decimal 29 40 107 pL pH cn fn m d1 dk Range 4 pL pH 256 7092 0 pL 255 0 pH 27 cn 49 fn 80 m 48 0 d 255 k pL pH 256 3 Description Store the QR Code symbol data d1 dk into the symbol storage...

Page 50: ...e paper Note This printer executes a partial cut one point left uncut ESC i obsolete command Function Partial cut one point left uncut Format ASCII ESC i Hex 1B 69 Decimal 27 105 Description Executes...

Page 51: ...SC POS command system Function Define NV bit image Format ASCII FS q n xL xH yL yH d1 dk 1 xL xH yL yH d1 dk n Hex 1C 71 n xL xH yL yH d1 dk 1 xL xH yL yH d1 dk n Decimal 28 113 n xL xH yL yH d1 dk 1...

Page 52: ...recommended to use since GS v 0 is an obsolete command in the ESC POS command system Function Print raster bit image Format ASCII GS v 0 m xL xH yL yH d1 dk Hex 1D 76 30 m xL xH yL yH d1 dk Decimal 2...

Page 53: ...may become BUSY while writing the data to the NV memory and stops receiving data Therefore be sure not to transmit data including the real time commands while the printer is BUSY FS g 2 m a1 a2 a3 a4...

Page 54: ...into an abnormal condition Do not turn the power 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 w...

Page 55: ...r 2 Off 00 00 Disables roll paper end sensor paper sensor On 04 4 Enables roll paper end sensor paper sensor 3 Off 00 00 Disables roll paper end sensor paper sensor On 08 8 Enables roll paper end sens...

Page 56: ...nL nH 256 20 21 50 70 148 149 178 198 nL 20 21 50 70 148 149 178 198 nH 0 Description Transmits the value of the maintenance counter specified by nL nH 256 nL nH 256 Maintenance counter Units Type of...

Page 57: ...44 0 1256 481481 Fax 44 0 1256 481400 www dascom com FRANCE DASCOM Europe GmbH 117 Avenue Victor Hugo 92100 Boulogne Billancourt France Phone 33 1 73 02 51 98 www dascom com CHINA JIANGMEN DASCOM COM...

Reviews: