Epson SE450 manual GS h Set Barcode Height, GS k Print Barcode

Page 41

Commands

GS h Set Barcode Height

Description

Defines the height of the bars (in dots) for barcodes. The height is defined in n/203 inch increments. For example, specify 203 as the value for n to print a 1-inch high barcode. The barcode height is always rounded up to the next multiple of 8.

Expression

ASCII

GS h n

Decimal

29 104 n

Hex

1D 68 n

Parameters

n the desired height (in dot lines) of the barcode

GS k Print Barcode

Description

Prints a barcode at the current position in the current orientation. The n parameter selects the symbology to be printed. (See the table below.) The m parameter specifies how many characters are to be encoded as part of the barcode. If the number of characters to be encoded is variable, the m parameters can be set to zero. This will cause the printer to read the next character sent as a delimiter character. Further characters will then be encoded into the barcode until a character is found that matches the start character.

Expression

ASCII

GS k n m d1…dm

Decimal

29 107 n m d1…dm

Hex

1D 6B n m d1…dm

Parameters

nSelects the barcode symbology to be used

m

Specifies the number of characters to be encoded. Also specifies which

EAN/UPC symbology will be used

 

d1…dm

The data characters to be encoded.

Character Value

Barcode Symbology

n = 0

POSTNET

n = 1

reserved

35

Image 41
Contents Technical Reference Copyright Contents Page Character Codes Configuration Menu Printer Specifications This page intentionally left blank for double-sided printing Introduction This page intentionally left blank for double-sided printing RS-232 Settings Configuring the Host Computer for RS-232 Serial InterfaceRS-232 Cabling RS-232 Signal LevelsProgramming the LabelWriter Printer Programming OverviewCommand Parameters Resetting the PrinterCharacter Evaluation Bit Character ParametersConversions Print Modes Font SpecificationsObjects Orientation Raster ModeText Objects Landscape ModeBarcode Objects Line Objects Graphic ObjectsAlphabetical Command List Command ReferenceESC L Position Control Commands by FunctionGS DC2 GS DC3 GS RS GS US Font ControlPrintable Characters BarcodesMiscellaneous 20h FFh Printable Characters CommandsRaster Compatibility CR Carriage Return DC4 Cancel Double Wide ModeESC B Set Dot Tab ESC a Return Printer StatusESC a Return Hardware Status ESC D Set Bytes per Line ESC c Set Print Temperature to LowESC d Set Print Temperature to Medium ESC E Form Feed ESC e Set Print Temperature to DefaultESC F 1 n Feed n Lines ESC g Set Print Temperature to HighESC h Set Print Speed to Fast ESC i Set Printing Speed to BarcodeESC M Set Font to 12 cpi ESC L Set Feed LengthESC P Set Font to 16 cpi ESC T Set Font to 7 cpi ESC Q Set Top MarginESC S Set Font to 20 cpi ESC U Set Font to 10 cpi ESC W Wrap Data ESC V Return Firmware RevisionESC Y Set Vertical Starting Position ESC X Set Horizontal Starting PositionESC @ Reset to Power-up Condition ESC * Reset to DefaultsESC y Set 203 x 203 dpi ESC z Set 136 x 203 dpiETB Raster Mode Compressed Graphics FF Form Feed GS DC2 Set Font to Double Height GS a Starting Position of Bar CodeGS d Feed n Text Lines GS DC3 Cancel Double HeightGS k Print Barcode GS h Set Barcode HeightUPC-A Data Matrix BarcodeSupported Square Data Matrix Symbol Sizes Supported Rectangular Data Matrix Symbol Sizes Commands Command Reference GS l Draw Line in Landscape Mode Least significant byte of the line length in dots GS L Set Feed Length GS q Print UPC/EAN Checksum GS RS Set Inverse Print ModeReturns GS S Return Printer StatusGS t Set Characters per Line in Landscape GS T Select Line Wrap/Truncate ModesGS u Set Characters per Line in Portrait GS US Cancel Inverse Print ModeGS W Set Bar Code Element Width GS V Set Print OrientationGS w Set Barcode Module Width GS ~ Enter Debug ModeGS * Landscape Mode Graphics LF Line Feed SO Set Font to Double Wide ModeHT Horizontal Tab SYN Raster Mode Graphics Using the Caret Feature Caret FeatureActivating the Caret Feature Command Reference Char Character CodesCharacter Codes CharName \ back slash DEL Name Decimal Hex Binary Caret Feature Character Codes 251 1111 252 253 254 255 This page intentionally left blank for double-sided printing Configuration Menu Configuration Menu Hardware Specifications Printer SpecificationsInterface Specifications Print Head SpecificationsPrinter Specifications Serial Interface Specifications USB SettingsThis page intentionally left blank for double-sided printing