Letter from Steve Gunhouse

See all articles from Sinc-Link v9 n2
Author(s): Steve Gunhouse
Publication: Sinc-Link
Pub Details: Sinc-Link v9 n2 (Volume 9, Issue 2)
Date: March/April 1991
Pages: 31-33

January 26, 1991

Dear George,

I got the latest issue of Sinc-Link today, and am glad to say you and the club seem to be thriving.

I read with interest Bob Swoger and Larry Kenny‘s article on changing the stepping rate on a Larken disk. Perhaps that is one problem I have had with attempting to use disks between my two drives, though I have not attempted to verify it yet.

However, I noticed a serious mistake in the program. In line 80, the new stepping rate is POKEd to 40015, but the READ/POKE in line 120 writes over this! In other words, the only rate this program will change to is the one in the DATA, which is the 30ms rate. The slow rate will not prevent someone with a faster drive from reading the disk, but means the program does not actually do what it says.

The cure is trivial: change line 80 to line 130. Then the POKE will occur after the DATA has been READ, and all will be well.

Note also that those values are for the old controller. The same numbers will have different meanings if you have one of the newer controllers. My system with an FD1797 from AERCO uses the same stepping rates, so I can’t guess what the new rates might be, though 1, 2, 3, and 6 might be a good guess. If you have one of the new controllers and an appropriate drive, it really won’t matter since it will still be slow enough.

Also, Réal Gagnon‘s Sinclair Trivia is missing one answer, the one about the unique feature of the 2068. Since he said 2068 and not Spectrum, I can only presume that it is a feature the 2068 has but the Spectrum does not: either bank switching, the AY3-8912 sound chip, or the fact it has 2 joystick ports.

I see you also published my Tasword file compressor. I hope no one tries to write me at the address given, though, since that is my home address. Well, I suppose my parents would forward it here.

A suggestion for for a more elegant way to handle the OUT and delay on page 17 (or anywhere else). We could make something which acts like an LPRINT to some extent. Also, the delay may need to check a different number on different printers, as you well know (when I changed from a Fastext 80 to my current Panasonic, I did have to change numbers).

The routine would work as follows: place the item(s) to be sent to the printer into a string (I will use p$). Then call the following subroutine:

1000 LET p=IN 127: IF p-8*INT (p/8)+16*INT (p/16)=229 THEN GOTO 1000
1005 IF LEN p$=0 THEN RETURN
1010 OUT 127,CODE p$: LET p$=p$(2 TO)
1015 GOTO 1000

The string for the original program would be as follows: LET p$=CHR$ 27+”3″+CHR$ 15+CHR$ 15 +CHR$ 27+”T0″: GOSUB 1000. To me at least, this is somewhat more elegant than the original. Also, it will let you “LPRINT” any string without needing to set up the LKDOS OPEN #3,”lp” command, but you will need to add an ENTER to each line (CHR$ 13).

For the record, there are at least 4 signals from the printer which the AERCO interface passes to the computer by IN 127. There are actually 5 lines from the printer to the computer which are supposed to carry signals, which are labelled in my printer manual as ACK, PO, BUSY, SLCT, and ERROR (the Fastext 80 uses some slightly different names). The nearest estimates I have for the different bits are as follows:

Bit 0 Not used (always high)
Bit 1 PO    Paper Out
Bit 2 ERROR (high means no error)
Bit 3 ???   unknown (possibly SELECT or ACK)
Bit 4 BUSY  (high means buffer full or printer off-line)
Bits 5-7 not used (always high)

The primary difference between my printer and yours as far as IN 127 is concerned is bit 3 above – yours appears to be always high, while mine stays low. Hence, you get 237, but I find 229 when I “PRINT IN 127”. The line 1000 in the routine above removes only bit 3, thus changing your 237 to my 229 but leaving mine alone. You could use line 1000 anywhere you normally use IF IN 127<>237 THEN…

Speaking of which, is the 108 you listed an error? It does not agree with your previously listed value of 237.

Note the 27, 51, 15 is equivalent to 27, 65, 5 if your printer has superscripts but not n/216 inch spacing – some of the older EPSON and compatible printers don’t. Also, people with IBM Proprinter compatible printers will need to add an additional 27, 50. I notice your printer could not handle the subscript command. The small print of the subscript looks very good in compressed pitch, and changing the spacing makes it look almost like you simply reduced it to about 60% of the original. Using compressed and reducing the print spacing to 8 lines per inch is not as good looking, but will do in a pinch.

Oh, if I got a red face every time I made a mistake, people would think I had a constant sunburn. In my line, you discover mistakes are unavoidable, and try to correct them as quickly as possible. So you will have to forgive me my bad habit of jumping on any error I see, as I expect people to jump on my errors.

Here is a list of the various values I get from my printer for various printer conditions, along with my interpretations thereof:

Code Printer State       Interpretation
 225 Printer Off         All lines low
 229 Printer Ready       Line 2 high (no error)
 231 Paper Out/Online    Lines 1 and 2 (paper out, no error)
 241 Offline             Line 4 high (Busy and error)
 243 Paper Out/Offline   Lines 1 and 4 (Busy, error, and PO)
 245 Printer Busy        Lines 2 and 4 (Busy and no error)

Presumably, your printer may have 8 added to most of these. Additionally, I believe the Fastext 80 does not possess a non-error paper-out condition. Therefore, you would not have a 231 or equivalent. There are other differences, particularly in the SELECT line, but from these values I suspect that line is not available. I still don’t know what line 3 is, which your printer has high and mine low. It isn’t the SELECT line, but perhaps it is some line not used on either.

I did not get to mail this last week – I misplaced the copy I had printed, and am just about to re-print it. Take care, and I will write you again later. Peace!

Sincerely,
Steven V. Gunhouse

P.S. At the top of page 2, the line reading LET P$ = CHR$(27)+… ends in a “TØ” (i.e., number zero, not letter O). While it is easy to see the difference on the screen, with the slashed zero, most printers do no such thing. Sorry for any confusion.

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.