delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/21/22:28:58

To: djgpp AT delorie DOT com
Message-ID: <19990621.192737.10271.0.vmccar@juno.com>
X-Mailer: Juno 1.49
X-Juno-Line-Breaks: 0,2-19,21-24,29,32,34,40-43,45-46,48-49,51-52,54-57
From: Vince McCarthy <vmccar AT juno DOT com>
Date: Mon, 21 Jun 1999 22:26:58 EDT
Reply-To: djgpp AT delorie DOT com

   Eli 
       This is an update about the printer commands and where I stand as
of now..       
      Below is a small summary of the Printer commands for a Panasonic
  Dot-matrix printer.

   (Print Quality)
   Quality and Pitch:
   Name:  ESC   1    n
   Dec:   27    73   n
   Hex:   1B    49   n

      n are the different draft and Lq sizes. 
      Draft cpi's, 0=10 CPI, 8=12 CPI, 16=17 CPI, these are draft only.
         
   (Selects LQ typeface.)
   Typeface:
   Name:  ESC   1    n
   Dec:   27    73   n
   Hex:   1B    49   n
      n = 0=Roman, 1=Sanserif, 2=Courier, 3=Prestige, and 4=Script fonts.


   Typeface must be reselected after any pitch change.

      The above codes work from 0x01 to the highest value of that
function. . It seems that the printer commands have to be in hexidecimal
and not ASCII. The printer will not change print quality and typeface 
for any  hex value of 0x00 for draft quality of 10 CPI  or the Roman
typeface. 
      It seems that the printer responds to hex values, except as I said
for 0x00 which has no effect. If you start printing without sending any
pitch or font change commands
to the printer then it will print draft 10CPI, but once you issue a
command to the printer, you cannot retreive that function.
       When I set an operation such as proportional printing with a 0x01
It requires a hex 0x00 to release the proportional  printing, I cannot 
get the printer to release the proportional printing unless I substitute
an 0xbd value for the 0x00 value. this works on several other printer
functions also. I also tried using the complete table of ASCII/Hex values
from 1 to 255 for the last command and had no luck.
      Thse commands work except for as noted.
     fprintf(stdprn, "\x1B\x50\x01"); turns on proportional printing.

      fprint(stdprn, \x1B, \x50\x00");  command to turn off proportional
command will not work
     
     fprint(stdprn, \x1B, \x50\xbd");  modified command will release
proportional printing.
     
     I am in the process of writing a header file with several functions
to save some work on setting up the printer.

     I am trying now  to contact Panasonic to find out if there is
something that is not in the manual that might help.
    Thank you 
    Vince McCarthy.


___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019