background image

41

N = 3 (ESC/POS mode)

n1: Always “0”

n2: Always “0”

n3: Always “0”

Parameter

Setting

“1” to “3”

n4

CR code

See below

5) N = 4 (Star mode)

n3: Always “0”

Para. Setting

“0”

“1”

“2”

“3”

n1

X on/X off Timing

When

Every 3

When

Every 3

Toggled

sec

Toggled

sec

RTS Signal Condition

Save as

Save as

Always

Always

DTR

DTR

SPACE

SPACE

n2

Receive buffer size

4 kbytes

4 kbytes

256 bytes

256 bytes

n4

Data receipt error

“?”

Ignored

“?”

Ignored

Printed

Printed

n4

CR code

“0”

Ignores

“1”

Ignores

“2”

Feeds line after printing (same as <LF>

“3”

Prints (no line feed.)

n4

CR code

“0”

Prints (no line feed.)

“1”

Feeds line after printing (same as <LF>

“2”

(Parallel Interface)

Prints and feeds line when nAutoFd signal is “LOW”.

Does not feed line when “HIGH.”

(Serial Interface)

Ignores

“3”

Ignores

Summary of Contents for SP2000 Series

Page 1: ...Dot Matrix Printer SP2000 Series Programmer s Manual...

Page 2: ...Code Details 7 1 2 1 Character Selection 7 1 2 2 Print Position Control 17 1 2 3 Dot Graphics Control 25 1 2 4 Download Graphics Printing 28 1 2 5 Peripheral Device Control 31 1 2 6 Auto Cutter Contr...

Page 3: ...zero 7 ESC 0 1B 2F 00 ESC GS t n 1B 1D 74 n Selects the character code table 8 ESC 6 1B 36 Selects character set 2 10 ESC 7 1B 37 Selects character set 1 10 ESC M 1B 4D Selects the 7 X 9 half dot fon...

Page 4: ...5F 30 Cancels upperlining Default 14 ESC _ 0 1B 5F 00 ESC 4 1B 34 Selects red color printing SP2360 2560 14 Selects highlight printing SP2320 2520 ESC 5 1B 35 Cancels red color printing SP2360 2560 1...

Page 5: ...1 1B 7A 01 ESC 0 1B 30 Sets line spacing to 1 8 inch 19 ESC 1 1B 31 Sets line spacing to 7 72 inch 20 ESC J n 1B 4A n One time n 72 inch feed 20 ESC 3 n 1B 33 n Sets line spacing to n 216 inch 20 app...

Page 6: ...Defines download characters 28 ESC 1 1B 25 31 Enables download character set 29 ESC 1 1B 25 01 ESC 0 1B 25 30 Disables download character set 29 ESC 0 1B 25 00 Default 1 1 5 Peripheral Device Control...

Page 7: ...01 ESC d 2 1B 64 32 Full cut command to the auto cutter 33 ESC d 2 1B 64 02 after paper feed ESC d 3 1B 64 33 Partial cut command to the auto cutter 34 ESC d 3 1B 64 03 after paper feed 1 1 7 Command...

Page 8: ...uzzer 36 ESC N n1 n2 n3 n4 1B 23 N 2C n1 n2 LF NUL n3 n4 Sets memory switch 37 0A 00 ESC 1B 40 Initialize printer 43 EOT 04 Transmits EOT status 44 ENQ 05 Transmits ENQ status 45 ETB 17 Confirms finis...

Page 9: ...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 09 H Norway 40 H Legal 04 H Denmark 1 0A H Denmark 2 05 H Sweden 0B H Spain 2 Default a...

Page 10: ...character code table CODE ESC GS t n 1B 1D 74 n OUTLINE Selects the character code table This function selects a character code table as shown below The default settings follow the settings of the mem...

Page 11: ...eek 11 17 Codepage 869 Greek 12 18 Codepage 928 Greek 13 19 Codepage 772 Lithuanian 14 20 Codepage 774 Lithuanian 15 21 Codepage 874 Thai 20 32 Codepage 1252 Windows Latin 1 21 33 Codepage 1250 Window...

Page 12: ...ts IBM character set 1 Switches from IBM character set 2 to character set 1 Subsequent 80H to 9FH codes are handled as character data This command is invalid when the character code table settings are...

Page 13: ...per dot font CODE ESC 1B H 3A H OUTLINE Selects 5 X 9 3 pulses 1 dot font The number of digits per line is set by the DIP switches in the following way DSW 1 5 Digits Per Line ON 23 OFF 22 FUNCTION S...

Page 14: ...al size characters Same as ESC W 0 or ESC W 0 FUNCTION Selects double magnification in character width CODE ESC W 1 or ESC W 1 1B H 57 H 31 H or 1B H 57 H 01 H OUTLINE Data following this code is prin...

Page 15: ...characters only the line amount is doubled The bottom of the characters are aligned when one line contains both vertical expanded characters and regular character sizes FUNCTION Selects underlining C...

Page 16: ...and white and prints subsequent characters including the character pitch Printing is unidirectional Do not use when ANK font setting is 5 X 9 3P 1 Printing quality is not guaranteed with 5 X 9 3P 1 F...

Page 17: ...a cancellation of the rotation is specified n Value Rotation Specification 00H or 0 Cancel rotation 0 rotation default 01H or 1 270 rotation 02H or 2 90 rotation Underline or overline cannot be appli...

Page 18: ...H 01 H OUTLINE Prints only when the print head moves from left to right FUNCTION Selects bi directional print mode CODE ESC U 0 or ESC U 0 1B H 55 H 30 H or 1B H 55 H 00 H OUTLINE Returns to the stand...

Page 19: ...et position the paper feeds to the top of the next page FUNCTION Form feed CODE FF 0C H OUTLINE Inputting this code executes a page feed on SP2320 2360 series printers after printing the data in the l...

Page 20: ...Same as LF MSW 3 0 1 Prints only No paper feed FUNCTION Feed paper n lines CODE ESC a n 1B H 61 H n 1 n 127 OUTLINE After data in the line buffer is printed out feeds the paper n lines FUNCTION Horiz...

Page 21: ...with the ESC A previously described Line feed pitch is 1 6 inch when ESC A n is not set FUNCTION Sets line spacing to 1 12 inch CODE ESC z 0 or ESC z 0 1B H 7A H 30 H or 1B H 7A H 00 H OUTLINE Line fe...

Page 22: ...aper feed once FUNCTION Sets line spacing to n 216 inch approximately CODE ESC 3 n 1B H 33 H n DEFINITION RANGE 1 n 255 OUTLINE Setting value is approximated using the following equation because the m...

Page 23: ...power the horizontal tabs are not set FUNCTION Sets left margin CODE ESC l n 1B 6C n OUTLINE Sets the non printable range with the current character pitch up to the nth postion with the left edge as...

Page 24: ...pitch after setting does not change the right margin The right margin is the right edge is when the power is turned ON The right margin must be at least 18 dots within the following values Also if the...

Page 25: ...n 00 H 0 Left edge alignment default 01 H 1 Center alignment 02 H 2 Right edge alignment ABC ABCD ABCDE ABC ABCD ABCDE ABC ABCD ABCDE ESC GS a 0 ESC GS a 1 ESC GS a 2 Note Effective only when input at...

Page 26: ...number of 16 vertical tab positions can be set Tab positions must be specified in ascending order any violation of ascending order terminates the tab position list Standard termination is by the 0 con...

Page 27: ...g is uni directional The printer ignores any data bytes over the specified amount allowed in one line When the bit image print is finished the printer automatically returns to the character mode D8 D7...

Page 28: ...ter ignores any data bytes over the specified amount allowed in one line Pringing is uni directional The printer does not print adjacent dots When the bit image printing is finished the printer automa...

Page 29: ...8 m9 m10 m11 D8 D7 D6 D5 D4 D3 D2 D1 m2 m4 m6 m1m3 m5 m7 m8 m9 m10 m11 D8 D7 D6 D5 D4 D3 D2 D1 Printing possible Printing not possible Overlapping horizontally Overlapping horizontally When printing o...

Page 30: ...oad characters Up to 10 download characters can be defined and the defined character patterns can be stored in the printer s RAM Defining of download characters begins with character code n1 and compl...

Page 31: ...N Disables download character set Default CODE ESC 0 or ESC 0 1B H 25 H 30 H or 1B H 25 H 00 H OUTLINE Disables the selected download character set and selects the built in character set When the powe...

Page 32: ...m4 00000001 01 m5 10000010 82 m6 01100100 64 m7 10011000 98 Data Binary Hex m1 00111000 3C m2 01000010 42 m3 10100101 A5 m4 00000000 00 m5 10100101 A5 m6 01000010 42 m7 00111000 3C Data Binary Hex m1...

Page 33: ...e pulse width for peripheral devices requiring other than standard 200 ms pulse time and delay time Energizing time 10 X n1 ms Delay time 10 X n2 ms Executed by BEL FS codes 10 x n1 ms 10 x n2 ms Prin...

Page 34: ...2 cannot be driven simultaneously FUNCTION Controls peripheral device 2 immediately CODE EM 19 H OUTLINE Drives peripheral unit 2 Pulse width is fixed at 200 ms with a fixed delay time of 200 ms When...

Page 35: ...cut command Executes a partial cut after printing the data in the line buffer This command is valid only on SP2520 SP2560 series printers and is ignored on SP2320 SP2360 series printers FUNCTION Full...

Page 36: ...l cut command Executes the following actions after printing the data in the line buffer SP2520 2560 Feeds paper to the cutting position and executes a full cut Note 1 SP2320 2360 Feeds paper to the te...

Page 37: ...ength in n inches CODE ESC C 0 n 1B H 43 H 00 H n DEFINITION RANGE 1 n 127 OUTLINE Sets page length in n inches FUNCTION Set bottom margin CODE ESC N n 1B H 4E H n DEFINITION RANGE 0 n 255 Default n 0...

Page 38: ...external device drive conditions set by ESC BEL n1 and n2 do not affect the automatic status valid invalid conditions Print Sample Deselects printer CODE DC3 13 H OUTLINE Data following this code is i...

Page 39: ...2 n3 n4 Mode settings For details see below 1 N 0 Star mode n1 Always 0 n2 Always 0 Parameter Setting 0 Default 1 n3 Destination Standard Asia Market n4 FF command 1 See below 1 Only on printers that...

Page 40: ...nism 1 See below Paper near end sensor n4 Country 0 USA 1 France 2 Germany n4 Country 3 UK 4 Denmark 1 5 Sweden n4 Country 6 Italy 7 Spain 1 8 Japan n4 Country 9 Norway A Denmark 2 B Spain 2 n4 Countr...

Page 41: ...ys 0 n3 Always 0 Parameter Setting 0 to F n4 Paper near end See below sensor 4 N 3 Star mode n3 Always 0 Parameter Setting 0 to F n1 Character table n2 Character table See below n4 CR code n4 Paper ne...

Page 42: ...or 9 1 Codepage 869 Greek 1 or 9 2 Codepage 928 Greek 1 or 9 3 Codepage 772 Lithuanian 1 or 9 4 Codepage 774 Lithuanian 1 or 9 5 Codepage 874 Thai 2 or A 0 Codepage 1252 Windows Latin 1 2 or A 1 Codep...

Page 43: ...ve as Always Always DTR DTR SPACE SPACE n2 Receive buffer size 4 kbytes 4 kbytes 256 bytes 256 bytes n4 Data receipt error Ignored Ignored Printed Printed n4 CR code 0 Ignores 1 Ignores 2 Feeds line a...

Page 44: ...6 n3 Always 0 n4 Always 0 Para Setting 0 to F n1 Device ID Parallel I F only nPError signal Parallel I F only n2 Busy condition Star mode only 1 See below Treatment of missing data during reverse mod...

Page 45: ...ta and transmits it at the next time the reverse mode is entered If the automatic status occurs the new status will be transmitted after that remaining data Delete Deletes the remaining data It does n...

Page 46: ...in a Data ready state when using a bi directional parallel interface When one EOT command is sent to the printer it will not send the next EOT command until the EOT status is received When using the...

Page 47: ...ENQ status is received When using the ENQ command always set the automatic status function to invalid b7 b6 b5 b4 b3 b2 b1 b0 Bit 0 Parallel Error 1 1 Error Bit 1 Framing Error 1 1 Error Bit 2 Mechan...

Page 48: ...tic status CODE ESC ACK SOH 1B H 06 H 01 H OUTLINE This command transmirts the contents of the printer s automatic status one time When using a bi directional parallel interface it is Data Ready When...

Page 49: ...us Specifications for details on the contents of the automatic status Value of n Hex Automatic Status Valid Invalid 0 or 0 00H or 30H Invalid 1 or 1 01H or 31H Valid FUNCTION Resets printer hardware a...

Page 50: ...ESC 1B 23 Sets memory switch ESC 1B 25 Enables disables download OK OK character set ESC 1B 26 Defines download character OK OK ESC 1B 2A Selects bit image mode OK OK ESC 1B 2D Selects cancels underli...

Page 51: ...OK OK ESC d 1B 64 Prints or feeds n lines OK OK ESC e 1B 65 Prints or reverse feeds n lines OK OK ESC i 1B 69 Full cut command to the auto cutter OK ESC m 1B 6D Partial cut command to the anto cutter...

Page 52: ...ion TM TM Codes Codes U200 U300 ESC 1B 3c Ignored Returns home OK ESC c 0 n 1B 63 30 n Ignored Selects paper type s for printing OK ESC f t1 t2 1B 66 t1 t2 Ignored Sets cut sheet wait time OK GS E n 1...

Page 53: ...using the ESC RS a n command after turning ON the power You can acquire the automatic status regardless of it being valid or invalid using the ESC ACK SOH command Header 1 Header 1 is 1 byte of inform...

Page 54: ...11B 2F Hex Header 2 Header 2 is the information of the length of one byte transmitted in the second byte of the automatic status Table 3 3 shows the composition of the Header 2 Header 2 shows the vers...

Page 55: ...d Fixed at 0 Table 3 4 Relationship of Actual Automatic Status Version and Header 2 Version Number n Header 2 1 00000010B 02 Hex 2 00000100B 04 Hex 3 00000110B 06 Hex 4 00001000B 08 Hex 5 00001010B 0A...

Page 56: ...0 Status 1 0 Always 0 1 ETB Command Not Executed Executed 2 Compulsion SW Status Open Closed 3 Online Offline Status Online Offline 4 Always 0 5 Invalid 6 Offline using the Online SW Does not occur O...

Page 57: ...hen returned to the host Table 3 8 Printer Status 4 Sensor Information Sixth Byte Bit Content Status 0 Status 1 0 Always 0 1 Invalid 2 Receipt Paper Near End Has Paper No Paper 3 Receipt Paper End Has...

Page 58: ...IP switches or the ESC RS a n command to use these inquiry commands 3 Method to Identify States Control Code Reception Data XON 00010001 B XOFF 00010011 B Status Reception Data ENQ Status 0 B EOT Stat...

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

Page 60: ...58 Star Mode Character table Normal...

Page 61: ...59 Star Mode Character table IBM Character set 2 Code page 437 Note Other characters are the same as those for Character table Normal...

Page 62: ...60 Star Mode Character table Katakana Note Other characters are the same as those for Character table Normal...

Page 63: ...61 Star Mode Character table IBM Character set 1 Note Other characters are the same as those for IBM Character Set 2...

Page 64: ...62 Star Mode Code Page 858 Code Page 852 Multi lingual Latin 2 Code Page 860 Code Page 861 Portuguese Icelandic Note Other characters are the same as those for Character table Normal...

Page 65: ...63 Star Mode Code Page 863 Code Page 865 Canadian French Nordic Code Page 866 Cyrillic Russian Note Other characters are the same as those for Character table Normal...

Page 66: ...Page 864 Hebrew Arabic Note Other characters are the same as those for Character table Normal 8 9 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F 8 9 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F 8 9 A B C...

Page 67: ...65 Star Mode Code Page 737 Code Page 851 Greek Greek Code Page 869 Code Page 928 Greek Greek Note Other characters are the same as those for Character table Normal...

Page 68: ...66 Star Mode Code Page 772 Code Page 774 Lithuanian Lithuanian Note Other characters are the same as those for Character table Normal...

Page 69: ...indows Cyrillic Windows Latin 1 Note Other characters are the same as those for Character table Normal 8 9 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F 8 9 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F 8...

Page 70: ...68 Star Mode Code Page 3840 Code Page 3841 IBM Russian Gost Code Page 3843 Code Page 3844 Polish CS2 Note Other characters are the same as those for Character table Normal...

Page 71: ...69 Star Mode Code Page 3845 Code Page 3846 Hungarian Turkish Code Page 3847 Code Page 3848 Brazil ABNT Brazil ABICOMP Note Other characters are the same as those for Character table Normal...

Page 72: ...70 Star Mode Code Page 1001 Code Page 2001 Arabic Lithuanian KBL Code Page 3001 Code Page 3002 Estonian 1 Estonian 2 Note Other characters are the same as those for Character table Normal...

Page 73: ...an 2 Note Other characters are the same as those for Character table Normal Code Page 3021 Code Page 3041 Bulgarian Maltese Note Other characters are the same as those for Charac ter table Normal Note...

Page 74: ...72 Star Mode International Character Set The character codes shown in the table are hexadecimal...

Page 75: ...73 ESC POS Mode Page 0 PC437...

Page 76: ...74 ESC POS Mode Page 0 PC437...

Page 77: ...75 ESC POS Mode Page 1 Katakana Note Other characters are the same as those for Page 0...

Page 78: ...76 ESC POS Mode Page 2 PC858 Multilingual Note Other characters are the same as those for Page 0...

Page 79: ...77 ESC POS Mode Page 3 PC860 Portuguese Page 4 PC863 Canadian French Page 5 PC865 Nordic Note Other characters are the same as those for Page 0...

Page 80: ...78 ESC POS Mode International Character Set The character codes shown in the table are hexadecimal...

Page 81: ...m for the lastest revision of the manual OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA INC 1150 King Georges Post Road Edison NJ 08837 3729 U S A Tel 732 623 5555 Fax 732 623 5590 http www star...

Reviews: