Datamax 7A300007 Rev. 2 Serial Communication RS232C, Serial Busy Protocol, XON/XOFF Protocol

Page 59

Serial Communication (RS232C)

The RS232C Interface signals for the Datamax-O’Neil printers are terminated on a 6 PIN RJ type data connector located on the side of the printer. Six connections are provided from the Serial Interface to the host computer. A minimum of two connections are required for operation, RXD – pin 3 and Common – pin 1.The proper baud rate and protocol settings are required to communicate with the host device. The printer defaults to 115.2 K BAUD, 8 DATA BITS, NO PARITY BIT, and two STOP BITs on initial power up. Two communication handshaking protocols are supported by the Datamax-O’Neil printers, Serial Busy protocol and XON/XOFF protocols.

Serial Busy Protocol

For the serial busy handshaking mode, request to send printer input (RTS) and clear to send printer output (CTS) are used to control data flow to and from the printer.

The RTS and CTS are considered to be valid or active when the signal level is positive (3 to 12VDC). A positive RTS signal from the host device enables the printer. The RTS signal is monitored during data transmission from the printer to the host device, the printer transmits data to the host device only if RTS input is high. The printer raises CTS output when it is ready to accept data. The printer lowers CTS line when the print buffer has less than 256 unused locations.

XON/XOFF Protocol

For the XON/XOFF handshaking mode, the printer transmits XON (0x11) when it is ready to accept data, and XOFF (0x13) when the print buffer has fewer than 256 unused locations. Under XON/XOFF protocol, the data flow from the printer's serial port is halted on receipt of an XOFF from the Host device and resumed on receipt of a XON.

RS232C Connections

The RS232C Interface signals for the Datamax-O’Neil printers are terminated on a 6 PIN RJ25 type data connector located at the back of the printer.

Six connections are provided from the Serial Interface to the host computer. The table below lists the Serial Interface signals and pin-outs for the RJ25 connector while pin locations are shown in Figure below.

A minimum of two signal connections are required for operation, RXD - pin3 and Common - pin1.

RJ25 Connector PIN #

Functional Description

Signal Name

3

RS232 from Host (INPUT)

RXD

2

RS232 from Printer (OUTPUT)

TXD

 

 

 

6

Request to send from Host (INPUT)

RTS

4

Clear to send from Printer (OUTPUT)

CTS

 

 

 

1, 5

Logic common

COM

53

Image 59
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 ExPCLXoff CommunicationsEOT XONSelect Character Set Esc F n Select Character Pitch Mode ESC K n CRCharacter Sets Character Size and Line SpacingAndes3 Select Character Pitch Mode ESC k nApex APEX4 Character Size and Line Spacing Width and Height Character Attributes Emphasized Printing Mode ESC U nUnderline Printing Mode ESC U n Selection U Underline Mode on u Underline Mode OFFSelection R Reverse printing on n Reverse printing OFF Reverse Print ESC U nRight to Left and Left to Right Printing ESC F n Horizontal Tab Horizontal PositionCarriage ReturnCR BackspaceVariable Size Reverse Line Feed ESC Q J n Vertical PositionLine FeedLF Variable Size Line Feed ESC J nSet Form Feed Length in Dot Lines ESC T F n1 n2 Bar CodesSet Vertical Tab Height ESC T V n Form FeedPrint 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 ESC P $ Enable Buffer ModeDisable Buffer Mode Select Online Mode Printer Controls Data ProcessingESC P Printer Controls Printed Output AdjustPrint Buffer Contents Buffer Mode ESC P +ESC @ Printer Controls ResetPrinter Controls Power CanCommand String Printer Response Extended Auto Power Down CommandSYN Printer Status CommandsSTX Track Position Track2 Track3 Magnetic Card Command String DescriptionMagnetic Card Reader Query Printer Model and Hardware Revision LevelInterfacing to the Magnetic Card Reader Magnetic Card Read Error MessagesError # Magnetic Card Data Output FormatESC Q R CR Black Mark Sensing Control CommandsESC C Black Mark Sensing Auto Mode Black Mark Sensing Command ModePrinted Receipt/Label Presenter Positive Adjust ESC Q P n Enable Back Black Mark Sensor ESC Q b e CRDisable Back Black Mark Sensor ESC Q b d CR Printed Receipt/Label Presenter Positive Adjust ESC Q D + nESC P P Print Commands ConfigurationPrinted Receipt/Label Presenter Negative Adjust ESC Q D n Enter the Page Printing ModePrint 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 Print Hardware Information ESC L g Download Self test Message Hardware InformationStart Hardware Information download process ESC SESC D L CR LF Download LogoDisplay Tables Information Enable Font DownloadingDownload Fonts ESC D F CRESC F Disable Font Download ModeDisplay Font Download Current Settings ESC F S m t k f CR ESC D I CRFlash 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 Language ’Neil Line Print modeEmulation Select Emulation ESC E nEsc C n Esc a n Can Esc V n1 n2 OFF 2USB Communications SettingsDip Switch Settings OFFXON/XOFF Protocol RJ25 Connector PIN # Functional Description Signal NameSerial Communication RS232C Serial Busy ProtocolOverview RS232C Technical SpecificationsDip switch setting USB Communication USBTeraTerm Example Bluetooth CommunicationsSoftware Driver Installation USB Technical SpecificationsSettings Bluetooth Interface Power ModificationManual Power OFF Mode Automatic Power OFF ModeStatus Condition Function Wi-Fi Communication OptionPrinter Status Indicator LED Panel LEDAction Required LED #LED Color/ Status Description LED # Replaceable Fonts Appendix a Flash Font TablesReplaceable Fonts Tables Factory FontsCourier PC Line Graphic Table Courier International Font TableRotated Font Table Monospace Font Table