Commodore MPS 1000 — Commodore MPS 1000 Dot Matrix Printer User's Manual PDF (EN)

specified format using sa = 2. If you should transmit a string of data when sa = 1 is in effect and there is no formatting data in the printer's memory, then the data string is printed exactly as it is received. When formatting string data from the computer, a skip, CHR$(29), must be sent to delimit the end of a string being edited to a field . Leading blanks are stripped off a string; therefore, to prim a blank alpha field you must transmit a shifted blank, CHR$(160). The alpha field is then right padded with blanks as the example shows. Example: 10 OPEN 2,4,2 20 OPEN 1,4, 1 30 PRINT #2' I 'AAA AAA AAA' I 40 PRINT #1, "ABC"CHR$(29)CHR$(160)CHR$(29)"DEF" 50 CLOSE 2:CLOSE 1 Result:

f.'1BC DEF Note: The data to be printed for any formatted line must be sent with only one "PRINT#" command. Storing the Formatting Data: sa = 2 Perhaps the most significant feature of your printer is its ability to format data. Picture formatting generates a simple one-to-one corre- spondence between the column position of the print line and the sym- bol that is to appear there. Formatting lets you left- or right-justify columns of data, or align numeric data on its decimal point position. Example: 10 OPEN 2,4,2 20 OPEN 1,4,1 30 PRINT #2, 40 PRINT #1 ,3.05 50 CLOSE 2:CLOSE 1 Result:

The commands in the example above transfer formatting data to the primer's internal memory for future print editing use. Once completed, READY and the blinking cursor appear on the screen. 47