Star Micronics SP300 Series Programmer's Manual
Star Micronics SP300 Series Programmer's Manual

Star Micronics SP300 Series Programmer's Manual

Star micronics printer - dot matrix printer user manual
Hide thumbs Also See for SP300 Series:

Advertisement

Dot Matrix Printer
SP300 Series
Programmer's Manual

Advertisement

Table of Contents
loading

Summary of Contents for Star Micronics SP300 Series

  • Page 1 Dot Matrix Printer SP300 Series Programmer’s Manual...
  • Page 3: Table Of Contents

    TABLE OF CONTENTS 1. CONTROL PANEL ... 1 1-1. Basic Operation ... 1 1-2. Switch Operation (Combined Switch Operation) ... 2 2. SERIAL INTERFACE ... 7 2-1. Interface Specifications ... 7 2-2. Interface Circuit ... 8 2-2-1. RS-232C Serial Interface ... 8 2-2-2.
  • Page 4 7. CONTROL CODES ... 29 7-1. Control Codes Used for Character Setting ... 32 7-2. Control Codes Used for Line Spacing ... 36 7-3. Control Codes Used for Page Layout ... 37 7-4. Control Codes Used for Graphics Printing ... 41 7-5.
  • Page 5: Control Panel

    1-1. Basic Operation POWER ALARM ON LINE FEED Fig. 1-1 Control panel 3 “POWER” lamp (green LED) • Lights when the power for the printer is on. 4 “ALARM” lamp (red LED) • Lights when the paper is out. If the paper is out, load a new roll then press the “ON LINE” switch. •...
  • Page 6: Switch Operation (Combined Switch Operation)

    1-2. Switch Operation (Combined Switch Operation) 1 <SELF PRINT TEST> FEED + POWER ON (Turn the power on while holding the FEED switch depressed.) Self-printing will be performed according to the VER. NO., DIP switch settings and character order. When the FEED switch is held continuously during self printing, only the characters will print out repeatedly.
  • Page 7 2 <Hexadecimal dump mode> ON LINE + POWER ON (Turn the power on while holding the ON LINE switch depressed.) Each of the signals sent from the computer to the printer will be printed out in hexadecimal code. This function allows you to check if a control code sent to the printer by the program being used is correct or not.
  • Page 8 5 <PAGE TOP> (Sprocket-type Only) ON LINE + FEED (Press the FEED button while holding the ON LINE button depressed when the printer is ON LINE) The buzzer gives three short beeps and the printer sets the page top. 6 <Dot alignment adjust mode> (Twin Head Only) FEED + ON LINE + POWER ON This mode enables adjustment of the forward and backward printed line align- ment by 1/2-dot increments.
  • Page 9 1. Enter the Dot Alignment Adjust Mode by turning on the power while pressing the ONLINE and FEED switches. 2. When Dot Alignment Adjust Mode starts, the buzzer will sound twice and “Dot Alignment Adjust Mode” is printed. 3. Seven dot alignment patterns are printed as shown below. The patterns are arranged with the backward printed lines more toward the left as the patterns are printed down the page;...
  • Page 10 4. To choose a pattern with a closer alignment of the forward and backward printed lines, count from the top down to the desired pattern and press the FEED switch the counted number of times. (The buzzer sounds each time the FEED switch is pressed, up to a maximum of seven times.
  • Page 11: Serial Interface

    2-1. Interface Specifications 1 Data transmission method: 2 Baud rate: 3 Word length 4 Signal polarity Mark [1] Space [0] 2. SERIAL INTERFACE Asynchronous serial interface Selectable from 150, 300, 600, 1200, 2400, 4800, 9600, 19200 (Twin Head only) bps (Refer to Installation Manual.) Start bit: 1 bit Data bit: 7 or 8 bits (selectable.
  • Page 12: Interface Circuit

    2-2. Interface Circuit 2-2-1. RS-232C Serial Interface Input (RXD, CTS) Printer 75189 or equivalent Output (DTR, FAULT, TXD, RCH, RTS) Printer 75188 or equivalent 2-2-2. Current Loop (option) Input (TTY-RXD, TTY-RXDR) Printer Output (TTY-TXD, TTY-TXDR) Printer Note: Adjust “R” so that the loop current is set within 10 to 20 mA. Fig.
  • Page 13: Rs-422A Serial Interface (Option)

    2-2-3. RS-422A Serial Interface (option) Input (RD, RS) Printer Output (SD, CS) Printer Fig. 2-3 RS-422A interface circuit – 9 – Host computer Host computer...
  • Page 14: Connectors And Signals

    2-3. Connectors and Signals RS-232C Pin no. Signal name F-GND S-GND 9-10 S-GND FAULT Multi-printer TXD Multi-printer DTR 17 to 19 21-22 23 to 25 direction — Frame ground Transmitted data Received data Data transmission request signal. This is al- ways “SPACE”...
  • Page 15 20 mA current loop (option) Pin no. Signal name TTY TXDR TTY TXD TTY TXDR TTY RXDR TTY RXD TTY RXDR TTY TXD TTY RXD RS-422A (option) Pin no. Signal name SD (+) SD (–) RD (+) RD (–) CS (+) CS (–) RS (+) RS (–)
  • Page 16: Interface Connections

    2-4. Interface Connections The following is a basic example of interface connections. (For interface connections, refer to the specifications for the respective interface.) IBM PC type serial port is shown as example. Board side F-GND S-GND FAULT Board side F-GND S-GND FAULT Fig.
  • Page 17: Installing The Optional Interface Board

    2-5. Installing the Optional Interface Board When using the optional 20 mA current loop interface or the RS-422A interface, the optional interface board must be mounted to the printer’s main logic board. The following is the method of mounting the interface board to the printer’s main logic board.
  • Page 18: Data Structure

    2-6. Data Structure 2-6-1. DTR mode This mode is accessed when the DIP switch 3-5 is ON. Signals are controlled using the DTR line as BUSY flag. Printing Power ON When paper is out Printing PAPER OUT signal Power ON If a printer errors do not occur after the power is turned on, the DTR signal line changes to “SPACE”.
  • Page 19 Data buffer Full Near Full Remainder 256 bytes DTR “MARK” [Paper out] When the “paper out’ detector senses the end of the paper, the printer stops printing after printing a maximum of two more lines or on feeding the paper. Immediately after a “paper out”...
  • Page 20: X-On/X-Off Mode

    [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. [Compulsion switch] When pin 6 of the peripheral unit drive circuit connector is set “HIGH”, status bit 7 becomes “1”.
  • Page 21 Data buffer Full Near Full Remainder 256 bytes X-OFF [Paper out] When the “paper out” detector senses the end of the paper, the printer stops printing after printing a maximum of two more lines or on feeding the paper. The printer will set the DTR to “MARK”...
  • Page 22 [Status] [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. [Compulsion switch] When pin 6 of the peripheral unit drive circuit connector is set at “HIGH”, status bit 7 becomes “1”.
  • Page 23: Stx-Etx Mode

    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.
  • Page 24 [Compulsion switch] When pin 6 of the peripheral unit drive circuit connector is set at “HIGH”, status bit 7 becomes “1”. – 20 –...
  • Page 25 Starts the STX-ETX mode. Sends <ENQ> Receives status byte. Is the data buffer empty? Sends <STX> Is an odd parity check? (FF) H is set for the text byte. Acquires the exclusive OR of the content of the text byte and the data to sent, then it is used as the content of the test byte.
  • Page 26: Parallel Interface

    3-1. Interface Specifications This printer has a parallel interface to communicate with the computer. The operating specifications of the parallel interface are as follows. (1) Data transfer rate (2) Synchronization (3) Handshaking (4) Logic level 3-2. Interface Timing A C K Data STROBE BUSY...
  • Page 27 Signal Name DATA 1 – DATA 8 (To Printer) STROBE (To Printer) BUSY, ACK (From Printer) Fig. 3-2 Typical interface circuit Circuit Example 4.7KW 74 HC Compatible 4.7KW 4.7KW 74 HC Compatible 100W 470pF 4.7KW 74 HC Compatible – 23 –...
  • Page 28: Connectors And Signals

    3-3. Connectors and Signals Pin no Signal name STROBE DATA 1-8 BUSY PAPER OUT SELECTED 14-15 SIGNAL GND CHASSIS GND +5VDC 19-30 RESET ERROR EXT GND COMPULSION OUT 35-36 (19) Fig. 3-3 Parallel interface connector (printer side) Direction Signals when data is ready to be read. Signal goes from HIGH to LOW (for at least 0.5 microsec.) when data is available.
  • Page 29: Emergency Suspension

    4. EMERGENCY SUSPENSION If any of the following errors is detected while the printer is operating, the printer halts and ERROR signal turns to “LOW” level. 1 Mechanical errors Motor lock Defective of timing detector (signal not issued) Abnormal home position check. Defective cutter movement (paper jam, etc.) Timing error of Reset sig of the auto cutter during the auto cutter operation (Auto-cutting models only)
  • Page 30: Validation Printing (Models With Validation Function Only)

    5. VALIDATION PRINTING (Models with validation function only) This printer can print one line of validation printing. 5-1. Operating Method A: Standard position (one sheet) B: Validation printing or copying Fig. 5-1 Position of the adjust lever Rear cover Front cover Fig.
  • Page 31: Printing Format

    5-2. Printing Format Prints one line in 7 9 font normal printing. 32 columns (from the 5th to 36th columns) Even if the setting for the paper width is changed by the DIP switch, the 32- column format will not change. 5-3.
  • Page 32: Auto Cutter (Auto-Cutting Models Only)

    6. AUTO CUTTER (Auto-cutting models only) 6-1. Cutting Method Cuts recording paper into continuous forms connected at only one point remain- ing uncut between adjacent forms. Only one sheet of paper can be cut each time. 6-2. Cutting position The paper is cut approximately 21.7 mm above the printing head. Center of printer Fig.
  • Page 33: Control Codes

    Control Codes Used for Character Setting Hexadecimal Control codes codes <ESC> “R” n 1B 52 n <ESC> “6” 1B 36 <ESC> “7” 1B 37 <ESC> “M” 1B 4D <ESC> “P” 1B 50 <ESC> “:” 1B 3A <SO> <DC4> <ESC> “W” “1” 1B 57 31 <ESC>...
  • Page 34: Control Codes Used For Page Layout

    Control Codes Used for Page Layout Hexadecimal Control codes codes <FF> <ESC> “C” n 1B 43 n <ESC> “C” <0> n 1B 43 00 n <ESC> “B” n1 n2 1B 42 n1 n2 <VT> <ESC> “N” n 1B 4E n <ESC>...
  • Page 35 Control Codes Used for Peripheral Units Hexadecimal Control codes codes <ESC> <BEL> n1 n2 1B 07 n1 n2 <BEL> <FS> <SUB> <EM> Other Control Codes Hexadecimal Control codes codes <RS> <CAN> <DC3> <DC1> <ESC> “U” “1” 1B 55 31 <ESC> “U” <1> 1B 55 01 <ESC>...
  • Page 36: Control Codes Used For Character Setting

    7-1. Control Codes Used for Character Setting Select international character set FUNCTION <ESC> “R” n CODE (1B) DEFINITION RANGE (00) OUTLINE Select the international character set corresponding to the value set for n. n =(00) (01) (02) The default international characters can also be set with DIP switches, however, setting by control code takes priority over setting by DIP switches.
  • Page 37 Select 7 FUNCTION <ESC> “M” CODE (1B) Selects 7 9 (half dot) font. OUTLINE Refer to User’s manual for the maximum number of print columns. When the power of the printer is turned on, 7 9 (half dot) printing is automatically selected. This code valid only when received at the beginning of a line.
  • Page 38 Cancel expanded character mode FUNCTION <DC4> CODE (14) Cancels expanded character mode set by <SO> or <ESC> OUTLINE “W” “1” or <ESC> “W” <1> code. Data following this code is printed out in normal size characters. Same as <ESC> “W” “0” or <ESC> “W” <0>. Select expanded character mode FUNCTION <ESC>...
  • Page 39 Select underline mode FUNCTION <ESC> “-” “1” or <ESC> “-” <1> CODE (1B) Data following this code is printed out underlined. (However, OUTLINE the spaces generated by horizontal tab are not underlined.) Cancel underline mode FUNCTION <ESC> “-” “0” or <ESC> “-” <0> CODE (1B) Cancels underlined mode.
  • Page 40: Control Codes Used For Line Spacing

    Cancel highlighted print mode FUNCTION <ESC> “5” CODE (1B) Cancels highlighted print mode. OUTLINE Select inverted print mode FUNCTION <SI> CODE (0F) Data following this code is printed out in inverted characters. OUTLINE This code is valid only when input at the beginning of a line, thus, normal and inverted characters cannot be mixed in on the same line.
  • Page 41: Control Codes Used For

    Set 1/8-inch line feed FUNCTION <ESC> “0” CODE (1B) Line feed is set at 1/8-inch after this code is received. OUTLINE Feed paper n lines FUNCTION <ESC> “a” n CODE (1B) DEFINITION RANGE After data in the line buffer is printed out, feeds the paper OUTLINE n lines.
  • Page 42 Set vertical tab positions FUNCTION <ESC> “B” n1 n2...nk <0> CODE (1B) DEFINITION RANGE Cancels all current vertical tab positions and sets new vertical OUTLINE tab positions at lines n1, n2, etc., where n1, n2, etc. are numbers between 1 and 255. A maximum of 16 vertical tab positions can be set.
  • Page 43 Cancel bottom margin FUNCTION <ESC> “O” CODE (1B) Cancels bottom margin. OUTLINE Set left margin FUNCTION <ESC> “1” n CODE (1B) DEFINITION RANGE Sets the left margin at column n in the current character pitch. OUTLINE The left margin does not move if the character pitch is changed later.
  • Page 44 Set horizontal tab position FUNCTION <ESC> “D” n1 n2...nk <0> CODE (1B) DEFINITION RANGE Cancels all current horizontal tab positions and sets new tab OUTLINE positions at columns n1, n2, etc. in the current character pitch, where n1, n2, etc. are numbers between 1 and (Maximum print columns–1).
  • Page 45: Control Codes Used For Graphics Printing

    7-4. Control Codes Used for Graphics Printing Set 7/72-inch line feed FUNCTION <ESC> “1” CODE (1B) Line feed is set at 7/72-inch after this code is received. OUTLINE Define n/72-inch line feed FUNCTION <ESC> “A” n CODE (1B)H (41)H n DEFINITION RANGE Line feed is defined at n/72-inch after this code is received.
  • Page 46 Set n/216-inch line feed simulation EXAMPLE <ESC> “3” n CODE (1B) DEFINITION RANGE Line feed is set at n/216-inch after this code is received. OUTLINE According to the minimum paper feed pitch of the connected mechanism, the amount of line feed is set as follows: For 1/72”-pitch mechanisms: INT {(n/3)}/72-inch.
  • Page 47 Actually, let us consider printing as a means of bit image. We EXAMPLE will create the design below using bit image. First, since the volume of data is 30, n1 = (1E) ~ m30 is converted to hexadecimal, it appears as shown below.
  • Page 48 8 dot double density bit image FUNCTION <ESC> “L” n1 n2 m1 m2... CODE (1B) DEFINITION RANGE Executes double density bit image printing (half-dot print- OUTLINE ing) determined by “n1” and “n2”. The total number of bit image data bytes in one line is equal to n1 + n2 256. Refer to <ESC>...
  • Page 49 Select vertical expaned character mode FUNCTION <ESC> “h” “1” or <ESC> “h” <1> CODE (1B) Prints characters two times the normal vertical size after the OUTLINE code is received. However, the bit image mode <ESC> “K” and <ESC> “L” are excluded. (1) When combined with the <SO>...
  • Page 50: Control Codes Used For Download Characters

    7-5. Control Codes Used for Download Characters Definition of download characters FUNCTION When the 7 CODE <ESC> “&” <0> n1 n2 [m0 m1 m2 m3 m4 m5 m6 m7] n2 – n1 + 1 (1B) n2 – n1 + 1 When the 5 9 font is set: <ESC>...
  • Page 51 Enable download character set FUNCTION <ESC> “%” “1” or <ESC> “%” <1> CODE (1B) Enables the download character set OUTLINE Download characters defined by the ESC & 0 code cannot be printed until enabled by this command. Disable download character set FUNCTION <ESC>...
  • Page 52 Data m1 10100000 A0 m2 00000000 00 m3 10100000 A0 m4 00011111 1F m5 10100000 A0 m6 00000000 00 m7 10100000 A0 Example of transmitting data (1) Definition of down- (2) Selecting the down- (3) Character codes (4) Canceling the down- (5) Character codes Printing Samples Hexa-...
  • Page 53: Control Codes Used For Peripheral Units

    7-6. Control Codes Used for Peripheral Units Adjust drive pulse width for peripheral unit 1 FUNCTION <ESC> <BEL> n1 n2 CODE (1B) DEFINITION RANGE Adjusts drive pulse width for peripheral devices requiring OUTLINE other than standard 200 ms pulse time and delay time Energizing time = 10 n1 (ms) Delay time = 10 n2 (ms) Executed by <BEL>, <FS>...
  • Page 54: Other Control Codes

    Immediate drive command for peripheral unit 2 FUNCTION <SUB> CODE (1A) Drives peripheral unit 2. Pulse width is fixed at 200ms with OUTLINE a fixed delay time of 200 ms. When the printer receives a <SUB> code, the command is executed immediately.
  • Page 55 Set deselect mode FUNCTION <DC3> CODE (13) (1) When using serial interface printer: OUTLINE This function differs depending on the setting of DIP switch 4. a) When the DC1, DC3 invalid mode is set (DIP switches b) In the DC1, DC3 valid mode (with DIP switches 4-1 c) If the printer receives a <DC3>...
  • Page 56 c) If the printer receives a <DC1> n code (n is the DIP (2) When using parallel interface printer; When the printer receives a <DC1> code, the deselect mode is canceled and data following this code is input to the buffer. Select uni-directional print mode FUNCTION <ESC>...
  • Page 57 Enquiry FUNCTION <ENQ> CODE (05) This code is valid when using serial interface printer. OUTLINE Online in STX-ETX mode: The printer sends the status data and the check byte to the host computer. Online in any other mode: The printer sends only the status data to the host computer.
  • Page 58 Trigger auto-cutter drive (Auto-cutting models only) FUNCTION <ESC> “d” “0” or <ESC> “d” <0> CODE (1B) <ESC> “d” “1” or <ESC> “d” <1> (1B) This code causes the printer to trigger auto-cutter. OUTLINE Select validation printing (Models with validation function FUNCTION only) <GS>...
  • Page 59: Charactor Code Tables

    8. CHARACTER CODE TABLES 8.1 U.S.A. & Europe (DIP SW2-1: ON, SW2-2: ON) – 55 –...
  • Page 60 – 56 –...
  • Page 61: Ibm Character Set #1 (Dip Sw2-1: Off, Sw2-2: On)

    8.2 IBM Character Set #1 (DIP SW2-1: OFF, SW2-2: ON) – 57 –...
  • Page 62 – 58 –...
  • Page 63: Ibm Character Set #2 (Dip Sw2-1: On, Sw2-2: Off)

    8.3 IBM Character Set #2 (DIP SW2-1: ON, SW2-2: OFF) – 59 –...
  • Page 64 – 60 –...
  • Page 65: Japan (Dip Sw2-1:, Off, Sw2-2: Off)

    8.4 JAPAN (DIP SW2-1:, OFF, SW2-2: OFF) – 61 –...
  • Page 66 – 62 –...
  • Page 67: International Character Sets

    8.5 International Character Sets – 63 –...
  • Page 68 MEMO...
  • Page 70 HEAD OFFICE STAR MICRONICS CO., LTD. 20-10 Nakayoshida, Shizuoka, 422 Japan Tel: (054) 263-1115, Telefax: (054) 263-8714 OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA, INC. 70-D Ethel Road West, Piscataway, NJ 08854 U.S.A Tel: (908) 572-9512, Telefax: (908) 572-5095, Telex: 299766 STAR UR STAR MICRONICS DEUTSCHLAND GMBH Westerbachstraße 59, D-60489 Frankfurt/Main 90, Germany...

This manual is also suitable for:

Sp312fSp317f

Table of Contents