Datamax 7A300007 Rev. 2 manual Barcode Height Multiplier ESC z h n, Bit Graphics

Page 30

Example: The following escape commands encode the data “12345678”. Due to space limitation CR LF are not shown

Escape Sequence:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ESC

z

9

1

2

0

0

2

6

0

8

1

2

3

4

5

6

7

8

Hexadecimal :

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1B

7A

39

31

32

30

30

32

06

00

08

31

32

33

34

35

36

37

38

Decimal:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

27

122

57

49

50

48

48

50

6

0

8

49

50

51

52

53

54

55

56

Barcode Height Multiplier

 

 

 

 

 

 

 

 

 

 

 

ESC z h n

 

This command allows the user to change the height of a selected barcode using a multiplier with values 1 < n < 18 (HEX values). The multiplier command can be sent prior to or after the Print Barcode sequence (ESC z t n h data CR LF)

Example:

The sequence below prints CODE39 barcode first of a height of 50 dots and then sets the new height to 3 x 50 dots. To print CODE-39 of height 150 dots using the multiplier command send steps 1, 2, in the order below.

Barcode Height Multiplier

 

 

 

 

 

 

 

 

 

 

 

 

 

Escape Sequence:

ESC

z

h

3

 

 

 

 

 

 

 

 

 

 

Hexadecimal:

1B

7A

68

03

 

 

 

 

 

 

 

 

 

 

Decimal:

27

122

104

3

 

 

 

 

 

 

 

 

 

 

Printing Barcode:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Escape Sequence:

Esc

Z

1

7

2

C

O

D

E

-

3

9

CR

LF

Hexadecimal:

1B

5A

31

07

32

43

4F

44

45

2D

33

39

0D

0A

Decimal:

27

90

49

7

50

67

79

68

69

45

51

57

13

10

Graphics

The printer uses a single line thermal print head with elements spaced at 0.125mm. The 8-bit graphic commands enable control of each heating element of the print head. The commands also advance the paper in increments of 0.125mm. The number of heating elements can vary according to your printer model. Refer to the printer’s User’s Guide for specific information.

To select the 8-bit graphic mode, the user application must issue the ESC V command. After that, the user application must send two bytes to indicate the number of the graphic lines desired, followed with a packet of 72 bytes for each graphic line. The printer prints the graphic line and advances to the next line automatically.

8-Bit Graphics

ESC V n1 n2 data

8-bit Graphic mode is selected using the ESC V command. <n1> and <n2> is a 16 bit integer indicating the number of graphic lines of 72 characters each to be received. Valid Graphic character sets range from 0x00 to 0xFF Hex using bits 0-7

To achieve optimized smooth printing and to extend battery life when printing graphics, a print buffer is employed. The printer buffer accumulates a specific amount of data before actually printing the graphic data.

24

Image 30
Contents Apex & Andes Series Page Copyrights Document Revision History Contents Communications Settings ’Neil Line Print modeDip Switch Settings Datamax-O’Neil Printer Command Language ExPCL IntroductionXON CommunicationsEOT XoffCharacter Size and Line Spacing Select Character Pitch Mode ESC K n CRCharacter Sets Select Character Set Esc F nSelect Character Pitch Mode ESC k n Apex APEX4Andes3 Character Size and Line Spacing Width and Height Selection U Underline Mode on u Underline Mode OFF Emphasized Printing Mode ESC U nUnderline Printing Mode ESC U n Character AttributesReverse Print ESC U n Right to Left and Left to Right Printing ESC F nSelection R Reverse printing on n Reverse printing OFF Backspace Horizontal PositionCarriage ReturnCR Horizontal TabVariable Size Line Feed ESC J n Vertical PositionLine FeedLF Variable Size Reverse Line Feed ESC Q J nForm Feed Bar CodesSet Vertical Tab Height ESC T V n Set Form Feed Length in Dot Lines ESC T F n1 n2Code 39 Specifications Print Bar Code with Human Readable TextCode 128 Specifications Description Character set Elements per symbolHEX DEC Code a Code B Code C UCC/EAN-128 Specifications DescriptionInterleaved 2 of 5 Specifications UPC/EAN/JAN SpecificationsCodabar Specifications Symbol Character densityElements per GS1 DataBar Specifications Character set QR Code ModelsDecimal Page Page Page QR Code Specifications Symbol Character/symbol Error correctionCompaction Mode Description Encoding Capability Security Level # Error-Check Code WordsElement Width Value Length in mil Graphics Barcode Height Multiplier ESC z h nBit Graphics Bit Compressed Graphics Graphic String ComponentFunction Printer Controls Data Processing Enable Buffer ModeDisable Buffer Mode Select Online Mode ESC P $ESC P + Printer Controls Printed Output AdjustPrint Buffer Contents Buffer Mode ESC PCan Printer Controls ResetPrinter Controls Power ESC @Extended Auto Power Down Command Command String Printer ResponsePrinter Status Commands STXSYN Query Printer Model and Hardware Revision Level Magnetic Card Command String DescriptionMagnetic Card Reader Track Position Track2 Track3Magnetic Card Data Output Format Magnetic Card Read Error MessagesError # Interfacing to the Magnetic Card ReaderBlack Mark Sensing Control Commands ESC CESC Q R CR Black Mark Sensing Command Mode Black Mark Sensing Auto ModePrinted Receipt/Label Presenter Positive Adjust ESC Q D + n Enable Back Black Mark Sensor ESC Q b e CRDisable Back Black Mark Sensor ESC Q b d CR Printed Receipt/Label Presenter Positive Adjust ESC Q P nEnter the Page Printing Mode Print Commands ConfigurationPrinted Receipt/Label Presenter Negative Adjust ESC Q D n ESC P PPrint Commands Draw Commands Command Name Draw Rectangle DrawRectangle x1, y1, x2, y2,color,widthType Value Barcode type HeightForm FiestaTM Download Printer Default Setup ESC D SESC S L ESC S Download Self test Message Hardware InformationStart Hardware Information download process Print Hardware Information ESC L gDownload Logo ESC D L CR LFESC D F CR Enable Font DownloadingDownload Fonts Display Tables InformationESC D I CR Disable Font Download ModeDisplay Font Download Current Settings ESC F S m t k f CR ESC FSelect Load Operating Mode ESC F M m CR FlashImportant Font Downloading Notes ESC F B CRExample 1 BBX 08 23 0 Example 2 BBX 08 23 0Bluetooth & WiFi Setup Command Select Pass-Thru Command Mode ESC P U n1 U n2 T t0 t1 t2 CRSelect Emulation ESC E n ’Neil Line Print modeEmulation Emulation LanguageEsc C n Esc a n Can Esc V n1 n2 OFF Communications SettingsDip Switch Settings OFF 2USBSerial Busy Protocol RJ25 Connector PIN # Functional Description Signal NameSerial Communication RS232C XON/XOFF ProtocolUSB Communication USB RS232C Technical SpecificationsDip switch setting OverviewUSB Technical Specifications Bluetooth CommunicationsSoftware Driver Installation TeraTerm ExampleAutomatic Power OFF Mode Bluetooth Interface Power ModificationManual Power OFF Mode SettingsLED Wi-Fi Communication OptionPrinter Status Indicator LED Panel Status Condition FunctionLED # LED Color/ Status Description LED #Action Required Factory Fonts Appendix a Flash Font TablesReplaceable Fonts Tables Replaceable FontsCourier International Font Table Courier PC Line Graphic TableMonospace Font Table Rotated Font Table