COMBINATION PRINTER SCP700 SERIES Programmer’s Manual
Trademark acknowledgments SCP700: Star Micronics Co. Ltd. ESC/POS, TM-295, TM-T85: Seiko Epson Corporation Notice • All rights reserved. Reproduction of any part of this manual in any form whatsoever, without STAR’s express permission, is strictly forbidden. • The contents of this manual are subject to change without notice. • All efforts have been made to ensure the accuracy of the contents of this manual at the time of printing.
TABLE OF CONTENTS Chapter 1: Chapter 2: Chapter 3: Chapter 4: Chapter 5: Chapter 6: Chapter 7: Chapter 8: Chapter 9: Chapter 10: Appendix: Outline ........................................................................................1 DIP Switch Settings ..................................................................2 Accessing the DIP switches ........................................................2 Available DIP switch settings .....................................................
2 [Blank page]
1 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.
2 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. Accessing the DIP switches The DIP switches are located inside the printer, underneath the document table. Use the following procedure to remove the document table so you can operate the DIP switches.
3 ❏ 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. ON OFF ON OFF ❏ After the document table is opened sufficiently, use a thin flat-blade ❏ screwdriver or some other similar object to change DIP switch settings. Carefully return the document table to its original position and secure it in place with the two screws.
4 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.
5 Switch Parameter 2-4 Always ON 2-5 Interface 2-6 Always ON 2-7 Not Used 2-8 Not Used ON OFF Standard Option Thermal Print Density Switch 2-1 Switch 2-2 Light OFF OFF Standard ON ON Heavy ON OFF Very Heavy OFF ON
6 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.
7 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 RECEIPT SLIP POWER SLIP/RESUME Indicator lights The following table describes the meaning of indicator lights when it is on, off, or flashing.
8 Buttons The following table describes the function of the two control buttons of the control panel. Button Description RECEIPT Press to feed the thermal paper. Holding down this button feeds paper at high speed. SLIP/RESUME 1. Press this button to release or engage slip paper from the slip printer. (Switching from releasing to engaging is only possible if slip paper is inserted.) 2. Press this button to clear the errors of the slip printer and receipt printer.
9 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. This happens only rarely and you may never experience it at all throughout the life of the printer.
10 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!” and exits the mode.
11 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. ❏ Make sure that roll paper is loaded in the receipt printer. ❏ Turn off the printer.
12 Receipt Printer Recoverable Errors Error Name Cause RECEIPT Flashing Pattern Recovery Paper Out Error No roll paper Slow Insert paper and press SLIP/RESUME. Head Up Error Raised receipt printer head Fast Lower head and press SLIP/RESUME. Near End Roll paper near end Slow Press SLIP/RESUME to resume printing. Cutter Error Error during roll paper cutting Fast If the blade is in the home position, press SLIP/RESUME to continue printing.
13 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 Data bits: ..............7 or 8 (Selected by DIP switch) Parity: ...................
14 Standard serial interface pins and signal names 5 1 9 Pin Signal Direction No. Name 6 Function 1 FG — Frame Ground 2 RXD IN Receive data 3 TXD OUT Transmission data 4 DTR OUT Data terminal ready signal. This signal changes to SPACE when the printer is ready to receive data. 5 SG — Signal ground 6 DSR IN 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.
15 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.
16 Data protocol ❏ DTR/DSR Mode Set when dip switch #1-6 is ON. Communication is carried out while handshake is performed with the DTR and DSR signals. Control is executed by selecting the DTR signal for the busy signal when data is downloaded to the printer data. “SPACE” indicates the printer can receive data, and oppositely “MARK” indicates that data cannot be received.
17 Buffer full cancellation in DTR mode (the following is an example in the Combination mode). A) Buffer set to “big size” (4K-bytes) (set with dip switch 2-3) Data buffer Full Near Full Remainder 256 bytes Near Empty Empty 256 bytes DTR “MARK” DTR “SPACE” When available space drops below 256 bytes, DTR is set to “MARK.” When data in the buffer drops below 256 bytes, DTR is set to “SPACE.
18 ❏ X-ON / X-OFF Mode Set when dip switch #1-6 is OFF. Mode whereby the host is informed by TXD signal of X-ON (DC1) when data can be received or X-OFF (DC3) when data cannot be received. In the Star mode, X-ON / X-OFF output timing conditions are set by memory switch 4-C.
19 Buffer full cancellation in X-ON / X-OFF mode (the following is an example in the Combination mode).
20 Printer setting conditions • When in Star mode and memory switch is set to “0” • ESC/POS emulation • When in Star mode and memory switch is set to “1” Description of operation When available buffer space drops below 256 bytes, exactly one byte is output for X-OFF. When data in the buffer drops below 256 bytes, exactly one byte is output for X-ON. When available buffer space drops below 256 bytes, an X-OFF signal is output for each byte of data received.
21 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. ON 1 2 3 4 5 6 7 8 OFF 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.
22 Optional serial interface pins and signal names 13 1 25 14 Pin Signal Direction No. Name Function 1 FG — Frame Ground 2 TXD OUT 3 RXD IN 4 RTS OUT Data terminal ready signal. This signal changes to SPACE when the printer is ready to receive data. 6 DSR IN 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.
23 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.
24 Optional parallel interface Interface: Data transfer speed: Synchronization: Handshaking: Logic level: Conforms with Centronics parallel interface standard 1000 ~ 5000 CPS External strobe pulse Using ACK and BUSY TTL-level compatible ACK Approx. 9µs DATA STROBE BUSY T T T T: At least 0.
25 Signal Name Sample Circuit 4.7kΩ DATA 1 74LS-equivalent Input DATA 8 1kΩ 100Ω STROBE 74LS-equivalent Output 1000pF 1.
26 Pin No. Signal Name Direction 1 STROBE IN Signals when data is ready to be read. Signal goes from HIGH to LOW (for at least 0.5 µs) when data is available. 2-9 DATA 1 - 8 IN Information on the first eight bits of parallel data. Each signal is HIGH for logical 1 and LOW for logical 0. 10 ACK OUT 9µs LOW pulse to acknowledge receipt of data 11 BUSY OUT Printer is ready to receive data when LOW. HIGH indicates one of the following conditions.
27 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. • Use a cable with a modular plug like that one shown in the figure below.
28 Drive circuit The recommended drive unit is shown below. [Drive output 24V, max. 1.0A] 1 F.G With shield 2 TR1 D1 7824 +24V M-GND L1 Peripheral unit 1 3 4 D2 TR2 L2 R3 4.7kΩ 1/4W 5 M-GND Peripheral unit 2 +5V R1 Compulsion switch 6 TR3 R2 Frame ground Printer side User side Notes • • • • • Peripheral Units 1 and 2 cannot be driven simultaneously. For continuous driving, do not use drive duty above 20%. Compulsion switch status is available as status data.
29 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. The printer will return the blade to the home position.
30 Chapter 9: Control Codes Important! Please access the following URL http://www.star-micronics.co.jp/service/sp_sup_e.htm for the lastest revision of the manual. This printer has two command modes: Star mode and ESC/POS mode. The Star mode emulates thermal receipt printers such as the TSP200 series and other previous models. The ESC/POS mode emulates the Epson TM-T85 receipt printer and the Epson TM-295 slip printer. The Star mode commands are as follows.
31 Control codes Hexadecimal codes “:” 1B 3A Function Receipt- Slip printer printer Page Select 16-dot pitch printing 41 Select 5 × 9 (3 pulses = 1 dot) font 41 1B 20 n Set character spacing 41 0E Set the printing magnified double in character width. 42 14 Resets the printing magnified in character width. 42 “W” n 1B 57 n Set the magnification rate in character width. 42 1B 0E Sets the printing magnified double in character width.
32 Page Formatting Control codes Hexadecimal codes Function Receipt- Slip printer printer Page “C” n 1B 43 n Set page length in lines 46 “C” <0> n 1B 43 00 n Set page length in inches 46 “N” n 1B 4E n Set bottom margin 46 “O” 1B 4F Cancel bottom margin 46 “1” n 1B 6C n Set left margin 47 “Q” n 1B 51 n Set right margin 47 Print Position Control Receipt- Slip printer printer Control codes Hexadecimal codes Function 0A Line feed 48 <
33 Dot Graphics Printing Receipt- Slip printer printer Control codes Hexadecimal codes Function “K” n <0> m1 m2 ... 1B 4B n 00 m1 m2 ... Print normal density graphics 53 “L” n1 n2 m1 m2 ... 1B 4C n1 n2 m1 m2 ... Print high density graphics 56 “k” n <0> m1 ... 1B 6B n 00 m1 ... Print fine density graphics 58 “X” n1n2 m1 ... 1B 58 n1n2 m1... Print fine density graphics 61 Page Download Graphics Printing Control codes Hexadecimal codes “&” “1” “1” n m1 m2 ..
34 Auto Cutter Control Receipt- Slip printer printer Control codes Hexadecimal codes Function “d” “0” “d” <0> 1B 64 30 1B 64 00 Full-cut command to the auto cutter 67 “d” “1” “d” <1> 1B 64 31 1B 64 01 Partial-cut command to the auto cutter 67 Page Slip Printer Control Receipt- Slip printer printer Control codes Hexadecimal codes Function n 1B 0F n Setting slip sensor 68 n 1B 0C n Slip function 68 m n 1B 0B m n Set the paper
35 Other Commands Receipt- Slip printer printer Control codes Hexadecimal codes Function 18 Cancel printer buffer & Initialize printer 76 13 Deselect printer 76 11 Set select mode 76 1E Beep the buzzer 76 Page “#N, n1 n2 n3 n4” 1B 23 N 2C n1 n2 n3 n4 Set memory switch 0A 00 77 “@” 1B 40 Initialize printer 80 05 Enquiry 80 Reset printer hardware and produce a test print.
36 Printer Station Selection (Combo mode only) CODE HEX FUNCTION “+” “A” n 1B 2B 41 n 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. If this command is not set at the beginning of a line, the printer will ignore the command and continue to print on previously selected print station.
37 CODE HEX FUNCTION “b” n1 n2 n3 n4 d1 ... dk 1B 62 n1 n2 n3 n4 d1 ... dk 1E Select bar code printing 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 0 1 2 3 4 5 6 7 8 UPC-E UPC-A JAN/EAN-8 JAN/EAN-13 CODE 39 ITF CODE 128 CODE 93 NW-7 The value of n1 can be set to 0(00H) or 8(08H) or “0”(30H) to “8”(38H).
38 CODE 39, NW-7, ITF 1 2 3 4 5 6 7 8 9 Narrow : wide Narrow : wide Narrow : wide Narrow : wide Narrow : wide Narrow : wide Narrow : wide Narrow : wide Narrow : wide CODE 39, NW-7 2:6 dots 3:9 dots 4:12 dots 2:5 dots 3:8 dots 4:10 dots 2:4 dots 3:6 dots 4:8 dots ITF 2:5 dots 4:10 dots 6:15 dots 2:4 dots 4:8 dots 6:12 dots 2:6 dots 3:9 dots 4:12 dots When the value of n3 is UPC-E, UPC-A, JAN/EAN-8, JAN/EAN13, CODE 128 or CODE 93, 1(01H) to 3(03H) or “1”(31H) to “3”(33H) can be set.
39 ITF 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 types of character number (51 digits maximum in mode 1). The check character is automatically added.
40 3) 2-character codes Control codes CODE NUL 00H SOH 01H STX 02H ETX 03H EOT 04H ENQ 05H ACK 06H BEL 07H BS 08H HT 09H LF 0AH VT 0BH FF 0CH CR 0DH SO 0EH SI 0FH DLE 10H DC1 11H DC2 12H DC3 13H DC4 14H NAK 15H SYN 16H ETB 17H CAN 18H EM 19H SUB 1AH ESC 1BH FC 1CH GS 1DH RS 1EH US 1FH DEL 7FH %@ %A %B %C %D %E %F %G %H %I %J %K %L %M %N %O %P %Q %R %S %T %U %V %W %X %Y %Z %[ %¥ %] %^ %_ %5 FORMAT 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25H 25
41 CODE HEX “M” 1B 4D 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 CODE “p” 1B 70 HEX 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.
42 CODE HEX 0E FUNCTION Sets the printing magnified double in character width. Prints the subsequent data including a character spacing set by n, magnified double in character width. CODE HEX 14 FUNCTION Resets the printing magnified in character width. Resets the printing magnified in character width set by , , “W” n and “i”n1n2.
43 CODE HEX FUNCTION “h” n 1B 68 n 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.
44 CODE HEX “_” n 1B 5F n FUNCTION Upperlining When the value of n is 1, over lines the subsequent data including a character spacing set by 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. The value of n can be set to 0(00H) or “0”(30H), or 1(01H) or “1”(31H).
45 CODE HEX “E” 1B 45 FUNCTION Select emphasized printing Causes subsequent characters to be emphasized. CODE “F” 1B 46 HEX FUNCTION Cancel emphasized printing Cancels emphasized printing. CODE “U” “1” 1B 55 31 HEX or “U” 1B 55 <1> 01 FUNCTION Select uni-directional printing After printing the data in the line buffer, the printer enters the unidirectional mode. The subsequent data is printed when the print head moves from left to right.
46 Page Formatting (Line Mode) CODE HEX “C” n 1B 43 n FUNCTION Set page length in lines 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. The current line becomes the top of the page. Resets the bottom margin. Default page length is 42 lines. This command is only valid with the receipt printer.
47 CODE HEX “1” n 1B 6C n 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. When the power is turned on, the left edge is set as the left margin. Receipt printer : The setting is invalid if the print area for one line would be 36 mm or less. The value of n is between 0 and 255.
48 Print Position Control CODE HEX 0A FUNCTION Line feed Prints the current line and feeds the paper to the next line. CODE HEX FUNCTION 0D Carriage return The 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 code is valid: Receipt printer : Functions in the same way as an code. Slip printer : The function of the code changes according to the setting of memory switch 5-8.
49 CODE HEX 0B 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. This command is only valid with the receipt printer. CODE “A” n 1B 41 n HEX FUNCTION Define n/72-inch line spacing Defines the distance that the paper advances in subsequent line feed.
50 CODE HEX FUNCTION “0” 1B 30 Receipt printer: Set line spacing to 3 mm Sets the distance that the paper advances in subsequent line feed to 3 mm. Slip printer CODE HEX FUNCTION “1” 1B 31 Receipt printer: Set line spacing to 3 mm Sets the distance that the paper advances in subsequent line feed to 3 mm. Slip printer CODE HEX FUNCTION : Set line spacing to 1/8 inch Sets the distance that the paper advances in subsequent line feeds to 1/8 inch.
51 CODE HEX FUNCTION “j” n 1B 6A n 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. The value of n is between 1 and 255.
52 CODE HEX “B” n1 n2 ... <0> 1B 42 n1 n2 ... 00 FUNCTION Set vertical tab stops Cancels all current vertical tab stops and sets new vertical tab stops at lines n1, n2, etc., where n1, n2, etc. are numbers between 0 and 255. A maximum of 16 vertical tab stops can be set. The tab stops must be specified in ascending order; any violation of ascending order terminates the tab stop list. Standard termination is by the <0> control code.
53 Dot Graphics Printing CODE “K” n <0> m1 m2 ... 1B 4B n 00 m1 m2 ... HEX Print normal density graphics 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. The value of n is between 1 and 192.
54 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 MSB D8 Dot Position 1 2 3 4 5 6 7 8 9 D7 D6 D5 data D4 D3 LSB D2 D1 (Not Used) The value of n is between 1 and 210. A maximum of 210 data bytes can printed in one line. Any data exceeding 210 bytes is ignored. Only uni-directional printing is possible.
55 EXAMPLE We will create the design below using a bit image. First, since the volume of data is 30, n1 = (1E)H. If the data m1 ~ m30 is converted to hexadecimal, it appears as shown below.
56 CODE HEX “L” n1 n2 m1 m2 ... 1B 4C n1 n2 m1 m2 ... 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. The value of n1 + n2 × 256 is between 1 and 576.
57 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. 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 the same as those shown for the previous bit image code “K”.
58 CODE HEX FUNCTION “k” n <0> m1 m2 ... 1B 6B n 00 m1 m2 ... 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. The value of n is between 1 and 72. This command is only valid with the receipt printer.
59 Relationship between image data and print dots Image data b7 b6 b5 b4 b3 b2 b1 b0 Dot position
60 EXAMPLE Data d1 d3 d5 d7 d9 d11 d13 d15 d17 d19 d21 d23 d25 d27 d29 d31 d33 d35 d37 d39 d41 d43 d45 d47 Binary 00000000 00011111 00111111 01110111 11111000 11111000 11111000 00001111 00011111 00011111 00111110 00111000 01111001 01110011 01110011 11111001 11111000 11111110 11111111 11111111 00000000 00000000 00000000 00000000 Printing Sample Hexadecimal 00 1F 3F 77 F8 F8 F8 0F 1F 1F 3E 38 79 73 73 F9 F8 FE FF FF 00 00 00 00 Data d2 d4 d6 d8 d10 d12 d14 d16 d18 d20 d22 d24 d26 d28 d30 d32 d34 d36 d38
61 CODE HEX FUNCTION “X” n1 n2 m1 m2 ... 1B 5 n1 n2 m1 m2 ... 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.
62 Download Graphics Printing CODE HEX FUNCTION EXAMPLE “&” <1> <1> n m1 m2 ... m48 “&” “1” “1” n m1 m2 ... m48 1B 26 01 01 n m1 m2 ... m48 1B 26 31 31 n m1 m2 ... m48 Define download character 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.
63 Data m1 m3 m5 m7 m9 m11 m13 m15 m17 m19 m21 m23 m25 m27 m29 m31 m33 m35 m37 m39 m41 m43 m45 m47 Binary 00011000 00111000 01111000 00011000 00011000 00011000 00011000 00011001 00011011 00000110 00001100 00011011 00110111 01100110 00000000 00000000 00000001 00000011 00000111 00000111 00000000 00000000 00000000 00000000 Hexadecimal 18 38 78 18 18 18 18 19 1B 06 0C 1B 37 66 00 00 01 03 07 07 00 00 00 00 Data m2 m4 m6 m8 m10 m12 m14 m16 m18 m20 m22 m24 m26 m28 m30 m32 m34 m36 m38 m40 m42 m44 m46 m48 Bina
64 FUNCTION Define download character (7 × 9 (half dot) font or 5 × 9 dot font) 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)H and (7F)H with n1 less than or equal to n2 and the value of m0 is either (00)H or (80)H. Defining of download characters begins with character code n1 and completes with n2. When only one character is defined, n1 = n2.
65 CODE HEX “&” <1> <0> n “&” “1” “0” n 1B 26 01 00 n 1B 26 31 30 n FUNCTION Delete a download character (12 × 24 dot font) Deletes the download character which was assigned the value n. This command is only valid with the receipt printer. CODE “%” “1” or 1B 25 31 or HEX “%” 1B FUNCTION Enable download character set Enables the download character set.
66 Peripheral Device Control CODE HEX 1B n1 07 n1 n2 n2 FUNCTION Define drive pulse width for peripheral device #1 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. CODE HEX FUNCTION CODE HEX 07 Control peripheral device #1 Executes drive pulse for peripheral device #1.
67 Auto Cutter Control CODE HEX “d” “0” or 1B 64 30 or “d” 1B 64 <0> 00 FUNCTION Full-cut command to the auto cutter Cuts the receipt paper fully. This command is only valid with the receipt printer. CODE “d” “1” or 1B 64 31 or HEX FUNCTION “d” 1B 64 <1> 01 Partial-cut command to the auto cutter Cuts the receipt paper partially. This command is only valid with the receipt printer.
68 Slip Printer Control CODE HEX FUNCTION n 1B 0F n Setting slip sensor Sets the slip printer TOF/BOF sensor according to the value of n.
69 CODE HEX m n 1B 0B m n Set the paper eject direction/length Sets the length of the ejection operation performed using 5 in line mode. FUNCTION The value of m determines the ejection direction.
70 CODE n m 1B 19 n m HEX FUNCTION 0A 00 Set the wait time until the automatic clamp is activated Set 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. This command is only valid with the slip printer, besides memory switch 5-1 is set to 0.
71 2) 3) printer returns to line mode. High density printing of graphics is ignored. 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.
72 CODE HEX FUNCTION “*” XL XH YL YH dXL dXH dYL dYH 1B 2A XL XH YL YH dXL dXH dYL dYH 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 XL, XH, YL and YH. In addition, the length DX in the X direction is specified by dXL and dXH, and the length DY in the Y direction is specified by dYL and dYH.
73 When n = 4, “4,” special mode page mode functions as check high-speed printing mode. FUNCTION “T” n 1B 54 n 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.
74 This mode can only be used with printing data that uses a 5 X 9 (2P1) font without decorations. The limitations are listed below. The quality of the printed product cannot be guaranteed if these limitations are removed and the unit used. [Limitations on the check high-speed printing mode] • The only characters that can be printed are the 5 X 9 (2P-1) font ANK characters. • The double-sized width command cannot be used (the doublesized height command may be used.) • The bit image command cannot be used.
75 Customer display commands (Combo mode only) CODE HEX FUNCTION “S” 1B 53 Start customer display Subsequent data is sent through the customer display. Customer display data is sent as follows. This command is saved in the print buffer and retrieved from the print buffer and executed in the same way as the other print data. “S” Customer display data “G” Through the customer display This command is only effective in the combination mode and when memory switch 0-8 = 0.
76 Other Commands CODE HEX 18 FUNCTION Cancel printer buffer & Initialize printer Clears the line buffer, and initializes the commands set already. Does not affect the external equipment drive conditions set by the code n1 n2. (This is the same during a mechanical error.) (Line buffer means the print data expansion area.) If is specified in page mode while printing using the slip printer, printing is not carried out and the printer returns to line mode from page mode.
77 CODE “# N , n1n2n3n4” 1B 23 N 2C n1n2n3n4 0A 00 HEX 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 ( “?””) 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.
78 3) N=2 n3 :Always “0” (Default) Parameter Setting n1 Receipt printer ESC d command Receipt printer n2 Receipt printer cutter n4 4) Receipt printer paper near end Cut “0” “1” Paper feed, & Cut Remark Star mode only Valid Invalid Invalid Valid Star and ESC/POS Star mode only N=3 (Star mode only) n1 :Always “0” (Default) Parameter Setting “0” n2 Character table (Code page) n3 Receipt printer printer 48 column n4 CR code Invalid Receipt printer line feed 4 (mm) n2 “0” “1” “2” 5) Code page N
79 N=4 (ESC/POS mode) n1 :Always “0” n2 :Always “0” (Default) Parameter Setting n3 DTR signal during setting status transmission n4 Data receipt error “0”’ “1” “2” “3” See belows “?” printed Ignored “?” printed Parameter :n3 Setting (DTR signal) 1. From when the power is turned on or I/F reset until communication possible 2. Test printing 3. Paper feed by paper feed switch 4. Stop due to no paper 5. During waiting for switch input in macro execution 6. Other error 7.
80 6) N=5 (Star mode) n1 :Always “0” n3 :Always “0” (Default) Parameter Setting “0” n2 When slip printer Print + code is valid line feed (CRLF) n4 Initial status of the TOF/ Valid BOF sensor Slip printer automatic Valid clamp Slip printer automatic Valid starting print positioning “1” print (CR) Valid “2” “3” Print + print line feed (CR) (CRLF) Valid Valid Valid Invalid Invalid Invalid Valid Invalid Parameter Setting “4” n2 When slip printer Print + code is valid line feed (CRLF) n4 Ini
81 N=D n1 :Always “0” n2 :Always “0” n3 :Always “0” Parameter Setting n2 Thermal head rank Rank A B C CODE HEX “0” A “1” B “2” C “3” C Average resistance value 1215 ± 67 Ω 1350 ± 67 Ω 1485 ± 67 Ω “@” 1B 40 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.
82 Status byte Status b7 b6 b5 b4 b3 b2 b1 b0 0 Constantly set at 0 Vertical parity error 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 1: Empty Buffer empty 1: Empty Buffer overflow 1: Overflow Compulsion switch 1: High level (Switch is set to ON.) Status b3 is variable.
83 Chapter 10: ESC/POS Mode TM-T85 mode Code HT LF FF DLE EOT DLE ENQ CAN ESC FF ESC SP ESC ! ESC $ ESC % ESC & ESC * ESC ESC 2 ESC 3 ESC = ESC ? ESC @ ESC D ESC E ESC G ESC J ESC L ESC R ESC S ESC T ESC V ESC W ESC \ ESC a ESC c4 ESC c5 Function Horizontal tab Print line feed Page mode print and return Real time transmission of status Real time request to printer Cancel print data in page mode Print page mode data Set right space amount of character Universal print mode designation Designate absolute pr
84 Code ESC d ESC i ESC p ESC t ESC u ESC v ESC { GS ! GS $ GS * GS / GS : GS B GS H GS I GS L GS P GS V GS W GS \ GS ^ GS a GS b GS f GS h GS k GS r GS w Function Print and paper feed “n” lines Partial cut (one section remaining) Designate pulse generation Select character code table Transmission of peripheral equipment status Transmission of paper detection status Designate/cancel inverted printing Designate character size Designate absolute position of vertical direction of characters in page mode Defi
85 TM-295 mode Code HT LF FF DLE EOT CAN ESC SP ESC ! ESC % ESC & ESC * ESC 2 ESC 3 ESC = ESC @ ESC C ESC D ESC F ESC J ESC K ESC L ESC R ESC T ESC W ESC c4 ESC c5 ESC d ESC e ESC f ESC p ESC q ESC t ESC u ESC v ESC { GS I GS a GS r Function Horizontal tab Print line feed Page mode print and return Real time transmission of status Cancel print data in page mode Set right space amount of character Universal print mode designation Designate/cancel download characters set Define download characters Designate
86 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 SCP700 slip and TM-295, the printing results may not be the same because of the differences in the mechanism. Also, even though, since the TM-295 is a shuttle printer, the paper feed set values and actual paper feed amount are different.
87 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” at 27.3mm from the bottom of the paper with the TM295, the BOF sensor reports “no paper” at approximately 38mm from the bottom of the paper with the SCP700.
88 Appendix : Character Code Tables Star Mode (Character table: Normal) Note: The (7F)H code is a space when neither normal nor katakana.
89 Star Mode (Character table: Normal)
90 Star Mode (Character table: katakana) Note: Other characters are the same as those for Character table: Normal.
91 Star Mode (Character table: IBM (Code page 437)) Note: Other characters are the same as those for Character table: Normal.
92 Star Mode Code Page #850 Multi-lingual Code Page #852 Latin-2 Code Page #860 Portuguese Code Page #861 Icelandic Note: Other characters are the same as those for Character table: Normal
93 Code Page #863 Canadian French Code Page #865 Nordic Code Page #866 Russian Note: Other characters are the same as those for Character table: Normal
94 Star Mode International Character Set
95 ESC/POS Mode Page 0 (PC437)
96 ESC/POS Mode Page 0 (PC437)
97 ESC/POS Mode Page 1 (Katakana) Note: Other characters are the same as those for Page 0.
98 ESC/POS Mode Page 2 (PC850: Multilingual) Note: Other characters are the same as those for Page 0.
99 ESC/POS Mode (Receipt printer only) Page 3 (PC860: Portuguese) Note: Other characters are the same as those for Page 0.
100 ESC/POS Mode (Receipt printer only) Page 4 (PC863: Canadian-French) Note: Other characters are the same as those for Page 0.
101 ESC/POS Mode (Receipt printer only) Page 5 (PC865: Nordic) Note: Other characters are the same as those for Page 0.
102 ESC/POS Mode (Receipt printer only) Page 255 (Space Page) Note: Other characters are the same as those for Page 0.
103 ESC/POS Mode International Character Set
HEAD OFFICE STAR MICRONICS CO., LTD. OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA, INC. 536 Nanatsushinnya, Shimizu, Shizuoka 424-0066 Japan Tel: 0543-47-0112, Fax: 0543-48-5271 70-D Ethel Road West, Piscataway, NJ 08854 U.S.A Tel: 732-572-9512, Fax: 732-572-5095 Please access the following URL http://www.star-micronics.co.jp/service/sp_sup_e.htm for the lastest revision of the manual. Star House, Peregrine Business Park, Gomm Road, High Wycombe, Bucks, HP 13 7DL, U.K.