Epson SE450 manual Barcode Objects

Page 17

Barcode Objects

command. While a text object is active, commands that alter text line attributes (such as font and double-height character commands) are ignored. Commands that alter text character attributes (such as double wide and inverse) may be sent at any time.

Line attributes include the five basic fonts (ESC S, P, M, U, and T), plus the double-height font command (GS DC2). These commands may not be issued while a text object is active; instead they should be issued before a text object is begun. The font line attribute persists until another font command is received. The double-height line attribute persists either until the cancel double-height command (GS DC3) is sent or the current font is changed.

The character attribute commands include the set font to double wide (SO) and set inverse print mode (GS RS) commands. These commands may be issued or canceled at any time. Character attributes persist only until the end of a text object.

A text object can be terminated with a carriage return, a line feed, or both, in either combination. If the length of the text object exceeds the space allowed for printing, it will either wrap to the next line or truncate at the end of the printable area. The decision to wrap or truncate is determined by the select line wrap/truncate mode command (GS T). By default, text objects will wrap to the next line.

Barcode Objects

A barcode object is created by the print barcode (GS k) command. Specified within the command is the symbology to be used, the amount of data to be encoded, and the data itself. Other attributes of the barcode, such as height and width, can be set using other commands.

The set barcode height (GS h) command specifies the height of the barcode in dots, or 1/8th mm. The maximum height for a barcode is 256 dots, or 32 mm. In cases where a taller barcode is needed, a second barcode can be printed below the first at the same left offset.

The set barcode module width (GS w) and set barcode element width (GS W) commands can be used to alter the width of the barcode. See the command descriptions for a full explanation of the differences between these two commands.

The POSTNET barcode symbology is an exception and does not respond to any of these commands. Instead, it always prints within the U.S. Postal Service’s specifications.

The limitations of each symbology must be adhered to when sending data for a barcode. For example, you should not send alphabetic characters to symbologies that only accept numeric data (like the UPC/EAN symbology).

Other items must also be considered when printing barcodes. You must leave sufficient blank space on either side of the barcode to create a quiet zone. You must also select a good ratio/element size if the default values are not being used, and you must allow adequate room for the barcode to be printed on the label. If you ignore any of these items, the barcode that is printed may be unreadable.

In general, you should be very familiar with using barcodes if you want to ensure success.

A barcode object is self-terminating and will be processed as soon as it has received the last byte of data required to define to it. The print barcode (GS k) command’s second

11

Image 17
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