Datamax 7A300007 Rev. 2 manual Compaction Mode Description Encoding Capability

Page 29

Compaction Mode

Description

Encoding Capability

 

 

 

‘0’ (Future Use)

Byte Compaction Mode (BC)

All characters, (0-255)

‘1’ (Recommended)

Text Compaction Mode (TC)

ASCII only, (0-127) + Shift to BC Mode is implemented.

 

 

 

‘2’ (Future Use)

Numeric Compaction Mode (NC)

Digits Only, (‘0’-‘9’)

A’ (Future Use)

AUTO (combinations of all modes)

Mix of three compaction modes

 

 

 

SL:

Security Level byte. This can be any digit from ‘0’ to ‘8’. Set the value of the Security Level based on

 

the number of user’s data to be encoded

 

 

 

 

 

 

 

 

 

 

Security Level

 

# Error-Check Code Words

 

 

 

 

 

 

 

 

 

‘0’

 

2

 

 

 

‘1’

 

4

 

 

 

‘2’ (recommended)

 

8

 

 

 

‘3’

 

16

 

 

 

‘4’

 

32

 

 

 

‘5’

 

64

 

 

 

‘6’

 

128

 

 

 

‘7’

 

256

 

 

 

‘8’

 

512

 

SW: Symbol Width byte. This is the total width length of the printed PDF417 symbol. The user may specify any value here, and the printer will calculate the actual width of the symbol & it will update this value again (Future Use). Recommended Value: ‘0’ or 0x30

SH: Symbol Height byte. This is the total height length of the printed PDF417 symbol. The user may specify any value here, and the printer will calculate the actual width of the symbol & it will update this value again (Future Use). Recommended Value: ‘0’ or 0x30

EW: Element Width byte. This is the width length of a single element in the PDF417 symbol, that is, bar/space width. Can be set to ‘1’ or ‘2’

Element Width Value

Length in mil

‘1’

4.9 mil

‘2’ (recommended)

9.8 mil

EH: Element Height byte. This is the height length of a single element in the PDf417 symbol, that is, bar/space height. A value between 0x03 to 0x0A can be used. Recommended Value: 0x06

MSB: Most Significant Byte: This byte represents the most significant byte of how many bytes to encode of User’s Data. Maximum is 06 in hex, that is, MSB = 06h (max).

LSB: Least Significant Byte: This byte represents the least significant byte of how many bytes to encode of user’s Data.

User’s data: Data to be encoded in the barcode

Total number of user’s data that can be encode is [MSB][LSB] = 0x06B8 = 1720 bytes, that is, only alphanumeric with security level set to its minimum value.

Setting the security level to a higher value, will result in less user data to be encoded, since the total number of code words that can fit in a PDF417 symbol are 929, and if security level is set to ‘8’, then already 512 error code words are occupied in the symbol, and (929-512 = 417), so only about (417*2) alphanumeric data can be encoded with security level ‘8’.

If any parameter in the command line does not match the spec in this document, then an error message “Invalid Barcode” will be sent out from the printer’s serial port.

23

Image 29
Contents Apex & Andes Series Page Copyrights Document Revision History Contents Dip Switch Settings Communications Settings’Neil Line Print mode Introduction Datamax-O’Neil Printer Command Language ExPCLEOT CommunicationsXON XoffCharacter Sets Select Character Pitch Mode ESC K n CRCharacter Size and Line Spacing Select Character Set Esc F nAndes3 Select Character Pitch Mode ESC k nApex APEX4 Character Size and Line Spacing Width and Height Underline Printing Mode ESC U n Emphasized Printing Mode ESC U nSelection U Underline Mode on u Underline Mode OFF Character AttributesSelection R Reverse printing on n Reverse printing OFF Reverse Print ESC U nRight to Left and Left to Right Printing ESC F n Carriage ReturnCR Horizontal PositionBackspace Horizontal TabLine FeedLF Vertical PositionVariable Size Line Feed ESC J n Variable Size Reverse Line Feed ESC Q J nSet Vertical Tab Height ESC T V n Bar CodesForm Feed Set Form Feed Length in Dot Lines ESC T F n1 n2Print Bar Code with Human Readable Text Code 39 SpecificationsHEX DEC Code a Code B Code C Code 128 SpecificationsDescription Character set Elements per symbol Description UCC/EAN-128 SpecificationsUPC/EAN/JAN Specifications Interleaved 2 of 5 SpecificationsElements per Codabar SpecificationsSymbol Character density Character set QR Code Models GS1 DataBar SpecificationsDecimal Page Page Page QR Code Specifications Error correction Symbol Character/symbolElement Width Value Length in mil Compaction Mode Description Encoding CapabilitySecurity Level # Error-Check Code Words Bit Graphics GraphicsBarcode Height Multiplier ESC z h n Function Bit Compressed GraphicsGraphic String Component Disable Buffer Mode Select Online Mode Enable Buffer ModePrinter Controls Data Processing ESC P $Print Buffer Contents Buffer Mode Printer Controls Printed Output AdjustESC P + ESC PPrinter Controls Power Printer Controls ResetCan ESC @Command String Printer Response Extended Auto Power Down CommandSYN Printer Status CommandsSTX Magnetic Card Reader Magnetic Card Command String DescriptionQuery Printer Model and Hardware Revision Level Track Position Track2 Track3Error # Magnetic Card Read Error MessagesMagnetic Card Data Output Format Interfacing to the Magnetic Card ReaderESC Q R CR Black Mark Sensing Control CommandsESC C Black Mark Sensing Auto Mode Black Mark Sensing Command ModeDisable Back Black Mark Sensor ESC Q b d CR Enable Back Black Mark Sensor ESC Q b e CRPrinted Receipt/Label Presenter Positive Adjust ESC Q D + n Printed Receipt/Label Presenter Positive Adjust ESC Q P nPrinted Receipt/Label Presenter Negative Adjust ESC Q D n Print Commands ConfigurationEnter the Page Printing Mode ESC P PPrint Commands Draw Commands Draw Rectangle DrawRectangle x1, y1, x2, y2,color,width Command NameHeight Type Value Barcode typeForm FiestaTM ESC S L Download Printer Default SetupESC D S Start Hardware Information download process Download Self test Message Hardware InformationESC S Print Hardware Information ESC L gESC D L CR LF Download LogoDownload Fonts Enable Font DownloadingESC D F CR Display Tables InformationDisplay Font Download Current Settings ESC F S m t k f CR Disable Font Download ModeESC D I CR ESC FFlash Select Load Operating Mode ESC F M m CRESC F B CR Important Font Downloading NotesExample 2 BBX 08 23 0 Example 1 BBX 08 23 0Select Pass-Thru Command Mode ESC P U n1 U n2 T t0 t1 t2 CR Bluetooth & WiFi Setup CommandEmulation ’Neil Line Print modeSelect Emulation ESC E n Emulation LanguageEsc C n Esc a n Can Esc V n1 n2 Dip Switch Settings Communications SettingsOFF OFF 2USBSerial Communication RS232C RJ25 Connector PIN # Functional Description Signal NameSerial Busy Protocol XON/XOFF ProtocolDip switch setting RS232C Technical SpecificationsUSB Communication USB OverviewSoftware Driver Installation Bluetooth CommunicationsUSB Technical Specifications TeraTerm ExampleManual Power OFF Mode Bluetooth Interface Power ModificationAutomatic Power OFF Mode SettingsPrinter Status Indicator LED Panel Wi-Fi Communication OptionLED Status Condition FunctionAction Required LED #LED Color/ Status Description LED # Replaceable Fonts Tables Appendix a Flash Font TablesFactory Fonts Replaceable FontsCourier PC Line Graphic Table Courier International Font TableRotated Font Table Monospace Font Table