================================================== FXPR2.DOC 03/29/83 T. E. McCormick ================================================== FXPR2.C is a BDS C utility for setting print options on the Epson FX-80 (160 cps) printer. Many of the codes are identical to the MX-80, but some are new, and hence would not work on an MX-80/100. The purpose of this program is quickly set several options with a single command from the A> prompt. Please note: THIS IS NOT A "USER FRIENDLY" GENIE WHICH OBEYS ONE-FINGER COMMANDS FROM SOMEONE TOTALLY UNFAMILIAR WITH THE FX-80 !!!!!!!! If your 4th parameter cancels the effect of the 2nd parameter you entered, this program will NOT warn you. YOU WILL HAVE TO HAVE READ THE MANUAL !!!! Gary Novosielski wrote PRINTER.C (c) 1982 for the MX-80. This program was derived from that one, and Gary deserves the credit. PURPOSE OF THE PROGRAM: From a single command, several printer option commands may be sent to the FX-80. The Epson printers have an extremely wide range of software selectable print font sizes and styles (called modes). Line width, characters per inch, lines per vertical inch, print intensity, tab stops, style (pica, elite, italics, etc.), left/right margin settings, and "global" commands to perform several commonly used settings such as for letter writing in pica, elite or proportional can readily be set with a quick keyboard entry. It is clearly not convenient to go into BASIC or any other indirect means of sending those commands out the printer port. This program gets the job done in just one second. The Epxon FX-80 includes the "graftrak" option as standard, and implements some new features in addition to the 160 charater per second speed. Pin addressing commands, and many advanced features are not included in this program but you may be add them since the source file is available. FXPR2 was compiled under both 1.44 and 1.5 of BDS C. NOBOOT2 only worked properly on the 1.44 .COM file so that is what I have distributed as the .OBJ file. NOBOOT returns you immediately to the A> prompt without a "warm-boot" (which reloads the CCP from disk). The warm boot was delaying things and serving no purpose in this case. Simply entering A>FXPR2 will cause a menu of options to be displayed. These can be used as parameters following FXPR2 the next time it is entered. That menu appears as: FXPR2 (ver 2).......by Tom McCormick 04/08/83 from PRINTER.C (c) 1982 G.P. Novosielski FXPR2 [.....] where may be: RESET QUIET PITCH 10 PITCH 17 LPI3 LPI4 LPI5 LPI6 LPI8 LPI10 LPI12 PLINCH 1-22 WIDTH 80 [....or any value between 2 and 137 ] SKIP NOSKIP EJECT TABS n n n PROPOR DRAFT TEXT PICA ELITE ITALIC LEFTM n TINY TINYER ROMAN RIGHTM n LTRITA LTRITB LTRELI EMPHAS CONDEN ENLARG DOUBLE XEMPHA XCONDE XENLAR XDOUBL Various pitches (CPI) and bold or very bold... P5 P6 P10 P12 P17 P5B P6B P9B P10B P12B P17B P5VB P6VB P9VB P10VB \n Example: FXPR2 RESET LPI6 PITCH 10 ELITE There are more than 50 keyword options, and God knows how many combinations. They have NOT all been tested !! Be aware that the FX-80 treats various combinations differently than "you thought". The features have priorities with regard to others, and some negate others. The 150+ page manual has several tables that will help, but you will have to experiment a little too. It is a good idea to use RESET as your first keyword to "baseline" the subsequent commands. If you don't, you will be asking "why it behaves differently even though the same command is entered". For example, some of the features are "toggles"; the condition will remain set until unset with the same command. Other features require a specific reset command. The "RESET" command mentioned above will reset ALL modes to the power-on configuration you have chosen via the DIP switches at installation. Look for FXPARMS.BAS MBASIC source file. It contains many of the examples from the FX-80 Operation Manual, and allows you to fiddle with them and print them immediately to fine tune. This public domain program compiles under BDS C ver 1.4x or 1.5. As of March, 1983, you should use 1.4 if you want to apply NOBOOT2 to the FXPR2.COM file since NOBOOT2 does NOT work if compiled with BDS C ver 1.5. To Recompile with 1.4 and apply NOBOOT2: A>CC1 FXPR2.C A>CLINK FXPR2 A>NOBOOT2 FXPR2.COM FXPR2 PROGRAM OPTIONS: ENTER ONE OR MORE CONDEN Condensed print mode CONDEN ENLARG Condensed/enlarged mode at 6 characters per inch. DOUBLE Double-strike mode: strikes each char twice to darken. DRAFT Cancels any double-strike mode, or super/sub scripting. EJECT Sends printer to top of next page. ELITE Elite type style EMPHAS Emphasized printing ENLARG Large lettering ITALIC Print in Italic style. LEFTM LEFTM n sets left margin to n column position LPI LPI n (where n = 3 to 216) will cause the vertical spacing to be n/216 inches per line...... 7 LPI = 31 9 LPI = 24 11 LPI = 20. LPI3 Three lines per inch vertical spacing LPI4 Four lines per inch vertical spacing LPI5 Five lines per inch vertical spacing LPI6 Six lines per inch vertical spacing LPI8 Eight lines per inch vertical spacing LPI10 Ten lines per inch vertical spacing LPI12 Twelve lines per inch vertical spacing LTRELI Global command for RESET ELITE P12 WIDTH 132 Normal LTRITA Global command for RESET ITALIC P12 WIDTH 132 Normal LTRITB Global command for RESET ITALIC P12B WIDTH 132 Bold NOSKIP The perforation will not be skipped over with blank lines. P5 Pitch 5 characters to an inch horizontally P5B Pitch 5 and bold P5VB Pitch 5 and very bold P6 Pitch 6 characters to an inch horizontally P6B Pitch 6 and bold P6VB Pitch 6 and very bold P9B Pitch 9 and bold (Note: there is no P9) P9VB Pitch 9 and very bold P10 Pitch 10 and normal intensity P10B Pitch 10 and bold P10VB Pitch 10 and very bold P12 Pitch 12 and normal intensity P12B Pitch 12 and bold P17 Pitch 17 and normal intensity P17B Pitch 17 and bold PICA Pica type style PITCH Characters per inch: PITCH 10 or PITCH 17 are valid. PLINCH Set page length in inches ( 1 - 22 ); PLINCH 11 PROPOR Proportional spacing of letters (horizontally). QUIET Slow to 80 char per second (half speed) to quiet operation. RESET Cause printer to return to power-on option settings. RIGHTM RIGHTM n sets right margin to n column position ROMAN Print in Roman style. SKIP Skip over perforation specifying 6 lines. TABS Sets horizontal tab positions: TAB n n n TEXT From original program. TINY Causes print to be Subscript sized and 8 lines per inch. TINYER Subscript sized and 10 lines per vertical inch. WIDTH WIDTH 80 or [..any value between 2 and 137 ]. XCONDE Cancels condensed mode. XDOUBL Cancels double-strike mode. XEMPHA Cancels emphasized mode. XENLAR Cancels enlarged mode. The following print lines are useful in various combinations to test FXPR2x after your modifications..................... LINETEST 1 2 3 4 5 6 7 12345678901234567890123456789012345678901234567890123456789012345678901234567890 +++++++++1+++++++++2+++++++++3+++++++++4+++++++++5+++++++++6+++++++++7++++++++++++++++++++++++96+++++++++++++++++++++120+++++++++132 137 ABCDE abcde @#$%&? ABC abc @#$ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This is lllllower case. 1111111111 THIS IS UUUUUPPER CASE. 2222222222 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW All lines have same # characters.. =-=-=-=-=-=-=-=-=-= end of FXPR2.DOC =-=-=-=-=-=-=-=-=-=-=