background image

E-3202 Programmer’s Manual

15

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

Hexadecimal

: 1 D 68 n

Decimal

: 29 104 n

 n 

 255

This command selects the height of a bar code. N specifies the number of dots in the vertical direction. One dot = 1/200 inch. The default setting is n = 162.

GS w n : Set bar code width

ASCII

: GS w  n

Hexadecimal

: 1 D 77 n

Decimal

: 29 119 n

 n 

 6

This command selects the horizontal size of a bar code. N specifies the bar code width as specified in the chart. The default setting is n = 3
The multilevel bar codes are : UPC-A, UPC-E, EAN 13, EAN 8, CODE128
The binary level bar codes are : CODE39, ITF, CODABAR

Binary Level Bar Code

n

Module width (mm) for

multilevel Bar Code

Thin element width

(mm)

Thick element

width (mm)

2

0.282

0.282

0.706

3

0.423

0.423

1.129

4

0.564

0.564

1.411

5

0.706

0.706

1.834

6

0.847

0.847

2.258

Select Barcode Symbology
1. GS k m d1 ... dk NUL
2. GS k m n d1 ... dn

1. ASCII

: GS k m d1 ... dk NUL

Hexadecimal

: 1 D 6B  k m d1 ... dk 00

Decimal

: 29 107 k m d1 ... dk 0

 m 

 6

k and d depend on the bar code symbology used

2. ASCII

: GS k m n d1 ... dn

Hexadecimal

: 1 D 6B  k m n d1 ... dn

Decimal

: 29 107 k m n d1 ... dn

65 

 m 

 73

n and d depend on the bar code symbology used

Содержание E-class E-3202

Страница 1: ...innacles Harlow Essex CM19 5FE UK Phone 44 1279 772200 Fax 44 1279 424448 Asia Pacific 19 Loyang Way 01 01 CILC Building Singapore 508724 Phone 65 542 2611 Fax 65 542 3611 Corporate Headquarters 4501...

Страница 2: ...In no event will Licensor or its suppliers be liable for any damages or loss including direct incidental economic special or consequential damages arising out of the use or inability to use the Firmwa...

Страница 3: ......

Страница 4: ...haracter 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 Comma...

Страница 5: ...ii...

Страница 6: ...spacing 1B 33 27 51 3 ESC Select peripheral device Miscellaneous function 1B 3D 27 61 21 ESC Cancel user defined characters Character 1B 3F 27 63 5 ESC Initialize printer Miscellaneous function 1B 40...

Страница 7: ...oaded bit image Bit image 1D 2F 29 47 9 GS Start end macro definition Macro function 1D 3A 29 58 19 GS B Turn white black reverse printing mode on off Character 1D 42 29 66 6 GS H Select printing posi...

Страница 8: ...a is deleted after being printed ESC FF Print data in mode page ASCII ESC FF Hexadecimal 1B 0C Decimal 27 12 When in page mode ESC FF prints all data in the print buffer in one time The buffer data is...

Страница 9: ...4 E 3202 Programmer s Manual...

Страница 10: ...adecimal 1B 3F n Decimal 27 63 n 32 n 126 This command cancels the user defined characters defined for the character code n After the user defined characters are cancelled the internal character set i...

Страница 11: ...decimal 1B 56 n Decimal 27 86 n n 0 1 48 49 ESC V n turns 90 clockwise rotation mode on or off On n 1 or 49 Off n 0 or 48 The default setting is n 0 In standard mode this command is enabled only when...

Страница 12: ...enabled when the printer returns to standard mode HT Horizontal tab ASCII HT Hexadecimal 09 Decimal 9 HT moves the start print position to the next horizontal tab This command is ignored unless the n...

Страница 13: ...shown in the chart The default setting is n 0 This command is enabled only in page mode In standard mode an internal flag is activated and this command is enabled when the printer selects page mode n...

Страница 14: ...SCII GS x y d1 d x y 8 Hexadecimal 1D 2A x y d1 d x y 8 Decimal 29 42 x y d1 d x y 8 1 x 255 1 y 48 x y 1536 0 d 255 This command defines a downloaded bit image by using x 8 dots in the horizontal dir...

Страница 15: ...10 E 3202 Programmer s Manual...

Страница 16: ...abled 2 On 04 4 Error status enabled 3 Off 00 0 Paper roll sensor status disabled 3 On 08 8 Paper roll sensor status enabled First byte printer information Bit On Off Hex Decimal Function 0 Off 00 0 N...

Страница 17: ...tects a paper end the printer goes off line and does not execute this command Therefore bits 2 and 4 do not transmit paper end status Paper sensor status Bit On Off Hex Decimal Function 0 1 Off 00 0 P...

Страница 18: ...paper end 6 Off 00 0 No error 6 On 40 64 Error 7 Off 00 0 Not used Fixed to off Error status Bit On Off Hex Decimal Function 0 Off 00 0 Not used Fixed to off 1 On 02 2 Not used fixed to on 2 Undefined...

Страница 19: ...out connector pin 3 is high 1 3 Undefined 4 Off 00 0 Not used Fixed to off 5 6 Not defined 7 Off 00 0 Not used Fixed to off Esc v n transmit paper sensor status ASCII ESC v n Hexadecimal 1B 76 n Decim...

Страница 20: ...cts the horizontal size of a bar code N specifies the bar code width as specified in the chart The default setting is n 3 The multilevel bar codes are UPC A UPC E EAN 13 EAN 8 CODE128 The binary level...

Страница 21: ...255 48 d 57 75 POSTNET n 5 6 8 9 11 48 d 57 76 EAN 128 n 255 0 d 127 77 CODE 39 with checksum n 255 78 ITF with checksum n 255 48 d 57 79 UPCA 2 n 12 48 d 57 80 UPCE 2 n 12 48 d 57 81 EAN 13 2 n 14 4...

Страница 22: ...ers 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...

Страница 23: ...18 E 3202 Programmer s Manual...

Страница 24: ...sly receiving it the printer remains in the macro undefined state The macro definition can contain up to 2048 bytes The excess data is not stored Mechanism Control Command GS V m GS V m n ESC i Select...

Страница 25: ...20 E 3202 Programmer s Manual...

Страница 26: ...pecified connector pin On time t1 x 2 millisecond Off time t2 x 2 millisecond m 0 or 48 the pulse is sent to drawer kick out connector pin 2 m 1 or 49 the pulse is sent to drawer kick out connector pi...

Страница 27: ...2D barcode ASCII Fs H n Hexadecimal 1C 48 n Decimal 28 7E n n multiplying factor Fs R n Paper forced Return ASCII Fs R n Hexadecimal 1C 52 n Decimal 28 82 n Used for paper return during parameter set...

Страница 28: ...ey on the panel then add the English United States keyboard Before starting to program make sure that the Baud rate in the printer is set the same as the COM port on the PC Next we need to set the Emu...

Страница 29: ...ing that when we program this printer every time you press the ENTER key the program will remember this as a carriage return It will follow on to the next line Initializing the printer The command ESC...

Страница 30: ...f you would like the width to be 2 by a height of 1 the value will be 16 0 which will give you 16 We add the Dec value of the width with the Dec value of the height to get the value for n This value i...

Страница 31: ...ithout any carriage returns as follows a The command is turned off by inserting a Nul value into the command This will justify the printer to left Please note that if we were to press RETURN ENTER aft...

Страница 32: ...eturns See below for sample a Datamax Corporation Matt Derek European Tech Support Feb 2000 DMX E 3202 POS Label Printer ESC POS Print Examples 2 White black reverse Printing GS B n On n 1 Off n 0 The...

Страница 33: ...ble characters for the barcode The values are from 0 to 3 or 48 to 51 The selection for pint position is as follows n Print position 0 48 Not printed 1 49 Above the barcode 2 50 Below the barcode 3 51...

Страница 34: ...E 3202 Programmer s Manual 29 Character Sets Character Sets The following character sets are available IBM and WINDOWS EMULATION Table 437...

Страница 35: ...30 E 3202 Programmer s Manual Table 850 Table 852...

Страница 36: ...E 3202 Programmer s Manual 31 Table 857 Table 860...

Страница 37: ...32 E 3202 Programmer s Manual Table 861 Table 863...

Страница 38: ...E 3202 Programmer s Manual 33 Table 869...

Страница 39: ...77 Ctrl X CAN 24 18 8 56 38 X 88 58 x 120 78 Ctrl Y EM 25 19 9 57 39 Y 89 59 y 121 79 Ctrl Z SUB 26 1A 58 3A Z 90 5A z 122 7A Ctrl Esc 27 1B 59 3B 91 5B 123 7B Ctrl FS 28 1C 60 3C 92 5C 124 7C Ctrl G...

Отзывы: