Datamax 7A300007 Rev. 2 manual Black Mark Sensing Command Mode, Black Mark Sensing Auto Mode

Page 40

Black Mark Sensing Command Mode

Forward Seek Black Mark

ESC Q F n CR

This command sets the printer to black mark seek mode using a forward feed operation. The value of forward feed is determined by the user in dot lines (n) where 0 ≤ n ≤ 255 dots. Each dot line corresponds to 0.250mm. If the black mark is found, the printer responds with the command “Black Mark Found”, otherwise the printer responds with the command “Black Mark not Found”. Both escape sequence responses are described below.

Example: The following escape sequence advances the paper 80 dot lines looking for a Black Mark.

Escape Sequence:

ESC

Q

F

P

CR

Hexadecimal:

1B

51

46

50

0D

Decimal:

27

81

70

80

13

Reverse Seek Black Mark

 

 

ESC Q B n CR

This command causes the printer to seek black mark using backward feed until n dot line feeds have been processed; each dot line feed is 0.25mm.

Not the using this command can cause a paper jam since the paper is advanced in reverse mode. The results may vary depending on the media used in the printer.

Black Mark Found (Response from printer)

ESC Q ? ? n1, n2

This message is sent to the host and indicates that a black mark has been found. The numbers n1 and n2 are the high and the low nibble, respectively, describing how many (0.25mm) dot lines were required to find black mark.

Black Mark Not Found (Response from Printer)

ESC Q 0 0 n1 n2

This message is sent to the host and indicates that a black mark has not been found. The numbers n1 and n2 are the high and the low nibble, respectively, describing how many (0.25mm) dot lines were processed before reporting black mark not found.

Black Mark Sensing Auto Mode

Enable Front Black Mark Sensor

ESC Q f e CR

This command will enable the printer’s front black mark sensor and automatically disable the BACK side sensor.

Escape Sequence:

ESC

Q

f

e

CR

Hexadecimal:

1B

51

66

65

0D

Decimal:

27

81

102

101

13

Disable Front Black Mark Sensor

ESC Q f d CR

This command disables the printer’s front black mark sensor.

Escape Sequence:

ESC

Q

f

d

CR

Hexadecimal:

1B

51

66

64

0D

Decimal:

27

81

102

100

13

34

Image 40
Contents Apex & Andes Series Page Copyrights Document Revision History Contents ’Neil Line Print mode Communications SettingsDip Switch Settings Datamax-O’Neil Printer Command Language ExPCL IntroductionCommunications EOTXON XoffSelect Character Pitch Mode ESC K n CR Character SetsCharacter Size and Line Spacing Select Character Set Esc F nApex APEX4 Select Character Pitch Mode ESC k nAndes3 Character Size and Line Spacing Width and Height Emphasized Printing Mode ESC U n Underline Printing Mode ESC U nSelection U Underline Mode on u Underline Mode OFF Character AttributesRight to Left and Left to Right Printing ESC F n Reverse Print ESC U nSelection R Reverse printing on n Reverse printing OFF Horizontal Position Carriage ReturnCRBackspace Horizontal TabVertical Position Line FeedLFVariable Size Line Feed ESC J n Variable Size Reverse Line Feed ESC Q J nBar Codes Set Vertical Tab Height ESC T V nForm Feed Set Form Feed Length in Dot Lines ESC T F n1 n2Code 39 Specifications Print Bar Code with Human Readable TextDescription Character set Elements per symbol Code 128 SpecificationsHEX DEC Code a Code B Code C UCC/EAN-128 Specifications DescriptionInterleaved 2 of 5 Specifications UPC/EAN/JAN SpecificationsSymbol Character density Codabar SpecificationsElements per GS1 DataBar Specifications Character set QR Code ModelsDecimal Page Page Page QR Code Specifications Symbol Character/symbol Error correctionSecurity Level # Error-Check Code Words Compaction Mode Description Encoding CapabilityElement Width Value Length in mil Barcode Height Multiplier ESC z h n GraphicsBit Graphics Graphic String Component Bit Compressed GraphicsFunction Enable Buffer Mode Disable Buffer Mode Select Online ModePrinter Controls Data Processing ESC P $Printer Controls Printed Output Adjust Print Buffer Contents Buffer ModeESC P + ESC PPrinter Controls Reset Printer Controls PowerCan ESC @Extended Auto Power Down Command Command String Printer ResponseSTX Printer Status CommandsSYN Magnetic Card Command String Description Magnetic Card ReaderQuery Printer Model and Hardware Revision Level Track Position Track2 Track3Magnetic Card Read Error Messages Error #Magnetic Card Data Output Format Interfacing to the Magnetic Card ReaderESC C Black Mark Sensing Control CommandsESC Q R CR Black Mark Sensing Command Mode Black Mark Sensing Auto ModeEnable Back Black Mark Sensor ESC Q b e CR Disable Back Black Mark Sensor ESC Q b d CRPrinted Receipt/Label Presenter Positive Adjust ESC Q D + n Printed Receipt/Label Presenter Positive Adjust ESC Q P nPrint Commands Configuration Printed Receipt/Label Presenter Negative Adjust ESC Q D nEnter the Page Printing Mode ESC P PPrint Commands Draw Commands Command Name Draw Rectangle DrawRectangle x1, y1, x2, y2,color,widthType Value Barcode type HeightForm FiestaTM ESC D S Download Printer Default SetupESC S L Download Self test Message Hardware Information Start Hardware Information download processESC S Print Hardware Information ESC L gDownload Logo ESC D L CR LFEnable Font Downloading Download FontsESC D F CR Display Tables InformationDisable Font Download Mode Display Font Download Current Settings ESC F S m t k f CRESC D I 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 CR’Neil Line Print mode EmulationSelect Emulation ESC E n Emulation LanguageEsc C n Esc a n Can Esc V n1 n2 Communications Settings Dip Switch SettingsOFF OFF 2USBRJ25 Connector PIN # Functional Description Signal Name Serial Communication RS232CSerial Busy Protocol XON/XOFF ProtocolRS232C Technical Specifications Dip switch settingUSB Communication USB OverviewBluetooth Communications Software Driver InstallationUSB Technical Specifications TeraTerm ExampleBluetooth Interface Power Modification Manual Power OFF ModeAutomatic Power OFF Mode SettingsWi-Fi Communication Option Printer Status Indicator LED PanelLED Status Condition FunctionLED Color/ Status Description LED # LED #Action Required Appendix a Flash Font Tables Replaceable Fonts TablesFactory Fonts Replaceable FontsCourier International Font Table Courier PC Line Graphic TableMonospace Font Table Rotated Font Table