Datamax 7A300007 Rev. 2 manual Communications, Eot, Xon, Xoff

Page 8

Parenthesis is not part of the command unless specified otherwise:

For example Esc K n CR

Escape Sequence:

ESC

K

1

CR

Hexadecimal:

1B

4B

31

0D

Decimal:

27

75

49

13

Note that CR means Carriage Return control character.

The following pages describe Datamax-O’Neil Command Language (ExPCL) components in more details. The commands have been grouped based on major functions.

Communications

This section describes various methods of controlling the flow of data to and from the printer. The set of control characters described below are used by the printer and the host while a communicating process is in place. Note that some handshaking methods are only supported by the RS-232C Serial interface and are not supported for the USB, IrDA, Bluetooth, or Wi-Fi interfaces.

End of Transmission

EOT

The printer sends an EOT character each time the printer’s input buffer becomes empty (indicating that the printer is idle).

Control Code:

EOT

Hexadecimal:

04

Decimal:

4

Note that this control character can be enabled and disabled using the command ESC P n. See detailed description of the command in Section: “Printer Control: Data Processing”.

Transmitter On

XON

When selected XON/XOFF as flow control method of serial communication, this character is transmitted by the printer to indicate that the printer is on line and ready to receive data. After receiving this character the host computer will start sending data to the printer.

Control Code:

XON

Hexadecimal:

11

Decimal:

17

Transmitter Off

XOFF

When selected XON/XOFF as flow control method of serial communication, this character is transmitted by the printer to indicate that the printer’s buffer is nearly full and that the host computer should stop sending data. The communication process is reestablished after the printer transmits XON character to the host.

Control Code:

XOFF

Hexadecimal:

13

Decimal:

19

2

Image 8
Contents Apex & Andes Series Page Copyrights Document Revision History Contents Dip Switch Settings Communications Settings’Neil Line Print mode 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 nAndes3 Select Character Pitch Mode ESC k nApex APEX4 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 AttributesSelection R Reverse printing on n Reverse printing OFF Reverse Print ESC U nRight to Left and Left to Right Printing ESC F n 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 TextHEX DEC Code a Code B Code C Code 128 SpecificationsDescription Character set Elements per symbol UCC/EAN-128 Specifications DescriptionInterleaved 2 of 5 Specifications UPC/EAN/JAN SpecificationsElements per Codabar SpecificationsSymbol Character density GS1 DataBar Specifications Character set QR Code ModelsDecimal Page Page Page QR Code Specifications Symbol Character/symbol Error correctionElement 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 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 ResponseSYN Printer Status CommandsSTX 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 Q R CR Black Mark Sensing Control CommandsESC C 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 S L Download Printer Default SetupESC D S 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 FunctionAction Required LED #LED Color/ Status Description LED # Appendix a Flash Font Tables Replaceable Fonts TablesFactory Fonts Replaceable FontsCourier International Font Table Courier PC Line Graphic TableMonospace Font Table Rotated Font Table