MPS1000 codes\ (PRG formatted GEOS file V1.0AWrite Image V2.1geoWrite V2.1B?1ʎ A9 8%Lh92Z?\, A0 8 n5-- 'F & % t %7 Š/ x9j>.'.r(XXXXXXXXX( (XXXXXXXXX(  Control Codes for the Commodore MPS 1000 Commodore Mode   (XXXXXXXX( Secondary Address Codes What They Do  (XXXXXXXX@ XXXXXXXX@0 Prints data exactly as recieved in Uppercase/Graphics (XXXXXXXX@1 Print data according to a previously defined format 2 Store formating data 3 Set number of lines per page 4 Enable printer diagnostic messages 5 Define a programmable character. 6 Set spacing between lines 7 Print data exactly as received in Upper/lower case 9 Suppress diagnostic messages 10 Reset (XXXXXXXX(  Control Codes (XXXXXXX( @ Hex Dec Function 01H 1 Single Density graphics (480 DPL) 02H 2 Double Density graphics (960 DPL) XXXXXXX(08H 8 Bit image(7 vertical dot) with 7/72" line feed (XXXXXXX(0AH 10 Line feed with carriage return 0CH 12 Form Feed 0DH 13 carriage return with line feed 0EH 14 Enhanced on 0FH 15 Enhanced off 10H,n1,n2 16 Tab setting "NHNL" 11H 17 Local upper/lower case cursor mode 12H 18 Reverse on 13H 19 Paging off 1AH 26 Bit image repeat (7 pin) 1BH,16H,n1,n2 27 16 Dot address n1 * 256 + n2 1DH 29 Skip space in formating print 1FH 31 NLQ on 22H 32 Quote mode on 8DH 141 CR without LF 91H 145 Local uppercase/graphics cursor mode 92H 146 Reverse off 93H 147 Paging on including setting top of page 9FH 159 NLQ off XXXXXXX(A0H 160 Prints blank alpha field in formating print (XXXXXXX(FEH 254 Print programmable character (XXXXXXX(0 IBM 5152+ mode   PXhPXXXX( ESC DEC HEX Symbol Function   0 00 NUL Terminate Horizonal & vertical tab settings Escape sequences 7 07 BEL Sounds beeper 9 09 HT Horizonal tab. Empties buffer before movint to next tab stop. 10 0A LF Line feed 11 0B VT Vertical tab 12 0C FF Form Feed 13 0D CR Carriage return 14 0E SO Shifts out. Turns enlarged mode on for the length of the line. Same as Escape S9. Can be canceled by ASCII 20 or Escape "W0". Works with pica, elite or condensed mode. 15 0F SI Shift in. Turns condensed mode on (17.16 cpi). Cannot be mixed with emphasized or pica mode. 18 12 DC2 Clears condensed mode 20 14 DC4 Turns enlarged mode on set by ASCII 14 OFF 24 18 CAN Cancels all text but not control codes in the printer buffer. 27 1B ESC Escape Y 45 2D - Turns underline mode on. Format: ESC "-"n Where n toggles underline on or off. 0 turns it off, 1 turns it on. Y 48 30 0 Sets line spaceing to 1/8 inch (9 dot) Y 49 31 1 Sets line spacing to 7/72 inch (7 dot) Y 50 32 2 Sets line spacing to a previous definition (ESC "A") PXhPXXXX(  PXhPXXXX( ESC DEC HEX Symbol Function Y 51 33 3 Sets line spacing to n/216 inch. 1/216 inch is 1/3 dot. Format: ESC "3"n Y 53 35 5 Turns auto line feed mode on Format: ESC "5"n 1=on, 0=off Y 54 36 6 IBM character set 2 Y 55 37 7 IBM character set 1 Y 56 38 8 Turns off paper out sensot Y 57 39 9 Turns on paper sensor Y 58 3A : Turns on elite mode (Draft only) Y 60 3C < Turns on one-line uniderictional mode Y 64 40 @ Reset to power on state Y 65 41 A Sets line spacing to n/72 inch (n Dot) Format: ESC "A"n Where n=0-255. Value effective after setting ESC "2" Y 66 42 B Sets up 16 vertical tabs in the current lune spacing. Tab setting are not effected by line spacing changes. Terminate this tab with 0 or a number less than the las vertical tab. Format: ESC "B"n1,n2,...nk 0 Y 67 43 C Sets form length (ESC "C" n) in n lines in the current line spacing. The default is 66. Also set top of form. n=1-127 Y 67 43 C Sets the form to inches regardless of the current spacing. The default is 11 inches. Format ESC "C"0n n=1-22 Y 68 44 D Resets current tabs & sets up 32 horizontal tabs in the current pitch. Tabs are not effected by changes in pitch. ESC "D" n1,n2,...nk 0 PXhPXXXX(0 ESC DEC HEX Symbol Function  PXhPXXXX( Y 69 45 E Turns on emphasized mode. Can not mix with elite or compressed mode. Y 70 46 F Turns off emphasized mode Y 71 47 G Turns on Double-Strike mode. Can not use with NLQ. Y 72 48 H Turns off double strike Y 74 4A J Forces an immediate line feed of n/216 inch without changing the current line spacing. Y 75 4B K Turns single density graphics mode on. Format: ESC "K"n1,n2 followed by data numbers. Where n=total number of dot columns. n1=nMOD 256 and n2=INT(n/256) I.E.: n1=244,n2=1 to print 480 dots Y 76 4C L Turns on low-speed double density graphics mode (ESC "L"n1,n2) I.E.: n1=192,n2=3 to print 960 dots Y 78 4F N Skip perforation to n lines. (ESC "N"n) Y 79 4F O Turns skip perforation off Y 82 52 R Initializes tabs to default settings. Y 83 53 S Turns on script mode. (ESC "S"CHR$(n)) n=0 for superscript and n=1 for subscript. Y 84 54 T Turns script mode off Y 85 55 U Toggles unidirectional mode on (ESC "U"n) On for n=1, off for n=0 Y 87 57 W Turns on enlarged mode which stays on until turned off. Can not be turned off with ASCII 20. (ESC "W"n) PXhPXXXX( PXhPXXXX( ESC DEC HEX Symbol Function  PXhPXXXX( Y 88 58 X Sets left & right margins. (ESC "X" lm rm Y 89 59 Y Turns high-speed double density graphics mode on. Prints same density as ESC "L" but cannot print 2 adjacent dots in same row. Y 90 5A Z Turns on quad density graphics. (ESC "Z",n1,n2) I.E. ESC "Z",128,7 prints 1920 dots per line. Y 120 78 x Select NLQ or draft. (ESC "x"n) Draft = 0, and NLQ=1  ASCII codes PXPXXXXX(0 Terminates tab sequence 7 Sounds beeper 9 Activates horizontal tab 10 Activates line feed 11 Activates vertical tab 12 Activate form feed 13 Activates CR 15 Condensed mode on 18 Condensed mode off 14 Turns on one-line enlarged mode 20 Turns one line enlarged mode off 24 Cancels all text but not control codes to the print buffer DIP SWITCHES PXPXXXXX( @1-1 Off Commodore mode ON 5152+ mode @  Commodore mode PXPXXXX( Switch On Off Function  2 5 4 Device number PXPXXXXX(3 Mute Beep Buzzer 4 valid invalid controls sheet feeder 5 NLQ Draft NLQ/Draft switch 6 12 11 Page length 7 Inactive Active Paper end detector 8 valid invalid Uni-directional printing PXPXXXXX(0 5152+ Mode   Switch On Off Function 2 5 4 Device number 2 Table 2 Table 1 Character graphic select 3 Serial Parallel Interface 4 valid invalid controls sheet feeder 5 NLQ Draft NLQ/Draft switch 6 12 11 Page length 7 Inactive Active Paper end detector 8 valid invalid Auto LF with CR  Technical Specs   CBM Mode  9 pin print head 100 characters per second in draft (pica) mode 20 CPS in NLQ mode 50 CPS in enlarged mode Line spacing 1/216 inch (1/6 " at power on) Dot matrix format: 12x18 NLQ PXPXXXXXX( 9x8 standard characters 6x8 standard graphic characters  IBM Mode  `XxXXXXXX(  Pitch Speed Columns PXxXXXXXX(Pica (Standard Pitch) 100 CPS 80 Enlarged 50 CPS 40 Emphasized 50 CPS 80 Enlarged Emphasized 25 CPS 40 Condensed 82 CPS 132 Enlarged Condensed 41 CPS 66 Elite 60 CPS 96 Enlarged Elite 30 CPS 48 Condensed Elite 100 CPS PXPXXXXXX(Dot matrix 9x9 standard 6x12 standard graphic characters 12x18 NLQ HXXXXXXXX(0 I know that many people will find this doc useful. I've had this doc available on Q-Link for a couple of years now, with the thought that it would get passed around where it was needed. (I guess not.) Anyway, enjoy... Lloyd Hayes P.O. Box 589 Oxford, Ohio 45056  @    @  Control Codes for the Commodore MPS 1000  @ Page PAGE