Star Micronics SLIP SP298 SERIES Programmer's Manual
Star Micronics SLIP SP298 SERIES Programmer's Manual

Star Micronics SLIP SP298 SERIES Programmer's Manual

Slip printer
Hide thumbs Also See for SLIP SP298 SERIES:

Advertisement

Quick Links

SLIP PRINTER
SP298 SERIES
Programmer's Manual

Advertisement

Table of Contents
loading

Summary of Contents for Star Micronics SLIP SP298 SERIES

  • Page 1 SLIP PRINTER SP298 SERIES Programmer’s Manual...
  • Page 2: Trademark Acknowledgments

    All efforts have been made to ensure the accuracy of the contents of this manual at the time of printing. However, should any errors be found, STAR would greatly appreciate being informed of them. • The above notwithstanding, STAR can assume no responsibility for any errors in this manual. Copyright 1998 Star Micronics Co., Ltd.
  • Page 3: Table Of Contents

    TABLE OF CONTENTS Chapter 1: DIP Switch Settings ..............1 Accessing the DIP switches ............1 Available DIP switch settings (Serial Interface) ......3 Available DIP switch settings (Parallel Interface) ..... 4 Chapter 2: Memory Switch Settings............5 Chapter 3: Control Panel Operations ............
  • Page 4: Chapter 1: Dip Switch Settings

    Chapter 1: DIP Switch Settings The printer’s DIP switches let you change communications parameters, input buffer size, and emulation. This chapter explains the settings you can make and tells you how to actually change DIP switch settings. Accessing the DIP switches The DIP switches are located inside the printer, underneath the document table.
  • Page 5 It is not necessary to remove the document table completely, just move it enough so you can get at the DIP switches inside. (For Serial Interface) (For Parallel Interface) Note: If the document table seems to be getting caught on the rollers, it means that you are not pressing down at point (a) enough.
  • Page 6: Available Dip Switch Settings (Serial Interface)

    Available DIP switch settings (Serial Interface) The following table shows all the possible settings for the DIP switch. The factory default settings are ON for switches 1 through 7 and OFF for switches 8 through 10. Switch Parameter Baud Rate See table below.
  • Page 7: Available Dip Switch Settings (Parallel Interface)

    Available DIP switch settings (Parallel Interface) The following table shows all the possible settings for the DIP switch. The factory default settings are ON for switches 1 through 7 and OFF for switch 8. Switch Parameter Pin 31 / Pin 36 Reset Signal See table below.
  • Page 8: Chapter 2: Memory Switch Settings

    Chapter 2: Memory Switch Settings Each memory switch is a 16-bit word store in EEPROM. For details on the functions and settings of memory switches, refer to “Chapter 6”. The table below shows the factory settings for the memory switches. Memory Switch Hexadecimal Code 0000...
  • Page 9: Chapter 3: Control Panel Operations

    Chapter 3: Control Panel Operations The control panel gives you some push-button control over the slip printer operation. It also includes indicator lights, which tell you the current status of the printer at a glance. FORWARD POWER RELEASE PAPER REVERSE RELEASE Indicator lights The following table describes the meaning of indicator lights when it is on, off,...
  • Page 10: Buttons

    Buttons The following table describes the function of the three control buttons of the control panel. Button Description Feeds the slip paper forward, toward the back of the printer. One press FORWARD feeds one line, holding down performs continuous feed. Feeds the slip paper back, toward the front of the printer.
  • Page 11 This is caused when mechanical parts of the printer get out of alignment. This happens only rarely and you may never experience it at all throughout the life of the printer. If you do have problems, use the following procedure to correct it. Turn on the printer and insert a piece of paper.
  • Page 12: Hexadecimal Dump

    The dots alignment adjustment setting you selected is stored in printer memory and a pattern is printed using the selected setting followed by the message “Adjust Complete!” The printer ejects the paper after printing is complete. Note: You setting is not registered if you turn off printer power before pressing REVERSE to exit the Dot Alignment Adjust Mode.
  • Page 13: Errors

    Errors There are three types of errors: recoverable errors that require some action by you before they clear, non-recoverable errors that require servicing by an authorized service provider, and a data receive error. Errors are indicated by and audible buzzer and the indicators. Recoverable Errors Indicators Error Type...
  • Page 14: Chapter 4: Interface

    Chapter 4: Interface0 Serial Interface This chapter provides detailed specifications for the printer’s standard serial interface (Connector Type: D-sub 25-pin). Set the transmission parameters with DIP Switch. Transmission type ....Asynchronous serial interface Baud rate (bps)....1200, 2400, 4800 or 9600 (Selected by DIP switch) Word format Start bit: ....1 Data bits: ....7 or 8 (Selected by DIP switch)
  • Page 15: Serial Interface Pins And Signal Names

    Serial interface pins and signal names Pins and Signal Names Signal Direction Function Name — Frame ground Transmission data Receive data STAR Mode When Memory Switch 4-D = 0: Same as DTR signal When Memory Switch 4-D = 1: Always SPACE ESC/POS Mode Same as DTR signal N.C.
  • Page 16: Interface Connections

    Signal Direction Function Name Indicates whether data receive from host is enabled or disabled. DTR/DSR Communication Mode Space when receive is enabled. X-On/X-Off Communication Mode Always space, except during following conditions: • Period between reset and communication enabled • During self-test printing and dot alignment adjustment 21 - 24 N.C.
  • Page 17: Data Protocol

    Data protocol Outline of DTR/DSR mode operations This communication mode is set when dip switches 1 to 6 are set at ON. The DTR signal shakes hands with the DSR signal (DSR signal: ESC/POS mode only) and performs communications. The DTR signal is assumed as the BUSY signal and then the control for the printer’s data receiving operations are carreied out, and a “space”...
  • Page 18 Outline of X-ON/X-OFF mode operations This communication mode is set when dip switches 1 to 6 are set at OFF. This mode notifies the host of X-0N (DC1) data when receiving is possible and X-OFF (DC3) data when printing is not possible with the TXD signal. The timing conditions for the output of X-ON and X-ON in the STAR mode are set with the 4-C memory switch.
  • Page 19 Nearly full buffer conditions Emulation Buffer size Available area (DSW8) (DSW7) (during fluctuations) When 256 bytes or less are 2K byte available STAR mode When 16 bytes or less are 35 byte available When 10 bytes or more are ESC/POS mode 512/35 bytes available Nearly empty buffer conditions...
  • Page 20: Parallel Interface

    Parallel Interface Connectors and Signals Signal Name IN/OUT Function Signals when data is ready to be read. Signal goes from HIGH to LOW (for at STROBE least 0.5 microsec.) when the data is available. These signals provide the information of the first to eighth bits of parallel data. DATA1-8 Each signal is at HIGH level for a logical 1 and at a LOW level for a logical 0.
  • Page 21 Signal Name IN/OUT Function Unused (However, this becomes a reset signal when DIP switch 1 is set to ON SELECT IN and DIP switch 2 is set to OFF. See page 4 for details.) This connector mates with an Amphenol 57-30360 connector Parallel interface connector (printer side)
  • Page 22: Chapter 5: Peripheral Unit Driver Circuit

    Chapter 5: Peripheral Unit Driver Circuit This printer is equipped with a circuit for driving peripheral units, such as cash drawers. A 6-pin modular connector for connection of the peripheral unit is located on the back of the printer. To connect to the drive circuit, connect the peripheral unit to the modular connector using a cable supplied by you like that one shown in the figure below.
  • Page 23: Drive Circuit

    Drive circuit The recommended drive unit is shown below. Drive output: 24V, 1.0A max. With shield Peripheral unit 1 +24V 7824 M-GND 4.7k 1/4W M-GND Peripheral unit 2 Compulsion switch Frame ground Printer side User side Notes • Peripheral Units 1 and 2 cannot be driven simultaneously. •...
  • Page 24: Chapter 6: Control Codes

    Chapter 6: Control Codes This printer supports two different command modes: the Star mode and the ESC/POS mode. The Star mode emulates previous Star printers. The ESC/POS mode emulates the Epson TM-295 or TM-290 slip printer. This chapter provides you with all of the commands supported by this printer. Important! Access the following URL for the latest version of this manual and for updates on supported commands: http://www.star-micronics.co.jp/service/...
  • Page 25 Hexadecimal Control Codes Function Page Codes <ESC> “W” n 1B 57 n Sets the magnification rate in character width <ESC> “h” n 1B 68 n Sets the magnification rate in character height <ESC> “–” “1” 1B 2D 31 Selects underlining <ESC>...
  • Page 26: Print Position Control

    Print Position Control Hexadecimal Control Codes Function Page Codes <LF> Line feed <CR> Carriage Return <ESC> “a” n 1B 61 n Feeds paper n lines <HT> Horizontal tab <ESC> “A” n 1B 41 n Defines n/72-inch line spacing <ESC> “2” 1B 32 Sets n/72-inch line spacing <ESC>...
  • Page 27 Dot Graphics Control Hexadecimal Control Codes Function Page Codes <ESC> “K” n <0> 1B 4B n 00 m 1 m 2 Prints normal density graphics m 1 m 2 ... <ESC> “L” n 1 n 2 1B 4C n 1 n 2 m 1 Prints high density graphics m 1 m 2 ...
  • Page 28: Page Mode

    Slip Control Hexadecimal Control Codes Function Page Codes <ESC> <SI> n 1B 0F n Setting slip sensor <ESC> <FF> n 1B 0C n Slip function <ESC> <VT> m n 1B 0B m n Sets the paper eject direction/length <EOT> Slip status enquiry <ESC>...
  • Page 29: Esc/Pos Mode Commands (Tm-295 Emulation)

    ESC/POS Mode Commands (TM-295 emulation) The following table lists the TM-295 mode commands that are supported by this printer. Hexadecimal Control Codes Function Codes <HT> Horizontal tab <LF> Line feed Paper eject in single sheet mode <FF> Paper mode print and return <DLE>...
  • Page 30 Hexadecimal Control Codes Function Codes <ESC> L 1B 4C Selects page mode <ESC> R 1B 52 Selects international character set <ESC> T 1B 54 Selects direction for page mode character printing <ESC> U 1B 55 Selects print direction <ESC> V 1B 56 Designates/cancels 90˚...
  • Page 31: Esc/Pos Mode Commands (Tm-290 Emulation)

    ESC/POS Mode Commands (TM-290 emulation) The following table lists the TM-290 emulation commands that are supported by this printer. Hexadecimal Control Codes Function Codes <HT> Horizontal tab <LF> Line feed <FF> Paper eject in single sheet mode <ESC> SP 1B 20 Sets size of space to right of character <ESC>...
  • Page 32 Hexadecimal Control Codes Function Codes <ESC> R 1B 52 Selects international character set Selects the paper-end sensor for sending the no-paper <ESC> c3 1B 63 33 signal <ESC> c4 1B 63 34 Selects the paper-end sensor for stopping printing <ESC> c5 1B 63 35 Enables/disables control panel switches <ESC>...
  • Page 33 Character Selection CODE <ESC> “R” Selects international character set FUNCTION Selects an international character set according to the value of n, as shown below: 12, “0” “9”, “A” “C” n = 0, “0” : U.S.A. 1, “1” : France 2, “2” : Germany 3, “3”...
  • Page 34 <ESC> “M” CODE FUNCTION Selects 7 9 (half dot) font CODE <ESC> “P” Selects 5 9 (2 pulses = 1 dot) font FUNCTION <ESC> “:” CODE Selects 5 9 (3 pulses = 1 dot) font FUNCTION <ESC> <SP> CODE FUNCTION Sets character spacing Sets the spacing between characters according to the value of n.
  • Page 35 <ESC> “W” CODE FUNCTION Sets the magnification rate in character width Prints the subsequent data with a character width magnified by a rate specified by the value of n. n= 0, “0”: Reset magnification (same as <DC4>) 1, “1”: Double magnification (same as <SO>) CODE <ESC>...
  • Page 36 <ESC> “4” CODE FUNCTION Selects highlight printing Prints the subsequent data including a character spacing set by <ESC><SP> n reversed. The part to be skipped by the horizontal tab setting is not reversed. <ESC> “5” CODE FUNCTION Cancels highlight printing CODE <SI>...
  • Page 37 <ESC> “E” CODE FUNCTION Selects emphasized printing Causes subsequent characters to be emphasized. <ESC> “F” CODE Cancels emphasized printing FUNCTION <ESC> “U” “1” <ESC> “U” <1> CODE FUNCTION Selects uni-directional printing After printing the data in the line buffer, the printer enters the uni- directional mode.
  • Page 38 Print Position Control CODE <LF> Line feed FUNCTION Prints the current line and feeds the paper to the next line. <CR> CODE FUNCTION Carriage return The <CR> code is valid only if memory switch 3-1 is set to 1. (The factory setting is 0.) If the <CR>...
  • Page 39 <ESC> “2” CODE FUNCTION Sets line spacing to n/72-inch Sets the line spacing to n/72-inch which is defined by <ESC> “A” n. <ESC> “z” “0” <ESC> “z” <0> CODE Sets line spacing to 1/12 inch FUNCTION Sets the distance that the paper advances in subsequent line feeds to 1/12 inch.
  • Page 40 <ESC> “J” CODE FUNCTION One time n/72-inch feed Performs a line feed of n/72-inch only once after printing the data in the line buffer. The space setting for lines does not change. The value of n is between 1 and 255. <ESC>...
  • Page 41 <ESC> “D” <0> CODE FUNCTION Sets horizontal tab stops Cancels all current horizontal tab stops and sets new tab stops at columns n1, n2, etc. at the current character pitch, where n1, n2, etc. are numbers between 1 and 255. A maximum of 16 horizontal tab stops can be set.
  • Page 42 <ESC> <GS> “a” CODE FUNCTION This function specifies a position alignment. This function aligns the specified position of all print data of 1 line. The position is aligned as shown below. n = (00)H, “0”: Left align (default) = (01)H, “1”: Center = (02)H, “2”: Right align ABCD <ESC><GS>...
  • Page 43 Dot Graphics Printing CODE <ESC> “K” <0> Prints normal density graphics FUNCTION Prints a bit image of the number of dots specified by n. After printing the bit image, the printer automatically returns to the character mode. The relationship between the pins on the print head and the data is shown below.
  • Page 44 We will create the design below using a bit image. EXAMPLE First, since the volume of data is 30, n1 = (1E) . If the data m1 ~ m30 is converted to hexadecimal, it appears as shown below. Hexa- Hexa- Hexa- Data Binary...
  • Page 45 <ESC> “L” CODE Prints high density graphics FUNCTION Prints a high density bit image of the number of dots specified by n1 and n2. The value of n1 + 256 n2 is between 1 and 420. A maximum of 420 data bytes can printed in one line. Any data exceeding 420 bytes is ignored.
  • Page 46 Download Graphics Printing When the 7 9 (half dot) character size (default setting) is set: CODE <ESC> “&” <0> n1 n2 [m0 m1 m2 m3 m4 m5 m6 m7] n2 – n1 + 1 1B 26 00 n1 n2 [m0 m1 m2 m3 m4 m5 m6 m7] n2 –...
  • Page 47 When the 7 9 (half dot) character size (default setting) is set, the EXAMPLE horizontally adjacent dots cannot be printed. Printing possible Printing not possible m2 m4 m6 m2 m4 m6 m3 m5 m7 m3 m5 m7 Over lapping horizontally Over lapping horizontally CODE...
  • Page 48 Peripheral Device Control CODE <ESC> <BEL> n1 Defines drive pulse width for peripheral device #1 FUNCTION Defines the drive pulse width for peripheral devices requiring other than standard 200 ms pulse time and delay time. n1 indicates the energizing time and n2 indicates the delay time, using 10ms units.
  • Page 49 Slip Control CODE <ESC> <SI> Setting slip sensor FUNCTION Sets the slip printer TOF/BOF sensor according to the value of n. TOF Sensor BOF Sensor n = 00, “0” : Valid Valid 01, “1” : Valid Invalid 02, “2” : Invalid Valid 03, “3”...
  • Page 50 <ESC> <VT> CODE FUNCTION Sets the paper eject direction/length Sets the length of the ejection operation performed using <ESC> <FF> 5 in line mode. The value of m determines the ejection direction. When m= “+”: the ejection direction is into the printer (operational feed), and the ejection length is n lines (at the current carriage return) When m= “-”: the ejection direction is backward (backfeed), and...
  • Page 51 <ESC> <EM> <LF> <NUL> CODE FUNCTION Sets the wait time until the automatic clamp is activated Sets the wait time between paper insertion (TOF/BOF sensor senses the paper) and automatic clamp activation by n 0.1 sec. The default value of n is 7 (wait time is 0.7 sec.) The value of m is fixed to 0.
  • Page 52 Also, when characters are enlarged vertically, the top of the characters may not be printed on the first line of the page and the characters on the second line or lower lines may overlap the characters above them. This is because the characters are enlarged from their baseline.
  • Page 53 <ESC> “!” CODE FUNCTION Select line mode (default) If this command is specified while in page mode, printing is not carried out and the printer returns to line mode. <ESC> “*” CODE Setting print area in page mode FUNCTION The coordinates of the current position at the moment that page mode is entered are (0,0).
  • Page 54 This command is stored, even in line mode, and the position at the time that page mode is entered is used as the standard point (0,0). Since the bottom of the character is used as the baseline, a minimum print area of 8 dots are necessary in the character height direction to print data in the page.
  • Page 55 The check high-speed printing mode provides high-speed printing with the check at a 270 degree rotation angle and bi-directional printing, and a wide range of limitations have been included to enable bi-directional printing. This mode can only be used with printing data that uses a 5 X 9 (2P- 1) font without decorations.
  • Page 56 <FF> CODE FUNCTION Print in page mode (only valid when in page mode) In page mode, all page data in the page area is printed, then the printer returns to line mode. After all the page data is printed, the data in the page, the page print area and the print direction are all initialized.
  • Page 57 Other Commands CODE <CAN> Cancels printer buffer & Initialize printer FUNCTION Clears the line buffer, and initializes the commands set already. Does not affect the external equipment drive conditions set by the code <ESC> <BEL> n1 n2. (This is the same during a mechanical error.) (Line buffer means the print data expansion area.) If <CAN>...
  • Page 58 <ESC> “# n1n2n3n4” <LF> <NUL> CODE n1n2n3n4 FUNCTION Sets the memory switch. In order to enable changed memory switch setting, turn the printer OFF and ON again or send printer reset command (<ESC> “?”<LF><NUL>”) to the printer. Changed memory switch settings are stored in EEPROM and these setting will be stored as long as the time when they are changed again.
  • Page 59 n1 :Always “0” n2 :Always “0” n3 :Always “0” n4 :Always “0” N=3 (Star mode only) n1 :Always “0” n3 :Always “0” (Default) “ ” “ ” “ ” “ ” Parameter Setting Character table See below CR code Invalid Invalid Valid Valid...
  • Page 60 N=5 (Star mode) n1 :Always “0” n3 :Always “0” (Default) “ ” “ ” “ ” “ ” Parameter Setting When slip printer <CR> Print + print Print + print code is valid line feed (CR) line feed (CR) (CRLF) (CRLF) Initial status of the TOF/ Valid...
  • Page 61 <ESC>"q" command function “ ” Executes release “ ” Executes release Executes release after the paper has been completely released in “ ” the forward direction Executes release after the paper has been completely released in “ ” the reverse direction CODE <ESC>...
  • Page 62 Status byte Status Constantly Vertical parity error set at “0” 1: Error Framing error 1: Error Printer mechanical error 1: Error Buffer empty 1: Empty Buffer overflow 1: Overflow Compulsion switch 1: High level (Switch is set to ON.) Status b3 is variable. CODE <ESC>...
  • Page 63: Tm-295 Mode Emulation Cautionary Items

    TM-295 mode emulation cautionary items Since, as shown below, the paper feed pitch, dot pitch and the installation distances between the TOF/BOF sensors and the print head differ depending on the mechanism of the SP298 and TM-295, the printing results may not be the same because of the differences in the mechanism.
  • Page 64 <Influence due to the difference in the TOF and BOF sensor positions> The paper position when the condition of the TOF or BOF sensor changes due to the status is different to that of the TM-295. Since the position of the BOF sensor is especially different, whereas the BOF sensor reports “no paper”...
  • Page 65: Appendix: Character Code Tables

    Appendix : Character Code Tables Star Mode (Character table: Normal) Note: The (7F)H code is a space when neither normal nor katakana.
  • Page 66: Star Mode

    Star Mode (Character table: Normal)
  • Page 67 Star Mode (Character table: katakana) Note: Other characters are the same as those for Character table: Normal.
  • Page 68 Star Mode (Character table: IBM (Code page 437)) Note: Other characters are the same as those for Character table: Normal...
  • Page 69 Star Mode Code Page #858 Code Page #852 Multi-lingual Latin-2 Code Page #861 Code Page #860 Portuguese Icelandic Note: Other characters are the same as those for Character table: Normal...
  • Page 70 Code Page #863 Code Page #865 Canadian French Nordic Code Page #866 Russian Note: Other characters are the same as those for Character table: Normal...
  • Page 71 Star Mode International Character Set...
  • Page 72 ESC/POS Mode Page 0 (PC437)
  • Page 73 ESC/POS Mode Page 0 (PC437)
  • Page 74 ESC/POS Mode Page 1 (Katakana) Note: Other characters are the same as those for Page 0.
  • Page 75 ESC/POS Mode Page 2 (PC858: Multilingual) Note: Other characters are the same as those for Page 0.
  • Page 76 ESC/POS Mode International Character Set...
  • Page 78 (Blank Page)
  • Page 79: Please Access The Following Url

    HEAD OFFICE OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS CO., LTD. STAR MICRONICS AMERICA, INC. 536 Nanatsushinnya, Shimizu, Shizuoka 70-D Ethel Road West, Piscataway, NJ 08854 U.S.A 424-0066 Japan Tel: 732-572-9512, Fax: 732-572-5095 Tel: 0543-47-0112, Fax: 0543-48-5271 STAR MICRONICS U.K. LTD. Please access the following URL Star House, Peregrine Business Park, Gomm Road, http://www.star-micronics.co.jp/service/sp_sup_e.htm...

Table of Contents