Mustek PP3000 manual STX-ETX Mode

Page 40

TM

CHAP. 4

TECHN

Framing error

A framing error occurs when “SPACE” is detected at the stop bit. When a framing error or a vertical parity error occurs for the data which is received, the printer prints out a “?” mark to indicate that the error occurred.

Cash drawer open detection switch

When pin 6 of the peripheral unit drive circuit connector is set at “HIGH”, status bit 7 becomes “1”.

STX-ETX Mode

This mode is accessed from whichever DTR mode or X-ON/X-OFF mode. To set this mode, the data buffer must be empty. The host computer sends an “ENQ” code to the printer and acknowledges the printer status. Then, the host computer checks if the printer buffer is empty. After the host computer detects that the buffer is empty, a STX code and data are transmitted. After 1 block of data is transmitted, the host computer sends an ENQ code to the printer and then receives the printer status and check byte (horizontal parity for the printer). At this point, the host computer performs a status and horizontal parity check. When the host computer determines that there was no error, it transmits an ETX code which serves as end text code. After the printer receives the ETX code, data in the data buffer is printed out. If an error occurs, a CAN code is transmitted by the host computer (In this instance, the data which was previously sent to the buffer is cleared, thus, the host computer must retransmit the same data to the printer). A flowchart of this operation is illustrated as the following on next page.

4 - 12

Image 40
Contents POS Printer Manual Rev.BWarranty Limits CE manufacturerEC 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 General Description Overview Model NumbersFeatures Unpacking Contents Basic MountingMounting printer to PST For Other System Cable ConnectionsLoading Ribbon Cartridge Cable connection examplesLoading ribbon cartridge Loading Paper OFFGrooves on paper guide shaft Removing The Roll Paper Putting spacer to roll paper shaftOn Line switch Feed switchPower LED green Alarm LED redLocations of switches and LED’s Self Print TestSelf print sample Hexadecimal Dump Mode Clear Print BufferMicro Feed Validation PrintingOperation Method Validation printingPrinting Format Data FormatPaper Format Other ConsiderationsPeripheral Unit Drive Circuit Telephone jack and plug for peripheral unit driveChap OPERA… Block Diagram Circuit block diagramCircuitry Layout & Connectors Board layoutCN9 Printer power input connector Jumper Setting Interface Select Jumpers & SwitchesSerial Interface Switch ON/ OFF DIP-SW OFFUSA DIP-SW Mode Address selection for addressable mode #10 #11 #12 #13 #14Character code table DIP-SW3Parallel Interface Switch DIP-SW1DIP-SW DTR Mode Data Structure in Serial InterfaceON/X-OFF Mode Mechanical errorStatus STX-ETX Mode RET Chap TECHN… Interface Parallel InterfaceBusy Serial Interface Peripheral Unit DrivePower Supply Option ListFont Matrices CaseCharacter size 15 CPI 12 CPI CPICommands External DimensionsWeight Operating EnvironmentCleaning Paper JAMTrouble Shooting Control Codes for Character Setting Star Compatible ModeControl Codes Hex Codes Function Control Codes for Line Spacing Control Codes for Page LayoutControl Codes for Graphics Printing Control Codes for Download CharactersControl Codes for Peripheral Units Other Control CodesBasic Reference Hardware Modification RequiredReference Epson Models Emulated Character Size/Font MatricesUnsupported Control Codes Supported Control CodesESC SP APP. a Star … Function Line feed Codes HEX/CONTROL 07 / BELCodes HEX/CONTROL 09 / HT Codes HEX/CONTROL 0A / LFCodes HEX/CONTROL 0C / FF Codes HEX/CONTROL 0D / CRCodes HEX/CONTROL 0E / SO Codes HEX/CONTROL 0F / SIFunction Cancel inverted print mode Codes HEX/CONTROL 12 / DC2Codes HEX/CONTROL 14 / DC4 Codes HEX/CONTROL 13 / DC3Codes HEX/CONTROL 18 / can Function Immediate drive command for peripheral unit Definition Range 1 ≤ n1 ≤ 127, 1 ≤ n2 ≤Codes 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 … Codes Definition Range 1 ≤ n ≤Function Select 8 CPI character size Codes HEX/CONTROL 1B 3A / ESCCodes HEX/CONTROL 1B 40 / ESC @ Function Initialize printer Definition Range 0 ≤ n ≤ 85 Default n = Definition Range 1 ≤ n1 … nk ≤ 255, 1 ≤ k ≤Function Select emphasized print mode Function Cancel emphasized print modeDefinition Range 1 ≤ n1 … nk ≤ 39, 1 ≤ k ≤ Codes HEX/CONTROL 1B 45 / ESC EDefinition Range 1 ≤ n1 ≤ Definition Range 1 ≤ n1 + 256 x n2 ≤Codes HEX/CONTROL 1B 4B n1 00 / ESC K n1 Function 8 dot single density bit imageDefinition Range 0 ≤ n ≤ 255 Default n = Detail Description Cancel bottom marginCodes 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 Definition Range 0 ≤ n ≤ right margin Function Set left marginCodes HEX/CONTROL 1C / FS Codes HEX/CONTROL 1E / RS Function Sound buzzer