Inhaltszusammenfassung zur Seite Nr. 1
Dot Matrix Printer
SP2000 Series
Programmer’s Manual
Inhaltszusammenfassung zur Seite Nr. 2
TABLE OF CONTENTS 1. Control Codes (Star Mode) ......................................................................... 1 1-1. Control Codes List .............................................................................. 1 1-1-1. Character Selection .................................................................. 1 1-1-2. Print Position Control ............................................................... 3 1-1-3. Dot Graphics Control ...................................................
Inhaltszusammenfassung zur Seite Nr. 3
1. Control Codes (Star Mode) 1-1. Control Codes List The following tables show the Star Mode commands that are supported by this printer. 1-1-1. Character Selection Control Hexadecimal Function Page Codes Codes "R" n 1B 52 n Selects the international character set 7 "/" "1" 1B 2F 31 7 Selects slash zero "/" <1> 1B 2F 01 "/" "0" 1B 2F 30 Selects normal zero 7 "/" <0> 1B 2F 00 "t" n 1B 1D 74 n Selects the character code table 8 "6" 1B 36 Selects char
Inhaltszusammenfassung zur Seite Nr. 4
Control Hexadecimal Function Page Codes Codes "W" "1" 1B 57 31 Selects double magnification in character 12 "W" <1> 1B 57 01 width "W" "0" 1B 57 30 Resets magnification in character width 12 "W" <0> 1B 57 00 "h" "1" 1B 68 31 Selects double magnification in character 12 "h" <1> 1B 68 01 height "h" "0" 1B 68 30 Resets magnification in character height 12 "h" <0> 1B 68 00 "-" "1" 1B 2D 31 Selects underlining 13 "-" <1> 1B 2D 01 "-" "
Inhaltszusammenfassung zur Seite Nr. 5
1-1-2. Print Position Control Control Hexadecimal Function Page Codes Codes 0A Line feed 17 0B Vertical tab 17 0C Form feed 17 0D Carriage Return 18 "a" n 1B 61 n Feeds paper n lines 18 09 Horizontal tab 18 "A" n 1B 41 n Defines n/72-inch line spacing 19 "2" 1B 32 Sets n/72-inch line spacing 19 "z" "0" 1B 7A 30 Sets line spacing to 1/12-inch 19 "z" <0> 1B 7A 00 "z" "1" 1B 7A 31 Sets line spacing to 1/6-inch (Default) 19 "z" <1> 1
Inhaltszusammenfassung zur Seite Nr. 6
1-1-3. Dot Graphics Control Control Hexadecimal Function Page Codes Codes "K" n <0> 1B 4B n 00 m1 m2 8 dot normal density graphics 25 m1 m2 ... ... "L" n1 n2 1B 4C n1 n2 m1 m2 8 dot high density graphics 26 m1 m2 ... ... 1-1-4. Download Graphics Printing Control Hexadecimal Function Page Codes Codes "&" <0> n1 n2 .. 1B 26 00 n1 n2 .. Defines download characters 28 "%" "1" 1B 25 31 Enables download character set 29 "%" <1> 1B 25 01 "%" "0" 1B 25 30 Disables dow
Inhaltszusammenfassung zur Seite Nr. 7
1-1-6. Auto Cutter Control (SP2500 type printers only) Control Hexadecimal Function Page Codes Codes "d" "0" 1B 64 30 Full-cut command to the auto cutter 33 "d" <0> 1B 64 00 "d" "1" 1B 64 31 Partial-cut command to the auto cutter 33 "d" <1> 1B 64 01 "d" "2" 1B 64 32 Full-cut command to the auto cutter 33 "d" <2> 1B 64 02 after paper feed "d" "3" 1B 64 33 Partial-cut command to the auto cutter 34 "d" <3> 1B 64 03 after paper feed 1-1-7. Commands to
Inhaltszusammenfassung zur Seite Nr. 8
1-1-8. Other Commands Control Hexadecimal Function Page Codes Codes 18 Cancels printer buffer & Initialize printer 36 13 Deselects printer 36 11 Sets select mode (Default) 36 1E Beeps the buzzer 36 "#N, n1 n2 n3 n4" 1B 23 N 2C n1 n2 n3 n4 Sets memory switch 37 0A 00 "@" 1B 40 Initialize printer 43 04 Transmits EOT status 44 05 Transmits ENQ status 45 17 Confirms finish of printing 46 IB 06 01 Transmits automatic st
Inhaltszusammenfassung zur Seite Nr. 9
1-2. Control Code Details The following section explains the details of the printer control codes. 1-2-1. Character Selection Selects the international character set FUNCTION "R" n CODE (1B)H (52)H n < < (00)H n (0E)H or n = (40)H DEFINITION RANGE = = Select the international character set corresponding to the value OUTLINE set for n. n = (00)H: U.S.A. (06)H: Italy (OC)H: Latin America (01)H: France (07)H: Spain-1 (0D)H: Korea (02)H: Germany (08)H: Japan (0E)H: Ireland (03)H: England
Inhaltszusammenfassung zur Seite Nr. 10
Selects the character code table FUNCTION "t" n CODE 1B 1D 74 n Selects the character code table OUTLINE This function selects a character code table (as shown below). The default settings follow the settings of the memory switches 3- 8 to 3-5. 8
Inhaltszusammenfassung zur Seite Nr. 11
Value of n Character Table Hex. Dec. 00 0 Normal (Default) 01 1 Code Page 437 (USA, Std. Europe)/IBM Character Set #2 02 2 Katakana 03 3 IBM Character Set #1 04 4 Codepage 858 (Multilingual) 05 5 Codepage 852 (Latin-2) 06 6 Codepage 860 (Portuguese) 07 7 Codepage 861 (Icelandic) 08 8 Codepage 863 (Canadian French) 09 9 Codepage 865 (Nordic) 0A 10 Codepage 866 (Cyrillic Russian) 0B 11 Codepage 855 (Cyrillic Bulgarian) 0C 12 Codepage 857 (Turkish) 0D 13 Codepage 862 (Hebrew) 0E 14 Codepage 864 (Ar
Inhaltszusammenfassung zur Seite Nr. 12
Selects IBM character set #2 FUNCTION "6" CODE (1B)H (36)H Selects IBM character set #2. OUTLINE Switches from IBM character set #1 to character set #2. Subsequent 80H to 9FH codes are handled as character data. This command is invalid when the character code table settings are other than #1. Selects IBM character set #1 FUNCTION "7" CODE (1B)H (37)H Selects IBM character set #1. OUTLINE Switches from IBM character set #2 to character set #1. Subsequent 80H to 9FH codes are handled a
Inhaltszusammenfassung zur Seite Nr. 13
Selects 5 X 9 (2 pulses per dot) font FUNCTION "P" CODE (1B)H (50)H Selects 5 X 9 (2 pulses = 1 dot) font. OUTLINE The number of digits per line is set by the DIP switches in the following way. DSW 1 - 5 Digits Per Line ON 35 OFF 33 (When right space of character is 0.) Selects 5 X 9 (3 pulses per dot) font FUNCTION ":" CODE (1B)H (3A)H Selects 5 X 9 (3 pulses = 1 dot) font. OUTLINE The number of digits per line is set by the DIP switches in the following way. DSW 1 - 5 Digits Per Li
Inhaltszusammenfassung zur Seite Nr. 14
Sets the printing magnified double in character width FUNCTION CODE (0E)H Data following this code is printed in double-width characters. OUTLINE Same as "W" "1" or "W" <1>. Resets the printing magnified in character width (Default) FUNCTION CODE (14)H Cancels expanded character mode set by or "W" OUTLINE "1" or "W" <1> code. Data following this code is printed out in normal size characters. Same as "W" "0" or "W" <0>. Selects double magnificat
Inhaltszusammenfassung zur Seite Nr. 15
Sets the magnification rate in character height OUTLINE Prints the subsequent data with a character height magnified by a rate specified by the value of n. n = 0 and "0"' Reset magnification n = 1 and "1": Double magnification Note: • You can print in quadruple magnification by combining horizontal and vertical double magnification commands. • You cannot combine with the inverted printed command. • Line feeds of lines including vertical expansion characters are doubled. • When font configuration
Inhaltszusammenfassung zur Seite Nr. 16
Cancels upperlining (Default) FUNCTION "_" "0" or "_" <0> CODE (1B)H (5F)H (30)H or (1B)H (5F)H (00)H Cancels upperline mode. OUTLINE Selects red color printing (SP2360/2560) FUNCTION Selects highlight printing (SP2320/2520) "4" CODE (1B)H (34)H (SP2360/2560) Specifies red printing OUTLINE Prints subsequent characters in red. You can print both read and black characters on the same line. Unidirectional when switching red and black. (SP2320/2520) Specifies black and white inver
Inhaltszusammenfassung zur Seite Nr. 17
Cancels inverted printing (Default) FUNCTION CODE (12)H Cancels the inverted character mode. This code is valid only OUTLINE when input at the beginning of a line. Specifies rotated print mode for text with a rotation FUNCTION "i" n CODE 1B 1E 96 n This rotates and prints subsequent data 90° or 270° in the OUTLINE clockwise direction or cancels it and prints. The n value determines whether a rotational direction or a cancellation of the rotation is specified. n Value Rotation S
Inhaltszusammenfassung zur Seite Nr. 18
Selects uni-directional print mode FUNCTION "U" "1" or "U" <1> CODE (1B)H (55)H (31)H or (1B)H (55)H (01)H Prints only when the print head moves from left to right. OUTLINE Selects bi-directional print mode FUNCTION "U" "0" or "U" <0> CODE (1B)H (55)H (30)H or (1B)H (55)H (00)H Returns to the standard bi-directional print mode. (This mode is OUTLINE set automatically when the printer power is turned on.) 16
Inhaltszusammenfassung zur Seite Nr. 19
1-2-2. Ptint Position Control Line feed FUNCTION CODE (0A)H Data in the line buffer is printed out and one line is fed. If data OUTLINE does not exist before this code is received, the printer only feeds one line. Vertical tab FUNCTION CODE (0B)H Feeds the paper to the next vertical tab set position. OUTLINE When a vertical tab is not set, line feed is not performed. If the current line is at or below the last vertical tab set position, the paper feeds to the top of the next page. Form
Inhaltszusammenfassung zur Seite Nr. 20
Carriage return FUNCTION CODE (0D)H The code is valid when the memory switch 3-1 = 1 (set to 0 OUTLINE at exfactory). When the code is valid, setting the memory switch 3-0 will cause the to function as shown in the table below. Memory Switch Setting Code Function MSW 3-1 = 0 Ignored (at exfactory) MSW 3-0 = 0 Same as MSW 3-1 = 1 MSW 3-0 = 1 Prints only. No paper feed Feed paper n lines FUNCTION "a" n CODE (1B)H (61)H n < < 1 n 127 = = After data in the line