Home

Star Micronics SP2000 User's Manual

image

Contents

1. i O lt Ov lt m O A m 89 AB CD EF OA Mab Ro uua HN BYES E u 4 HH H 1 E 1 41 ar rar r A cm Peg d gd On L F Q St VR S O CO G3 bP OP DE d xd d xd lt OO XD M He lt co MO D Qs X FQ O A Bm Code Page 3848 Brazil ABICOMP Code Page 3847 Brazil ABNT 8 9 A B CD E F A EB C U A4 c3 EY y H x 8 9 AB CD EF A D d E g U 1 e a 4 Y U i Y 9 x t P 4 y b 1 p Note Other characters are the same as those for Character table Normal 69 8 9 ABCD E F RP 94 4D mw L FP Oo NN a O amp gt x Hr FH FAB AM BR at u c ese 5 NH C GOOD 1 es dec I Se or r r ao m Toe 0 NX MR EM OR Ff tr Ei ET qQ m on D m Code Page 2001 Lithuanian KBL gt lt M f RO 3 eNOS B RE m O n e DD 0 0 lt m O 3 Code Page 3002 Estonian 2 8 9 A B C D E F W I Re ri gt c lt t AANA He O C O 8 BWC 9
2. 1252 Windows Latin 1 Code Page 1251 Windows Cyrillic gt 4U XU amp Od OO Q m Z o O O iO O x amp 3 gt O lt lt c lt lt CO ALL UE SLU 9 tam Oe ae Ol A AN ON WU lt 0 ial S s EWA 8 id H MOV NM w OFT lt m O m m mw OF gt x T T 3 saa Z no K m vo mt OO xm xE Zroccrcr Q A O gt e x T gt n m o lt S lt m L cru so Xx x oO ao Her L Aes A 0 lt ACA TOL Owe I Daler 2 9 E GA s CL sL i 8 V OR lt m O n NEA Note Other characters are the same as those for Character table Normal 67 Star Mode Code Page 3841 Gost Code Page 3840 IBM Russian 8 9 A B CD EF 0 p B I 1 2 6 p BP I 3 wz cH 4 m r EH T i 1 1 E 5 J X 7 m Br B 8 x gt X b D SS Bd E mom Hoo EH o 0 9 Som gt g 9 H gs e co 2 me gt bt ut E cto gt opt 2 6 5 6 x K amp 6 Tle 8 8 y SV FIE 5 e lt m m 8 9 A B C D E F k F r n B
3. Oo V vio viv iv fv fv 4 Jo Qo sp peripheral device OK 2 s Cancels download character OK 180 m aizesmepie OK OJO AJA 48 e feed A I TA JA TA mimimimimqirm irm V IV TV IV lt Control Hexadecimal T Codes Codes U200 U300 lt ESC gt R 1B 52 Selects international character set p printing mode rotation lt ESC gt a iBet Aignsposton OK sending the no paper signal stopping printing M K OK OK OK lt gt c5 1B 63 35 Enables disables control panel switches OK OK OK OK A ESC e ESC ESC m Partial cut command to the anto cutter ESC p 1870 Gemertesspecfiedpuse lt 5 gt 1877 Seedspimcoor ESC t lt ESC gt u _ 11875 Sends peripheral status Sc v 1876 Sends paper sensor status 081 i49 Sendsprinterio lt 08 1098 Cut commana to the auto cutter OK 08 _ Enablesdisabesautomatosttus OK 08 72 Sendsprinterstatus x lt as gt z0 10 7A30__ Setting of on ine recovery waittime OK A OK lt 80 4 iBe4 Printsorfeedsniines OK OK an E T A M OK OK OK OK OK OK OK 49 Ignored Command
4. 8 BH Ea l H aedi mec 9 S MRS mM OF AQ a Ud Ramon 4 7 9 n SJE Xe44 fx J 6 H e lt O PF pm Code Page 3844 CS2 Code Page 3843 Polish 8 9 A B C DEF ll I oa 2 o ma RA b b G s a E 4 L OE Mod p d us r oD MH 4 OM ow NNO O DP PIO i Xd D CO AQ 00 00 MAH cn a Ei nm om NOTH D ODA lt m O v FJA t 8 9 A BCDEF Il Ab ME o SMR RAW b 3 F 8 I E Cm 4 tee EE H Sao EE r tq OO TSN NM LTR He 0035 BND DWBA HH d Q Ov 4D OD Om a cO vc g am d 1 lt lt OM lt m O A E Note Other characters are the same as those for Character table Normal 68 Star Mode Code Page 3846 Turkish Code Page 3845 Hungarian 8 9 AB CD EF JH H A vi X a E g a b G uc 3 E u moe UN F bees fec SEI SS r be LTR Re amp Rd O O0 DH OP PH d xd Q 9 4D
5. me lt 2 oP lt m DMN HESS KX OW O O O gt 4 3 q V Ors D d o ud d lt OO XD ie 44 R c xt MOM OAH m QOO FH fu CO Ho A j Q S S 2 0 2 lt m m Qo Ala tk E wu OE a Est comm mmm RE SEE A r gt 25 S x gt gt pd gt OF GA AARNE OH b lt m n SO t Q lt m O FH m Code Page 928 Greek Code Page 869 Greek ml RG Q b F oe lt gt BPD OD SB uo o eM s x lt A gt A We Pa CH 04 i lt lt q tQ e lt pi Ajo ft Smo OG PO C gt R wn r Os De SO D COMO A m m 2 amp RM o my Oop X lt Z 2 un O Rab Ur Al gt 5X m GQ oa q A ke es Je di 3E a Pq AOS YO lt 2 OD lt m FR AON m PDH YY Dl et gt SF a x u wer lt H N sf V sO lt m O m Note Other characters are the same as those for Character table Normal 65 Star Mode Code Page 774 Lithuanian Code Page 772 Lithuanian
6. R HI I 83 Q lt 8 Nana o a ll xmi lt lt uL PR RH x lt an m aD D gt W 2904 ot c c lt mz Mwave Q c o s OB M a O R mre x FF BOM BR vu oO ww FON A Re a eee te 0 5 st H ee F gt rn lt QO Keo eR o SS MR EM OR Dime gt b FT ET m m N lt rA FA F4 Fm Bd OO m m bd 2 m u O r AA lt MOA m rm Note Other characters are the same as those for Character table Normal 66 Star Mode Code Page 1250 Windows Latin 2 Code Page 874 Thai 8 9 AB CDE F C C ooo Otek DODD yy NU XU 94 0 O00 POO 50 Z Z O O O 0 X mw gt gt lt lt lt gt lt UO a w o0 Q WA X13 0 My 2 9 qo s GN x A t N N I 38D VY i N N gt sp Y AS pi KO A 8 9 AB CDEF OG aSGssNBUwBE 2 596999 Cs 0 a lt 3 ITF de C C Z G xus e e G va gt gt lt zz C Z gt z gt m a SH lt m O m
7. 2 ESC POS Mode 2 1 Control Codes List T a 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 Page Codes Codes ESC 1B52n Selects the international character set ESC 1 1B 2F 31 7 Selects slash zero ESC 1 1B 2F 01 lt ESC gt 0 1B 2F 30 Selects normal zero lt ESC gt 0 1B 2F 00 lt ESC gt GS t n 1B 1D 74 n Selects the character code table lt ESC gt 6 1B 36 Selects character set 2 10 10 Selects the 7 X 9 half dot font Default 10 Selects the 5 X 9 2 pulses dot font 11 Selects the 5 X 9 3 pulses per dot font 11 11 lt SO gt Sets the printing magnified double in character width lt DC4 gt 14 Resets the printing magnified in character width Default Control Hexadecimal Page Codes Codes lt ESC gt W 1 lt ESC gt W lt 1 gt lt ESC gt W 0 lt ESC gt W lt 0 gt lt ESC gt h 1 lt gt h lt 1 gt lt ESC gt h 0 lt ESC gt h lt 0 gt lt ESC gt 1 lt ESC gt 1 lt ESC gt 0 lt ESC gt lt 0 gt ESC _ 1 lt ESC gt lt 1 gt lt ESC gt 0 lt ESC gt lt 0 gt lt ESC gt 4 lt ESC gt 5 SI lt DC2 gt lt 5
8. c lt w ODM o L D rw w lt O G 3 gt a n pv C 2 X9 d d d lt Q DD 4 s lt Q co w xo D 0 lt MOM m Note Other characters are the same as those for Character table Normal Code Page 3041 Maltese Code Page 3021 Bulgarian 042 2 Z x gt QO tq m O G tin q Q X O pio E25 gt gt gt ANE lt lt pa O Q Bl fx O i e r gt x O MWANMTMOR X c N dE 44200 B x aj e o OO DAAEMOA AR ful o Q c n e REN b 8 iuc l UD ea NM O 24 kee eae Sst uu dec 35 c aok gt e x H m E ABZ OAK lt se Oo RK HOR OM SW KM RF ROR lt a O Fa gt Wr Re AR BND ot lt q Fi m BR m x Bom om Oo cq m wv O 0 lt MOR m rm Note Other characters are the Note Other characters are the same as those for Code Page 437 same as those for Charac ter table Normal 71 Star Mode International Character Set The character codes shown in the table are hexadecimal E ma donc Bas oe E Eres posue cocos SOS eso S X amp uiud 18289 MC NONE M M RM E DI T GE veg erp imo
9. of n Hex Automatic Status Valid Invalid 00 or lorry ori FUNCTION Resets printer hardware and produces a test print CODE lt ESC gt lt LF gt lt NUL gt 1B H SF H OA H 00 OUTLINE Resets the printers hardware and executes one self test print After this command is sent the next data is not sent until the printer is confirmed to be back online 47 2 ESC POS Mode Commands The following table lists the TM U200 and TM U300 emulation commands that are supported by this printer 2 1 Control Codes List Hexadecimal TM TM 9 Horizontaltas 00 Prints and carriage retum lt DLE gt lt EOT gt 1004 Enables real time status send OK lt DLE gt lt ENQ gt 1005 Real time request to printer K OJO ALA LALA ALATA LALA A 1 20 Sets size of space to right of character A 1B 21 Enables batch print mode 1 23 Sets memory switch 1B 25 Enables disables download OK character set 1B 26 Defines download character 1B 2A Selects bit image mode A 1B 2D Selects cancels underlining A 1B 32 Selects 1 6 inch line spacing A 1B 33 Selects n 144 inch line spacing A I JA I JA AIA m O o D aU 5
10. 129 145 161 177 193 209 225 241 2 n ac m NM pim m 130 146 162 178 194 210 226 242 3 J T I 131 147 163 179 195 211 227 243 4 a L 132 148 164 180 196 212 228 244 5 in d E 133 149 165 181 197 213 209 245 6 g L i 134 150 166 182 198 214 230 246 7 N gt gt x 135 151 167 183 199 215 231 247 B 4 2 Z I E 136 152 168 184 200 216 232 248 9 d 7 7 Z Jb A 4 137 153 169 185 201 217 233 249 r I N L L 138 154 170 186 202 218 234 250 lt 139 155 171 187 203 219 235 251 c F x Y 7 7 t lI 140 156 172 188 204 220 236 252 D 1 N gt 141 157 173 189 205 221 237 253 L E e i 2 142 158 174 190 206 222 238 254 F P Y E T 143 159 175 191 207 223 239 255 Note Other characters the same those for Character table Normal 60 Star Mode Character table IBM Character set 1 Note Other characters are the same as those for IBM Character Set 2 61 Star Mode Code Page 852 Latin 2 Code Page 858 Multi lingual Fay tor gt gt E FM w PHD hm lt O0 lt moo eA HHO MM eon O Fe 1 9 w JES I xmH lt lt mm Ur s gu NN OP lt On c0 3 tQ Boo NO Ww YR A O Oo X
11. 32 lt gt x O gt lt V WE O d O 4 DWE AAT 2 234 9 a 9 h ee YY J lt 4 4 9 q 31 gt lt AA 5 XX 4 ww uk n 444 84 4 4 4 lt x A e 0 n 3 a AGM 8 9 A B C D E F Code Page 1001 Star Mode Arabic OO O lt m VANA Blom mr oO O 5 BOD O O O D w w lt w w x lt RR C 4 oq 44 dw lt OW i e 6 xq x3 a 24 x n lt 3 ow Code Page 3001 Estonian 1 lt gt e 1 216 E 6 70 X 86 y Note Other characters the same as those for Character table Normal E x FIA f Star Mode Code Page 3012 Latvian 2 Code Page 3011 Latvian 1 XD O be Z o FE OH P GX FF A m am p oot wc aa BON o gez H SE gt r On lt eo SoS MF Ee OR BE AS m Om Rw BS m E SMR m om oO lt O m m Ba PQ O Q S btch wQ lt q lt gt 2 w ome FET bb gt pr e G Oi G 85 BUS iro Ot beam na R MOON a Fe tis dec ji SEH i i i rae r
12. 9 X Z R EX ZEOA U 2 g Aa Z g i X Z X Z W x 2 The character codes shown in the table are hexadecimal International Character Set ESC POS Mode Conuntry U S A FRANCE GERMANY ENGLAND DENMARK 1 SWEDEN ITALY SPAIN 1 JAPAN NORWAY DENMARK 2 SPAIN 2 JATIN AMERICA KOREA 78 Sit HEAD OFFICE STAR MICRONICS CO LTD 536 Nanatsushinnya Shimizu Shmizuoka 424 0066 Japan Tel 0543 47 0112 Fax 0543 48 5013 Please access the following URL http www star micronics co jp service sp sup e htm for the lastest revision of the manual OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA INC 1150 King Georges Post Road Edison New Jersey 08837 3729 U S A Tel 732 623 5555 Fax 732 623 5590 STAR MICRONICS U K LTD Star House Peregrine Business Park Gomm Road High Wycombe Bucks HP13 7DL U K Tel 01494 471111 Fax 01494 473333 2000 02 07 Printed in Japan 80872080
13. H S Uu o O I O 9 XU 4U OO DO i lt lt lt cn lt m O ak C DEF AB 9 SSB OM FS TI OF gt gt m m DOE 74 F I x e x x lt T T st L ee WD C C w cx gt m o Ser WN Ae AH 5 SCH NM lt m O n m Code Page 864 Arabic Code Page 862 Hebrew 8 9 ABCDEF 24 q 5 y nm iau wa 371 14 959 9 T d 4 79934 3939 33944 rT T X Q AJJ 4 44 1 gt lt 4 ag we dd UUU C 8 S AN o Y AG 20 9 gt HER F r 3 tH lt m O n NEA C DEF 9 MW HA VI Sc s c L E D F C O 8 BWC 3 mmm Nam 7H 2o pq i s 1 Tn J iC A Vl QS SG Qp V A m D AA E Kl gt M P BL BH ah x r lt ED r n rr H cn u co o lt m O NEA Note Other characters are the same as those for Character table Normal 64 Star Mode Code Page 851 Greek Code Page 737 Greek gt gt x gt 3 D P B w yu er De IKKI QA O E G b YU Ps Alam gt GF F amp F MAS t Mo r e H SEW PQ c xui ES et lt
14. as Always Always DTR SPACE SPACE DTR n2 Receive buffer size 40 bytes 3 DSR signal check Checked Checked Not Not during setting status Checked Checked transmission 6 N 5 n1 Always 0 n2 Always 0 n3 Always 0 n4 Always 0 7 N 6 n3 Always 0 n4 Always 0 me f 1 Device ID Parallel I F only nPError signal Parallel only Busy condition Star mode only 1 See below Treatment of missing data during reverse mode 2 Device ID 1 or 3 or 5 or 7 or 9 or B or D or F nPError signal Paper end sensor and Paper near end sensor Busy condition Receive buffer 0 or 2 or 4 or 6 or 8 or A or C or E full or offline Receive buffer 1 or 3 or 5 or 7 or 9 or B or D or F full Treatment of missing data during reverse mode TI 8 to F Delete 1 Valid only when using a parallel interface Set DIP SW 1 2 if you are using a serial interface Also the conditions for BUSY and the automatic status are disregarded 2 Valid only when using a parallel interface For example if you exit the reverse mode without the host receiving the trailing data of the automatice status the remainder of the status data will be handled as described below Store Stores the remaining data and transmits it at the next time the
15. for peripheral unit 1 deferred Peripheral Units 1 and 2 cannot be driven simultaneously 31 Controls peripheral device 1 immediately 1C H Executes drive pulse for peripheral unit 1 immediate This code differs from the lt BEL gt code as follows When the printer receives an lt FS gt code the command is executed immediately The lt BEL gt code is stored in the data buffer in the same manner as other codes and executed in the order in which they are received Immediate drive command for peripheral unit 2 NOTE Peripheral Units 1 and 2 cannot be driven simultaneously Controls peripheral device 2 immediately CODE lt EM gt 19 H OUTLINE Drives peripheral unit 2 Pulse width is fixed at 200 ms with a fixed delay time of 200 ms When the printer receives a lt EM gt code the command is executed immediately Same as lt SUB gt NOTE Peripheral Units 1 and 2 cannot be driven simultaneously Controls peripheral device 2 immediately CODE lt SUB gt 1A H OUTLINE Drives peripheral unit 2 Pulse width is fixed at 200ms with a fixed delay time of 200 ms When the printer receives a lt SUB gt code the command is executed immediately Same as lt EM gt NOTE Peripheral Units 1 and 2 cannot be driven simultaneously 32 1 2 6 Auto Cutter Control SP2500 type printers only FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Full cut c
16. in ascending order any violation of ascending order terminates the tab position list Standard termination is by the 0 control code Vertical tab positions are set in terms of the current line spacing and do not move if the line spacing is changed later NOTE If a tab set position nk is equivalent or smaller than nk 1 gt just preceding the tab set position setting of vertical tab is assumed as complete 24 1 2 3 Dot Graphics Control FUNCTION 8 dot normal density graphics CODE lt ESC gt K n1 0 m2 1B H 4B H n1 00 H m1 m2 DEFINITION RANGE 15 n1 lt 200 DIPSW1 5 ON or1 lt nf lt 210 DIP SW OFF OUTLINE Executes 8 dot bit image print determined by n1 The total number of bit image data bytes one line is equal to n1 Printing 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 Image data MSB LSB Dot Position EXAMPLE Actually let us consider printing as a means of bit image We will create the design below using bit image m1 2 m3 m4 m5 m6 m7 m8 m9 mt0 m11 m12 m13 m14 m15 m16 m17 m18 m19 m20 m 21 m22 m23 m24 m25 m26 m27 m28 m29 m3 08 D7 eje ejejejeje eje 05 j
17. is equal to n1 n2 X 256 Refer to lt ESC gt as to the relation between the dot position and the bit number The printer 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 automatically returns to the character mode 26 NOTE For double density bit image printing dots cannot be printed overlapping each other in the horizontal direction The following is an example of this Printing possible Printing not possible im2 m4 m6 m8 im2 m4 m6 m8 m10 mins ms mts sh Re m11 68 e fee Overlapping D7 D7 e b e le 5 e le horizontally D5 je D5 ele D4 le e D4 je D3 e D3 e D2e e D2e Di jeje 01 4 Overlapping horizontally When printing one graphic image of a minimum of two lines with lt ESC gt or ESC L feed the paper a minimum of one line before printing so that the line spacing becomes identical between the lines 27 1 2 4 Download Graphics Printing FUNCTION Defines download characters CODE When the 7 X 9 half dot font is set default setting lt ESC gt amp 0 n1 n2 m0 m1 m2 m3 m4 m5 m6 m7 no 4 4 1B H 26 H 00 H n1 n2 m0 m1 m2 m3 m4 m5 m7 When
18. partial cut after feeding paper to the cut position 2 1 Only on printers that have an auto cutter SP2520 2560 2 Paper feed to cutting position is executed in 1 inch incre ments N 0 ESC POS mode n1 Always 0 n2 Always 0 n4 Always 0 Standard Asia Market 37 2 N 1 Star mode only n1 Always 0 n2 Always 0 Zero style Slashed International See below character set Denmark 1 Spain 1 Ei 8 Japan Country D Kora When memory switch N 0 n3 0 Destination is standard this setting is valid 3 N 2 Star mode n1 Always 0 n2 Always 0 n3 Always 0 n4 Comdex Dual Auto Cut mechanism 1 See below Paper near end sensor ma Papernearend sensor 0 or 4 or 8 or Invalid 1 or 9 or D Invalid 2 or A or E Reflects status of sensor to STATUS and when near end does not go offline and does not stop printing 3 or B or F Reflects status of sensor to STATUS and when near end goes offline and stops printing 38 ing Comdex dual auto cutter 1 Comdex Dual Auto Cut Mechanism STAR mode only This mechanism automatically cuts when there is a consecu tive paper feed exceedin 7 6 inch Hosts that cannot send an escape sequence such as lt ESC gt d and 0 can cut the paper if a line feed code lt LF gt of 1 6 in
19. pulse width for peripheral d device 1 1 1 6 Auto Cutter Control SP2500 type printers only Control Hexadecimal Page Codes Codes lt ESC gt 0 1 64 30 Full cut command to the auto cutter 33 lt 5 gt lt 0 gt 1B 64 00 lt ESC gt 1 1 64 31 Partial cut command to the auto cutter 33 lt ESC gt d 1 1B 64 01 ESC 2 1B 64 32 Full cut command to the auto cutter lt ESC gt d 2 1B 64 02 after paper feed lt ESC gt 3 1B 64 33 Partial cut command to the auto cutter 32 lt ESC gt d lt 3 gt 1B 64 03 after paper feed 1 1 7 Commands to Set the Page Format Control Hexadecimal Codes Codes lt ESC gt C n 1B43n Set page length in lines lt ESC gt C lt 0 gt n 1B4300n Set page length in inches ESC Nn 1B 4E n 35 lt ESC gt 1B 4F Cancel bottom margin Default 1 1 8 Other Commands NN Codes Codes 36 36 LF lt NUL gt na n4 Sets memory switch lt 5 gt Initialize printer Tansmits EOT status lt ESC gt N n4 1B23 n2 Tansmits ENQ status Confirms finish of printing lt ESC gt lt ACK gt lt SOH gt IB 06 01 Transmits automatic status lt ESC gt RS IB IE 61 n Enables disables automatic status ESC lt LF gt lt NUL gt 1B 0A 00 Resets printer hardware and produce re a test print 1 2 Control Code Details The following section explains the details of
20. the 5 X 9 font is set ESC amp 0 n1 n2 m0 m1 m2 m3 m4 m5 2 1B H 26 H 00 H n1 n2 m1 m2 m3 m4 m5 2 44 4 DEFINITION RANGE 21 H S n1 S n2 7F H 00 H or mO 80 H OUTLINE Defines download characters Up to 10 download characters can be defined and the defined character patterns can be stored in the printer s RAM n2 n 1 Defining of download characters begins with character code n1 and completes with n2 When only one character is defined n1 n2 indicates the relationship between the character pattern and print head m1 m2 Indicate the character pattern WHEN m0 00 H WHEN m0 80 H MSB LSB MSB LSB Dot Position NOTE When the 7 X 9 half dot font is set the default setting printing of adjacent horizontal dots is not allowed 28 FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Printing possible Printing not possible im2 ma me im2 m4 me mms sz ms ns nz pse le 28 lt 4 Overlapping 27 e e 07 e Dj ol o e horizontally 05 jele D5 Dal 9 54 D3 D3 e D2 9 02 pi eee p eegee i Overlapping horizontally Enables download character set lt ESC gt 1 or lt ESC gt 9e lt gt 1B H 25 H 31 H or 1B H 25 H 01 H Enables the download charac
21. 0 PH CO X 50 O lt 5 D GO x iw 0 pP OS eA O E H e w j aa M 00 pp gt gt cA AMM YH Hs W Q ist r or ade O v di ve RRA e rr amp 0 OD SB HOP O I3 D X 9 V O 4D OD C lt i SO lt 00 OS lt p O m Code Page 861 Icelandic Code Page 860 Portuguese it H A vi eee 03 a E m sah F 8 Qala E 2 ue E E a re eS es ael Fa F r a lt oD ANH OP VY L r amp R3 ood OQ X P4 POY BH DAH C 23 D Q ud d OOD D DRO OQ m i XO b c e lt MOA m Fa Moth AL d 03 gt G My RA b 3 F Aj a d E 4 OCEN G H Sel Ser F r aR lt Jon xn sS a 2 os Y Xd on OD Ded OI Veto 4D 4H OH O om w lt WV 5D r ant O X Note Other characters are the same as those for Character table Normal 62 Star Mode Code Page 865 Nordic Code Page 863 Canadian French Fa lH oA Via 3 o sakh b
22. 1 lt ESC gt 3 n 1B33n Sets line spacing to n 216 inch eee 4 lt ESC gt 1 79 Sets line spacing n 144 inch lt ESC gt I n lt gt Q n lt ESC gt GS a 0 lt ESC gt GS a 0 lt ESC gt GS a 1 lt ESC gt GS a 1 lt ESC gt GS a 2 lt ESC gt GS a 2 1B6C n Sets left margin 1B51n Sets right margin 1B 1D 61 31 Centering 1B 1D 61 01 1B 1D 61 32 1B 1D 61 02 ESC n1 n2 lt 1B 42 n1 n2 00 Set vertical tab stops 1B 1D 61 30 Left justification Default 1B 1D 61 00 Right justification ESC D n1 n2 0 1B 44 n1 n2 00 Sets horizontal tab stops 0 1 1 3 Dot Graphics Control Control Hexadecimal Page Codes Codes lt ESC gt lt 0 gt 1B 4B n00 m1 m2 e 8 dot normal density graphics 25 m1 m2 us lt gt L m n2 1B 4C m n2 m1 m2 8 dot high density graphics 26 m2 wt 1 1 4 Download Graphics Printing Control Hexadecimal Page Codes Codes lt gt amp lt 0 gt n1 n2 1 26 00 n1 n2 Defines download characters lt ESC gt 95 1 1B 25 31 Enables download character set 29 lt 5 gt 1 1B 25 01 ESC 9 0 1 25 30 Disables download character set m ESC 95 0 1B 25 00 Default 1 1 5 Peripheral Device Control Control Hexadecimal Page Codes Codes lt ESC gt BEL ni r2 1B 07 n1 n2 Defines drive
23. 2 lodos AVUT Ala I kad LB BE O 2 ji a di r r r lt Ss ced 0 L Fr PR a O G 23 gt O Bk eo 4d xd OOO 4D lt wb OM Ow lt FQ Bom FA o v 3 o gt a asam E d b 3 F G Gi 8 uc Ala i E L E AM H s o a ucc mc H MEI Fa FP m or lt so HL of AJ 4 4Q 49 O 3A x D Ooms xD lt lt 4d we OOD OD I lt wn x in xO r DAA lt m O Code Page 866 Cyrillic Russian 8 9 AB CD E F Ow rt Ex omo Qa OF Rex BF OD AQ OER eat OE H E I Il Ji i i me r O BH M SS M H ox ED C 6 2 b DEOS s E O d a lt e gt SAP eNOS d E eo 1 ow OM OD lt m Note Other characters are the same as those for Character table Normal 63 Star Mode Code Page 857 Turkish Code Page 855 Cyrillic Bulgarian C DEF 9 H RM ao ron B XDOD QO iq sms N 74 F 1 99 lt r BH TH ODC ZI DVS MMH VA 8 kk O O O O 5 OD 8
24. 28 44 60 76 92 108 124 D lt CR gt _ lt GS gt m 13 29 45 61 7 93 109 125 E SO lt RS gt gt A n 14 30 46 62 78 94 110 126 SI B 0 3 F 15 31 47 63 79 95 t i 127 Note The 7F H code is a space when neither normal nor katakana 57 Star Mode Character table Normal J 9 B D E F 0 E a 128 144 160 176 192 208 224 240 1 m 129 145 161 177 193 209 225 241 5 7 0 5 0 130 146 162 178 194 210 226 242 C 131 147 163 179 195 211 227 243 a rec ee 132 148 164 180 196 212 228 244 5 a O d 133 149 165 181 197 213 229 245 6 _ 0 1 n L 1 134 150 166 182 198 214 230 246 7 f T E gt 135 151 167 183 199 215 231 247 a E 1 5 l m 136 152 168 184 200 216 232 248 6 i 4 9 137 153 169 185 201 217 i 233 249 FI I T L b 138 154 170 186 202 218 234 250 B L T 0 X lt 139 155 171 187 203 219 235 251 T 5 6 t II 140 156 172 188 204 220 236 252 1 1 0 a D 141 157 173 189 205 221 237 253 p t l 142 158 174 190 206 222 238 254 F 71 x a T Z 143 159 175 191 207 223 239 255 58
25. 6 ESC POS Mode Page 3 PC860 Portuguese 8 9 A B C D E F 0 L H il E E 3 4 6 F Ux lt 4 4 6 J EE S 6 d p o ela F r u Tle 9 q f 8 XY q 9 6 0 g 4 8 Al Ua J 4 r oq z H C H H RE g Di 4 R Poe gt 4 EM Page 4 PC863 Canadian French Page 5 PC865 Nordic te 8 9 decima 8 9 B C L fu L 9 128 14 176 192 208 224 240 0 128 144 5 tre 19 _ 208 224 240 pon P 19 _ 145 5 19 161 17 193 5 6 T T T gt E 6 T r gt 2 130 146 178 194 25 242 2 130 146 162 178 194 210 226 242 3 8 IL lt 3 a L lt ia 179 15 m 2 f pl ws 27 a E x E X 4 132 148 reo 196 212 228 f 244 4 132 wl 180 196 212 228 f 244 F 4 5 133 149 181 t 197 213 pas 245 5 133 149 165 1 181 t 197 213 229 J 245 ak F
26. Dot Matrix Printer SP2000 Series Programmers Manual TABLE OF CONTENTS 1 Control Codes Star Mode rreri a Ea e T T Control Codes 1156 u na eee tete ER edit 1 1 1 Character Selection 1 1 2 Print Position Control 1 1 3 Dot Graphics 1 1 4 Download Graphics Printing eese 1 1 5 Peripheral Device Control 1 1 6 1 1 7 1 1 8 Auto Cutter Control SP2500 type printers only Commands to Set the Page Format Other Commands esee 1 2 Control Code Details inside Re 1 2 1 Character Selection 2 1 2 2 Print Position 1 2 3 Dot Graphics 1 2 4 Download Graphics Printing eese Peripheral Device Control 2 5 2 6 Auto Cutter Control SP2500 type printers only 2 7 3 Auto Status 3 1 Auto Status neto Regatta etos Appendix Character Code Tables eee Please access the following URL http www star micronics co jp service sp sup e htm for the lastest revision of the manual Command to Set the Page Format 2 8 Other
27. Star Mode Character table IBM Character set 2 Code page 437 Note Other characters are the same as those for Character table Normal 5 9 9 B D F 128 144 160 176 192 208 224 240 1 L T p 129 145 161 177 193 209 225 241 358 E T T gt 130 146 162 178 194 210 226 242 3 a IL lt 131 147 163 179 195 211 227 243 4 8 R E 132 148 164 180 196 212 228 244 5 N 1 J 133 149 165 181 197 213 229 245 6 a a E Ir 134 150 166 182 198 214 230 246 0 n D 135 151 167 183 199 215 231 947 8 y 3 I E 136 152 168 184 200 216 232 248 9 1 Ir J o s 137 153 169 185 201 217 233 249 os 138 154 170 186 202 218 234 250 B 1 1 11 139 155 171 187 203 219 235 251 C i 2 a n co 140 156 172 188 204 220 236 252 5 2 Y 2 144 157 173 189 205 221 237 253 142 158 174 190 206 222 238 254 1 1 143 159 175 191 207 223 239 255 Star Mode Character table Katakana Hexa decimal 8 9 D 0 2 5 128 144 160 176 192 208 224 240 1 r o 7 F
28. TLINE Data following this code is printed in double width characters Same as lt ESC gt W 1 or lt ESC gt W 1 FUNCTION Resets the printing magnified in character width Default CODE lt DC4 gt 14 H OUTLINE Cancels expanded character mode set by lt SO gt or lt ESC gt W 1 or lt ESC gt W 1 code Data following this code is printed out in normal size characters Same as lt ESC gt W 0 lt ESC gt W lt 0 gt FUNCTION Selects double magnification in character width CODE lt ESC gt W 1 or lt ESC gt W 1 1B H 57 H 31 H or 1B H 57 H 01 H OUTLINE Data following this code is printed in double width characters Same as SO FUNCTION Resets magnification in character width CODE lt ESC gt W 0 or lt ESC gt W lt 0 gt 1B H 57 H 30 H or 1B H 57 H 00 H OUTLINE Cancels expanded character mode set by ESC W 1 or lt ESC gt W 1 or SO code Data following this code is printed out in normal size characters Same as lt DC4 gt FUNCTION Selects double magnification in character height CODE lt ESC gt h n 1B68n 12 OUTLINE Sets the magnification rate in character height Prints the subsequent data with a character height magnified by a rate specified by the value of n 0 and 0 Reset magnification n 1 and 1 Double magnification Note You can print in quadruple magnification by combining horizontal and vertical do
29. after printing the remaining data The host will know that the printing of the transmitted data is completed by confirming that the bit is 1 When the status bit is cleared to 0 when returned to the host Transmits automatic status lt ESC gt lt ACK gt lt SOH gt 1B H 06 H 01 H 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 in the mode for a serial interface you need to set DIP switch 1 3 to OFF so that the printer status can be inquired during an error as well When in the mode for a parallel interface you need to set DIP switch 6 9 to 1 so that the printer status can be inquired during an error as well Always use the lt ESC gt lt ACK gt and lt SOH gt commands when the automatic status function is set to invalid Also when the lt ESC gt lt ACK gt and lt SOH gt commands are transmitted one time you must not send the next lt ESC gt lt ACK gt and lt SOH gt commands until the automatic status is completely received 46 FUNCTION Enables disables automatic status CODE lt 5 gt RS n 1B H 1E H 61 H n OUTLINE This command sets the transmission conditions of the automatic status Initial values are according to DIP switch 1 6 See Chapter 2 Automatic Status Specifications for details on the contents of the automatic status
30. andic Codepage 863 Canadian French Codepage 865 Nordic Codepage 866 Cyrillic Russian Codepage 855 Cyrillic Bulgarian Codepage 857 Turkish Codepage 862 Hebrew Codepage 864 Arabic Codepage 737 Greek Codepage 851 Greek Codepage 869 Greek Codepage 928 Greek Codepage 772 Lithuanian Codepage 774 Lithuanian Codepage 874 Thai Codepage 1252 Windows Latin 1 Codepage 1250 Windows Latin 2 Codepage 1251 Windows Cyrillic Codepage 3840 IBM Russian Codepage 3841 Gost Codepage 3843 Polish Codepage 3844 CS2 Codepage 3845 Hungarian Codepage 3846 Turkish Codepage 3847 Brazil ABNT Codepage 3848 Brazil ABICOMP Codepage 1001 Arabic Codepage 2001 Lithuanian KBL Codepage 3001 Estonian 1 Codepage 3002 Estonian 2 Codepage 3011 Latvian 1 Codepage 3012 Latvian 2 Codepage 3021 Bulgarian Codepage 3041 Maltese FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Selects IBM character set 2 lt ESC gt 6 1B H 36 H Selects IBM character set 2 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 lt ESC gt 7 1B H 37 H Selects IBM character set 1 Switches from IBM character set 2 to character set 1 Subsequent 80H to 9FH codes are handled as character d
31. ata This command is invalid when the character code table settings are other than 2 Selects 7 X 9 half dot font Default lt ESC gt M 1B H 4D H Selects 7 X 9 half dot font When the power of the printer is turned on 7 X 9 half dot printing is automatically selected The number of digits per line is set by the DIP switches in the following way DSW1 5 Digits Per Line OFF 40 When right space of character is 0 10 FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Selects 5 X 9 2 pulses per dot font lt ESC gt P 1B H 50 H Selects 5 X 9 2 pulses 1 dot font The number of digits per line is set by the DIP switches in the following way DSW1 5 Digits Per Line When right space of character is 0 Selects 5 X 9 3 pulses per dot font lt ESC gt 1B H 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 DSW1 5 Digits Per Line 22 OFF Selects character spacing lt ESC gt SP n 1B20n Sets the size of space to right of character The value of n can be set from 0 through 15 or from 0 through 9 and A through F Spaces are doubled when printing using Printing magnified double in character width The default value of n is 0 11 Sets the printing magnified double character width CODE lt SO gt 0E H OU
32. ch is sent 7 times consecutively 2 ESC POS mode 1 Always 0 n2 Always 0 n3 Always 0 Parameter sensor Papermearendsensor 2 or A or E Reflects status of sensor to STATUS and when near end does not go offline and does not stop printing 9 or B or F Reflects status of sensor to STATUS and when near end goes offline and stops printing 4 N 3 Star mode n3 Always 0 Parameter Setting woi ge 4 Character table HE Character table See below CRoode 39 O or e 0 or 8 0 or 8 0 or 8 0 or 8 0 or 8 0 or 8 0 or 8 0 or 8 0 or 8 0 or 8 0 or 8 0 or 8 0 or 8 0 or 8 0 or 8 1 or 9 1 or 9 1 or 9 1 or 9 1 or 9 1 or 9 Character Table Normal Default Code Page 437 USA Std Europe IBM Character Set 2 Katakana IBM Character Set 1 Codepage 858 Multilingual Codepage 852 Codepage 860 Codepage 861 Codepage 863 Codepage 865 Codepage 866 Codepage 855 Codepage 857 Codepage 862 Codepage 864 Codepage 737 Codepage 851 Codepage 869 Codepage 928 Codepage 772 Codepage 774 Latin 2 Portuguese Icelandic Canadian French Nordic Cyrillic Russian Cyrillic Bulgarian Turkis
33. count of the transmission of the entire status including Header 1 with bits 1 to 3 and bit 5 The host gets the information of the transmitted byte count and always receives the status data of the amount of the transmitted byte count For reference Table 3 2 shows the relationship of the actual transmitted byte count and the Header 1 Bit 0 is always 1 always 0 after the second byte to indicate that it is the header data of Header 1 so when detecting Header 1 you can check that bit 0 1 and bit 4 0 Bit 6 is for future expansion so it is ignored in the processing on the host 51 Table 3 1 Header 1 First Byte Bit Content Statuso Status pF ae 5 Print Status Byte Count j 6 Reserved Fired 7 Table 3 2 Relationship of Actual Transmitted Byte Count and Header 1 x 7 0000711 BOF Hex x 001000018 e T x 9 f 001000118 23 Hex 001001018 25 Hex a 00100111B 27 Hex 00101001B 29 Hex 00101011 2B Hex 2D Hex 2F Hex 001011018 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 version of the automatic status with bits 1 to 3 and bit 5 called automatic status version below For reference Table 3 3 shows the relationship between the actual vers
34. ed to 0 when returned to the host Clearing bit 1 to 0 is not a target for the automatic status Table 3 6 Printer Status 2 Error Information Fourth Byte Bit Content Statuso Statusi o fawaso Always 0 Co Reset Not Possible Error Stopped Because of Hot Print Head Not Stopped Stopped Not Used Fixed at 0 ee 54 Table 3 7 Printer Status 3 lt Error Information gt Fifth Byte Bit Content 7 Statuso Statusi 0 0 7 0 invalid 2 invalid 3 maia 7 4 awaso 5 6 Reception Buffer Overflow Error Not Used Fixed at 0 Bit 6 is cleared to 0 when returned to the host Table 3 8 Printer Status 4 lt Sensor Information gt Sixth Byte Bit Content Statuso Status1 0 0 7 4 0 5 maia j Not Used Fixed at 0 C Table 3 9 Printer Status 5 lt Sensor Information gt Seventh Byte Bit Conte Statusi 0 0 7 0 invalid 2 maia 3 maia __ 4 5 c c ap 7 jNotUsed FxedatO AB 55 2 Precautions Do not use the lt ENQ gt lt EOT gt lt ESC gt lt ACK gt or lt SOH gt commands when the automatic status is valid You must first invalidate the use of the automatic status function using the DIP switc
35. ejeje eje eje D4 ejeje eje ejejejeje eje ejeje eje ejejejeje eje 02 ejeje eje ejejejeje ejejeje Di e 25 FUNCTION CODE DEFINITION RANGE OUTLINE First since the volume of data is 30 n1 1E H If the data m1 to m30 is converted to hexadecimal it appears as shown below Data Binary Hex Data Binary Hex Data Binary Hex mi 00000001 01 277 00111110 m27 00111110 m2 00011110 12 00000010 02 m22 00101110 2E m3 00111110 13 00000010 02 m23 00101110 2E 4 01011111 14 00111110 24 00111110 m5 100011111 15 00111110 m25 00101111 2 101011110 16 00101111 2F m26 00101111 2 m7 100011110 17 00101111 2F m27 00111110 8 00111111 18 00111110 28 00111110 m9 00101111 2F 19 00101110 2E m29 00000010 02 m10 00111110 m20 00101110 2E m30 00000010 02 8 dot high density graphics ESC L n1 2 m2 1B H 4C H n2 m1 m2 1 n1 256 X n2 lt 420 DIP SW 1 5 1 1 256 X n2 lt 400 SW 1 5 OFF Executes double density bit image printing half dot printing determined by n1 and n2 The total number of bit image data bytes in one line
36. es Also if there is less than one character including the Space between characters in the printable range set for the left and right margins a will be printed instead of the character because printing is not possible there The range of nis 2 lt n s maximum number of printable digits 255 The default is n maximum number of printable digits 22 FUNCTION CODE OUTLINE Aligns position lt ESC gt GS n 1B H 1D H 61 H n Sets the alignment of the positions Aligns all print data of one line to the specified position n 00 H 0 Left edge alignment default 01 H 1 Center alignment 02 H 2 Right edge alignment ABC ABCD gt lt ESC gt GS a 0 ABCDE ABC lt ESC gt GS 1 4 ABCD ABCDE ABC lt ESC gt GS 2 4 ABCD ABCDE Note Effective only when input at the beginning of the line Align positions within the printable range that has been set Skipped areas by the horizontal tab are also targeted for position alignment 23 FUNCTION Sets vertical tab stops CODE lt ESC gt B n1 n2 nk 0 1B H 42 H n1 n2 nk 00 H DEFINITION RANGE 15 lt n2s n3 lt nk lt 255 lt 125 ks 16 OUTLINE Cancels all current vertical tab stops and sets new vertical tab stops at lines n1 n2 etc where n1 n2 etc are numbers between 1 and 255 A maximum number of 16 vertical tab positions can be set Tab positions must be specified
37. from the host The select deselect states in the DC1 and DC3 modes and external device drive conditions set by lt ESC gt lt BEL gt 1 and n2 do not affect the automatic status valid invalid conditions Deselects printer lt DC3 gt 13 H Data following this code is ignored when the printer receives a lt DC3 gt code The deselect mode is canceled by lt DC1 gt code Set select mode Default lt DC1 gt 11 H When the printer receives a lt DC1 gt code the deselect mode is canceled and data following this code is input to the buffer Beeps the buzzer lt RS gt 1E H A short alarm is generated by the printer 36 FUNCTION CODE HEX OUTLINE Sets the memory switch lt ESC gt n1 n2 n8 n4 lt LF gt lt NUL gt 1B 23 N 2C n1 n2 n3 n4 0A 00 In order to enable changed memory switch settings turn the printer OFF and ON again or send the printer reset command lt ESC gt lt LF gt NUL to the printer Changed memory switch settings are stored in EEPROM and these settings will be stored until they are changed again N Memory switch number 0 1 2 3 4 5 6 ni 2 n3 n4 Mode settings For details see below 1 0 Star mode n1 Always 0 n2 Always 0 Standard Asia Market Ind FF command 1 Feeds page 4 to 7 Executes full cut after feeding paper to the cut position 2 Feeds page C to F Executes
38. gt RS i 0 lt ESC gt lt RS gt i lt 0 gt lt ESC gt RS i 1 lt ESC gt RS i 1 lt ESC gt RS i 2 lt 5 gt RS i 27 lt ESC gt E lt ESC gt ESC U n 1B 57 31 Selects double magnification in character 18 1 57 01 width 1B 57 30 Resets magnification in character width 12 1B 57 00 1B 68 31 Selects double magnification in character qn 1B 68 01 height 1B 68 30 ARE Resets magnification in character height 1B 68 00 1B 2D 31 Selects underlining 13 1B 2D 01 1B 2D 30 Cancels underlining Default 1B 2D 00 1B 5F 31 Selects upperlining 1B 5F 01 1B 5F 30 Cancels upperlining Default 1B 5F 00 1B 34 Selects red color printing SP2360 2560 Selects highlight printing SP2320 2520 1B 35 Cancels red color printing SP2360 2560 Cancels highlight printing SP2320 2520 oF _ inverted printing v li Cancels inverted printing Default Cancels rotated print mode for text Default Specifies rotated print mode for text with 1B 1E 96 30 1B 1E 96 00 1B 1E 96 31 1B 1E 96 01 a 270 rotation Specifies rotated print mode for text with 1B 1E 96 02 a 90 rotation 1B55n Selects print direction 1 1 2 Print Position Control cous ee Codes Codes 068 aa n 0 1 Carriage Return lt ESC gt a n Hr o Horizontalta lt ESC gt z 0 1B 7A 30 lt ESC gt z lt 0 gt lt ESC gt z 1 1B 7A 0
39. h Hebrew Arabic Greek Greek Greek Greek Lithuanian Lithuanian Codepage 874 Thai Codepage 1252 Windows Latin 1 Codepage 1250 Codepage 1251 Codepage 3840 Codepage 3841 Codepage 3843 Codepage 3844 Codepage 3845 Codepage 3846 Codepage 3847 Codepage 3848 Codepage 1001 Codepage 2001 Codepage 3001 Codepage 3002 Codepage 3011 Codepage 3012 Codepage 3021 Codepage 3041 gt Windows Latin 2 Windows Cyrillic IBM Russian Gost Polish CS2 Hungarian Turkish Brazil ABNT Brazil ABICOMP Arabic Lithuanian KBL Esornian 1 Esornian 2 Latvian 1 Latvian 2 Bulgarian Maltese 2 gt oo Feeds line after printing same as lt LF gt Prints no line feed N 3 ESC POS mode n1 Always 0 n2 Always 0 n3 Always 0 Prints no line feed Feeds line after printing same as lt LF gt 2 Parallel Interface Prints and feeds line when nAutoFd signal is LOW Does not feed line when HIGH Serial Interface Ignores Ignores 5 N 4 Star mode n3 Always 0 setting j j X on X off Timing When Every 3 When Every 3 sa RTS Signal Condition Save as n4 Data receipt error Ignored Ignored Printed Printed 41 N 4 ESC POS mode n3 Always 0 RTS signal condition Save as Save
40. he 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 tear bar position Note 2 Note 1 Paper feed to cut position Executed in 1 inch units Note 2 Paper feed to tear bar position Executed in 7 6 inch units 34 1 2 7 Command to Set the Page Format FUNCTION Set page length in n lines CODE lt ESC gt C 1B H 43 H DEFINITION RANGE 1 lt n lt 255 default n 42 OUTLINE Sets page length in n lines FUNCTION Set page length in ninches CODE lt ESC gt C lt 0 gt 1 43 00 H DEFINITION RANGE 1 lt n lt 127 OUTLINE Sets page length in n inches FUNCTION Set bottom margin CODE lt ESC gt N n 1B H 4E H n DEFINITION RANGE 05 n lt 255 Default n 0 OUTLINE Sets bottom margin to n lines Feeds the paper Page length automatically Bottom margin Bid 5 52 89644 of nlines FUNCTION Cancel bottom margin Default CODE lt ESC gt O 1B H 4F H OUTLINE Cancels bottom margin 35 1 2 8 Other Commands FUNCTION CODE OUTLINE CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Cancels printer buffer amp Initialize printer lt CAN gt 18 H Clears the data buffer and line buffer and initializes all commands that have already been set lt CAN gt is executed not when taking data from the reception buffer but when it is received
41. hes or the lt ESC gt lt RS gt a n command to use these inquiry commands 3 Method to Identify States lt Control Code gt lt Reception Data gt XON lt 00010001 gt B XOFF lt 00010011 gt B lt Reception Data gt lt 770 5 Automatic Status First Byte lt Header 1 gt Automatic Status Second Byte and Beyond 0 indicates bit fixed to 0 1 indicates bit fixed to 1 indicates bit changed 56 Appendix Character Code Tables Star Mode Character table Normal 1 2 3 4 5 6 7 0 lt NUL gt SP 0 of 16 32 4 64 89 2 1 lt DCi gt 1 Q a q 1 17 33 49 65 81 97 113 2 lt STX gt lt DC2 gt 2 R b r 2 18 34 50 66 82 98 114 3 lt ETX gt lt DC3 gt 3 5 C 5 3 19 35 51 67 83 99 115 4 lt DC4 gt 4 T d t 4 20 36 5 84 100 116 5 lt ENQ gt 5 U 5 21 37 53 69 85 101 117 6 amp 6 f V 6 22 38 54 70 86 02 us 7 EL 7 g w 7 23 39 55 71 87 103 19 8 CAN 8 X h X e 2 4 fse 72 88 104 190 9 HT EM 9 Y 9 25 41 57 73 89 105 121 A lt LF gt lt SUB gt Z z 10 42 58 74 90 106 122 B lt VI gt _ lt ESC gt 11 27 43 59 75 91 107 123 FF _ lt gt lt 12
42. inch after this code is received FUNCTION One time n 72 inch feed CODE lt ESC gt J n 1B H 4A H n DEFINITION RANGE 1sns 255 OUTLINE This code activates the n 72 inch paper feed once Sets line spacing to n 216 inch approximately CODE lt ESC gt 3 n 1B H 33 H n DEFINITION RANGE 15 ng 255 OUTLINE Setting value is approximated using the following equation because the minimum pitch of the paper feed mechanism is 1 144 inch INT X 2 3 0 5 144 inches FUNCTION Sets line spacing to n 144 inch CODE lt ESC gt n 1B H 79 H n DEFINITION RANGE 15 ns 255 OUTLINE Line feed is set at n 144 inch after this code is received Default is n 24 20 Sets horizontal tab stops CODE lt ESC gt D n1 n2 nk lt 0 gt 1B H 44 H n1 n2 nk 00 H DEFINITION RANGE 1 1 lt lt 16 OUTLINE Cancels all horizontal tab stops and sets new tab stops within the character pitch at n7 n2 etc You can set up to 16 individual tab IA nis 2 lt 3 lt Maximum print columns 1 stops 1 lt n 2 lt n3 n16 lt maximum printing digits Tab stops must be set in ascending order If tab stops are set in an order which differs fro this it will end A 0 code is added as the ending edge All tab stops are cleared by inputting ESC D 0 The reference point for the tab positions is left edge of the paper regarless of the settings for the lef
43. ion and the Header 2 The automatic status version will be upgraded when new information is added to the currently empty printer status bit positions through the addition of new functions in the future When the host does not manage the automatic status version it is acceptable that Header 2 be ignored 52 Table 3 3 Header 2 Second Byte Always 0 Automatic Status Ver Number L1 3 Automatic Status Ver Number 7 Not Used Fixed at 0 Table 3 4 Relationship of Actual Automatic Status Version and Header 2 x 000001108 06 Hex 7 00100000 20 Hex 00100010B 22 Hex 0 00100100B 24 Hex lt gt gt 2 JOS YS gt 2 i 16 01000000B 40 Hex 3 0 01101100B 6C Hex 53 Printer Status Printer Status is the overall status transmitted in the third byte of the auto matic status Printer status is returned as transmission byte count 2 added by the Header 1 It always updates with new information There is no historical record existing Tables 3 5 to 3 9 show the composition of the overall status The status of bits described as Invalid in the tables are always unknown Table 3 5 Printer Status 1 lt Printer Status gt Third Byte Bit Content Statuso 0 0 L4 0 5 maia 22 1 2 4 6 Offline using the Online SW Does not occur Occurs Not Used Fixed at 0 C C j Bit 1 is clear
44. l data they are indicated as follows Data Binary Hex Data Binary Hex Data Binary Hex 10100000 AO m7 10011000 98 m 00111000 3C m2 00000000 00 01100100 64 m2 01000010 42 m3 10100000 AO m3 10000010 82 m3 10100101 A5 m4 00011111 m4 00000001 01 m4 00000000 00 m5 10100000 0 m5 10000010 82 m5 10100101 A5 00000000 00 m 01100100 64 01000010 42 m7 10100000 AO m7 10011000 98 m7 00111000 EXAMPLE of transmitting data 1 Definition of download characters Selecting the download character set Character codes 21 22 3 4 Canceling the 1B H 25 H download character set 5 Character codes 21 H 22H 74 a 30 1 2 5 Peripheral Device Control FUNCTION Defines drive pulse width for peripheral device 1 CODE lt 5 gt BEL n1 n2 1B H 07 H n1 n2 DEFINITION RANGE 15 nts 127 1 lt n2 S 127 default setting n1 n2 20 OUTLINE Adjusts drive 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 J 1 10 x n1 ms 10 x n2 ms O e Printing and paper feed are prohibited Controls peripheral device 1 07 H Executes drive pulse
45. n or a cancellation of the rotation is specified Rotation Specification or 0 Cancel rotation 0 rotation default 01H or 1 270 rotation 02H or 2 90 rotation Underline or overline cannot be applied for rotated text The relationship of the vertical ratio and horizontal ratio for rotated text is the reverse of when the rotation is cancelled Selects emphasized printing lt ESC gt E 1B H 45 H Data following this code is printed in the emphasized print mode In this mode printing is uni directional Cancels emphasized printing Dafault lt ESC gt 1B H 46 H Cancels emphasized print mode 15 FUNCTION Selects uni directional print mode CODE lt ESC gt U 1 or lt ESC gt U 1 1B H 55 H 81 H or 1B H 55 H 01 H OUTLINE Prints only when the print head moves from left to right FUNCTION Selects bi directional print mode CODE lt ESC gt U 0 or ESC U 0 1B H 55 H 30 H or 1B H 55 H 00 H OUTLINE Returns to the standard bi directional print mode This mode is set automatically when the printer power is turned on 16 1 2 2 Ptint Position Control FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Line feed lt LF gt OA H Data in the line buffer is printed out and one line is fed If data does not exist before this code is received the printer only feeds one line Vertical tab VT 0B H Feeds the
46. o the next horizontal tab position in line If the current position is after the final horizontal tab position that can be executed this code is ignored Underlining and overlining do not take place in the spaces between characters set with the horizontal tab function 18 FUNCTION Define n 72 inch line spacing CODE lt ESC gt n 1B H 41 H n DEFINITION RANGE 0 lt n lt 85 Default n 12 OUTLINE Line feed is defined at n 72 inch after this code is received This code sets the feed at n 72 inch with the lt ESC gt 2 code FUNCTION Set n 72 inch line spacing CODE lt ESC gt 2 1B H 32 H OUTLINE This code sets the line feed at a defined value with the lt ESC gt A previously described Line feed pitch is 1 6 inch when lt ESC gt A nis not set FUNCTION Sets line spacing to 1 12 inch CODE lt ESC gt z 0 or lt ESC gt z lt 0 gt 1B H 7A H 30 H or 1B H 7A H 00 H OUTLINE Line feed is set at 1 12 inch after this code is received FUNCTION Sets line spacing to 1 6 inch Default CODE lt ESC gt z 1 or lt ESC gt 2 1 1B H 7A H 31 H or 1B H 7A H 01 H OUTLINE Line feed is set at 1 6 inch after this code is received FUNCTION Sets line spacing to 1 8 inch CODE lt ESC gt 0 1B H 30 H OUTLINE Line feed is set at 1 8 inch after this code is received 19 FUNCTION Sets line spacing to 7 72 inch CODE lt ESC gt 1 1B H 31 H OUTLINE Line feed is set at 7 72
47. ommand to the auto cutter lt ESC gt 0 or lt ESC gt d lt 0 gt 1B H 64 H 30 H or 1B H 64 H 00 H Full cut command Executes a full 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 Partial cut command to the auto cutter lt ESC gt 1 or lt ESC gt d 1 1B H 64 H 31 H or 1B H 64 H 01 H Partial 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 Oeries printers Full cut command to the auto cutter after paper feed lt 5 gt 2 lt ESC gt d lt 2 gt 1B H 64 H 32 H or 1B H 64 H 02 H Paper feed full 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 tear bar position Note 2 Note 1 Paper feed to cut position Executed in 1 inch units Note 2 Paper feed to tear bar position Executed in 7 6 inch units 33 FUNCTION CODE OUTLINE Partial cut command to the auto cutter after paper feed lt 5 gt 3 or lt ESC gt lt 3 gt 1B H 64 H 33 H or 1B H 64 H 03 H Paper feed full cut command Executes the following actions after printing t
48. paper to the next vertical tab set position 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 feed FF 0C H Inputting this code executes a page feed on SP2320 2360 series printers after printing the data in the line buffer On SP2520 2560 series printers this code performs the following according to the settings of the memory switches 0 2 and 0 3 FF Command Function SP2520 2560 Executes page feed 9 Executes cut 41 after feeding paper to the cutting position ee 1 Executes partial cut 1 after feeding paper to the cutting position 1 Paper feed to the cutting position is executed in inches 17 FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Carriage return lt CR gt 0D H The CR code is valid when the memory switch 3 1 1 set to 0 at exfactory When the CR code is valid setting the memory switch 3 0 will cause the CR to function as shown in the table below Memory Switch Setting CR Code Function MSW 3 1 0 Ignored at exfactory MSW3 0 0 MSW 3 0 1 Prints only No paper feed Feed paper n lines lt ESC gt a n 1B H 61 H n 15 ns 127 After data in the line buffer is printed out feeds the paper n lines Horizontal tab lt HT gt 09 H The print position skips t
49. 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 not transmit that data the next time the reverse mode is entered The new status data is transmitted from the header field FUNCTION Initialize printer CODE lt ESC gt 1B H 40 H OUTLINE Initializes all the commands already set However the following parameters are not initialized online switch valid invalid selection Also the line and data buffers are not cleared The DIP switches and the memory switches are not read in again The select deselect state for addressable mode and DC1 DC3 mode is not affected 43 FUNCTION CODE OUTLINE Transmits EOT status lt EOT gt 04 H Transmits the EOT status of the printer to the host in real time Does not execute after taking fro reception buffer but immedi ately upon receiving from the host It is a Data ready state when using a bi directional parallel interface When one lt EOT gt command is sent to the printer it will not send the next lt EOT gt command until the EOT status is received When using the lt EOT gt command always set the automatic status function to invalid Always 1 2 Paper Near End 1 Near End Bit 3 No Paper Error Same as ENQ Bit 3 1 Error Bit1 Bit 5 to Bit 7 statsu unknown 44 FUNCTION CODE OUTLINE Transmits ENQ s
50. s Control Hexadecimal TM TM Codes Codes U200 U300 Ignored Returns home LOK lt ESC gt c 0 1 6330 Ignored Selects paper type s for printing lt ESC gt f t1 12 1B 66 t1 t2 Ignored Sets cut sheet wait time 10 45 Ignored Selects head control method 50 3 Auto Status Specifications 3 1 Auto Status Auto status is a function that automatically relays any changes that occur in the status of the printer from the printer to the host It is composed of the Header 1 Header 2 and a plurality of bytes of printer states The host always identifies the data using the method of identification for each byte received For example This is necessary in consideration of the receiving side because there is the possibility that the X on X off code could be included in the automatic status part way through transmission when in the Xon Xoff mode Serial Conditions for the validity and invalidity of the autmatic status abide by the initial values of the settings of DIP switch 1 6 You can change the condition using the lt ESC gt RS n command after turning ON the power You can acquire the automatic status regardless of it being valid or invalid using the lt ESC gt lt ACK gt lt SOH gt command Header 1 Header 1 is 1 byte of information heading the automatic status Header 1 is composed of the items in Table 3 1 below Header 1 indicates the byte
51. s D Dr mae 5 IURI ILE LL NM A W D em oed cx xD N e 03 S S ao Se OSS BE Q x mQ Rd e v W Es eq SES Ep sa PS doy ole cst PS Pq bd PA bd bd pd 54 YO B 2 a cd SIE s k PS SIE d dk P S E CGU S Zz IPEE EEEFEFEEPEFE KETLEEFEEEETLEEEEEE Q HR d HG Q dH NAH z OU HMB A 72 ESC POS Mode Page 0 PC437 Hexa acia 30 1 2 3 4 5 6 7 gt C 73 ESC POS Mode Page 0 PC437 236 252 237 253 L 74 ESC POS Mode Page 1 Katakana E Note Other characters are the same as those for Page 0 75 ESC POS Mode Page 2 PC858 Multilingual Note Other characters are the same as those for Page 0 7
52. t margin When you turn ON the power the horizontal tabs are not set Sets left margin lt ESC gt I n 1B 6 n Sets the non printable range with the current character pitch up to the nth postion with the left edge as the reference after printing the data in the line buffer Settings changed partway through a line take effect from the subsequent line Changing the character pitch after setting does not change the left margin The left margin is the left edge is when the power is turned ON The left margin must be at least 18 dots within the following values in the left edge of the right margin Also if there is less than one character including the space between characters in the printable range set for the left and right margins a will be printed instead of the character because printing is not possible there The range of nis 0 lt n lt right margin 2 lt 255 The default is 0 21 FUNCTION CODE OUTLINE Sets right margin lt ESC gt Q n 1B51n Sets the non printable range with the current character pitch up to the nth postion with the left edge as the reference after printing the data in the line buffer Settings changed partway through a line take effect from the subsequent line Changing the character 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 valu
53. tatus lt ENQ gt 05 H Transmits the ENQ status of the printer to the host in real time Does not execute after taking fro reception buffer but immedi ately upon receiving from the host It is in a Data ready state when using a bi directional parallel interface When one lt ENQ gt command is sent to the printer it will not send the next lt ENQ gt command until the ENQ status is received When using the lt ENQ gt command always set the automatic status function to invalid ENQ Status Bit 0 Parallel Error 1 1 Error Bit1 Framing Error 1 1 Error Bit2 Mechanical Error 1 Error Bit 3 No Paper Error Same as EOT Bit 3 1 Error Bit5 Buffer Empty 1 1 Buffer Empty Bit6 Buffer Overflow 1 Overflow Bit7 Compulsion SW 2 1 and Bit 1 are valid only with a serial interface Bit1 0 when using a parallel interface 2 Compulsion Switch When the pin No 6 on the connector for external device drive circuit is HIGH Switch ON Bit 7 1 45 FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Confirms finish of printing lt ETB gt 17 H This command cause the printer to wait until all printing is completed the printing motor stops and sets the printer status 1 1 of the automatic status lt ETB gt command to 1 only execute ETB Also if print data still remains in the line buffer it executes this command
54. ter set Download characters defined by the ESC amp 0 code cannot be printed until enabled by this command Disables download character set Default ESC 9 0 or ESC 0 1B H 25 H 30 H or 1B H 25 H 00 H Disables the selected download character set and selects the built in character set When the power of the printer is initially turned on the built in character set is selected To print a download character when the 7 lt 9 half dot font character size is set 1 Design the download character to be used at code positions 21 H 22 H and 23 H im2 m4 m6 im2im4 m6 im2 m4 m6 im1 m3 m5 m7 im1 m3 m5 m7 im1 m3 m5 m7 pse e psje e e e 08 D7 07 9 Dce e ee 26 e peje e e e D ple 05 e D4 03 e pse eee D2 02 lee Dl D1 D1 Dil lee Char Code 21 H Char Code 22 H Char Code 23 H 29 2 Define the download characters When character codes where the download character is written are specified as 21 H 22 H 23 H n1 21 H n2 23 H are obtained If the relationship between the character pattern data and printing head is specified to not use pin 9 m0 80 H is obtained When data m7 to m7 are converted into hexadecima
55. the printer control codes 1 2 1 Character Selection FUNCTION Selects the international character set CODE lt ESC gt R n 1B H 52 H n DEFINITION RANGE 00 H lt lt or n 40 H OUTLINE Select the international character set corresponding to the value set for n n 00 H U S A 06 Italy OC H Latin America 01 H France 07 H Spain 1 OD H Korea 02 H Germany 08 H Japan OE 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 abides by memory switches 1 0 to 1 3 Selects zero style CODE lt ESC gt n 1B2Fn OUTLINE Selects zero style Causes subsequent zero characters to be printed with a slash when n is 1 and without a slash when n is 0 The value of n can be set to 0 OOH or 30 H or 1 0H or 1 The default may differ depending on the memory switch setting FUNCTION CODE OUTLINE Selects the character code table lt ESC gt GS t n 1B 10 74 n Selects the character code table 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 Value of n ON O Q GQ N Character Table Normal Default Code Page 437 USA Std Europe IBM Character Set 2 Katakana IBM Character Set 1 Codepage 858 Multilingual Codepage 852 Latin 2 Codepage 860 Portuguese Codepage 861 Icel
56. u can print both read and black characters on the same line Unidirectional when switching red and black SP2320 2520 Specifies black and white inverted printing Inverts black and white and prints subsequent characters including the character pitch Printing is unidirectional Do not use when font setting is 5 X 9 1 Printing quality is not guaranteed with 5 X 9 3P 1 FUNCTION Cancels red color printing SP2360 2560 Cancel highlighted print mode SP2320 2520 CODE lt ESC gt 5 1B H 85 H OUTLINE SP2360 2560 Cancels red color printing and prints subsequent characters in black SP2320 2520 Cancels highlighted printing Default FUNCTION Inverted printing CODE Sl OF H OUTLINE Data following this code is printed out in inverted characters This code is valid only when input at the beginning of a line so normal and inverted characters cannot be mixed in on the same line 14 FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE FUNCTION CODE OUTLINE Cancels inverted printing Default lt DC2 gt 12 H Cancels the inverted character mode This code is valid only when input at the beginning of a line Specifies rotated print mode for text with a rotation lt ESC gt RS i n 1B 1E 96 n This rotates and prints subsequent data 90 or 270 in the clockwise direction or cancels it and prints The n value determines whether a rotational directio
57. u gi al elete 134 150 182 198 214 230 246 134 150 166 182 198 214 230 246 6 t ES n 7 135 151 183 199 t 215 231 247 7 135 151 167 183 199 t 215 231 247 81 816 11 ia je ft lo 136 182 168 184 200 T 232 248 L 1 62 168 184 200 216 232 248 9 E 6 4 4 9 F F d n 137 153 169 217 233 249 137 153 teo 27 we A a A ll aor Q 138 154 170 185 202 218 24 250 138 154 170 186 202 218 234 250 ig ts 139 155 171 187 203 219 235 251 139 155 171 187 203 219 ess 251 6 4 L i 4 140 156 172 1881 ooa 220 296 252 1 140 156 172 188 T 220 236 252 1 0 1 2 8 2 D 141 157 173 189 205 eat 237 253 D wt 157 173 189 205 l 221 237 253 d 1 A d m 1 E e pj pp pe e ra e pu mp me m 1 1 L SP 1 SP us we o7 29 255 C 69 9 ss Note Other characters are the same as those for Page 0 77 23 24 40 58 5A SB SC 5D SE 60 7B 7C 7D 7E N X 7 8 X ZA X Z X Z E X Z x2 pel w 4D Ao n EX Z 6 i N X 7 X Z
58. uble magnification commands You cannot combine with the inverted printed command Line feeds of lines including vertical expansion characters are doubled When font configuration is 6 X 12 dots of IBM block graphics 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 CODE lt ESC gt 1 or lt ESC gt 1 1B H 2D H 31 H or 1B H 2D H 01 H OUTLINE Data following this code is printed out underlined However the spaces generated by horizontal tab are not underlined FUNCTION Cancels underlining Default CODE lt gt 0 or ESC 0 1B H 2D H 30 H or 1B H 2D H 00 H OUTLINE Cancels underlined mode FUNCTION Selects upperlining CODE ESC _ 1 lt ESC gt lt 1 gt 1B H BF H 31 H or 1B H BF H 01 H OUTLINE Data following this code is printed out with an upperline However the spaces generated by horizontal tab are not upperlined 13 FUNCTION Cancels upperlining Default CODE lt ESC gt _ 0 or ESC lt 0 gt 1B H BF H 30 H or 1B H BF H 00 H OUTLINE Cancels upperline mode FUNCTION Selects red color printing SP2360 2560 Selects highlight printing SP2320 2520 CODE lt ESC gt 4 1B H 34 H OUTLINE SP2360 2560 Specifies red printing Prints subsequent characters in red Yo

Download Pdf Manuals

image

Related Search

Related Contents

TeamConnect Systembedienungsanleitung  Manuel d`utilisation  EXAMEN DE FIN D`ETUDES SECONDAIRES  SIMATIC BATCH V8.0 - Service, Support    Polaris 700 User's Manual  Smeg CR330SENF User's Manual  

Copyright © All rights reserved.
Failed to retrieve file