Printer Prose

See all articles from Sinc-Link v8 n2
Author(s): Lionel Keeping
Publication: Sinc-Link
Pub Details: Sinc-Link v8 n2 (Volume 8, Issue 2)
Date: March/April 1990
Pages: 11

About three months ago I decided that I had been wishing for a printer for long enough, agonizing over whether I really NEEDED to spend that kind of money on my “hobby”. (Sound familiar?) I finally talked myself (read ‘my wife’) into it and made the plunge. As a result, George Chambers asked me to describe my experience (so blame him for this).

The interface, a Tasman ‘B’ I think, was provided by a former club member through George. The first thing I did upon receipt, and before reading the instructions, was load the Tasman driver software and tried to LLIST the BASIC. On the first attempt, I got a single line of characters which had been overprinted many times. I read the printer manual and found a possible solution. It required a DIP switch adjustment. That done, the LLISTing worked fine.

I then attempted to print a screen COPY. Unfortunately, this time, each pass of the print head was separated by a line. I decided it was time to read the interface instructions.

Upon doing that I found I was able to specify the correct codes for Line Feed and Carriage Return for my printer quite easily by following the instructions in the BASIC program. I also had to reset the DIP switch! (The Moral is – READ THE INSTRUCTIONS FIRST!)

Having cleared the first two hurdles, I decided it was time to try out some of the fancy fonts of my Panasonic KX-P1180. It was possible, after a fashion, to do this from the control panel of the printer. However, I wanted the computer to do it! Therefore, I looked up the section on sending control codes to the printer in the manual and wrote a short BASIC program to print text in Enlarged mode.

You guessed it, it didn’t work.

For several hours, over two nights, I tried, using both the Tasman driver and the V3 Larken driver, with no luck. I was stumped. I reread the interface manual, back issues of this newsletter and all my magazines, over and over until I was about to give up. Then I saw my mistake.

In all the literature, it stated to send an ESC character (CHR$ 27) prior to sending the control sequence for the font required. However, as I finally discovered, the Tasman interface software is different. It requires an ESC prior to each code in the escape sequence in addition to the original ESC code. For example, with my printer, the code sequence given in the manual for enlarged text is ESC+W+1 in ASCII or CHR$ 27; CHR$ 87; CHR$ 1 in decimal codes. To get this to work with the Tasman software, I had to send the sequence CHR$ 27; CHR$ 27; CHR$ 87; CHR$ 27; CHR$ 1. Therefore, Moral #2 is – READ THE INSTRUCTIONS CAREFULLY.

I will now mention something else that may not be common knowledge about the Tasman interface. It will not work with the Larken Disk Interface. According to Larry Kenny, it has to do with the addressing of the Tasman interface. Apparently it is poorly buffered (forgive me if I get this wrong Larry) and interferes with DOS commands. (I now use an Aerco type interface.) This leads me into the next part of the story.

Having to load the driver from tape each time was getting to be a nuisance so I decided to try using the Larken driver on the Version 3 EPROM. I read the Larken manual and found that it requires a POKE to set up the driver for the Tasman. That is, POKE 16096, 1. I also knew from my past trouble that I didn’t want a Linefeed with the Carriage Return so this required a POKE 16092, 0.

I was now ready to roll. Or so I thought. I could send text to the printer all right but I still could not send the control codes with the Larken driver. This resulted in another period of study of back issues. I finally found the answer (but for the life of me I can’t remember where) in an article for a different disk system. Apparently, the writer of the article was having the same problem I was and asked the designer what the trouble was. The solution? Send ASCII characters instead of SINCLAIR characters.

To do this with the Larken you have to bypass the routine that sends the SINCLAIR character set to the printer. This poke is found on page 9 of my Larken manual and is POKE 16093, 32. When this is done, no SINCLAIR tokens will be sent to the printer and ESC sequences will work. As a result, the code sequence for Enlarged text is CHR$27; CHR$ 87; CHR$ 1. Incidentally, the Larken does not require the extra CHR$ 27 required by the Tasman driver.

I am still puzzled by one thing however. I have not been able to send control codes using the OUT 127,CODE that I have since seen in programs published in this newsletter. I have checked the values for my computer (using the familiar PRINT IN 127) and found them to be 237 when ready and 233 when not ready. All I have gotten so far is widely spaced lines and characters, nothing like the effect I was trying for. I intend to keep on trying until I can figure it out but if someone already knows the answer, please enlighten me.

That about sums up my experience during the first few days with the printer. I hope this was a help to someone.

Lionel M. Keeping