Friday, May 20, 2016

Continuing 1442 card punch restoration of punch wheel, picking up core memory for upgrade of 1130 to 32K configuration

1442 CARD READER/PUNCH RESTORATION

I took a bit of plastic off the restored section of the punch wheel, so that when I coat it with a slurry of course tumbling grit it should end up at the target diameter. I picked up some 1/4 millimeter sized silicon carbide grit which will give the wheel the same quality of 'grab' on punched card stock as the original ceramic material on the undamaged portion of the wheel.

My grit will arrive on Saturday evening and by Sunday I expect to have the wheel completed, ready for reinstallation. Since it has been so long since I disassembled the punch, I will have to work carefully from exploded parts diagrams, maintenance manual pictures and some interpolation in order to get the unit back together properly.

ADDITIONAL CORE MEMORY TO EXPAND 1130 CONFIGURATION

I came across a nice looking core memory card on ebay and purchased it. A 32K by 18 bit core that operations at up to 950ns read-modify-rewrite cycle time. The 1130 is a 16 bit word with two parity bits - thus 18 bits is a perfect fit.

An 1130 can address a max of 32768 words of memory and my machine has 16384 words installed. This one card can provide the entire memory needs of the 1130 and I can use half of it to expand out my system to max configuration.

The 1130 operates with one of two memory speeds - 3.6us or 2.2us - and the one I have is the slower 3.6us version. Using a 0.95us memory will easily fit in the much longer cycle time of the 1130.

There are two levels of complication in adding in this memory, assuming I worked out the interface electronics, power and mechanical details. The first challenges arise when I increase the machine to a 32K 3.6us configuration. The additional challenges will arise if I tried to use this module to convert the machine to a 32K 2.2us configuration, disabling the original core memory in favor of this card.

In either case, I would need to add circuitry to support the additional addressing - addressing registers were built with only 14 bits of address, output lines from adders and other registers that might receive addresses were set up with only 14 bits, and there may be other places were IBM omitted the signal traces, flipflops and gates needed for 15 bit addresses. The motherboard as well as SLT cards might be different in a 64K system, to provide for the extra address bit.

Spare gates and flipflops might be on the installed cards, the appropriate signal traces may be on the backplane and everything I need could be present so that all I need is the address decoding for the extra bit and the interface logic to interpose the new memory in the current system. However, seeing how different the ALDs are for different 1130 instances, I doubt it would be this clean and easy.

Detailed investigation would be needed to assess the addressing state of the machine as it sits, the operational state of the extra bit for any that are already in the machine, and then create a plan to address any gaps. Might be addition of wirewrap signals on the backplane, but it could be as complex as building an entire shadow register or logical unit in order to generate and deliver the needed high order address bit.

The second case involves timing sensitive changes that were made on 2.2us machines to work properly with the faster memory. I don't have those circuits and might need to do some significant rework, add in some circuitry of my own, and potentially debug timing issues because of the Frankenstein nature of this approach.

I will investigate the first case, expanding to a 32K word 3.6us configuration, but have decided against the much higher risk alternative of a 2.2us system. I could, however, add in some extensions to the architecture, bank switching memory under control of currently unassigned op codes. That would be fun but requires quite a bit of change to both the 1130 and the disk monitor system software. Next year, if ever.

RESTORING CALCOMP 565 AS IBM 1627 PLOTTER

Still nothing from the metalworker and nothing from the designer of the replacement pen assembly.


Thursday, May 19, 2016

Nearly done restoring the broken grit wheel for the punch unit in the 1442 reader/punch, while waiting for plotter restoration answers

1442 CARD READER/PUNCH RESTORATION

I worked with my Dremel tool to shape the UV hardened plastic I am using on the broken wheel. I sanded it down on the sides and evened the top, but decided I had to make the diameter of my new section slightly higher so I could sand it down to the exact size I wanted.

This afternoon I got it closer to round. It rolls nicely on a flat surface other than one high spot, but doesn't yet have the grit applied that will ensure it grips and pulls the card one column at a time during punching. In my next session, I will drop the high point and get it very close to perfect before I mix up some grit in the glue and carefully hand apply it to the surface.

By early evening, the wheel was within 1/128" of the diameter of the rest of the wheel. Since this wheel meets a spring loaded rubber roller (with a card pinched in between), I should have less than 2% variation in column spacing at worst case which should be within the margin of any card reader.

The remaining step is to select an appropriate grit which I can mix with the UV curing resin to form a slurry. If I can apply it very thinly and carefully along the replaced arc on the wheel, hardening as I go, it should restore the wheel to usable condition.

Then I have to reassemble the punch unit with this wheel, put the punch unit back and reassemble the rest of the 1442, then continue to clean up bad lubricants and adjust operation until it is reading and punching properly. That will take a few weeks of work, I suspect.

RESTORING CALCOMP 565 AS IBM 1627 PLOTTER

I am still waiting to hear back from the metalworker on whether they can built the replacement cylinder and a ballpark cost. I suppose I should be looking for a backup craftsman in case I don't here from them or they aren't interested in a small but exacting project.

I am also waiting to receive some more detailed drawings that another hobbyist produced to manufacture his own pen assemblies for the plotter. It has been a while, but he may still be searching for them. If not, I have to complete the design and make all the drawings to allow a shop to build this to my spec.

If I design my own, I think I will start with an existing solenoid coil that closely matches the specs of the original Calcomp part. It has to have a hollow center at least large enough for a reasonable pen holding 'slug', ideally the same as the Calcomp barrel diameter. Then, knowing the exact size, I can design the holder and other parts to fit. If I proceed from the Calcomp or hobbyist recreation sizes, then I need to locate a solenoid to fit the outer diameter and length of the original.

Miscellaneous

SAGA OF THE CRASHED COMPUTER

I shipped my failed hard drive to a recovery company, Datacent, who are going to open and evaluate the drive in a clean room. Based on what conditions they see, I can allow them to make whatever repairs are needed and extract as much data as they can from the drive.

If they are successful and I agree, I will pay a steep but prearranged ransom to get the data back but my costs are limited in the worst case to what I spent for shipping. In other words, I haven't decided firmly yet and will make the call later once I have more information.

Meanwhile, I wait for the replacement pre-imaged drive which I will clone over to my SSD for use in the laptop, once it arrives. In the interim, I will try to focus on aspects of the project that don't require a computer - working on the broken wheel inside the 1442 card reader/punch, for example.

CHM VOLUNTEER WORK

I replaced brush blocks on the IBM 729 tape drives which are connected to our twin 1401 systems. While the actual replacement and testing effort takes about three hours per drive, we don't have enough spare blocks so that each set of removed blocks have to be reworked to put in our substitute graphite brushes. This involves some careful dis-assembly, soldering work and reassembly.

Generally I drop at least one screw during the work on a drive, requiring some hunting inside the drive or on the floor, so that adds about 15 minutes to the task time. We have completed five of the seven drives to date and one more will be straightforward. The last drive is a beast because it has the twin brush blocks for the feed reel side installed from a nearly inaccessible spot, instead of along the outside frame like most of the other drives.

Tuesday, May 17, 2016

Recent work almost certainly lost, but soldiering on

LAPTOP CRASH

The Windows System Repair (which insisted it could not be cancelled) ran 30-40 hours before ceasing all disk activity and sitting helplessly inert. When I power cycled the laptop, I received a SMART error message to expect imminent disk failure. However, that occured before I could access the disk to remove anything.

Disk diagnostics on the laptop returned "Unusual Error" and immediately aborted. My standalone disk cloning box couldn't read it. I connected it to another PC and ran a good disk recovery utility. The drive takes a full set of recovery actions on each and every IO - I think 256 times is the magic number. That is why the system repair ran so long.

When I mount the disk to my other PC, it does its continual error recovery cycling amid each IO, but it did show up eventually. The disk recovery utility (Seagate) found the partitions and I selected the one with my data on it. The detailed scan ran excruciatingly slow - after four hours, I had found 232 directory entries and no files yet, with a projected completion time of over 10 years.

It does eventually get the data, but so slow as to be impractical. It does appear the data is intact and can eventually be read, although I am not sure how completely since it was just starting into the drive when I bailed out.

I could use a hard disk recovery service - they will swap electronics, replace heads if necessary and then extract as much data as possible. The downside is price - a minimum of $600 and some quoted up to $2400. While it is painful to have lost about a month of coding and some fpga logic, plus the huge annoyance of reinstalling applications and toolchains, it is also hard to justify spending that much money given the risk that key files might still not be fully recovered.

I did buy a 960GB SSD to use in the laptop and will receive a replacement hard disk drive with Windows and drivers installed, as the seller of the laptop considers this an in-warranty event.

All this pain because I didn't verify that I had a correctly operating backup in place on the laptop - assuming I was safe until it was too late.

RESTORING CALCOMP 565 AS IBM 1627 PLOTTER

I sent very detailed specs to the metalworker to get a quote for the cylinder, with holes predrilled for the pin feed but it is up to me to find/create them. I have received several good suggestions from readers of the blog, all of which I am considering carefully.

SAC INTERFACE FOR ADDING PERIPHERALS TO THE 1130

I will have to recreate everything I had built for the new GUI - screens, restructured logic in the model-controller-view pattern, and test it all again. At least I should be able to take a workable approach straight away, rather than fighting to learn what works as I did in past weeks. I also need to find and download all the images I was using for the interface. All achievable, once I put in the time.

I have adjusted or refined parts of the fpga logic, as well as having converted it to work successfully on the Vivado toolchain for the new fpga board. All that will have to be redone and I hope I can figure out what changes I had to make. Here, I can imagine burning debugging hours in the future only to spot a problem that I realize had been fixed but lost in the great crash of May 2016.

Sunday, May 15, 2016

Laptop disk crisis, setback on plotter restoration and progress on SAC program (possibly lost however)

Possible serious setback - I awoke to find my laptop with the Windows Startup Repair screen displayed, claiming to be repairing disk problems. It has been six hours minimum, perhaps many more depending on when the laptop attempted a reboot and started the repair. It can't be more than 15 hours since I saw a normal display on the laptop before I retired last night.

I have read posts where this process took multiple days to complete, after which I discover exactly how little or much of the disk contents are still accessible. I will buy a new disk and cloning gear, but I will have some challenges with software, keys and the like if I have to reinstall Windows and applications. More seriously, the work of the past couple of weeks might be completely obliterated.

RESTORING CALCOMP 565 AS IBM 1627 PLOTTER

Disappointing news from the metalworker who I hoped could remove the dent in the plotter drum. He believes that the aluminum is too stretched to get good results working it. The only solution would be to fabricate a replacement cylinder, but that would depend on my finding a source for the pin feed conical shaped rivets that are on the two ends.

This was one of the possible routes to repair - a substitute aluminum cylinder - but the pin feed rivets are the real fly in the ointment. A replacement cylinder would need the rivets to act as pin feed pulling paper on the drum. If the shape isn't correct, the paper could slip as the plotter moves the drum up and down or it could cause the paper to bulge up off the surface.

Pin  rivets that act as tractor feed for continous paper rolls
It does not appear that there is any need for tractor feed (pin feed) paper handling and nobody makes rivets for that role. My rivet heads are cone shaped, 1/8" at the base and spaced at 3/8" intervals around the drum circumference. I can find round head rivets, but not that close a match. The style that comes closest is called 'high button' head but I can't find any source for those either.

There are some alternate courses of action I could take. One would be to build a replacement cylinder but without the tractor feed pins (rivets). It won't be a faithful restoration because of this, but it will allow me to tape sheets of paper to the drum and run some plotting.

A very unlikely solution would be to remove the existing rivets as carefully as I can and find someone who can weld extensions to the bottom to allow them to be affixed to a replacement cylinder or otherwise find a way to attach them.

Backside of the pin rivets
As you can see, I either have to work the rolled over rivets to bend the metal up and into a hollow tube, allowing removal from the old drum and installation on the new, or I have to grind off this side, weld a new rivet rod to the removed rivet, and attach the new rod somehow inside the replacement drum.

SAC INTERFACE FOR ADDING PERIPHERALS TO THE 1130


Restructuring the GUI

I finished testing the PC side of the virtual 2501 card reader. It handles hopper empty conditions properly and will set or reset the last card status when the fpga signals operation complete.

Using what I learned, I then worked on other device drivers to have them behave properly although purely from a PC only standpoint as I am not yet testing with the fpga and the 1130 system in the loop. Next up for careful study and testing was the virtual 1403 printer function. In the course of testing, I decided to drop the Carriage Restore button and function from the GUI.

From here, I finished the PC only testing for the real 1627 plotter and real 1134/1055 paper tape devices. These serve only to activate and deactivate the fpga which controls the real devices. The 2310 device took a bit more time to accomplish.

Next up was the code to communicate over the USB link. I restructured this so that my Queueing object will instantiate the USB handling module and keep it encapsulated entirely inside. This allows me to change the USB functions independently and allows the queueing module to control how it communicates, potentially even entirely replacing the USB link with something else. Good OO structure now and tested as far as possible without hooking up to the FPGA.

Once I felt comfortable with the logic for queuing transactions, having them pulled and communicated over a USB link and responses posted back to the caller, I could start up the background process that regularly updates the main screen with 1130 status. This too took some time to straighten out.

I had some hangs and stalls, since the main screen involves three cooperating threads, but I eventually got it all straightened out. I was attempting to pass an argument to one of the GUI threads that handle the main window status signals, which caused odd problems when I naively adding the argument to the threading command. I finally figured out a method to accomplish what I wanted without the argument.

Another enhancement I made was to add in logging window support, where status and error messages can accumulate, using the wxPython logging capability. This gives me a nice window with timestamps, support for saving the log to a file and/or clearing it out, and a new Action menu choice to Show or Hide the log window. This does require that I walk through all the code, replacing the diagnostic, status and warning 'print' commands with logging calls, a tedious but straightforward process. Fortunately, logging is thread safe and works well with my many-threaded design.

Thursday, May 12, 2016

Debugging started on 2501 function as GUI change nears completion

Many interruptions today - getting a filling over the recent root canal, volunteering at CHM where I installed 12 new brushes in one of the 729 tape drives, and dealing with the transition to Medicare (senior citizen) health care which involved two agencies and the health care provider. Still, I did get some work done on the 1130 project.

SAC INTERFACE FOR ADDING PERIPHERALS TO THE 1130

Restructuring the GUI

A friend asked why I didn't just reproduce the appearance of the various device control panels, and of the 1130's main display panel. It was something I considered, but decided against because the 'signal to noise ratio' would be too low.

Take, for example, the control panel for the 1442 card reader/punch. There are four active buttons, four lamps and a dummy button on the right side, and a set of seven lights in a flat black square on the left. The only lamp that is useful on my GUI is the Ready lamp and the only button that is useful is the NPRO one.

That leaves 3 live and 1 unused buttons cluttering up the screen, plus 10 of the 11 lights unused. Then, I need to show the state of the hopper, display the file names for both input hopper and output stackers, indicate the number of cards remaining in the hopper, and offer a Prog Load button which is on the main 1130 keyboard rather than the card reader.

The 1132 printer has 18 positions filled with buttons, lamps or a switch, but only a couple are useful. Displaying the paper and carriage control tape files does not have an analog on the real 1132. Once again, most of the panel would be non-functional but distracting.

The same was true of the main 1130 display panel, since I can only display the state of the Storage Data register, not the other five registers. Of the eight T clock levels, I only display four. Some information such as reset, X0, X2 and X4 clock states are not displayed at all on the real 1130. Other information, such as the Parity Stop, exist on the keyboard panel not the display panel.

I chose instead to be evocative of the 1130 but not a close match. I organized the control panels on the GUI to present the needed information and guide the user on the available operations they can request.

I walked through my 2501 reader code and realized that under the new model-view-controller, there is a flaw in how I handle the last card condition. I need to add a transaction that the code sends to the fpga to arm it for the last card status when it handles the very next XIO Init Read.

In a real 2501, when the hopper becomes empty, the reader goes out of ready. If the Start button is pressed without putting new cards in the hopper, the reader becomes ready but adds the last card bit in the DSW when the card is read. Otherwise, more cards are added to the hopper and Start makes the device ready again. Subsequent reads in that case do NOT have the last card bit set.

Tuesday, May 10, 2016

Building mirror interfaces for console entry switches and 1053 console printer

SAC INTERFACE FOR ADDING PERIPHERALS TO THE 1130

Restructuring the GUI

I built the code for the mirror Console Entry Switch device and cleaned up the mirror 1132 code, over the course of the afternoon. Plenty of opportunity to clean up and refactor code - one routine to build switches rather than repeating commands for all 16 of the console bit switches.  The switch ends will flip up or down to reflect the value that was read with an XIO Read from the physical CES on the 1131.

mirror Console Entry Switch panel
For the typewriter (console printer), I set up a nice window that appears to be a form emerging from a picture of the 1053 - clicking the paper either opens an output file or closes an existing file.

mirror 1053 Console Printer (typewriter) panel