The 4662 Programming Manual code for converting X,Y,Z to PLOT10 may have worked, but I could not get the Option 01 RS-232 COMM to communicate with my 4662.
I searched the web for Tekniques articles on 4662 and none of them included programs.
I then searched my Tektronix 4051 directory on my computer and found the 4051 DIAGNOSTIC programs I had posted back in July of this year included a 4662 Plotter RS-232 Test and a 4662 GPIB Mfg Test BASIC programs. All these diagnostic programs were written by J.B. Matthews in 1979. There were a couple of these programs that included 4051 CALL "EXEC" assembly code - but not for the 4662 programs.
I examined and made notes of how his 4662 RS-232 program commands to the 4662 worked.
One of the tests involved changing the plotter four switches on the rear panel - and not having to cycle plotter power!
I decided to try the 4662 Plotter RS-232 Test - the program prints the following on the CRT:
Code:
4662 RS-232 TEST PROGRAM.
Set back switches to 1221.
Reset the 4662.
Type a RETURN when switches are set.
I set the switches in the back of the plotter to 1221.
I like the way each switch makes a slightly different click when it reaches 0.
This makes it easy to change the settings when it is difficult (dark) to read the switches.
There is no reset switch on the 4662 so I turned off the power and then turned it back on.
I then pressed RETURN on the 4054A keyboard and nothing happened.
I pressed a couple of the function keys and nothing happened.
I tried typing an RS-232 plotter command:
PRINT @40:"<ESC><FF>"
This should HOME the pen to the top left corner and nothing happened.
I typed the command to see the Option 1 RS-232 COMM port settings:
CALL "PRLIST"
and saw that the baud rate was set to 300 7N2 - and the four switches set the plotter for the same rate.
At this point I wondered if the Tektronix 25-pin cable was working.
I found one of my old posts that indicated I used a red Laplink (vintage PC to PC program and cable to copy files between PCs) - the cable provides a TX to RX crossover connection. Both ends of the Laplink cable are female with a 25-pin and 9-pin DB connector on both ends. I plugged a one end of the Laplink cable into the 4662 modem RS-232 25-pin male port and the other end into the Tektronix 25-pin cable. The other end of the Tektronix cable was plugged into the female RS-232 connector in the ROM Backpack of the 4052A.
I ran the 4662 RS-232 TEST PROGRAM again - and now it worked! Here are my photos of various screens of this program (yellow box around function key code, blue around status word results):
The RS-232 plotter tests also print text and draw - but I was having some Faber Castell pen issues - but got this RS-232 plot of function keys 1 (draws a frame) and 2 (alphascale, rotate and font)
Since I had both RS-232 and GPIB cables connected I decided to run the DIAG 4662 GPIB MFG TEST program which had even more function key tests:
Resulting in this plot
Armed with many examples of 4050 BASIC code for the 4662 plotter using both RS-232 and GPIB MSA, these two MFG Test programs were very informative.
The 4662 RS-232 does NOT support hardware or software handshake - so the manual indicates you could lower the baud rate, but still overrun the tiny buffer in the original 4662 plotter. The manual indicated a BLOCK based protocol would work at all baud rates, and outlined what the host program would need to do but gave no example program. Now I have a working example of using the BLOCK protocol in the 4662 RS-232 Test BASIC program.
The 4662 GPIB interface is the easiest to use in MSA mode - but I am still encountering issues with the program hanging while simply accessing the Flash Drive to fetch and display file names. I need to try my program using my original Flash Drive - to make sure it is not something in the Buffered Flash Drive hardware or firmware. My 4662 program currently works better with GPIB DAB mode - much fewer hangs.