Star Micronics SP300 manual STX-ETX mode

Page 23

2-6-3. 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 points, 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 text end 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 on the following page.

[Status]

b7

b6

b5

b4

b3

b2

b1

b0

0

Constantly set at “0”

Vertical parity error 1: error

Framing error 1: error

Mechanical error 1: error

Paper empty 1: empty

Buffer empty 1: empty

Buffer overflow 1: overflow

Compulsion switch High level

(Switch is set to ON)

[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.

– 19 –

Image 23
Contents Dot Matrix Printer SP300 Series Programmer’s Manual Page Table of Contents IBM Character Set #1 DIP SW2-1 OFF, SW2-2 on Basic Operation LED flashes Validation printing mode is setSelf Print Test Switch Operation Combined Switch OperationMicro Feed Feed + on Line + Power on Page Page Parity bit Odd, even or none Interface SpecificationsTo Installation Manual Selectable. Refer to InstallationInput TTY-RXD, TTY-RXDR Output DTR, FAULT, TXD, RCH, RTSInterface Circuit Input RXD, CTSOutput SD, CS Input RD, RSRS-232C Connectors and SignalsRS-422A option MA current loop optionExample of interface connections for IBM PC Interface ConnectionsInstalling the optional interface board Installing the Optional Interface BoardData Structure DTR modeDTR Mark DTR Space This mode accessed when the DIP switch 3-5 is OFF ON/X-OFF modeOFF Status STX-ETX mode Page STX-ETX mode flow diagram for host computer Logic level Compatible with TTL level Handshaking Busy signalsInterface Timing PulsesTypical interface circuit Amphenol 57-30360 connector This connector mates with anEmergency Suspension This printer can print one line of validation printing Operating MethodGS data LF Printing FormatData format OtherOther position to be observed Cutting MethodCutting position Auto cutting control codesControl Codes Used for Line Spacing Control Codes Used for Character SettingControl Codes Used for Download Characters Control Codes Used for Page LayoutControl Code Used for Graphics Printing Other Control Codes Control Codes Used for Peripheral UnitsFunction Function Function Function Control Codes Used for Line Spacing Control Codes Used for Page Layout Set vertical tab positions Left end Printing area Left margin n Right margin n columns Set horizontal tab position Control Codes Used for Graphics Printing Set n/216-inch line feed simulation ESC 3 n 1BH 33H n Example Printing Possible Code Outline Definition of download characters When the 5 × 9 font is setCode Outline Example Example of transmitting data 10 × n1 ms 10 × n2 ms Printing and paper feed are prohibited Other Control Codes Function Initialize printer ESC @ 1BH 40H 03H ETXFunction U.S.A. & Europe DIP SW2-1 ON, SW2-2 on Character Code TablesPage IBM Character Set #1 DIP SW2-1 OFF, SW2-2 on Page IBM Character Set #2 DIP SW2-1 ON, SW2-2 OFF Page Japan DIP SW2-1, OFF, SW2-2 OFF Page International Character Sets Memo Page Overseas Subsidiary Companies Star Micronics AMERICA, INC