Re: escape sequences from A3000

charlie thibault (cth@bruker.com)
Thu, 29 Jun 95 9:18:39 EDT

According to G. Pearson:
>
> I'd like to be able to send arbitrary escape sequences from an Aspect 3000
> computer to the printer, in order to "program" an ink-jet printer ... Is
> there a simple way to do this? I can generate a file of arbitrary byte
> sequences off line on a PC and send the file to the Aspect via ZZNET or
> NMRNET.

If you have a file with the escape sequences on the Aspect 3000 you
can send it to the printer with the LIST command. For example if
the file is named SETUP.PTR and the printer is connected to channel B
you could type:

LIST SETUP.PTR/=BO

Be careful if your printer cares about the parity bit (bit 7) because
Kermit and NMRLINK (I don't know about ZZNET or NMRNET) will set the
parity bit of each character transferred when transfering in ASCII mode.
If the file is transferred in binary mode the parity bit is left alone
but the byte order may be wrong. You'll have to experiment with this.

> Could an ".EXE" file do the job, or is the script language
> for ADAKOS too primative?

The EXE interpreter in ADAKOS cannot generate characters and send them
to the serial ports by itself (i.e. there is no equivalent to
"echo '\007'" etc.). However, the DO program (which is an extention
to the EXE interpreter and is distributed on the "SYSTOOLS" floppy
could be used to issue the above LIST command before printing files.
For example if you had two files, one to setup the printer for printing
called SET.PTR and the other called UNSET.PTR to return it to the "normal"
state you could write a script called PRINTIT.EXE the following:

LIST SET.PTR/=BO
LIST #P1/=BO
LIST UNSET.PTR/=BO

You could then print files with the following command:

DO PRINTIT filename.ext

Best Regards,
Charlie

-- 
==================================================================
	
       ...     ...	Charles G. Thibault, Ph.D.
      .    * .    .	Manager of Software Development
       .   . .   .	Bruker Instruments Inc.
       B R U K E R	Manning Park
       .   . .   .	Billerica, MA. 01821 USA
      .    * .    .	Tel: (508)667-9580 x218 Fax: (508)667-5993
       ...     ...      cth@bruker.com

==================================================================