Star Micronics SCP700 Series Programmer's Manual
Star Micronics SCP700 Series Programmer's Manual

Star Micronics SCP700 Series Programmer's Manual

Combination printer
Hide thumbs Also See for SCP700 Series:

Advertisement

COMBINATION PRINTER
SCP700 SERIES
Programmer's Manual

Advertisement

Table of Contents
loading

Summary of Contents for Star Micronics SCP700 Series

  • Page 1 COMBINATION PRINTER SCP700 SERIES Programmer’s Manual...
  • Page 2: Table Of Contents

    TABLE OF CONTENTS Chapter 1: Outline ..................1 Chapter 2: DIP Switch Settings ..............2 Accessing the DIP switches ............2 Available DIP switch settings ............ 3 Chapter 3: Memory Switch Settings ............6 Chapter 4: Control Panel Operations ............7 Indicator lights ................
  • Page 3: Chapter 1: Outline

    Chapter 1: Outline The SCP700 Series combines both a quick, quiet and highly reliable thermal receipt printer with an impact dot slip printer, enabling printing on single or multiple sheets of slip paper of an unspecified size. The thermal printer enables receipt printing without a thermal ribbon and makes paper insertion extremely easy.
  • Page 4: Chapter 2: Dip Switch Settings

    Chapter 2: DIP Switch Settings The printer’s DIP switches let you change communications parameters, thermal printing density, interface type, input buffer size, and emulation. This chapter explains the settings you can make and tells you how to actually change DIP switch settings.
  • Page 5: Available Dip Switch Settings

    Carefully work the document table loose and slide it to the left of the printer out of the way. It is not necessary to remove the document table complete, just move it enough so you can get at the DIP switches inside. After the document table is opened sufficiently, use a thin flat-blade screwdriver or some other similar object to change DIP switch settings.
  • Page 6 DIP Switch 1 The following table shows all the possible settings for DIP Switch 1. This switch sets the transmission parameters of the Standard Serial Interface. All switch settings, except for 1-7 and 1-8, are ON when the printer is shipped from the factory.
  • Page 7 Switch Parameter Interface Standard Option Always ON Not Used Not Used Thermal Print Density Switch 2-1 Switch 2-2 Light Standard Heavy Very Heavy...
  • Page 8: Chapter 3: Memory Switch Settings

    Chapter 3: 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 9”. The table below shows the factory settings for the memory switches. Memory Switch Hexadecimal Code 0000...
  • Page 9: Chapter 4: Control Panel Operations

    Chapter 4: Control Panel Operations The control panel gives you some push-button control over the printer’s receipt and slip printer operations. It also includes indicator lights, which tell you the current status of the printer at a glance. RECEIPT SLIP POWER RECEIPT SLIP/RESUME...
  • Page 10: Buttons

    Buttons The following table describes the function of the two control buttons of the control panel. Button Description Press to feed the thermal paper. Holding down this button feeds paper RECEIPT at high speed. 1. Press this button to release or engage slip paper from the slip printer.
  • Page 11: Adjusting The Slip Printer's Dot Alignment

    Adjusting the slip printer’s dot alignment You may never have to use the procedure described in this section, but after you have been using your printer for some time you may find that the dots of some graphics do not align correctly. For example, what should look like: may come out looking like one of the following: or like this This is caused when mechanical parts of the printer get out of alignment.
  • Page 12 To exit this mode, press the SLIP/RESUME button. The dot alignment adjust mode setting is stored in the memory, a pattern using the selected setting, followed by “Adjust Completed” is printed, and the printer ejects the slip paper. Note: If you press the SLIP/RESUME button without pressing the RECEIPT button after entering the Dot Alignment Adjust Mode, the printer assumes that you do not want make any settings, so it prints the message “Adjust Complete!”...
  • Page 13: Hexadecimal Dump

    Hexadecimal dump This procedure prints in hexadecimal format all codes (character codes and control codes) that are sent to the printer by the computer. The printer does not execute any control codes (such as 0A - linefeed), it just prints them out. The hexadecimal dump is useful when you are writing programs for printer control.
  • Page 14 Receipt Printer Recoverable Errors RECEIPT Error Name Cause Recovery Flashing Pattern Paper Out Error No roll paper Slow Insert paper and press SLIP/RESUME. Head Up Error Raised receipt printer Fast Lower head and press SLIP/RESUME. head Near End Roll paper near end Slow Press SLIP/RESUME to resume printing.
  • Page 15: Chapter 5: Standard Serial Interface

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

    Standard serial interface pins and signal names Receipt printer head-up error Receipt printer auto cutter error Receipt printer thermistor error Cover open error Slip printer mechanical error 1: Error Receipt paper empty error (inclu 1: Empty Buffer empty Signal Direction Function Name —...
  • Page 17: Interface Connections

    Interface connections Refer to the interface specifications for the host computer for details on connecting to its interface connector. The following illustration shows a typical connection configuration. RS-232C Printer side IBM PC side (D-sub 9 pin) (D-sub 25 pin) F-GND F-GND S-GND S-GND...
  • Page 18: Data Protocol

    Data protocol DTR mode This mode is accessed when the DIP switch 1-6 is set to ON. Signals are controlled using the DTR line as a BUSY flag. Data Data Data Buffer full Buffer empty Printing Power ON Immediately after power on (provided that no error occurs), the printer sets DTR to “SPACE”...
  • Page 19 Error Condition Upon detecting an error, the printer immediately sets DTR to “MARK” and goes off-line. If the printer recovers from the error, DTR is set to “SPACE” and the printer goes back on-line. When paper is out OFF LINE ON LINE Printing Recovery...
  • Page 20 X-ON/X-OFF mode This mode is accessed when DIP switch 1-6 is set to OFF. X–ON X–OFF X–ON X–OFF X–ON Bufferfull Bufferempty Data Data Data Printing Error Recovery Printer error Power ON The output timing conditions for X-ON and X-OFF are set using Memory Switch 4-C.
  • Page 21: Chapter 6: Optional Interface

    Chapter 6: Optional Interface Optional serial interface Use a thin flat-blade screwdriver or some other similar object to change DIP switch settings on the optional serial interface board. The following table shows all the possible settings for the DIP switches. All switch settings, except for 1-7 and 1-8, are ON when the printer is shipped from the factory.
  • Page 22: Optional Serial Interface Pins And Signal Names

    Optional serial interface pins and signal names Signal Direction Function Name — Frame Ground Transmission data Receive data Data terminal ready signal. This signal changes to SPACE when the printer is ready to receive data. Signal line that indicates if the host computer can receive data. SPACE: host can receive MARK: host cannot receive The status of this signal is not confirmed.
  • Page 23: Interface Connections

    Interface connections Refer to the interface specifications for the host computer for details on connecting to is its interface connector. The following illustration shows a typical connection configuration. Printer side IBM PC side (D-sub 25 pin) (D-sub 25 pin) F-GND F-GND S-GND S-GND...
  • Page 24: Optional Parallel Interface

    Optional parallel interface Interface: Conforms with Centronics parallel interface standard Data transfer speed: 1000 ~ 5000 CPS Synchronization: External strobe pulse Handshaking: Using ACK and BUSY Logic level: TTL-level compatible A C K Approx. 9ms DATA STROBE BUSY T: At least 0.5ms...
  • Page 25: Optional Parallel Interface Pins And Signal Names

    Signal Name Sample Circuit 4.7k DATA 1 74LS-equivalent DATA 8 74LS-equivalent 100W STROBE 1000pF 1.8kW BUSY 74LS-equivalent Optional parallel interface pins and signal names (18) (36) (19)
  • Page 26 Signal Name Direction Function Signals when data is ready to be read. Signal goes from HIGH to LOW (for at STROBE least 0.5 s) when data is available. Information on the first eight bits of parallel data. Each signal is HIGH for logical 1 2 - 9 DATA 1 - 8 and LOW for logical 0.
  • Page 27: Chapter 7: Peripheral Unit Driver Circuit

    Chapter 7: Peripheral Unit Driver Circuit The main logic board of this printer includes a circuit for driving peripheral units, such as cash drawers. A 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 that meets the following specifications.
  • Page 28: Drive Circuit

    Drive circuit The recommended drive unit is shown below. [Drive output 24V, max. 1.0A] With shield Peripheral unit 1 7824 +24V 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 29: Chapter 8: Automatic Cutter

    Chapter 8: Automatic Cutter 1 The cutter operates in response to data commands. To enable cutter operation, set Memory Switch #2-8 to indicate that the cutter is installed. 2 NEVER place fingers or metal objects in the cutter area. 3 If a jam occurs in the cutter area, switch off the power, use tweezers to remove the jammed paper, then switch the power back on.
  • Page 30: Chapter 9: Control Codes

    Chapter 9: Control Codes Print Station Selection Receipt- Slip Control codes Hexadecimal codes Function Page printer printer <ESC> “+” “A” 0 1B 2B 41 30 Select receipt printer <ESC> “+” “A” <0> 1B 2B 41 00 <ESC> “+” “A” 3 1B 2B 41 33 Select slip printer <ESC>...
  • Page 31: Print Position Control

    Receipt- Slip Control codes Hexadecimal codes Function Page printer printer Resets the printing <ESC> <DC4> 1B 14 magnified in character height. Sets the magnification rate in <ESC> “h” n 1B 68 n character height. Sets the magnification rates <ESC> “i” n1 n2 1B 69 n1 n2 in character width and height.
  • Page 32 Receipt- Slip Control codes Hexadecimal codes Function Page printer printer <FF> Form feed <HT> Horizontal tab <VT> Vertical tab Set line spacing to 4 mm <ESC> “z” “1” 1B 7A 31 <ESC> “z” <1> 1B 7A 01 Set line spacing to 1/6-inch Set line spacing to 3 mm <ESC>...
  • Page 33: Auto Cutter Control

    Receipt- Slip Control codes Hexadecimal codes Function Page printer printer <ESC> “%” “1” 1B 25 31 Enable download character <ESC> “%” <1> 1B 25 01 <ESC> “%” “0” 1B 25 30 Disable download character <ESC> “%” <0> 1B 25 00 Peripheral Device Control Receipt- Slip...
  • Page 34: Page Mode

    Page Mode Receipt- Slip Control codes Hexadecimal codes Function Page printer printer <ESC> “n” 1B 6E Select page mode <ESC> “!” 1B 21 Select line mode Setting print area in page <ESC> “*” ... 1B 2A ... mode Setting print direction in page <ESC>...
  • Page 35 Printer Station Selection CODE <ESC> “+” “A” FUNCTION Print Station Selection n = 0, “0” : Selects the receipt printer 3, “3” : Selects the slip printer This command is only valid when it entered at the beginning of a line.
  • Page 36 <ESC> “b” ... dk <RS> CODE ... dk 1E Select bar code printing FUNCTION Prints bar code according to the value of n1, as shown below: This command is only valid with the receipt printer. n1: Type of bar code UPC-E UPC-A JAN/EAN-8...
  • Page 37 CODE 39, NW-7, ITF CODE 39, NW-7 Narrow : wide 2:6 dots 2:5 dots Narrow : wide 3:9 dots 4:10 dots Narrow : wide 4:12 dots 6:15 dots Narrow : wide 2:5 dots 2:4 dots Narrow : wide 3:8 dots 4:8 dots Narrow : wide 4:10 dots...
  • Page 38 The value of k is optional, and the maximum value also differs according to the modes (40 digits maximum in mode 4). If the data is number of an odd digits, 0 is automatically added at the beginning of the data. CODE 128: The value of k is optional, and the maximum value also differs according to the modes and the...
  • Page 39 3) 2-character codes Control codes Special code CODE FORMAT CODE FORMAT Function codes CODE FORMAT FNC1 FNC2 FNC3 FNC4 Start codes CODE FORMAT START A START B START C For CODE 128 only. %¥...
  • Page 40 <ESC> “M” CODE FUNCTION Receipt printer: Select 12-dot pitch printing Prints in a 12 24 dot font with no spacing between characters. Slip printer : Select 7 9 (half dot) font <ESC> “p” CODE FUNCTION Select 14-dot pitch printing Prints in a 12 24 dot font with 2-dot spacing between characters. This command is only valid with the receipt printer.
  • Page 41 <SO> CODE FUNCTION Sets the printing magnified double in character width. Prints the subsequent data including a character spacing set by <ESC><SP> n, magnified double in character width. <DC4> CODE Resets the printing magnified in character width. FUNCTION Resets the printing magnified in character width set by <SO>, <ESC>...
  • Page 42 <ESC> “h” CODE FUNCTION Set the magnification rate in character height Prints the subsequent data with a character height magnified by a rate specified by the value of n. Receipt printer: n= 0, “0”: Reset magnification (same as <ESC><DC4>) 1, “1”: Double magnification (same as <ESC><SO>) 2, “2”: Triple magnification 3, “3”: Quadruple magnification...
  • Page 43 <ESC> “_” CODE FUNCTION Upperlining When the value of n is 1, over lines the subsequent data including a character spacing set by <ESC><SP> n. The part to be skipped by the horizontal tab setting and the block graphic characters are not upper lined. Resets the upper line mode when the value of n is 0.
  • Page 44 <ESC> “E” CODE FUNCTION Select emphasized printing Causes subsequent characters to be emphasized. <ESC> “F” CODE Cancel emphasized printing FUNCTION Cancels emphasized printing.
  • Page 45 Page Formatting (Line Mode) CODE <ESC> “C” Set page length in lines FUNCTION Sets the page length using the current line spacing, where n is between 1 and 127. Changing the line spacing later does not alter the physical page length.
  • Page 46 <ESC> “1” CODE FUNCTION Set left margin at column n at the current character pitch. The left margin does not move if the character pitch is changed later. If this function is set in the middle of a line, it will become valid starting with the following line.
  • Page 47 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 for both the receipt and slip printers only if memory switch 3-1 is set to 1. (The factory setting is 0.) If the <CR>...
  • Page 48 <VT> CODE FUNCTION Vertical tab Prints the current line and feeds the paper to the next vertical tab stop and moves the print position to the left margin. Performs paper feed if no vertical tabs are set or if the current line is at or below the last vertical tab stop.
  • Page 49 <ESC> “j” CODE FUNCTION Receipt printer: One time n/4-mm backfeed Feeds the paper back n/4 mm only once after printing the data in the line buffer. The space setting for lines do not change. This command can also feed the paper back to a previous page; however, the position in the line on the previous page is determined by the page length control.
  • Page 50 <ESC> “D” <0> CODE FUNCTION Set 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 51 Dot Graphics Printing CODE <ESC> “K” <0> Print normal density graphics FUNCTION Receipt printer: Prints a 3 (horizontal) 3 (vertical) dot bit image for each dot of entered data. Data extending beyond the right margin is ignored. The relationship between the entered data and the actual printing is shown below.
  • Page 52 Slip printer: 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. Image data Dot Position...
  • Page 53 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 54 <ESC> “L” CODE FUNCTION Print high density graphics Receipt printer: Prints a 1 (horizontal) 3 (vertical) dot bit image for each dot of entered data. Data extending beyond the right margin is ignored. The relationship between the entered data and the actual printing is shown below.
  • Page 55 Slip printer: 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 56 <ESC> “k” <0> CODE FUNCTION Print fine density graphics Prints a 1 (horizontal) 1 (vertical) dot bit image for each dot of entered data. Data extending beyond the right margin is ignored. The relationship between the entered data and the actual printing is shown below.
  • Page 57 Relationship between image data and print dots Image data b7 b6 b5 b4 b3 b2 b1 b0 Dot position...
  • Page 58 EXAMPLE Printing Sample Hexa- Hexa- Data Binary Data Binary decimal decimal 00000000 00000000 00011111 11111000 00111111 11111100 01110111 01110111 11111000 00011111 11111000 00011111 11111000 00011111 00001111 11110000 00011111 11111000 00011111 11111000 00111110 01111100 00111000 00011100 01111001 10011110 01110011 11001110 01110011 11001110 11111001 10011111...
  • Page 59 <ESC> “X” CODE FUNCTION Print fine density graphics Prints a bit image of the input data using horizontal and vertical resolutions of 8 dots/mm. Data extending past the right margin is ignored. The relationship between the input data and the actual printing is shown below.
  • Page 60 Download Graphics Printing CODE <ESC> “&” <1> <1> <ESC> “&” “1” “1” CODE Define download character FUNCTION Defines one new character and stores it in RAM for later use. n is the character code of the character defined and must be between 21H and 7F4.
  • Page 61 Hexa- Hexa- Data Binary Data Binary decimal decimal 00011000 00000000 00111000 00000000 01111000 00000000 00011000 00000000 00011000 00000000 00011000 01100000 00011000 11000000 00011001 10000000 00011011 00000000 00000110 00000000 00001100 00000000 00011011 11000000 00110111 11100000 01100110 01100000 00000000 01100000 00000000 11000000 00000001 10000000 00000011...
  • Page 62 Define download character (7 9 (half dot) font or 5 9 dot font) FUNCTION Defines download characters Up to 10 download characters can be defined and the defined character patterns can be stored in the printer’s RAM. The values of n1 and n2 are between (21) and (7F) with n1 less than or equal to n2 and the value of m0 is either (00)
  • Page 63 <ESC> “&” <1> <0> CODE <ESC> “&” “1” “0” CODE Delete a download character (12 24 dot font) FUNCTION Deletes the download character which was assigned the value n. This command is only valid with the receipt printer. <ESC> “%” “1”...
  • Page 64 Peripheral Device Control CODE <ESC> <BEL> n1 Define 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 65 Auto Cutter Control CODE <ESC> “d” “0” <ESC> “d” <0> Full-cut command to the auto cutter FUNCTION Cuts the receipt paper fully. This command is only valid with the receipt printer. <ESC> “d” “1” <ESC> “d” <1> CODE Partial-cut command to the auto cutter FUNCTION Cuts the receipt paper partially.
  • Page 66 Slip Printer Control CODE <ESC> <SI> (1B)H (0F)H 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”...
  • Page 67 <ESC> <VT> CODE (1B)H (0B)H FUNCTION Set 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 68 Page Mode CODE <ESC> “n” (1B)H (6E)H Select page mode FUNCTION Switches from line mode (default) to page mode. This code is only valid when it is entered at the beginning of the line. The page mode is suitable even though data is printed in the rotational direction specified by <ESC>...
  • Page 69 Paper feed command In paper mode, the paper feed command and carriage return are executed in units of dots. A 1/72-inch (0.353-mm) paper feed is considered 1 dot. Since a 1-dot pitch in the horizontal direction is 0.30 mm and a 1-dot pitch in the vertical direction is 0.353 mm, the paper amount that is fed while printing using a 90 or 270 rotation is less when compared with a 0 or 150 rotation.
  • Page 70 The following commands are ignored in page mode. One time backfeed <ESC> “j” n Print high density graphics <ESC> “L” ••• Slip function <ESC> <FF> n Select print station <ESC> “+” “A” n STX-ETX mode <STX> ••• <ETX> <ESC> “!” CODE (1B)H (21)H...
  • Page 71 <ESC> “*” CODE FUNCTION Setting print area in page mode The coordinates of the current position at the moment that page mode is entered are (0,0). The starting point of the print area is defined by X and Y . In addition, the length DX in the X direction is specified by dX and dX , and the length DY in the Y...
  • Page 72 <ESC> “T” CODE (1B)H (54)H FUNCTION Setting print direction in page mode Sets the direction in which the printing will be executed in page mode according to the value of n. This command is only valid in line mode. Value of n Mode 0 or “0”...
  • Page 73 <FF> CODE (0C)H FUNCTION Print in page mode (only valid when in page mode) This command can only activate the slip printer. In page mode, all page data in the page area is printed, then the printer returns to line mode.
  • Page 74 Other Commands CODE <CAN> (18) Cancel 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 75 <ESC “# n1n2n3n4” <LF> <NUL> CODE n1n2n3n4 FUNCTION Set 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 76 n3 :Always “0” (Default) Parameter Setting Receipt printer ESC d Paper feed, command & Cut Receipt printer Receipt printer cutter Valid Invalid Cover Open Invalid Valid Receipt printer paper Invalid Valid near end n1 :Always “0” (Default) Parameter Setting Character table Normal Katakana IBM Receipt printer printer...
  • Page 77 <ESC> “@” CODE FUNCTION Initialize printer Reinitializes the printer. Clears the print buffer and returns settings to their power-up values. Does not clear the input buffer, downloaded characters, or conditions for peripheral devices. In addition, this command initializes the print station selection. If the slip printer was selected, the receipt printer will be re-selected.
  • Page 78 Status byte Status Constantly Vertical parity error set at “0” 1: Error Framing error 1: Error Receipt printer head-up error Receipt printer auto cutter error Receipt printer thermistor error Cover open error Slip printer mechanical error 1: Error Receipt paper empty error (including near end) 1: Empty Buffer empty 1: Empty...
  • Page 79: Appendix: Character Code Tables

    Appendix : Character Code Tables...
  • Page 80 (Character table: Normal)
  • Page 81 (Character table: katakana)
  • Page 82 (Character table: IBM)
  • Page 83 International Character Set...
  • Page 84 OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA, INC. 70-D Ethel Road West, Piscataway, NJ 08854 U.S.A Tel: 908-572-9512, Fax: 908-572-5095 STAR MICRONICS DEUTSCHLAND GMBH Westerbachstraße 59, D-60489 Frankfurt, Germany Tel: 069-789990, Fax: 069-781006 HEAD OFFICE STAR MICRONICS U.K. LTD. STAR MICRONICS CO., LTD.

Table of Contents