#1J  Roland_1212A Printer Test and Code Sample If you set your printer preferences up according to the instructions in the Readme.1212 file this should be printed as a narrow column with a Left Marg in set at 15 and a Right Margin set at 40. This text is also printed in NLQ type since Preferences is set for LETTER mode instead of DRAFT. As requested by Preferences the printer is set for ELITE pitch and 8 lines/inch spacing. By issuing a FormFeed (ASCII character code 12, CNTL-L ) in the middle of this sentence we can see that the printer has been set with a formlength of 35 lines (of which it just skipped over 8 of them). The Preferences settings are considered the default settings by the printer. The first time a printer driver is loaded it obtains the default configuration values from Preferences. Any time you wish to reset your printer to the default values simply issue the Initialize command (aRIN) code ESC#1 . Time for some changes (and a new page). Formfeed (ASCII character code 12) Vertical Tab (ASCII character code 11) Vertical Tab (ASCII character code 11) Last line of the page. c The code ESCc is the Printer Reset (aRIS) command. This resets the printer to normal power up conditions. These conditions include: Left margin (column) 1 Right margin (column) 137 Page length (lines) 66 Pitch Pica Spacing (lines/inch) 6 Print quality Draft The ESCD code is the Linefeed (aIND) command. DThis will cause the line to split. The Return Linefeed (aNEL) command has Ethe code ESCE The Reverse Linefeed (aRI) command hasMthe code ESCM FormFeed (ASCII char code 12) The code ESC[3m is the Italic On (aSGR3) command. The Italics Off (aSGR23) command has a code ESC[23m The code ESC[4m is the Underline On (aSGR4) command. The Underline Off (aSGR24) command has a code ESC[24m The code ESC[1m is the Boldface On (aSGR1) command. The Boldface Off (aSGR22) command has a code ESC[22m The code ESC[4"z is the [4"zDoublestrike On (aDEN4) command. The Doublestrike Off (aDEN3) [3"zcommand has a code ESC[3"z The code ESC[2"z is the [2"zNLQ On (aDEN2) command. The NLQ Off (aDEN1) [1"zcommand has a code ESC[1"z The code ESC[2"z is one of the [2"xExtended (aEXTEND2) commands. The extended command has been used to implement the Proportional Font On command. Another extended command (aEXTEND1) is used as the Proportional Font Off [1"xcommand. This command has the code ESC[1"x The code ESC[2p is the Proportional Spacing On (aPROP2) command. The Proportional Spacing Off (aPROP1) command has the code ESC[1p The print modes Italics, Underline, Boldface, [4"zDoublestrike, [3"z[2"zNLQ, [1"z[2"xProportional Font[1"x and Proportional Spacing can all be turned off with the code ESC[0m which is the Normal Character Set (aSGR0) command. The code ESC[2w is the Elite On (aSHORP2) command. The Elite Off (aSHORP1) command has a code ESC[1w (the Elite Off command can be used as the Pica On command). The code ESC[4w is the Condensed (Fine) On (aSHORP4) command. The Condensed Off (aSHORP3) command has a code ESC[3w (the Condensed Off command can be used as the Pica On command). The code ESC[6w is the Enlarged On (aSHORP6) command. The Enlarged Off (aSHORP5) command has a code ESC[5w The print modes Elite and/or Compressed, Enlarged, [2"zNLQ, [1"z[2"xProportional Font[1"x and Proportional Spacing can all be turned off with the code ESC[0w which is the Normal Pitch (aSHORP0) command. FormFeed (ASCII char code 12) The code ESC[2v is the Superscript On (aSUS2) command. The Superscript Off (aSUS1) command has a code ESC[1v The code ESC[4v is the Subscript On (aSUS4) command. The Subscript Off (aSUS3) command has a code ESC[3v The code ESCL is the LPartial Line Up (aPLU) command. The Partial Line Down (aPLD) Kcommand which has the code ESCK returns PLU to normal. The code ESCK is the KPartial Line Down (aPLD) command. The Partial Line Up (aPLU) Lcommand which has the code ESCL returns PLD to normal. The print modes Superscript or Subscript  or LPartial Line Up K or KPartial Line Down L can all be turned off with the code ESC[0v which is the Normalize (aSUS0) command. There are 11 International character sets available on the Roland_1212A printer. The default set is the USA character set. The code ESC(B turns on the USA (aFNT0) char set which prints (B #$@[\]^`{|}~ The code ESC(R turns on the French (aFNT1) char set which prints (R #$@[\]^`{|}~ The code ESC(K turns on the German (aFNT2) char set which prints (K #$@[\]^`{|}~ The code ESC(A turns on the UK (aFNT3) char set which prints (A #$@[\]^`{|}~ The code ESC(E turns on the Danish I (aFNT4) char set which prints (E #$@[\]^`{|}~ The code ESC(H turns on the Sweden (aFNT5) char set which prints (H #$@[\]^`{|}~ The code ESC(Y turns on the Italian (aFNT6) char set which prints (Y #$@[\]^`{|}~ The code ESC(Z turns on the Spanish (aFNT7) char set which prints (Z #$@[\]^`{|}~ The code ESC(J turns on the Japanese (aFNT8) char set which prints (J #$@[\]^`{|}~ The code ESC(6 turns on the Norwegian (aFNT9) char set which prints(6 #$@[\]^`{|}~ The code ESC(C turns on the Danish II (aFNT10) char set which prints(C#$@[\]^`{|}~ [0"xTo get back to the normal character issue the USA set ESC(B code. Due to a bug in the Amiga Printer routines the ESC(B code is not recognized as a special code. To get around this bug the Roland_1212A printer driver has implemented one of the unused Extended Commands, command 0 (aEXTEND0), to replace the aFNT0 command. The code for aEXTEND0 is ESC[0"x FormFeed (ASCII char code 12) The code ESC[0z is the 1/8" Line Spacing (aVERP0) command. The 1/8" line spacing is changed by issuing the code ESC[1z which is the 1/6" Line Spacing (aVERP1) command. The code ESC[nt is the Form Length (aSLPP) command. The "n" is replaced by the length of the form(page) in lines. For example the command code ESC[12t would set the form length at 12 lines. The code ESC[nq is the Skip Perferation On (aPERF) command. The "n" is replaced by the number of lines before the perferation to skip. For example the command code ESC[6q would cause the printer to do a formfeed to the top of the next page when only 6 lines are left on a form. The code ESC[0q is the Skip Perferation Off (aPERF0) command. Example ESC[6t sets the form length at 6 lines. ESC[3q sets the skip over perferation at 3 lines. Line 3 Line 4 or Line 1 of new page after skipping 3 lines. Line 5 Line 6 Line 7 or Line 1 of new page after skipping 3 lines. ESC[0q turns skip perferation off. Line 9 Line 10 -- no line skipping time. Line 11 Line 12 Line 13 or Line 1 of new page Line 14 FormFeed (ASCII char code 12) FormFeed (ASCII char code 12) FormFeed (ASCII char code 12) ESCc to reset printer. c The code ESC#9 is the Left Margin Set (aLMS) command. The ASCII value of the character that immediately follows the command code is used as the left margin. For example ESC#9! sets the left margin at column 33 because the ASCII value of the character ! is 33. The code ESC#0 is the Right Margin Set (aRMS) command. The ASCII value of the character that immediately follows the command code is used as the right margin. For example ESC#0K sets the right margin at column 75 because the ASCII value of the character K is 75. The code ESC[n1;n2s is the Left & Right Margin Set (aSLRM) command. The "n1" is replaced by the value to be used as a left margin. The "n2" is replaced by the value to be used as a right margin. For example the code ESC[10;70s will set the left margin at 10 and the right margin at 70. The code ESC#3 is the Clear All Margins (aCAM) command. This command will clear the left and right margins. Example #9#ESC#9# sets the left margin at column 35 because the character # has an ASCII value of 35. #0KESC#0K sets the right margin at column 75 because the character K has an ASCII value of 75. ESC[15;65s set the right margin at column 15 and the right margin at column 65. #3ESC#3 clears all the margins. FormFeed (ASCII char code 12) The code ESCH is the Set Horizontal Tab (aHTS) command. The ASCII values of the characters that immediately follow the command code are used as the horizontal tab positions. All characters upto the first NULL (ASCII 0) character are used as tab markers. For example ESCH!/9AKNULL sets the tabs at columns 33, 47, 57, 65 and 75. These positions correspond to the ASCII values of the character string as shown: CHAR ASCII ! 33 / 47 9 57 A 65 K 75 NULL 0 The code ESCJ is the Set Vertical Tab (aVTS) command. The ASCII values of the characters that immediately follow the command code are used as the vertical tab positions. All characters upto the first NULL (ASCII 0) character are used as tab markers. For example ESCJ#-27