Home

SG-10/15 USER`S MANUAL

image

Contents

1. DATAS DATA STROBE SSS STROBE BUSY BUSY SIG GND SIG GND 2 6 3 7 4 8 5 9 1 1 6 Using MBASIC Many CP M computers use Microsoft BASIC called MBA SIC If you have a CP M 80 computer that uses Microsoft BASIC the program listing given here should work with your computer also MBASIC is a very close relative of the IBM Microsoft BASIC used in this book The only difference is that MBASIC interprets CHR 9 and substitutes a group of spaces to sim 229 ulate a tab You can send a horizontal tab to SG 10 15 using CHR 137 instead of 9 Some versions of Microsoft BASIC will add a carriage return and line feed at the end of every 80 or sometimes 132 characters To print lines longer than 80 or 132 characters as when doing dot graphics you must define a wider printer width The following statement will prevent the computer from inserting unwanted codes 19 WIDTH LPRINT 255 Listing programs Microsoft BASIC uses the L prefix on several commands to direct them to the printer To list programs on the printer just type LLIST To direct program output to the printer use LPRINT in place of PRINT 230 DIP Switch Quick Reference DIP switch settings Switch ON DIP Switch 1 1 1 117 page length 12 page length Normal STAR mode Italic STAR mode Ben Character Set 1 mod
2. 11 BASIC MAINTENANCE As almost any good mechanic will tell you dust and heat are prime enemies of any mechanism and SG 10 15 is no exception The best maintenance 1 preventive So to start with we hope you ve found a clean dust free location with a comfortable temperature range for both you and your computer printer sys tem Chapter 1 gives you further tips on locating SG 10 15 CLEANING SG 10 15 The second rule for long life is periodic cleaning Both inside and outside of the case and covers respond gratefully to periodic cleaning with a damp rag and alcohol Do this whenever the case appears to be getting dirty always being careful to avoid dripping alcohol on the printer mechanism To remove dust and paper lint from inside the printer areas it s best to use a soft brush but be very very careful not to bend or injure any electronic parts or wiring as they are vulnerable to a heavy handed touch Besides the periodic cleanings the only other maintenance you ll likely encounter will be replacing a blown fuse or placement of the print head after a long period of use REPLACING A FUSE How can you tell when you ve blown a fuse Well when the printer won t operate and the power lamp on the control panel isn t lit even though you re sure that the power switch is on and the printer is plugged in it s likely a blown fuse To check the fuse you start by turning the power switch off and unplugging t
3. TUE Nh es VORNE SN APPENDIX 5 CODES Standard characters Decimal STAR mode IBM 1mode IBM 2mode Function 0 NUL 3 4 5 6 7 BEL 8 BS 9 10 11 12 13 14 so 15 51 17 DCI 18 DC2 19 DC3 20 DC4 21 24 CAN 27 5 30 RS 32 33 34 35 36 37 38 NUL BEL BS HT LF CR so 51 DCI DC2 DC3 DC4 CAN ESC RS NUL DCI DC2 DC3 DC4 CAN ESC RS c SI dd 1 End tab settings Bell Backspace Horizontal tab Line feed Vertical tab Form feed Carriage return Expanded print on Condensed print on On line Pica pitch Off line Expanded print off Cancel line Escape End macro Space This character may be different if you are using an international character set other than the USA set The characters for each set are shown on page 132 Decimal 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 X 2 e zm gt STAR IBM 1mode IBM 2mode Function Apostrophe Comma Hyphen Period This character may be different if you are using an international character set other than the USA set The characters for each set are shown on page 132 130 Decimal STAR mode IBM imode IBM 2mode Function 82 pa 2 83 5 5 5 85 id Y
4. 34 This command causes all subsequent printing to be done with the NLQ Near Letter Quality character set This character set cannot be used in conjunction with other font styles or special print modes except for un derlining You can set NLQ characters as the power on default by turning DIP switch 1 4 off Chapter 5 158 PURPOSE Cancel the NLQ character set CODE STAR mode lt ESC gt 5 4 27 66 5 hex ASCII 1B 42 05 IBM mode lt gt 792 decimal ASCH 27 53 hex ASCII 1 35 REMARKS This command causes the printer to cancel the NLQ character set and return to the standard also known as draft character set REFERENCE Chapter 5 Font pitch controls PURPOSE Set the print pitch to pica 10 characters inch CODE STAR mode lt ESC gt B 1 decimal ASCH 27 66 1 ASCH 1 42 01 IBM mode lt ESC gt decimal ASCII 27 80 hex ASCH 1 50 REMARKS This command causes all subsequent printing to be done in pica type This command also sets the maximum number of print columns to 80 on the SG 10 and 136 on the SG 15 You can select pica type as the power on default by turning DIP switch 1 3 on REFERENCE Chapter 5 159 PURPOSE CODE STAR mode decimal ASCH hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM m
5. ii fn t 203 IBM 2 M N A Standard ASCII Codes Character mode Decimal Hexadecimal Binary STAR IBM 1 IBM 2 120 78 0111 1000 x 121 79 0111 1001 y 122 7A 0111 1010 Es 123 7 0111 1011 2 a 124 7 0111 1100 125 70 0111 L101 2 3 126 7 01111110 127 7k Ol tI DEL DEL DEL 128 80 1000 0000 NUL NUL 5 129 81 1000 0001 130 82 1000 0010 B 131 83 1000 0011 132 84 1000 0100 a 33 85 1000 0101 134 86 1000 0110 2 135 87 10000111 BEL BEL 136 88 1000 1000 BS BS 137 89 1000 1001 HT HT 138 8A 1000 1010 LF LE 139 8B 1000 1011 VT VT 1 140 8 1000 1100 FF 3 141 8D 1000 1101 CR CR i 142 8E 1000 1110 so so 143 8F 1000 1111 SI SI 144 90 1001 0000 145 91 1001 0001 DCI DCI 146 92 1001 0010 DC2 147 93 1001 0011 DC3 DC3 148 94 10010100 DC4 DC4 8 149 95 1001 0101 150 96 1001 0110 E 151 97 1001 0111 ti 152 98 1001 1000 v 153 99 1001 001 ce 154 9A 1001 1010 L 155 9B 1001 1011 ESC ESC t 156 9C 1001 1100 157 1001 1101 M 158 9E 1001 1110 RS RS R 159 9F 1001 1111 f 160 A0 1010 0000 SP 21 161 Al 1010 0001 s i 162 2 1010 0010 2 163 A3 1010 0011 P 204 1 j a RSA En ET A E a E i Ti OAN Sa ELE D i e e ee E a A EO re Standard ASCH Codes Decimal Hexadecimal Binary 164 165
6. lt ESC gt 2 27 50 1B 32 N A This command sets the actual distance the paper advances during all subsequent line feeds to 1 6 inch Chapter 6 Change the line spacing to 72 inch lt ESC gt A n 27 65 n 1B 41 n N A This command sets the distance the paper advances during all subsequent line feeds to n 72 inch The value of n must be between 0 and 255 Chapter 6 171 PURPOSE CODE STAR mode IBM mode decimal ASCH hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode IBM mode decimal hex ASCH REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode REMARKS REFERENCE Define the line spacing to 72 inch N A lt ESC gt A n 27 65 1 41 This command defines the distance the paper advances during all subsequent line feeds to n 72 inch The value of n must be between 0 and 255 This command must be used in conjunction with lt ESC gt 2 which acti vates the lt ESC gt A definition Chapter 6 Use lt ESC gt definition N A lt ESC gt 2 27 50 1B 32 This command activates the line spacing defined in the lt ESC gt A n command If the lt ESC gt A command has not been defined the line spacing is changed to 1 6 inch Chapter 6 Change the line spacing to n 144 inch lt ESC gt 3 n 27 51 1 33
7. paper to ad vanced to the next vertical tab position or the top of the next page whichever it finds first The vertical tab positions are not set upon power on Chapter 7 Set vertical tab positions lt ESC gt nin2n3 0 27 80 nl n2 n3 0 50 nl 2 3 00 lt ESC gt 2 3 0 27 66 nl n2 n3 0 1 42 nl n2 n3 00 This command cancels all current vertical tab positions and sets those defined at lines n n2 n3 The maximum number of vertical tab positions allowed is 20 The ASCII 0 character is used as a command terminator Fach vertical tab position must be between 1 and 255 and they must be specified in as cending order Chapter 7 177 PURPOSE Advance the paper lines CODE STAR mode lt ESC gt decimal ASCII 27 97 n hex ASCII 1B 61 n IBM mode lt ESC gt decimal 27 97 1 61 REMARKS This command causes the printer to advance the paper n lines It does not however change the current value of the vertical tab positions The value of n must be between 1 and 255 REFERENCE Chapter 6 Chapter 7 COMMANDS TO CONTROL HORIZONTAL POSI TION OF PRINT HEAD PURPOSE Return print head to home position Carriage Return CODE STAR mode lt CR gt decimal ASCII 13 00 lt gt decimal ASCII 13 hex ASCII REMARKS T
8. 86 V 87 W 88 x 2 89 Y Y V ot t 93 1 1 2 94 i 9 5 gt je 96 t 97 3 98 2 5 1 x 99 ER C C 100 3 d 101 ge 102 103 2 104 h 105 1 1 106 4 2 4 107 3 k k 108 1 1 109 m 110 n n n 111 o 112 113 2 J 9 114 p a 115 E 116 t t 117 LA Li Li 118 v s 119 7 Y 120 E 121 gt 122 2 These characters may be different if you are using an interna tional character set other than the USA set The characters for each set are shown on the next page 131 Decimal STAR mode IBM imode IBM 2mode Function 123 t 124 125 3 3 E 126 Si ne 127 DEL DEL DEL Delete These characters may be different if you are using an interna tional character set other than the USA set The characters for each set are shown below International character sets Decimal USA France Germany England Denmark Sweden Italy Spain 35 64 91 92 93 8 94 96 123 124 125 Y 126 4 COO 2 urn an saw un z gt FIDO D ON Ct D O DI Mm Mb t O Or 20m Special and block graphics characters Decimal STAR mode IBM 1mode IBM 2mode Function 128 NUL NUL c End tab settings 129 130 131 132 133 134 135 BEL BEL 136 BS BS 137 HT H
9. M n lt ESC gt Q n CHR 9 lt ESC gt CHR 0 lt ESC gt b n CHRS 8 Download character commands lt ESC gt 1 n n2 mO ml lt ESC gt ee 0 lt ESC gt 1 lt gt 0 Commands to control graphics lt ESC gt nl n2 m2 lt ESC gt L nl n2 ml m2 lt ESC gt y nl n2 ml m2 lt ESC gt 2 n n2 ml m2 Carriage return Set left margin at column Set right margin at column n Horizontal tab Set horizontal tabs Tab over columns Backspace E 11 Define download characters Copy standard ROM characters to down load RAM Use download characters Cancel download characters Quadruple density graphics lt ESC gt g nO nl n2 ml m2 Macro instruction commands lt ESC gt CHR 30 lt ESC gt p Other function codes ESC gt gt 9 lt ESC gt e 5 gt 5 127 CHR 24 CHR 19 CHR 17 CHR 7 lt ESC gt 0 lt ESC gt Y 1 lt ESC gt 1 lt ESC gt 0 lt ESC gt 8 lt gt 9 lt ESC gt U 1 lt ESC gt U 0 lt ESC gt lt lt ESC gt Master graphics select Define macro Use macro Set eighth bit to 1 Set eighth bit to 0 Accept eighth bit as is Delete last character Sounds bell Disable bell Enable bell Print zero with slash Pri
10. 222 DE 11011110 Fi 223 101111 224 1110 0000 x E 225 E 1110 0001 226 2 1110 0010 r r 227 E3 1110 0011 228 4 1110 0100 E 229 E5 1110 0101 230 E6 1110 OLIO m 231 E7 11100111 yY 232 E8 1110 1000 5 5 233 9 1110 1001 e a 234 EA 11101010 a n 235 EB 11101011 5 8 236 EC 11101100 oo 5 237 ED 1110110 238 1110 1110 T 239 EF 11101111 240 0 1111 0000 241 111 0001 242 F2 1111 0010 2 E 243 F3 0011 r 5 i 244 F4 1111 0100 245 5 0101 J J 246 6 11110110 247 F7 1111 0111 gt E 248 F8 1111 1000 249 9 1111 1001 250 FA 11111010 251 FB 11111011 4 206 Standard Codes Character mode Decimal Hexadecimal Binary STAR IBM 1 IBM 2 252 FC 1100 A 253 FD 11111101 7 254 1111 1110 255 TINI 207 APPENDIX G TECHNICAL SPECIFICATIONS Printing Printing method Serial impact dot matrix Printing speed 120 characters per second in 10 CPI Print buffer 2K bytes SG 10 Expandable to 6K bytes with optional buffer board is 16 K bytes SG 15 only Paper feed 12 lines second at 1 6 inch line spacing Sprocket or friction feed Printing direction Bidirectional logic seeking Unidirectional in bit image and NLQ modes Character set 96 standard ASCII characters 88 standard
11. This code resets the printer to on line state thus allowing it to receive and process all subsequent characters and function codes This is not the same as pushing the ON LINE button When the ON LINE light is out the printer will not respond to lt DC1 gt Chapter 8 191 5 4 decimal ASCII hex ASCH IBM mode decimal ASCH hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Sound printer bell lt BEL gt 7 07 lt BEL gt 7 07 This command causes the printer tone to sound for approximately one fourth second Chapter 8 Disable the printer bell ESC 0 27 89 0 1 59 00 lt ESC gt 0 27 121 0 1B 79 00 This command causes the printer to ignore the lt BEL gt character NOTE The character 0 decimal code 48 hexadecimal code 30 can be used instead of 0 Chapter 8 192 CODE STAR mode decimal ASCH hex ASCI IBM mode decimal hex REMARKS REFERENCE PURPOSE CODE STAR mode decimal hex IBM mode decimal ASCII hex REMARKS REFERENCE Enable the printer bell lt ESC gt 1 27 89 1 iB 59 01 ESC 1 2 121 1 1 79 01 This command causes the printer to respond
12. This command sets the actual distance the paper advances during all subsequent line feeds to n 144 inch The value of must be between 0 and 255 Chapter 6 172 CODE STAR mode IBM mode decimal ASCH hex ASCID REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCH IBM mode REMARKS REFERENCE PURPOSE CODE STAR mode IBM mode decimal ASCH hex ASCII REMARKS REFERENCE Change the line spacing to 2 216 inch N A lt ESC gt B d n 27 51 n 1B 33 n This command sets the actual distance the paper advances during all subsequent line feeds n 216 inch The value of n must be between 0 and 255 Chapter 6 Send a one time line feed of 2 144 inch ESC gt j n 27 74 n 1B 4A n N A This command causes the printer to advance the paper 7 144 inch It does not change the current value of the line spacing The value of must be between 0 and 255 Chapter 6 Send a one time line feed of 2 216 inch N A lt ESC gt J n 27 74 n 1B 4A n This command causes the printer to advance the paper n 216 inch It does not change the current value of the line spacing The value of n must be between 255 Chapter 6 173 Form feed controls PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode deci
13. 233 a e a 234 i 235 5 9 236 237 Ba 238 oll 239 fi fi 240 r 241 m t 242 1 5 243 i 244 245 J 246 5 T 247 4 248 249 4 250 251 r 4 d 252 a n fi 253 2 254 255 135 APPENDIX CHARACTER STYLE CHARTS Standard Characters 138 CT LLLLLLI 11919 i ll lal Mj LT lal gt TET TOT TETS 139 140 35 64 94 International Characters 92 96 123 124 141 142 Italic Characters 143 11111311 144 1 p i 00001 EBu 2 08 145 Italic International Characters Germany England Denmark Sweden 146 France USA 96 123 124 125 126 147 181 8 18 Special Characters for STAR mode 148 2
14. ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Set the printer to expanded print lt ESC gt 1 27 87 1 1 57 01 lt ESC gt 1 27 87 1 1 57 01 This command causes all subsequent printing except NLQ characters to be in expanded type The size of the type is determined by the normal type size at the time the command is sent 2 Normal Expanded Pica 10 CPI 5 Elite 12 CPI 6 CPI Condensed 17 CPI 8 5 CPI NOTE The character 1 decimal code 49 hexadecimal code 31 can be used instead of ASCII 1 Chapter 5 Set the printer to expanded print for the re mainder of the current line lt SO gt 14 0E lt SO gt 14 This command causes the printer to print expanded characters until a carriage return is sent It can also be cancelled with lt DC4 gt The character widths are shown above in the description of lt ESC gt 1 command Chapter 5 163 5 4 decimal ASCH hex ASCH IBM mode decimal ASCH hex ASCH REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII
15. Commands to control graphics lt ESC gt nl n2 ml m2 Normal density graphics lt ESC gt L nl n2 ml m2 Double density graphics lt ESC gt n2 ml m2 Double speed double density graphics lt ESC gt Z nl n2 ml m2 Quadruple density graphics lt ESC gt n0 nl ml m2 Master graphics select Macro instruction commands lt ESC gt CHR 30 Define macro lt ESC gt Use macro Other function codes lt ESC gt gt Set eighth bit to 1 lt ESC gt Set eighth bit to 0 lt ESC gt H Accept eighth bit as is CHR 127 Delete last character CHR 24 Cancel line CHRS 19 Off line CHR 17 On line CHR 7 Sounds bell lt ESC gt 0 Disable bell lt ESC gt 1 lt ESC gt 1 Print zero with slash lt ESC gt 0 Print zero without slash lt ESC gt 8 Ignore paper out signal lt ESC gt 9 Enable paper out signal lt ESC gt U 1 Unidirectional print lt ESC gt U 0 Bidirectional print lt ESC gt lt One line unidirectional print lt ESC gt Reset the printer 235
16. ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt n1 n2 L n n2 N O CHR 0 R n 570 S 1 T U 0 U 0 1 nl n2 Z nl n2 0 ASSE b n g nO n2 a n p 0 4 9 rn y nl n2 11 y 0 ty 1 27 nl n2 Print normal density graphics Print double density graphics Set left margin at column n Elite print Set the bottom margin at n lines Cancel top and bottom margins Set vertical tabs Pica print Set right print margin at column n Set top margin at line n Select an international character set Select superscripts Select subscripts Cancel super and subscripts Bidirectional print Unidirectional print Cancel expanded print Select expanded print Disable bell Enable bell Print double density graphics with doublespeed Print quadruple density graphics Print zero without slash Print zero with slash Advance line feeds Tab over n columns Master graphic mode select Set left margin at column n Cancel proportional spacing Select proportional spacing Set top margin at line n Print double density graphics with double speed Disable bell Enable bell Print Quadruple density graphics In the item of Mode STAR indicates the STAR mode and IBM indicate
17. TO CONTROL PRINT STYLE These commands are used to control the font style the print pitch and special effects Font style controls PURPOSE CODE STAR mode decimal ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Select the standard character set lt ESC gt 5 27 53 1 35 lt ESC gt 0 27 73 0 1 49 00 This command causes the printer to cancel the italic character set and select instead the standard character set You can select the standard character set as the power on de fault by turning DIP switches 1 2 and 2 2 on NOTE The character 0 decimal code 48 hexadecimal code 30 can be used instead of ASCII 0 Chapter 5 Select the italic character set lt ESC gt 4 27 52 34 lt ESC gt P 1 27 73 1 1 49 01 This command selects the character set You can select the italic character set as the power on default by turning DIP switch 1 2 off and DIP switch 2 2 on NOTE The character 1 decimal code 49 hexadecimal code 31 can be used instead of ASCII 1 Chapter 5 156 CODE STAR mode IBM mode decimal ASCH hex REMARKS REFERENCE PURPOSE CODE STAR mode IBM mode decimal ASCH hex ASCH REMARKS REFERE
18. gt 27 72 48 ESC 27 72 1B 48 This command cancels double strike printing and returns the printer to its previous print style Chapter 5 165 STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Select emphasized printing lt gt 27 69 1 45 lt 5 gt 27 69 1 45 This command causes all subsequent char acters except NLQ characters to be printed in emphasized print Emphasized print can only be used with pica sized characters or enlarged pica sized characters 10 CPI and 5 CPI and cannot be used with superscripts or subscripts Chapter 5 Cancel emphasized printing lt ESC gt 27 70 1 46 lt gt SE 27 70 IB 46 This command cancels emphasized printing and returns the printer to normal printing Chapter 5 166 STAR mode decimal ASCH hex IBM mode decimal REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Select underlining lt ESC gt 2 1 27 45 1 1B 2D 01 lt ESC gt 1 27 45 1 1B 2D 01 This command causes
19. m2 etc must follow n2 The ASCII value of these characters determine which pins are fired for each character Chapter 10 185 PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Select graphics modes lt ESC gt g nO 2 m2 m3 27 103 nl n2 ml m2 m3 IB 67 n2 m2 m3 ESC 1 n2 m2 m3 27 42 nl n2 m2 m3 B 2A nO nl n2 ml m2 m3 This command selects one seven possible graphics modes depending on the decimal or ASCII value of n0 The values of nl and n2 are the same as in normal density graphics The correct number of graphics data bytes ml m2 etc must follow n2 The ASCII value of these characters deter mine which pins are fired for each character The value of 0 must be between 0 and 6 See the Dot Graphics Chart Table 10 2 for nO modes Chapter 10 MACRO INSTRUCTION COMMANDS PURPOSE CODE STAR mode decimal hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Define macro instruction lt ESC gt da lt RS gt 27 43 1 30 1 2 lt ESC gt di vi 93 lt RS gt 27 43 b 30 1B 2B 1 This command cancels any existing macro instruction and replaces it with the instruc tion defined The maximum number of characters allowed in the macro instruction 15 16 The lt RS gt characte
20. programs To make a listing of your BASIC programs on SG 10 15 from your Apple II computer you must take the following steps 1 Be sure that the program that you wish to list is in the memory of the Apple II 2 Direct the output to the printer by typing PRZI 3 Type LIST to start the listing 4 When the listing is finished type PR 0 to redirect the output to the screen 226 CONNECTING WITH 5 80 5 All that s required to connect SG 10 15 to your TRS 80 is cable It is available at your Star dealer Table J 3 TRS 80 Model I parallel cable 26 3 15 _ TRS 80 Model Table 1 4 TRS 80 Model parallel cable TRS 80 BASIC You may have to initialize your Model II to direct LPRINT statements to the printer Use the SYSTEM FORMS command to do it TRS 80 uses another version of Microsoft BASIC Most of the programs in this book will work just as they are but the TRS 80 does have a few unique problem codes They are 0 10 11 and 12 None of these are passed properly to the printer You can bypass the TRS 80 s BASIC and send these codes directly to the printer with the following short routine The 227 variable N must be set equal to the code that you wish to pass in our example it s 0 90 N 0 100 IF PEEK 14312 lt gt 63 THEN 100 110 14312 N Or you can use this special printer driver that will solve all your problems Just run this progr
21. 01 0010 0010 0010 0011 0010 0100 0010 0101 0010 0110 0010 0111 0010 1000 0010 1001 0010 1010 0010 1011 0010 1100 0010 1101 0010 1110 0010 1111 0011 0000 0011 0001 0011 0010 0011 0011 0011 0100 0011 0101 0011 0110 0011 0111 0011 1000 0011 1001 0011 1010 0011 1011 0011 1100 0011 1101 0011 1110 0011 1111 0100 0000 0100 0001 0100 0010 0100 0011 0100 0100 0100 0101 0100 6110 0100 0111 0100 1000 0100 1001 0100 1010 0100 1011 STAR SP Character IBM mode 1 IBM 2 Standard ASCHE Codes Decimal Hexadecimal Binary 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 4 4D 4E 4F 5 5D 5 60 61 62 63 64 65 66 67 68 69 6B 6C 6D 6E 6 70 71 72 73 74 75 76 77 0100 1100 0100 1101 0100 1110 0100 1111 0101 0000 0101 0001 0101 0010 0101 0011 010 0100 0101 0101 0101 0110 01010111 0101 1000 0101 1001 0101 1010 0101 1011 0101 1100 0101 1101 0101 1110 0101 1111 0110 0000 0110 0001 0110 0010 0110 0011 0110 0100 0110 0101 0110 0110 0110 0111 0110 1000 0110 1001 0110 1010 0110 1011 0110 1100 0110 1101 0110 1110 0110 1111 0111 0000 0111 0001 0111 0010 0111 0011 0111 0100 0111 0101 0111 0110 0111 0111 STAR m ri e Di Character mode IBM 1 1
22. 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 4 5 8 9 2 3 B4 5 B6 B7 8 9 0 3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF 1010 0100 1010 0101 1010 0110 1010 0111 1010 1000 1010 1001 1010 1010 1010 1011 1010 1100 1010 1101 1010 1110 1010 1111 1011 0000 1011 0001 1011 0010 1011 0011 1011 0100 1011 0101 1011 0110 1011 0111 1011 1000 1011 1001 1011 1010 1011 1011 1011 1100 1011 1101 1011 1110 1011 1111 1100 0000 1100 0001 1100 0010 1100 0011 1100 0100 1100 0101 1100 0110 1100 0111 1100 1000 1100 1001 1100 1010 1100 1011 1100 1100 1100 1101 1100 1110 1100 1111 STAR 3 bd He di hi Po 52 1 1 Standard ASCII Codes Character mode Decimal Hexadecimal Binary STAR IBM 1 IBM 2 208 DO 1101 0000 1 L 209 DI 1101 0001 A T T 210 2 1101 0010 T T 211 D3 1101 0011 t l 212 D4 1101 0100 t L L 213 D5 1101 0101 Fi 214 06 1101 0110 215 07 1010111 216 D8 1101 1000 t 1 217 D9 1101 1001 E 4 1 218 1101 1010 219 DB 1101101 8 220 DC 1101 1100 m 221 DD 11011101
23. 35 239 149 233 237 228 252 e n e a e vi Std Dad 150 gt e e o n e e e m m Special Characters for IBM mode 9 9 0 0 1 215 219 223 151 e Del e o e e e N N N N N N 5 5 1 LLLLLLIT 2 il iili al la Lii 152 a LLLI I IP Pert LI 153 FTLALILIT 24 CPTO Special Characters for IBM character set 2 154 153 5 APPENDIX D FUNCTION CODE REFERENCE The purpose of this Appendix is to provide a quick reference for the various functions available on the SG 10 and SG 15 The descriptions of the codes appear in the following format PURPOSE Tells what the function code does CODE Control code mnemonic decimal ASCII ASCII decimal equivalent hex ASCID Hexadecimal equivalent REMARKS Details how the command is used REFERENCE Tells which chapter of the manual describes the command in greater detail There are several commands that require that you specify a value or values to SG 10 15 In these cases we have used an italic n m to indicate a variable You should insert the ASCII code for proper value here COMMANDS
24. 44 inch line feed Set n 216 inch line feed Italic print Select NLQ characters Cancel italic print Cancel NLQ characters Select character set 2 Select an international character set Select character set 1 Ignore paper out detector Enable paper out detector Copy ROM characters to down load RAM One line unidirectional print Set eighth bit to 0 Set eighth bit to 1 Master print mode select Use macro Reset the printer Set n 72 inch line feed Define n 72 inch line feed Pica print Elite print Condensed print Select NLQ characters Cancel NLQ characters Set vertical tabs Set page length to n lines Set page length to n inches Set horizontal tabs Select emphasized print Cancel emphasized print Select double strike print Cancel double strike print Cancel italic print Italic print Single line feed of n 144 inch Single line feed of n 216 inch 5 STAR IBM STAR IBM STAR STAR IBM IBM STAR IBM IBM STAR IBM IBM STAR NOTE lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt gt lt ESC gt lt gt lt gt ee 9 lt gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt gt lt gt 5 lt ESC gt lt gt lt ESC gt lt ESC gt lt ESC gt lt
25. 5usec Figure H 1 SG 10 15 interface timing diagram Signal Name Circuit Example 74LS Compatible DATA 1 DATA 8 4 7kQ To Printer 74LS Compatible 4 7kQ STROBE 1000 To Printer 741 5 Compatible BUSY ACK 4 7kQ From Printer Figure H 2 Typical interface circuit seconds This signal acknowledges the receipt of the data and so is called the for acknowledge signal Pin 11 reports when the SG 10 15 1 not able to receive data The signal is called BUSY When this signal is high SG 10 15 cannot receive data This signal will be high during data transfer when the printer is off line and when an error condition exists SG 10 15 will report that it has run out of paper by making the PAPER OUT signal on pin 12 high This pin can be held low by turning DIP switch 2 1 off When the printer is in the on line state 13 is held high This signal SELECTED tells the computer that the printer is ready to receive data Pins 14 15 and 34 36 are not used while pins 16 17 19 30 214 Table 1 Parallel interface pin functions re 1 STROBE Signals when data is be read Signal goes from HIGH to LOW for at least 0 5 microseconds when data 15 available DATA IN DATA2 DATA3 D signals provide t to ei 115 O el data DIM signal is at HIGH level for a logical 1 and at a LOW level for a logical 0 DATA6 IN 8 DATA7
26. 9 DATA8 A9 mion LOW pulse acknowledges receipt of data chassis ground isolated from logic Il BUSY When this signal goes LOW the printer is ready to accept data 12 PAPER OUT This signal is normally LOW It will go OUT HIGH if SG 10 15 runs out of paper This signal can be held LOW en by turning DIP switch 2 1 En y This signal is HIGH when the printer is on line 415 UNG 16 SIGNAL i GND 17 CHASSIS BEE RESET When this signal goes LOW the printer is reset to its power on condition 32 ERROR OUT This signal is normally HIGH This signal goes LOW to signal that the printer cannot print due to an error condition EXT GND j Extemalgound 34 36 NC Unsd and 33 are grounded Pin 18 is connected to 5VDC supply is the printer Pin 31 can be used to reset the printer If this signal RESET goes low the printer will reinitialize Pin 32 1s used to report error conditions in the printer This signal ERROR is high during normal operation and goes low to report that the printer cannot print due to an error condition 215 APPENDIX I SERIAL INTERFACE SPECIFICATIONS SG 10 15 provides a very flexible RS232C serial interface as an option It can communicate at rates from 150 to 19 200 baud bits per second and supports four different kinds of handshaking This interface can also function as a 20mA current loop int
27. DIP switches are readily accessible from the side They are located on the left side of the control logic board and can be seen on the left side of the printer To change the setting of a switch use a ballpoint pen or a similar object The on position for a switch is upwards of the printer off is downwards Never change the settings of any of the DIP switches when the power is on Turn off both the printer and your computer The individual switches on DIP switch 1 are called 1 1 through 1 8 those on switch 2 are 2 1 through 2 4 Table A 1 summarizes the functions of DIP switches 1 and 2 Table 1 switch settings ON 11 page length 12 page length Character Set 1 IBM mode Character Set 2 IBM mode Normal 1 5 Ignore download characters Enabe download characters International character set selection see Table A 2 23 Note Switch 2 4 is not used for SG 15 DIP switch 1 controls the default settings for printing functions DIP switch 2 controls the interface SWITCH FUNCTIONS Switch Function 1 1 Switch 1 1 sets the default page length for SG 10 15 If switch 1 1 is ON the page length is set to 117 When switch 1 1 is OFF the page length is set to 12 This switch is set ON at the factory 1 2 This switch selects the default character set according to the condition of DIP switch 2 2 If this switch is ON then the default character set 1 N
28. L PROTOCOLS SG 10 15 has four serial protocols selected by DIP switches 3 4 and 3 5 Figvre I 1 shows a typical byte of serial d ta and Figure I 2 shows timing charts for the 4 protocols Serial busy protocols In the serial busy protocols SG 10 15 uses DTR pin 20 and RCH pin 11 to signal to the computer when it is able to accept 219 data These two pins ON when SG 10 15 is ready to accept data In the I byte mode they go OFF after each character is received In the 1 block mode they only go OFF when SG 10 15 s buffer approaches capacity In both cases they will stay OFF if the buffer is too full 10 accept more data XON XOFF protocol The XON XOFF protocol uses the ASCII characters lt gt and lt DC3 gt sometimes called and respectively to communicate with the computer When SG 10 15 s buffer approaches capacity SG 10 15 will send a ASCII 19 on TXD pin 2 to tell the computer that it must stop sending data When SG 10 15 is able to receive more data it sends a DCI ASCII 17 on TXD The computer can then send more data until SG 10 15 sends another DC3 protocol In the protocol SG 10 15 sends 6 TXD pin 2 each time that it is prepared to receive a byte of data SPACE MARK N Earliesi point at which pexi character start Figure I 1 Typical data byte on the serial interface 220 Serial busy p
29. NCE Select the character set 1 N A lt ESC gt 7 27 55 1B 37 This command causes the printer to cancel character set 2 and select instead character set 1 You can select character set 1 as the power on default by turning DIP switch 1 2 on and DIP switch 2 2 off Chapter 8 Select 2 character set N A lt ESC gt 6 27 54 1 36 This command selects character set 2 You can select character set 2 as the power on default by turning DIP switches 1 2 and 2 2 off Chapter 8 157 PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE STAR mode decimal hex IBM mode decimal hex ASCID REMARKS REFERENCE Select an international character set lt 5 gt 27 55 1 37 lt ESC gt R n 27 82 1 52 This command causes the printer to select an international character set determined by the value of n as shown in the table below n Character set n Character set 0 U S A 4 Denmark 1 France 5 Sweden 2 Germany 6 Italy 3 England 7 Spain You can select a particular international character set as a power on default by ad justing the settings of DIP switches 1 6 1 7 and 1 8 Chapter 8 Select the NLQ Near Letter Quality char acter set lt ESC gt 4 27 66 4 42 04 lt ESC gt 4 27 52
30. O nl n2 Define download character Copy ROM characters to down load RAM Master graphics mode select lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt STAR lt ESC gt IBM lt ESC gt STAR lt 5 gt IBM lt ESC gt STAR lt ESC gt IBM lt ESC gt STAR lt 5 gt IBM lt ESC gt IBM lt ESC gt STAR lt 5 gt IBM lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt STAR lt 5 gt IBM lt ESC gt lt ESC gt STAR lt ESC gt IBM lt ESC gt STAR lt 5 gt STAR lt ESC gt STAR lt 5 gt STAR lt 5 gt STAR lt 5 gt IBM lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt IBM lt gt IBM lt ESC gt STAR lt 5 gt 1BM lt ESC gt CHR 30 Define macro soy gr ug 97 biis 3 n 4 208 7 n urn ug 000 PM 7 CHR n dod Lu A n 1 2 CHRS 3 CHR 4 5 CHR 0 CE n CHR 0 n CHRS 0 I 0 I 1 IU n Stop underlining Start underlining Set 1 8 inch line feed Set 7 72 inch line feed Set 1 6 inch line feed Use lt ESC gt A definition Set n 1
31. PURPOSE CODE STAR mode decimal ASCH hex ASCII decimal hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decinal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Delete the last character sent lt DEL gt 127 lt DEL gt 127 7 This command deletes the last character ceived This command is ignored if the last character received has already been printed or if the last character received was all or part of a function code Chapter 8 Cancel line lt CAN gt 24 18 lt CAN gt 24 18 This command deletes the last line in the print buffer at the time the command is used Chapter 8 190 PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCIT hex ASCII IBM mode decimal ASCII hex ASCIT REMARKS REFERENCE Set printer off line lt gt 19 13 lt DC3 gt 19 13 This command causes the printer to set itself off line disregarding all subsequent charac ters and function codes with the exception of lt DC1 gt which will return the printer to an on line state This is not the same as pushing the ON LINE button When the ON LINE light is out the printer will not respond to lt DC1 gt Chapter 8 Set printer on line lt DC1 gt 17 li lt DC1 gt 17 11
32. REMARKS REFERENCE Set the printer to expanded print for the remainder of the current line lt ESC gt 50 27 14 1B lt ESC gt 50 27 14 1 Same lt SO gt above Chapter 5 Cancels expanded print lt ESC gt 0 27 87 0 1 57 00 lt gt 0 27 87 0 1 57 00 This command resets the print size to what ever it was before being set to expanded print NOTE The character 0 decimal code 48 hexadecimal code 30 can be used instead of ASCII 0 Chapter 5 Cancels expanded print lt DC4 gt 20 14 lt DC4 gt 20 14 This command cancels one line expanded printing set with lt SO gt Chapter 5 164 Special print modes PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Select double strike printing lt ESC gt G 27 71 1 47 lt ESC gt 27 71 1 47 This command causes all subsequent acters except NLQ characters to be printed in double strike Double strike causes all characters to be printed once the paper moved up 1 144 inch the characters re printed Shifting in and out of double strike mode on the same line can cause the line to slant slightly Chapter 5 Cancel double strike printing lt ESC
33. S 4 PRI To return output to the screen the command is PR 0 in the same form that works for To allow line length longer than the Apple II usually uses you must add the following statement to your programs 225 20 PRINT 9 255 This allows lines of any length to be sent to the printer and is especially important for dot graphics The number 255 in the BASIC statement above could be replaced by any number from 0 to 255 and would set the line length to that value Two codes are a particular problem on the Apple II CHR 7 and CHR 9 The computer will not send these codes to SG 10 15 Try to avoid using these in dot graphics programs The Apple II computer uses CHR 9 as a printer initialization code It won t send it on to the printer There is a way to bypass this problem however You can change the printer initialization code to a value other than CHR 9 like this PR 1 PRINT CHRS 9 CHR 1 This makes CHR 1 the printer initialization code and transfers the problems to that code and allows you to use SG 10 15 s tabs There is one more way to sneak problem codes past the Apple II s operating system and that s to poke the codes directly to the output port To send ASCII code 9 for example you could do this 100 9 110 IF 49601 gt 127 THEN 110 120 POKE 49296 N Line 110 checks the printer s status and when it s okay line 120 pokes the code to the printer B Listing
34. SCII 1 Chapter 8 194 CODE STAR mode decimal ASCH hex ASCH IBM mode decimal ASCH hex REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Cancel uni directional printing lt ESC gt U 0 27 85 0 1B 55 00 lt ESC gt U 0 27 85 0 1 55 00 This command cancels unidirectional print ing and returns to the standard bidirectional printing which is considerably faster NOTE The character 0 decimal code 48 hexadecimal code 30 can be used instead of ASCII 0 Chapter 8 Select one line unidirectional printing lt ESC gt lt 27 60 3 lt ESC gt lt 21 60 1 3 This command immediately returns the printhead to the left margin The remainder of the line is printed from left to right Normal bidirectional printing resumes following a carriage return Chapter 8 195 STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS Initialize printer lt ESC gt 27 64 1B 40 lt ESC gt 27 64 1B 40 This command reinitializes the printer The print buffer is cleared and the form length character pitch character set line feed pitch and international character set are all reset to the values defined by their respec
35. T 138 LF LF 139 140 141 CR 142 so so 143 1 51 144 145 DCI DCI Bell Backspace Horizontal tab Line feed Vertical tab Form feed Carriage return Expanded print on Condensed print on Th De DI ef reo mi On line 132 1 1 Decimal 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 STAR mode IBM 1mode IBM 2mode Function DC DC3 DC4 CAN ESC RS DC DC3 DC4 CAN Ao e Boe J d SAWS Xu DO CI PE jon 22 290 O 1 xo Pe E nonne i pitch Expanded print off Cancel text Escape End macro 133 STAR mode IBM 1mode IBM 2mode Function Decimal 188 ern 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 4 4 208 I 209 210 211 212 ile Em E Gm c NN 216 217 218 219 220 221 222 134 Decimal STAR mode IBM 1mode IBM 2mode Function 223 f 224 X X 225 3 226 227 ir 228 229 Na 230 H H 231 232
36. al density graphics The correct number of graphic data bytes m1 m2 etc must follow n2 The ASCII value of these characters de termine which pins are fired for each char acter Chapter 10 184 5 4 decimal ASCII hex IBM mode decimal ASCH hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Print double density graphics with double speed lt ESC gt nl n2 ml m2 m3 27 121 nl n2 m2 m3 1B 79 nl 2 ml m2 m3 lt ESC gt Y nl n2 ml m2 m 27 89 nl n2 m2 m3 1B 59 n2 ml m2 m3 This command selects 120 dots per inch column scan bit image graphics mode with double speed The values of n and n2 are the same as in normal density graphics The correct number of graphic data bytes m2 etc must follow n2 The ASCII value of these characters determine which pins are fired for each character Chapter 10 Print quadruple density graphics lt ESC gt 2 nl n2 m2 m3 27 122 nl n2 ml m2 m3 1B 7A nl n2 m2 m3 lt ESC gt Z nil n2 ml m2 m3 27 90 nl n2 ml m2 m3 1B 5 nl n2 ml m2 m3 This command selects 240 dots per inch column scan bit image graphics mode The values of n and n2 are the same as in normal density graphics The correct number of graphic data bytes 717
37. al ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Skip n print positions lt ESC gt b n 27 98 n 1B 62 n lt ESC gt 27 98 1 62 This command causes the print head to ad vance n print positions to the right It does not however change the current value of the horizontal tab positions The value of n must be between 1 and 255 Chapter 7 Move the print head back one print position backspace lt BS gt 8 08 lt BS gt 8 08 This command shifts the print head one column to the left If the print head is at the home position the command is ignored This command can be used to overstrike charac ters Chapter 8 181 DOWNLOAD CHARACTER COMMANDS PURPOSE CODE STAR mode decimal ASCH hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Define download characters into RAM lt ESC gt x 1 nil n2 m0 ml m2 11 27 42 1 ni n2 m0 ml m2 11 1 2A 01 1 2 0 1 2 mil lt ESC gt 4 0 nl n2 m0 ml m2 mll 2f 38 0 ni n2 m0 ml m2 11 1B 26 00 nl n2 ml m2 mll This command is used to set up one or more user defined characters and store them into RAM for later use RAM is cleared when the power is turned off The values of n and n2 specify the range of positions in RAM that the characters are to occupy Valid character positions are any number except the defi
38. all subsequent char acters printed to be automatically underlined Spaces are also underlined NOTE The character 1 decimal code 49 hexadecimal code 31 can be used instead of ASCII 1 Chapter 5 Cancel underlining lt ESC gt 0 27 45 0 1 2D 00 lt ESC gt cdd 0 27 45 0 1 2 00 This command cancels underlining and turns the printer to its previous print style NOTE The character 0 decimal code 48 hexadecimal code 30 can be used instead of ASCI 0 Chapter 5 167 5 4 decimal ASCH hex ASCH IBM mode decimal hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Select superscripts lt ESC gt 5 0 27 83 0 1 53 00 lt gt D 0 27 83 0 1 53 00 This command causes all subsequent char acters to be printed as superscripts While in superscript mode the normal bi directional printing is cancelled and replaced with uni directional printing Printing is also set to double strike mode Superscripts may be used in conjunction with the italic font and in pica elite and condensed pitches It may not however be used in conjunction with em phasized print enlarged print or NLQ characters NOTE The character 0 decimal code 48 hexadecimal code 30 can be used instead of ASCII 0 Ch
39. am first and then any codes sent by a BASIC program will be sent directly to the printer This program is for the TRS 80 Model 5 REM DRIVER FOR TRS 80 III 10 AD 16571 20 FOR 1 0 TO 14 30 READ A POKE AD 1 A 40 NEXT 50 16422 187 60 16423 64 70 DATA 33 232 55 203 126 32 252 33 17 0 57 126 211 251 201 80 END And here is version for the TRS 80 Model I 5 REM DRIVER FOR TRS 80 I 10 AD 16571 20 FOR 1 0 15 30 READ A POKE AD 1 A 40 NEXT I 50 16422 187 60 16423 64 70 DATA 33 232 55 203 126 32 252 33 17 0 57 126 50 232 55 201 80 END Listing programs To list a BASIC program that is in your TRS 80 s memory on SG 10 15 type LLIST This directs the listing to the printer instead of the screen 228 CONNECTING WITH KAYPRO OSBORNE AND OTHER CP M COMPUTERS All that you need to connect SG 10 15 to an Osborne 1 or Kaypro computer is a cable Your Star dealer can provide the cable that you need Table J 5 Kaypro parallel cable SG 10 15 Kaypro Pin No Function Pin No Function STROBE STROBE DATA see DATA2 DATA3 DATA4 DATAS DATA6 DATA7 DATA8 BUSY See eiui SIG GND SIG GND Table J 6 Osborne 1 parallel cable SG 10 15 Osborne 1 Pin No Function Pin No Function DATA DATAO DATAS 5 DATA4 DATA DATAI gt DATAS DATA Oooo 2 DATA6 DATAA
40. apter 5 Select subscripts lt ESC gt 5 1 27 83 1 1 53 01 lt ESC gt 5 27 83 1 1 53 01 This command causes all subsequent char acters to be printed as subscripts The same conditions and restrictions apply for sub scripts as do for superscripts NOTE The character 1 decimal code 49 hexadecimal code 31 can be used instead of ASCII 1 Chapter 5 168 PURPOSE CODE STAR mode decimal ASCH hex IBM mode decimal ASCII hex ASCII REMARKS REFERENCE CODE STAR mode decimal ASCH hex ASCH mode decimal ASCII hex ASCII REMARKS REFERENCE Cancel superscripts and subscripts lt ESC gt T 27 84 1B 54 lt ESC gt 27 84 1 54 This command cancels either superscript subscript mode It also cancels the uni di rectional printing and double strike which the mode had set Chapter 5 Select master print mode lt ESC gt n 27 63 1 lt ESC gt s n 27 33 n iB 21 n This command selects one of sixteen unique print mode combinations determined by the value of n which must be between 0 and 255 See Master Print Chart Table 5 8 for n values Chapter 5 169 COMMANDS CONTROL VERTICAL POSITION OF PRINT HEAD These commands are used to move the paper relative to the lo cation of the print head By moving the paper up the print head in effect moves down
41. ate a carriage return and a line feed before printing the remainder of the line The value for n must be between 1 and 255 Chapter 7 179 5 decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Move the print head to the next horizontal tab position lt HT gt 9 09 lt HT gt 9 09 This command causes the print head to ad vance to the next horizontal tab position The horizontal tab positions are set at pow er on to print positions 8 16 24 etc to the maximum print position Chapter 7 Set horizontal tab positions lt ESC gt D nln2ni 0 27 68 nl n2 n3 0 1B 44 nl n2 n3 00 ESC nIn2n3 0 27 68 nl n2 n3 0 1 44 nl n2 n3 00 This command cancels all current horizontal tab positions and sets those defined at print positions n n2 n3 etc The maximum number of horizontal tab positions allowed is 255 The ASCII 0 character is used as a command terminator Each horizontal tab position must be between 1 and 255 and they must be specified in ascending order Chapter 7 180 5 4 decimal hex ASCII IBM mode decimal ASCH hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decim
42. bit of each subsequent character sent to the printer to logical 0 This code should not be used to transmit printer control codes Chapter 8 Accept the value of the eighth data bit as is lt ESC gt H 27 35 1B 23 lt ESC gt H 27 35 1B 23 This command cancels either setting of the eighth data bit The printer will use the value of the eighth data bit that is sent from the computer This code allows users with a 7 bit interface to resume normal functions after accessing those characters whose ASCII code is greater than 127 Chapter 8 188 CODE STAR mode decimal ASCH hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Print zero with slash 4 27 92 1 1B 5C 01 lt ESC gt 4 1 27 92 1 1B 5 01 This command causes to print zero with slash NOTE The character 1 decimal code 49 hexadecimal code 31 can be used instead of ASCII 1 Chapter 8 Print zero without slash lt ESC gt EN 0 27 92 0 1 5 00 lt 5 gt 0 27 92 0 5 00 This command cancels to print the slashed zero and return to print the normal zero NOTE The character 0 decimal code 48 hexadecimal code 30 can be used instead of ASCH 0 Chapter 8 189
43. e Character Set 2 IBM mode 1 5 10 CPI pica pitch 17 CPI condensed pitch 14 Nom 1 5 lgnore download characters Enabe download characters 1 7 International character set selection see below 21 Ignorepaper out 22 STAR mode IBMmode 23 LF must be from host Auto LF with 24 Standard buffer Optional Buffer International character sets OFF OFF uA ON oo DIN Use the setting column to record the way the switches set in your printer 231 Command Quick Reference For STAR mode Commands to control print style lt ESC gt 5 lt ESC gt 4 lt ESC gt 7 n lt ESC gt CHR 4 5 65 Font pitch controls lt ESC gt 5 1 lt ESC gt CHR 2 lt ESC gt CHR 3 lt ESC gt 1 lt ESC gt 0 CHR 18 CHR 15 lt ESC gt CHR 15 lt ESC gt 1 CHR 14 lt 5 gt CHR 14 lt ESC gt 0 CHR 20 Special print modes lt ESC gt G lt ESC gt H lt ESC gt E lt ESC gt F lt ESC gt 1 lt ESC gt 0 lt ESC gt 5570 lt ESC gt 571 lt ESC gt T lt ESC gt n Cancel italic print Italic print Select international character set Select NLQ Near Let
44. elect Commands to control vertical position of the print head CHR3 10 Line feed lt ESC gt 0 Set line feed to 1 8 inch lt ESC gt 1 Set line feed to 7 72 inch _ lt ESC gt A n Define line feed to n 72 inch lt ESC gt 2 Change to line spacing defined by lt ESC gt lt ESC gt 3 Set line feed to n 216 inch lt ESC gt J n Single line feed of n 216 inches Form feed controls CHR 12 Form feed lt ESC gt n Set page length to lines lt ESC gt CHR 0 Set page length to inches lt ESC gt n Set top margin at line n lt ESC gt N n Set bottom margin at n lines lt ESC gt O Cancel top and bottom margins 234 Vertical tabs CHR 11 Vertical tab lt ESC gt CHR 0 Set vertical tabs lt ESC gt a Advance n line feeds Commands to control horizontal of the print head CHR 13 age return lt ESC gt 1 n Ser left margin at column n lt ESC gt n Set right margin at column CHR 9 Horizontal tab lt ESC gt CHR 0 Set horizontal tabs lt ESC gt b n Tab over n columns CHR 8 Backspace Download character commands lt 5 gt 8 CHR 0 n n2 m0 ml 11 Define download characters Copy standard ROM characters to down load Use download characters Cancel download characters lt ESC gt 000 lt ESC gt 10 lt ESC gt 00
45. erface The operating specifications of the interface are as follows Data transfer rate 150 19200 Word length 1 start bit 7 or 8 data bits Odd even or no parity 1 or 2 stop bits Signal levels Mark or logical 1 3 to 15 volts or current ON Space or logical 0 3 to 15 volts or current OFF Handshaking Serial busy 1 byte mode Serial busy 1 block mode ACK mode XON XOFF mode Note 19200 baud can be used only with an RS232C interface it cannot be used with a 20mA current loop interface SG 10 15 has a DB 25 female connector to connect to a computer The functions of the pins are summarized in Table I 1 CONFIGURING THE SERIAL INTERFACE DIP switch on the serial interface board controls the config uration of the serial interface Table I 2 describes the functions of the individual switches in DIP switch Table 1 1 Serial interface pin functions eee GND Printers chassis ground TXD OUT This pin carries data from the printer IRXD Thispincarriesdatato the printer OUT This is ON when the printer is ready to receive data This pin is ON when the computer is ready to send data This pin is ON when the computer is ready to send data SG 10 15 does not check this pin This pin is ON when the computer is ready to send data SG 10 15 does not check this pin This pin is the return path for data transmitted from the printer on the 20mA current loop OUT T
46. et lt gt 0 27 36 0 1 24 00 lt gt 0 0 27 37 0 0 1 25 00 00 This command cancels the download char acter set and selects the standard character set Chapter 9 183 COMMANDS TO CONTROL GRAPHICS PURPOSE CODE STAR mode decimal hex ASCII IBM mode decimal ASCH hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Print normal density graphics lt ESC gt nl n2 ml m2 m3 27 75 nl n2 ml m2 m3 1B 4B nl n2 ml m2 m3 lt ESC gt nl n2 m2 m3 27 75 nl n2 ml m2 m3 1B 4B nl n2 ml m2 m3 This command selects 60 dots per inch column scan bit image graphics mode The values of n and n2 represent the number of graphics characters to be printed where the total number of characters n2 times 256 nl The correct number of graphic data bytes m1 m2 etc must follow n2 The ASCII value of these characters determine which pins are fired for each character Chapter 10 Print double density graphics lt ESC gt L nli n2 ml m2 m3 27 76 nl n2 ml m2 m3 1B 4C nl n2 m2 m3 lt ESC gt L nln2 ml m2 m3 27 76 nl n2 m2 m3 IB 4C nl n2 ml m2 m3 This command selects 120 dots per inch column scan bit image graphics mode The values of n and n2 are the same as in norm
47. fault value for z upon power on is 1 The value of must be between 1 and 16 Chapter 6 175 CODE STAR mode decimal ASCH hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Set the bottom margin lt ESC gt N n 27 78 n 1B 4E n lt ESC gt N n 27 78 n 1 4 This command sets the margin at the bottom of the page to lines The printer will au tomatically execute a form feed when the number of lines left on a page is equal to n The value of must be between 1 and 127 This command is sometimes referred to as skip over perforation Chapter 6 Cancel top and bottom margins lt ESC gt O 27 79 1B 4F lt ESC gt 27 79 1 4 This command cancels both the top margin set by lt ESC gt n or by lt ESC gt r n and bottom margin set by lt ESC gt N n Chapter 6 ed 176 Vertical tabs PURPOSE CODE STAR mode decimal ASCH hex ASCII IBM mode decimal ASCID hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal hex IBM mode decimal hex ASCII REMARKS REFERENCE Advance paper to the next vertical tab position lt VT gt 11 lt VT gt 11 This command causes
48. haracter command is required Chapter 5 Set the print pitch to condensed 17 characters inch lt SI gt 15 SI 15 OF This command is the same as lt ESC gt lt SI gt but can be used in applications where a single character command is required Chapter 5 Set the print pitch to condensed 17 characters inch lt ESC gt 3 21 66 3 1B 42 03 N A Same as lt ESC gt above Chapter 5 161 PURPOSE CODE STAR mode decimal ASCII hex ASCH IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Set the print pitch to proportional lt ESC gt 1 112 112 1 70 01 ESC 1 27 112 1 1 70 01 This command causes all subsequent printing except NLQ characters to be done with proportional spacing NOTE The character 1 decimal code 49 hexadecimal code 31 can be used instead of 1 Chapter 5 Cancel the proportional spacing lt ESC gt 0 27 112 0 1B 70 00 lt ESC gt 0 27 112 0 IR 70 00 This command cancels the proportional spacing and returns the print pitch to the previous set NOTE The character 0 decimal code 48 hexadecimal code 30 can be used instead of ASCII 0 Chapter 5 162 PURPOSE CODE STAR mode decimal ASCII hex
49. he power cord Warning There is extreme shock hazard inside SG 10 15 To avoid serious injury it is important the power cord is dis connected Next remove the upper case by pulling off the platen knob Caution Don t twist or turn the platen knob pull it straight off Then remove the fastening screws along the back side Lift the back edge ofthecover and atthe same time pull it slightly forward to release the front of the case Lift it all the way off being careful not to pull the wires which connect the cover to the case When the case is off check Figure 11 1 for location of the fuse which you ll find held by its clamps close to the power switch Power switch Figure 11 1 After removing the screws pull the upper case slightly forward and lift it off the printer The fuse is located near the power switch The fuse is a commonly used type with a metal strip suspended in a glass and metal case If the strip is broken the fuse is blown Replace this fuse with a 1 25A 125V slow blow type fuse Bell 5 1 25 or equivalent for 120V version or a 630mA 250V slow blow type fuse for 220V 240V versions Now reassemble SG 10 15 and test run it If the printer still isn t working call on your SG 10 15 dealer service center for help REPLACING THE PRINT HEAD The dot matrix print head has a remarkably long life printing perhaps 100 000 000 characters before it wears out You ll know 122 when that happens w
50. hen the printout is too faint for your taste even after replacing the ink ribbon Warning The print head gets hot during operation so let it cool off for awhile if necessary to avoid burning your fingers To replace the print head start by turning the power switch off and unplugging the power cord Then in sequence Print head Head cable board Head connector Figure 11 2 Replacement of SG 10 15 s print head is simple 123 Remove the printer cover and the ink ribbon Remove the two screws fastening the print head 3 While holding the print head pull off the head cable while holding down the head cable board 4 Insert the head cable to the head cable board and fasten with the same two screws 5 Apply screw lock an adhesive available at hardware stores to the heads of the screws N Be absolutely sure that you ve made a good solid connection between the print head and its cable connector or it could cause problems 124 APPENDIX DIP SWITCH SETTINGS The DIP dual in line package switches control some of the functions of SG 10 15 A DIP switch actually contains several individual switches SG 10 15 has one DIP switch with 8 indi vidual switches in it and one DIP switch with 4 individual switches Figure A 1 is a drawing of a typical DIP switch Switch 1 Switch 2 Figure A 1 A DIP switch is actually a series of several small switches two
51. his command returns the print head to the home position the left margin If DIP switch 2 3 has been set off then this command will also cause a line feed character to be gener ated after the carriage return thereby ad vancing to the beginning of the next print line automatically REFERENCE Chapter 6 178 STAR mode decimal hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Set the left print margin lt ESC gt 27 77 1 40 lt ESC gt p n 27 108 n 1B 6C n This command sets the home position re turned to during the execution of all subse quent carriage returns to be print position 1 The power on default for is 0 The value of n must be between 0 and 255 For SG 10 the maximum print position for pica pitch is 80 for elite is 96 and for condensed pitch is 136 For SG 15 the maximum print position for pica pitch is 136 for elite is 163 and for condensed pitch is 233 Chapter 7 Set the right print margin lt ESC gt Q n 27 81 1 5 lt ESC gt 27 81 1 51 This command sets the right hand print margin to print position n After execution of this command any attempt to print be yond print position will cause the printer to automatically gener
52. his pin carries data from the printer on the 2 current loop This is the an line for the serial busy rotocols is pin goes OFF when G 10 15 s buffer fills and ON when SG 10 15 is ready to receive data In the busy protocols this line carries the same signal as pin 20 Unused This pin is return path for data transmitted from the printer on the 20mA current loop This pin is the return path for data transmitted to the printer on the 20mA current loop This pin carries data to the printer on the current loop OUT SG 10 15 turns this pin ON when it is ready to receive data Unused This pin is the return path for data transmitted to the printer on the 20mA current loop 32 3 3 E m Z 3 O x N NIN t3 CA wm e N N TTY TXD This pin carries data from the printer on the This pin carries to the printer on 20m current loop 218 Table 1 2 DIP switch the serial board Swite Parity checked Handshaking protocols see Table I 3 Odd parity Even parity Data transfer rate see Table 1 4 Mie WIN EB Table I 3 Handshaking protocols Table I 4 Data transfer rates Baudrate Swith 6 Switch Swith8 o0 0 OFF Switch 4 1200 JON O a ON ON 200 SG 10 15 S SERIA
53. international characters 96 italic characters 88 italic international characters 96 near letter quality NLQ characters 88 NLQ international characters 64 STAR special characters 83 IBM special characters 32 STAR block graphics characters 50 IBM block graphics characters 240 user defined characters Character matrix Standard characters 9 dot x 11 dot STAR block graphics 6 dot x 6 dot 2 IBM block graphics 12 dot x 11 dot User defined 8 dot x 4 to 11 dot Near letter quality 17 dot x 11 dot Bit image modes 8 dot x 60 dots in 8 dot x 72 dots in 8 dot x 80 dots in 8 dot x 90 dots in 8 dot x 120 dots in 8 dot x 240 dots in Line spacing 1 6 1 8 inch or 7 72 inch standard 72 144 or 216 inch programmable Column width SG 10 SG 15 Pica 80 136 Elite 96 163 Condensed 136 233 Pica expanded 40 68 Elite expanded 48 81 Condensed expanded 68 116 Special features Paper Paper type Single sheets Continuous paper Thickness One part forms Near letter quality printing Short form tear off Easy access format switches Self test Hex dump Downloadable characters Macro instruction Continuous underlining Ultra hi resolution bit image graphics Vertical and horizontal tabs Skip over perforation 15 5 carriage SG 15 only SG 10 SG 15 5 5 8 5 in wide 5 5 14 5 in wide 4 10 in wide 4 15 5 in wide 0 07 0 10 mm 0 07 0 10 mm Max 3 part forms 0 28 mm max 0 28 mm max Printer Dimens
54. ion SG 10 SG 15 Height 145 mm 5 7 145 mm 5 7 in Width 392 mm 15 2 in 542 mm 21 3 in Depth 315 mm 12 4 in 315 mm 12 4 in Weight 7 kg 15 4 Ib 10 kg 22 Ib Power 120 VAC 10 60Hz approx 100W 220 VAC 10 50 60Hz approx 100W 240 VAC 10 50 60Hz approx 100W Ribbon Star Mfg P M SF 02B or Underwood in x 2 in spools 210 Parallel interface Interface Synchronization Handshaking Logic level Connector Centronocs compatible 7 or 8 bit externally supplied strobe pulses By ACK or BUSY signals TTL 57 30360 Amphenol Serial interface option Interface Bit rate Word length Handshaking Asynchronous RS 232C 20 mA current loop 300 600 1200 2400 4800 9600 19200 baud 1 start bit 7 or 8 data bits Odd even or no parity 1 or 2 stop bits Serial busy 1 byte mode Serial busy 1 block mode ACK mode XON XOFF mode 211 ae Sei re T ST TNR LIT PE TE a ie er APPENDIX H THE PARALLEL INTERFACE SG 10 15 has a parallel interface to communicate with the computer that it is connected to The operating specifications of the parallel interface are as follows Data transfer rate 1 000 to 6 000 characters per second Synchronization Via externally supplied STROBE pulses Handshaking ACK and BUSY signals Logic level Compatible with TTL level SG 10 15 s parallel interface connects to the co
55. makes it easy to do the things that we show you But when you start writing your own programs there are several things you should know IBM BASIC defaults to a printer width of 80 This means that it will automatically insert a carriage return and line feed after every 80 characters If you want to print lines longer than 80 characters you will need to change the width of the printer If you set the printer width to 255 then the IBM will never insert a line feed and carriage return unless you start a new line This is what you want usually To set the width of the printer to 255 use this statement 100 WIDTH 1 255 IBM BASIC has one other little trick that will mess up your graphics if you let it IBM BASIC is very insistent about adding a line feed to a carriage return This is fine if you are printing text but if an ASCII 13 pops up in the middle of your graphics printout IBM BASIC will still add a line feed to it This will put strange things in the middle of your graphics and leave you with extra characters at the end of your line There is an easy way to avoid this problem You just open the printer as a random file The following program shows how this is done RANDOM ACCESS SET WIDTH TO 255 PRINT A LINE ADD YOUR OWN LF 10 OPEN AS 1 20 WIDTH 1 255 30 PRINT 1 TESTING 40 PRINT 1 19 Listing programs To list programs on SG 10 15 make sure the program is in the IBM
56. mal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Advance paper to top of next page Form Feed lt FF gt 12 0 lt FF gt 12 0 The actual length of a page ejected by a form feed is set either by the setting of DIP switch 1 1 or through various codes which can be sent see below Chapter 6 Set page length to n lines lt gt di ou n 27 67 n 1 43 lt ESC gt 27 67 1 43 This command sets the length of all subse quent pages to lines The value of must be between 1 and 127 Chapter 6 174 STAR mode decimal ASCII IBM mode decimal ASCH hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Set page length to inches lt ESC gt 0 27 67 0 1 43 00 lt ESC gt 0 27 67 0 1 43 00 This command sets the length of all subse quent pages to n inches The value of n must be between 1 and 32 You can select a power on default form length of 11 inches or 12 inches by setting DIP switch 1 1 Chapter 6 Set the top margin lt ESC gt R n 27 82 1 52 lt ESC gt 27 114 1 72 This command sets the margin at the top of the page to 1 lines Printing will start on line n The de
57. mputer by a 36 pin connector on the back of the printer This connector mates with an Amphenol 57 30360 connector The functions of the various pins are summarized in Table H 1 Functions of the Connector Signals Communications between the computer and the SG 10 15 use many of the pins of the connector To understand how the system of communications works we need to look at the functions of the various signals carried by the pins of the interface connector Pin 1 carries the STROBE pulse signal from the computer to the printer This signal is normally held high by the computer When the computer has data ready for the printer it sets this signal to a low value for at least 0 5 microseconds When the printer sees this pulse on the strobe pin it reads the data that the computer supplies on pins 2 through 9 Each of these lines carries one bit of information logical 1 is represented by a high signal level and a logical 0 is represented by a low signal level The computer must maintain these signals for a period beginning at least 0 5 microseconds before the strobe pulse starts and continuing for at least 0 5 microseconds after the strobe pulse ends When the SG 10 15 has successfully received the byte of data from the computer it sets pin 10 low for approximately 9 micro 1 d DATA mu 1 BUSY T More than 0
58. ned control codes Following n2 SG 10 15 expects twelve character data bytes for each character to be defined The first byte m0 is the attribute byte for it specifies whether the character is a descender if the first bit is 0 and the proportional width of the character starting and ending dot col umns are defined by the low order seven bits through m11 determine which dots form the character NOTE This command is ignored when the DIP switch 1 5 15 set ON Chapter 9 182 PURPOSE CODE STAR mode decimal 5 hex ASCII IMB mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Copy standard character ROM font into RAM 0 27 42 0 1B 2A 00 lt gt 1 0 0 0 27 58 0 0 0 1 00 00 00 This command copies all the standard char acters to the corresponding download char acter RAM area This destroys any existing user defined characters in that code range Chapter 9 Select download character set lt ESC gt 1 27 36 1 1 24 01 1 0 27 37 1 0 1 25 01 00 This command causes the printer to select the download character set Chapter 9 Cancel download character s
59. nt zero without slash Ignore paper out signal Enable paper out signal Unidirectional print Bidirectional print One line unidirectional print Reset the printer 233 For IBM mode Commands to control print style lt ESC gt 7 Select character set 1 lt ESC gt 6 Select character set 2 lt ESC gt 1 Italic print lt ESC gt T O Cancel italic print lt ESC gt n Select interantional character set lt ESC gt 4 Select NLQ Near Letter Quality charac ters lt ESC gt 5 Cancel NLQ characters Font pitch controls lt ESC gt P Pica pitch lt ESC gt Elite pitch lt ESC gt p Proportional print lt ESC gt p 0 Cancel proportional print CHR 18 Pica pitch CHR 15 Condensed pitch lt ESC gt CHR 15 Condensed pitch lt ESC gt 1 Expanded print CHR 14 One line expanded print lt ESC gt CHR 14 One line expanded print lt ESC gt 0 Cancel expanded print CHR 20 Cancel one line expanded print Special print mode lt ESC gt G Double strike print lt ESC gt Cancel double strike print lt ESC gt E Emphasized print lt ESC gt Cancel emphasized print lt ESC gt 71 Start underlining lt ESC gt 0 Stop underlining lt ESC gt 5 0 Superscript on lt ESC gt 1 Subscript on lt ESC gt T Cancel super and subscripts lt ESC gt Pn Master print mode s
60. ode decimal ASCII hex ASCII REMARKS REFERENCE Set the print pitch to elite 12 characters inch lt ESC gt B 2 27 66 2 1 42 02 lt ESC gt M 27 77 1B 4D This command causes all subsequent printing except NLQ characters to be done in elite type This command also sets the maximum number f print columns to 96 on the SG 10 and 163 on the SG 15 Chapter 5 Set the print pitch to condensed 17 characters inch 5 27 15 1 0 lt ESC gt SI 21 15 IB This command causes all subsequent printing except NLQ characters to be done in con densed type of 17 characters per inch This command also sets the maximum number of print columns to 136 on the SG 10 and 233 on the SG 15 You can select condensed type as the power on default by turning DIP switch 1 3 off Chapter 5 160 STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode REMARKS REFERENCE Set the print pitch to pica 10 characters inch lt DC2 gt 18 12 lt DC2 gt 18 12 This command is same as lt ESC gt 1 in STAR mode or lt ESC gt P in IBM mode but can be used in applications where a single c
61. ormal characters STAR mode or Character Set 1 IBM mode If this switch is OFF then the default char acter set is Italic characters STAR mode or Character Set 42 IBM mode This switch is set ON at the factory 1 3 This switch selects the default character pitch If this switch is ON the default pitch is 10 CPI If this switch is OFF the default pitch is 17 CPI This switch is set ON at the factory This switch has no effect if switch 1 4 is off 126 la e IURE TE E T E TS e n 0 Lor Figure A 2 SG 10 15 s DIP switches are located on the left side of the printer 1 4 Switch 1 4 selects the default character style If this switch 15 ON then the default character style is normal characters If this switch is OFF then the default character style is near letter quality If this switch 1 OFF then switches 1 2 and 1 3 have no effect This switch is set ON at the factory 1 5 This switch controls the RAM condition When this switch is the download character definitions ignored and the RAM is used as the print buffer When this switch is OFF the download character definitions are enable to use and the print buffer is set to one line buffer This switch is set ON at the factory 1 6 1 8 These three switches determine the default interna tional character set as shown in Table A 2 These switches a
62. r marks the end of the macro definition NOTE This command 18 ignored when the switch 1 5 15 set ON Chapter 8 186 PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Execute macro instruction lt ESC gt Sep 27 33 1B 21 lt ESC gt 0977 27 63 1B 3F This command executes a macro instruction that was previously defined Chapter 8 OTHER COMMANDS PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Set the value of the eighth data bit to logical 1 lt ESC gt e 27 62 1 lt 5 gt e gt 3 27 62 1 This command forces the eighth data bit of each subsequent character sent to the printer to logical 1 This code allows users with a 7 bit interface to access those characters whose ASCH code is greater than 127 This code should not be used to transmit printer control codes Chapter 8 187 STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Set the value of the eighth data bit to logical 0 lt ESC gt 27 61 1 3D lt ESC gt 6 gt 27 61 1 3D This command forces the eighth data
63. re all set ON at the factory 127 Table 2 International character sets ON 1s on on on orr orr OFF 2 1 This switch disables the paper out detector If this switch is ON the printer will signal the computer when it runs ont of continuous paper and will stop printing If this switch is OFF the printer will ignore the paper out detector and will continue printing This switch is set ON at the factory 2 2 This switch selects the active control codes Turn this switch ON to use the STAR mode and to set the minimum line feed value to 1 144 inch Turn this switch OFF to use the IBM mode and to set the minimum line feed value to 1 216 inch This switch is set ON at the factory 2 3 When this switch is ON the computer must send a line feed command every time the paper isto advance When this switch is OFF SG 10 15 will automat ically advance the paper one line every time it receives a carriage return Most BASICs send a line feed with every carriage return therefore this switch should usually be on This switch is set ON at the factory 2 4 This switch controls the buffer status When SG 10 has only the standard board turn this switch ON When SG 10 has either an optional buffer board or an optional serial buffer board turn this switch OFF This switch is set ON at the factory This switch is not used for SG 15 128 OE
64. rotocol 1 byte mode po Dos fos 551 1551 Fs 3 Pin 20 Pin 11 Serial busy protocol 1 block mode 55 5s DTR 20 RCH Pin 11 Tos 551 Tos T DTR Pin 20 DB DB Pin 2 0 3 XON IDC1 Printing protocol RXD DB DR Pin 3 Diso soi pL DB DB Pin 2 Frinting_ DB Data Byte Figure I 2 Serial protocol timing charts 221 APPENDIX 1 CONNECTING WITH COMPUTER In this appendix we ll show you how to connect with various computers If you cannot find out the name of your computer your Star dealer will give you advice on connecting SG 10 15 to your computer CONNECTING WITH IBM PC AND COMPAQ Both the IBM Personal Computer and the Compaq computer function the same when connected to SG 10 15 We will discuss the IBM PC knowing that all we say works just as well as for the Compaq You only need a cable to connect SG 10 15 to your IBM PC Your Star dealer can furnish this cable or you can use a standard IBM PC parallcl printer cable for the parallel interface Table J 1 IBM PC parallel cable SG 10 15 IBM PC Parallel Pin No Function Pin No Function SELECTED GROUND m ERROR BASIC programming Allthe programs in this manual are written in the BASIC used by the IBM PC That
65. s memory and use the LLIST command This directs the listing to the printer instead of the screen CONNECTING WITH APPLE II COMPUTERS Apple II computers require an interface board mounted inside the Apple and a cable to run SG 10 15 Star recommends that you use the grafstar interface for the Apple II and It comes complete with a cable and is easily installed A unique 224 feature of the grafstar TM makes it possible to do some dot graphics programming You can of course use many of the available parallel interface boards for the Apple II and an appropriate cable Table J 2 Apple parallel cable SG 10 15 Apple Board Pin No Function Pin No Function SIG GND SIG GND SIG GND STROBE SIG GND DATAI DATA2 DATA3 DATA4 DATAS DATA6 DATA6 DATA oo DATA7 DATAS SS DATA8 ACK SSS ACK SIG GND SIG GND 1 UN Applesoft BASIC The Apple II computer using Applesoft BASIC does not have different types of PRINT statements for the screen and printer You must add commands to your programs that direct the output of the PRINT statements to the printer To direct output to the printer with the interface board in slot 1 you must use the PR 1 command Depending on the version of Applesoft BASIC that you are using this command can take various forms It 1 usually one of the following 10 1 or 10 PRINT lt Ctr1 D gt PRi1 or 10 PRINT CHR
66. s the IBM mode only 199 APPENDIX 5 CODE CONVERSION CHART Standard ASCII Codes Decimal Hexadecimal Binary Character 10 12 13 14 15 16 17 18 19 20 21 22 2 24 25 26 27 28 29 30 31 00 01 02 03 04 05 06 07 08 09 OB 0C 00 OF 10 11 12 4 3 14 15 16 17 18 19 1 1 1 ID IE Control 0000 0000 Ctrl o 0000 0001 Ctrl A 0000 0010 Ctrl B 0000 0011 Ctrl C 0000 0100 Ctrl D 0000 0101 Ctri E 0000 0110 0000 0111 Ctrl G 0000 1000 Ctrl H 0000 1001 Ctrl I 0000 1010 Ctrl J 0000 1011 Ctri K 0000 1100 Ctrl L 0000 1101 Ctrl M 0000 1110 Ctrl N 0000 1111 Ctrl O 0001 0000 Ctrl P 0001 0001 0001 0010 CtrI R 0001 0011 Ctri S 0001 0100 Ctrl T 0001 0101 Ctri U 0001 0110 Ctrl V 0001 0111 Ctri W 0001 1000 Ctrl X 0001 1001 Ctrl Y 000 1010 Ctrl Z 0001 1011 0001 1100 0001 1101 0001 1110 0001 1111 5 NUL BEL BS HT LE FF CR so SI DCI DC DC3 DC4 CAN ESC RS Character mode IBM 1 NUL BEL BS HT LF VT FF ER so 1 DCI DC DC3 DC4 CAN RS IBM 2 NUL DCI DC3 DC4 CAN ESC RS Standard ASCH Codes Decimal Hexadecimal Binary 32 20 21 22 23 24 25 26 27 28 29 2 2 2 20 2 2 30 31 32 33 34 35 36 37 38 39 3B 3C 3D 3E 3F 40 41 32 44 45 46 47 48 49 4 48 0010 0000 0010 00
67. ter Quality charac ters Cancel NLQ characters Pica print Elite print Condensed print Proportional print Cancel proportional print Pica print Condensed print Condensed print Expanded printt One line expanded print One line expanded print Cancel expanded print Cancel one line expanded print Doubie strike print Cancel double strike print Emphasized print Cancel emphasized print Start underlining Stop underlining Superscript on Subscript on Cancel super and subscripts Master print mode select Commands to control vertical position of the print head CHR 10 lt ESC gt 0 lt ESC gt 1 lt ESC gt 7 lt ESC gt A n lt ESC gt 3 lt ESC gt J n Form feed controls CHR 12 lt ESC gt n lt 5 gt CHRS 0 n lt ESC gt R n lt ESC gt N n lt ESC gt O Line feed Set line feed to 1 8 inch Set line feed to 7 72 inch Set line feed to 1 6 inch Set line feed to n 72 inch Set line feed to n 144 inch Single line feed of n 144 inches Form feed Set page length to n lines Set page length to n inches Set top margin line n Set bottom margin at n lines Cancel top and bottom margins 232 Vertical tabs 1 lt ESC gt CHR 0 lt ESC gt a n Vertical tab Set vertical tabs Advance n line feeds Commands to control horizontal position of the print head CHRS 13 lt ESC gt
68. the page Line feed controls PURPOSE CODE STAR mode decimal ASCH hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCH hex ASCH IBM mode decimal ASCII hex ASCII REMARKS REFERENCE Advance the paper one line Line Feed lt LF gt 10 0A lt LF gt 10 0A The actual distance advanced by the line feed is set through various codes which can be sent see below When DIP switch 2 3 is off a line feed is automatically generated when ever the printer receives a carriage return Chapter 6 Change the line spacing to 1 8 inch lt ESC gt 0 27 48 1 30 lt ESC gt 0 27 48 1 30 This command sets the distance the paper advances during all subsequent line feeds to 1 8 inch Chapter 6 170 STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode REMARKS REFERENCE Change the line spacing to 7 72 inch lt ESC gt 1 DI 49 1B 31 lt ESC gt 1 27 49 1B 31 This command sets the actual distance the paper advances during all subsequent line feeds to 7 72 inch Chapter 6 Change the line spacing to 1 6 inch
69. tive DIP switches The main difference between the lt ESC gt command and turning the printer off and back on is that download character RAM and the macro instruction are preserved with this command 196 APPENDIX COMMAND SUMMARY Mode STAR IBM STAR STAR IBM IBM IBM STAR IBM CHRS 0 CHR 7 CHR 8 CHRS 9 CHR 10 CHR 11 12 CHR 13 CHR 14 CHRS 15 CHR 17 CHR 18 CHR 19 5 20 CHRS 24 CHRS 27 CHR 30 CHR 127 lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt lt ESC gt CHRS 14 CHRS 15 6 1 CHR n 0 00 10 IN NUMERIC ORDER Control code Function Ends tab settings Sounds bell Backspace Horizontal tab Line feed Vertical tab Form feed Carriage return One line expanded print Condensed print On line Pica print Off line Cancels one line expanded print Cancel text in print buffer Escape indicated as lt ESC gt below Ends macro instruction definition Delete last character One line expanded print Condensed print Use macro Master print mode select Accept eighth bit as is Cancel download characters Use download characters Cancel download characters Use download characters amp CHR 0 n n2 m0 ml m2 11 0 n
70. to the lt BEL gt character normally by sounding the printer bell Note The character 1 decimal code 49 hexadecimal code 31 can be used instead of ASCII 1 Chapter 8 Disable paper out detector lt ESC gt 8 27 56 1 38 lt ESC gt 8 27 56 1 38 This command causes the printer to disregard the signal sent by the paper out detector The paper out signal normally sounds the printer bell and stops printing until paper is inserted and the printer is reset DIP switch 2 1 can also be set to disable the paper out detector Chapter 8 193 CODE STAR mode decimal ASCII hex IBM mode decimal ASCII hex ASCII REMARKS REFERENCE PURPOSE CODE STAR mode decimal ASCII hex ASCII IBM mode decimal ASCII hex ASCI REMARKS REFERENCE Enable paper out detector lt ESC gt 27 57 1 39 lt ESC gt 0 27 57 1 39 This command restores the function of the paper out detector Chapter 8 Select uni directional printing lt ESC gt U 1 27 85 1 1 55 01 U 1 27 85 1 55 01 This command causes all subsequent lines to be printed in unidirectional printing Unidirectional printing is useful in printing tables or charts since it ensures that vertical columns of characters will be in alignment NOTE The character 1 decimal code 49 hexadecimal code 31 can be used instead of A

Download Pdf Manuals

image

Related Search

Related Contents

QHY10 QHY12 User Manual  Nexgrill 720-0001-R User's Manual  操作マニュアル  Door Handle - Removal, Installation, and Adjustment  Indexing Controller  Service Manual Model G18 Engine  Kenwood KMD-673R DVD Recorder User Manual  Schneider BAK innen - Anton Schneider Cuckoo Clocks  Installation Manual UAIS TRANSPONDER FA-150  募集案内 - 新成長産業戦略的育成事業  

Copyright © All rights reserved.
Failed to retrieve file