Mustek PP3000 manual Data Structure in Serial Interface, DTR Mode

Page 37

TM

DATA STRUCTURE IN SERIAL INTERFACE

DTR Mode

This mode is accessed when the DIP switch 1-5 is ON. Signals are controlled using the DTR line as BUSY flag. If a printer errors do not occur after the power is turned on, the DTR signal line changes to “SPACE”. When the host computer confirms that the DTR signal line is set to “SPACE”, the host computer sends the data text via the RXD signal line to the printer. Also, the printer will set the DTR signal line to “MARK” when the empty space in the data buffer is below 256 bytes. After the host computer detects that the DTR signal line is at “MARK”, transmission of the data text is stopped. In this instance, data can still be received up until the data buffer becomes completely full. When the empty space in the data buffer is increased following printing (when the data in the data buffer is reduced to 256 bytes or less), the printer sets the DTR signal line to “SPACE”.

CHAP. 4

TECHN

Status

Bit position

Definition

Level

b0

Vertical parity error

1:error

b1

Framing error

1:error

b2

Mechanical error

1:error

b3

Paper empty

1:empty

b4

Constantly set at “0”

0

b5

Buffer empty

1:empty

b6

Buffer overflow

1:overflow

b7

Cash drawer open detection

switch is set to ON

switch high level

 

 

Paper out

When the “paper out” detector senses the end of the paper, the printer stops printing after printing a maximum of two lines or on feeding the paper. Immediately after a “paper out” condition is detected, the printer sets to “OFF LINE” and the DTR changes to “MARK”. To reset the printer after a “paper

4 - 9

Image 37
Contents Rev.B POS Printer ManualCE manufacturer Warranty LimitsEC Council Directive 89/336/EEC of 3 May About This ManualPage Page Table of Contents Data Structure in Serial Interface · · · · · · · · · · Iii Other Control Codes · · · · · · · · · · · · · · · · · 7 Appendix C Page Overview Model Numbers General DescriptionFeatures Basic Mounting Unpacking ContentsMounting printer to PST Cable Connections For Other SystemCable connection examples Loading Ribbon CartridgeLoading ribbon cartridge OFF Loading PaperGrooves on paper guide shaft Putting spacer to roll paper shaft Removing The Roll PaperFeed switch On Line switchPower LED green Alarm LED redSelf Print Test Locations of switches and LED’sSelf print sample Clear Print Buffer Hexadecimal Dump ModeMicro Feed Validation PrintingValidation printing Operation MethodData Format Printing FormatPaper Format Other ConsiderationsTelephone jack and plug for peripheral unit drive Peripheral Unit Drive CircuitChap OPERA… Circuit block diagram Block DiagramBoard layout Circuitry Layout & ConnectorsCN9 Printer power input connector Jumper Setting Interface Select Jumpers & SwitchesSerial Interface Switch ON/ OFF DIP-SW OFFUSA Address selection for addressable mode #10 #11 #12 #13 #14 DIP-SW Mode Character code table DIP-SW3DIP-SW1 Parallel Interface SwitchDIP-SW Data Structure in Serial Interface DTR ModeMechanical error ON/X-OFF ModeStatus STX-ETX Mode RET Chap TECHN… Parallel Interface InterfaceBusy Peripheral Unit Drive Serial InterfaceOption List Power SupplyFont Matrices CaseCPI Character size 15 CPI 12 CPIExternal Dimensions CommandsWeight Operating EnvironmentPaper JAM CleaningTrouble Shooting Control Codes for Character Setting Star Compatible ModeControl Codes Hex Codes Function Control Codes for Page Layout Control Codes for Line SpacingControl Codes for Download Characters Control Codes for Graphics PrintingOther Control Codes Control Codes for Peripheral UnitsBasic Reference Hardware Modification RequiredCharacter Size/Font Matrices Reference Epson Models EmulatedUnsupported Control Codes Supported Control CodesESC SP APP. a Star … Codes HEX/CONTROL 07 / BEL Function Line feedCodes HEX/CONTROL 09 / HT Codes HEX/CONTROL 0A / LFCodes HEX/CONTROL 0D / CR Codes HEX/CONTROL 0C / FFCodes HEX/CONTROL 0E / SO Codes HEX/CONTROL 0F / SICodes HEX/CONTROL 12 / DC2 Function Cancel inverted print modeCodes HEX/CONTROL 14 / DC4 Codes HEX/CONTROL 13 / DC3Codes HEX/CONTROL 18 / can Definition Range 1 ≤ n1 ≤ 127, 1 ≤ n2 ≤ Function Immediate drive command for peripheral unitCodes HEX/CONTROL 19 / EM Codes HEX/CONTROL 1A / SUBAPP. a Star … Codes HEX/CONTROL 1B 26 00 n1 n2 / ESC & 0 n1 n2 APP. a Star … Definition Range 1 ≤ n ≤ CodesFunction Select 8 CPI character size Codes HEX/CONTROL 1B 3A / ESCCodes HEX/CONTROL 1B 40 / ESC @ Function Initialize printer Definition Range 1 ≤ n1 … nk ≤ 255, 1 ≤ k ≤ Definition Range 0 ≤ n ≤ 85 Default n =Function Cancel emphasized print mode Function Select emphasized print modeDefinition Range 1 ≤ n1 … nk ≤ 39, 1 ≤ k ≤ Codes HEX/CONTROL 1B 45 / ESC EDefinition Range 1 ≤ n1 + 256 x n2 ≤ Definition Range 1 ≤ n1 ≤Codes HEX/CONTROL 1B 4B n1 00 / ESC K n1 Function 8 dot single density bit imageDetail Description Cancel bottom margin Definition Range 0 ≤ n ≤ 255 Default n =Codes HEX/CONTROL 1B 4D / ESC M Codes HEX/CONTROL 1B 4F / ESC OCodes HEX/CONTROL 1B 50 / ESC P Definition Range 00H ≤ n ≤ 0AHFunction Select 12 CPI character size Codes Function Detail Description Cancel overline mode Detail Description Cancel vertical expanded character mode Function Set left margin Definition Range 0 ≤ n ≤ right marginCodes HEX/CONTROL 1C / FS Function Sound buzzer Codes HEX/CONTROL 1E / RS