Tuesday, May 24, 2016

1442 back together, testing now, plus rebuilding laptop

1442 CARD READER/PUNCH RESTORATION

I have installed one of the linkages and was working on the second one by lunchtime. I also located the place for most of the remaining parts in the bin, which are part of the punch eject roller and its belt drive. However, there are just a few mystery parts which worry me, particularly two of them. A circlip which suggests a roller somewhere that is not properly secured on its post, and a U shaped pin which might be from deep inside the punch unit.

Hand operating the punch unit, I see it drive all 12 punches through their dies and advance everything suitably, but until I have this under power I won't know if the interposers work to block punching each of the 12 rows.

It was quite challenging to handle each of the remaining tasks, given their nearly inaccessible locations, lack of enough room to use any of my tools and the challenge of stretching the rubber drive belts over the edges of the pulleys. I improvised with a tiny socket held with itty bitty vice-grips, and similar improvisations.

By mid afternoon, I had the linkage on, the punch eject roller parts assembled, belts in place and everything ready to button up for testing. I had dropped the circlip down into the machinery somewhere while trying to fit it somewhere it didn't belong. I also lost a lockwasher for the bolt that holds the punch eject pulley on.

Remaining mystery parts are a small nut, a medium size washer and the small U shaped thing. I hope I never discover where those parts go, since that would be discovered when some part of the machine malfunctioned.

I fired up the system, loaded cards (push Start button to get one card to feed into the pre-read station), and did Non-Process Runout (NPRO) to clear cards. Cards that exit the punch station still get stuck in the cornering station, where cards stop after exiting the punch and them are picked up by the stackers which begins moving the card at right angles to the original travel direction.

More seriously, while doing an NPRO, the punch unit laced the card in rows 4, 5, 6, 7 and 8 although this was a real punch operation. When punching, the card sits in the punch station and is moved column by column through the operation of the incremental drive, timed between each punch cycle. In this case, while the punches were pushing down the card was trying to fly through the punch station, using the punch eject roller and not the incremental drive.

This might be an interaction between my virtual 1442 logic sitting in the fpga and the IBM supplied adapter logic in the 1130. I removed the jumper that disables the IBM adapter from reacting to XIO instructions, which was in place while I tested the virtual 1442 functions. Now, both FPGA and 1130 logic are active which might introduce problems. Still, punching randomly while cards are cleared with an NPRO is not good.

RECOVERY OF CRASHED LAPTOP

My first two actions on the new laptop image were applying all the windows updates and setting up a Crashplan subscription to make sure I never again lose all my work. I am waiting to see if the recovery lab can retrieve my data, but my drive arrived in the afternoon Friday of a three day weekend (Victoria day in Canada) so that my drive was just opened and logged today.  I am hopeful but not wildly optimistic; I should know in a week or two.

Next up I started installing software I use, such as the Python environment and the wxPython GUI code. The longest was the download and install of the Xilinx Vivado toolchain for the fpgas, requiring downloads of more than 3GB of data.

Monday, May 23, 2016

punch unit assembled and partly installed in 1442 card reader/punch

1442 CARD READER/PUNCH RESTORATION

I worked all morning on the reassembly of the punch unit and its incremental drive. I think I have everything done correctly, but it is hard to tell for sure when there are a number of parts in the bin that are used for the installation into the 1442 chassis and for connection to other units.

Punch unit with incremental drive on front
The incremental drive has two strong springs that had to be compressed quite a bit in order to install them. I was having the dickens of a time attempting it until I noticed the order of removal of parts listed in one of the maintenance manuals.

Side view of punch unit, incremental drive on right
It mentioned removing the solenoids that engage each side of the drive before removing the springs. I foolishly had ignored this because I had plenty of room to access them for removal. While removal didn't matter when taking out the springs, the solenoids need to be out when the springs are reinstalled (reverse order of disassembly, per the manual). Without solenoids, the spring holddown arms swung open, letting me put in a spring and pivot the arm to compress it. Easy as pie.

The punch unit and incremental drive are complex mechanisms with many gears, cams, pushrods, springs, detents, solenoids, pulleys, belts and so forth. The incremental drive will move a punched card one column forward, in between the actual punching of the holes for that column. Thus, timing is important so that the card is still during the entire time the punch die is extended through the card, but that movement completes before the punches start moving for the next column.

Before I install the punch unit, I will read the service and adjustment manuals very carefully to determine whether there are any adjustments I should make with the unit out of the machine. With so much of it disassembled during the long process of removing gunked up old lubricants and many parts loosened or removed, I may have to make quite a few adjustments before I attempt to read and punch cards.

Parts bin during assembly
I found that there are several adjustments to be made for the incremental drive and all of them are done with the unit out of the machine - glad I didn't install it yet. Worked through the adjustments this afternoon.

The adjustments for the remainder of the punch unit are done while it is mounted in the 1442 chassis, so I proceeded to install everything. By the time I stopped for the day, I had the punch in place, some belts replaced, the electrical connector attached, but still had to install a few things. Remaining to do are:

  • Install two pushrod linkages from the main cycle camshaft
  • tighten the main allen screws holding the punch to chassis
  • reinstall the idler pulley I had to remove
  • get belts in position and tensioned properly
  • replace various covers and panels

Punch unit mostly installed in 1442 chassis
Front of punch unit where belts are attached
RESTORING CALCOMP 565 AS IBM 1627 PLOTTER

Still no word from the metalworker on the replacement cylinder manufacturing. I will wait until next week, then find another shop if I haven't heard back from this one.

RESTORING LAPTOP AFTER CRASHED DISK

I received the replacement hard drive from the seller of my laptop and will keep that as a protected master. I put it into my external disk cloner and cloned it onto my 960GB SSD which is what I will actually mount into the laptop for use. The cloning took several hours but soon I had a vanilla Windows laptop where I can begin installing software.


Sunday, May 22, 2016

Wheel finished and beginning reassembly in 1442 Card Reader/Punch

1442 CARD READER/PUNCH RESTORATION

I received the grit and did a test slurry. I discovered several things from the test. First, medium grit (1/4 millimeter) is way too coarse to match the original ceramic grit, but fine grit, about a tenth of a millimeter diameter, is a great match. Second, mixing the grit with the glue first produces unsatisfactory results.

My second try was much more successful. I used fine grit, put a thin layer of adhesive on the wheel and poured the grit atop it. I tamped it down slightly with my finger and then cured the adhesive with UV light. I have a couple of small sections that are too bare, but most of the wheel surface is already good. Later I will try to fill in the sections without raising the surface too much.

repair in process - bottom wheel, left side original, right is repair
I also have a high spot near the join with the original ceramic. I will carefully grind it down and if too much grit is lost, dig it even lower and add adhesive plus grit to relevel. I feel good about this process and should be able to finesse this into suitable condition.

Wheel damage before I filled and began restoration
Sunday morning saw the completion of the wheel. I smoothed and filled in the top surface, have enough grit to ensure a great grip on the punched card stock as it is moved through the punch station. I decided to add some grit to the sides of the wheel, since cosmetically the clear adhesive in the repaired section was noticeable. I didn't fuss with exact fit or appearance, so that the sides are a bit more patchy, but overall the wheel is ready for re-installation, once I flow off any remaining lost grit especially near bearings and turning surfaces.

Wheel ready for final cleaning and then installation
The part is cleaned and reassembly is starting as of Sunday night. I have a table set up with the parts and relevant parts and maint manuals, so that I can fit it all together. Monday's the day.

Saturday, May 21, 2016

Memory increase to 32K using EMM core card - design investigation complete

1442 CARD READER/PUNCH RESTORATION

The 1/4 millimeter diameter grit won't arrive until tonight, thus nothing was one on the reader today.

INVESTIGATING MEMORY UPGRADE USING EMM CORE STACK

I began digging through the ALDs and the inventory of what is installed on my machine to see how feasible it would be to make use of this 32K word by 18 bit card to bring my 1130 up to full memory configuration - 32768 words - from its current 16384 size.

MB301 Final assembly of memory address bits 1 and 2 (16K and 32K)
The logic for the "expanded storage" feature which supported machine sizes bigger than 8K has all the gates and signals installed for a full 32K, so this one is fine as is. I then had to dig into all the sources for these signals to be sure that every incoming signal had a valid source.

For example, on this page there is a note about a jumper which is installed if the machine has expanded storage. It allows bit 2 of an address from the built in disk drive to be gated to memory when the drive is using cycle steal to fetch and store words. Oddly, no jumper is required for bit 1, which is always driven by the disk adapter logic sourced from logic page XF231 same as bit 2.

Sources to the page MB301 that must be checked include the I and A registers, file (disk drive), and the SAC. This page is the M register for the high two bits (1 and 2). This feeds the MB311 page which assembled the final storage addresses going to core storage.

The page does have signals for Card Reader bits 1 and 2, but no card as a source. These represent the signals that would be used if a 2501 were configured, since the IBM 2501 uses cycle steal to fetch and store words.

So, you might ask, why no signals from the 1132 printer, 1442 card reader/punch, 1053 console printer, keyboard or console entry switches? Because none of these use cycle stealing. All the data they need to fetch or store is handled by the XIO instructions themselves, which make use of the A register feed during their execution.

MB311 which has drivers for the memory address lines bit 1 and 2
Here is the companion MB311 which drives the signals over the long flat cables from the center of the machine holding the main logic cards over to the left 'blister' side, which has the two 8K core memory modules. MB321 is not shown because it has the drivers for memory address bits 3 to 15.

MB101 assembles CPU address bits 3 to 15
MB101 takes the M register bits 3 to 15, gates them by the inhibit signal used when the processor is jamming in special addresses such as 1 2 or 3 for the index register, and forms the CPU address bits that are used below in MB111.

MB111 - assembles sources for memory address bits 3 to 15
MB111 simply assembles the bit contents for memory addresses 3 to 15 from the various devices which drive it. Just as with the high address bits, it uses the file (disk) address lines, the SAC address lines, and the empty 2501 card reader address lines. It takes the CPU address bits 3 to 15 from the prior page and mixes them to produce the storage address bits 3 to 15.

Notice that some of the bits have inputs from the printer and the special index register address circuits. When the CPU wants to address an index register, it blocks the M register (CPU addresses) using inhibit and then feeds in a 1 on bit 14, 15 or both depending on whether register 1 2 or 3 is needed. The 1132 printer does a fetch of locations 0x00020 to 0x027 for the bits to control firing the 120 hammers, so it needs to inject 1 bits into address bit locations 10, 12, 13, 14 and 15.

MB201 allowsprinter and file (disk) addresses only during cycle steal
MB201 allows 1 bits from the printer addressing the scan field or the file (disk) when those devices are doing a cycle steal. All the bits are wire-or connected together so that gating like this is needed to block any signals when they should not pass through to the memory address logic.

The sharp eyed reader will see that the storage address bits 1 and 2, generated in MB301, do not get signals from the M register, don't have a CPU address generated as is done for the lower bits in MB101, but instead create a shadow version of the M reg bits 1 and 2. Looking at the M reg itself on RB111 and RB121, the M reg flipflop is not connected to memory addressing at all, while bits from RB131 (bit 3) and lower use the M reg to build CPU address.

The effective value, the 'shadow' of what is in M reg bit 1 and 2, is held in the flipflops in MB301 and generated independently. It looks at the value of the I and A register for those bit positions, control signals which are active when the M register is loaded from I or A in the RBxxx logic pages, and a special generated signal to load SAR bits 1 and 2. This is logic that is parallel to and different from how the other bits are handled. Odd, since the M register does have bits 1 and 2 present, but the output is only used to display the lamps on the main panel.

Terminators for storage address signals for bits 3 to 15
Here is an oddity. The terminator ALD page shows the resistor terminators on the address lines going over the flat cable and entering the memory modules in the blister. The resistor packs terminate signals for bits 3 to 15, but not bit 1 or 2. Since this is a 16K machine, bit 2 is used and seems oddly missing. It may be that the terminator resistor is just missing due to oversight on the ALD page or it may be shown in the memory schematics themselves, being handled parallel to but different from bits 3 to 15.

Cabling between gates of 1131
The cabling diagram AE000 shows the flat cables which run to memory from the CPU gate B, compartment C1 which lies under the console printer in the center of the 1131. The memory is installed in the blister (left hand side of the 1131) on swing out gates D and E. Each of those two gates holds two compartments and each compartment would have an 8K storage module installed.

For a machine with only 4K or 8K of memory, thus without the expanded storage feature, all memory is placed on CPU gate B in compartment C1. No blister is installed, resulting in the short version of the 1130 system.

Three cables are run - with the pair that hook to the T1 and T4 positions in a wired-or configuration so that any of the core modules can introduce data to the common bus. The other cable runs through each module, coming from the CPU to T2 of the first module, out of T3 on that first module and into T2 of the second module, and so forth. The final module's T3 will have terminators wired up.

My machine has gate D with both compartments filled - yielding a 16K total memory configuration. It is missing gate E. If a machine had 24 or 32 K of memory, it would have gate E installed also and use one or two compartments depending on storage size. I will put my interface logic, power supply and the 32K storage card in the empty area in the blister where gate E would have been installed.

AD001 lists various jumper wire, cabling and terminator requirements
The page above details the changes that must be made when changing the memory size of an 1130. Basically, these involve the placement of the terminators at the end of the memory address and data cables - on the last core module on the bus. Then, jumpers are configured on each memory compartment to customize its addressing.

If I increase memory from 16K to 32K, I need to add some jumpers on the existing core modules on gate D. These jumpers will deliver 'not bit 1' to the modules, so they are inactivated if bit 1 of a memory address is 1 but active otherwise. My new circuitry would only work when bit 1 was on, so that the new card handles addresses from 16384 to 32767 while the gate D compartments handle 0 to 16383.

The jumper is not on the machine as it sits, because it will allow memory addresses above 16383 to roll over and use the existing memory. What I mean by that is that all addresses are treated modulo 16384. Thus, 0 and 16384 are the same core location. 1 and 16385 are a common location. This is now the 1130 architecture is arranged.

The jumper is added to block that behavior. With the 'not bit 1' added into the selection logic, when an address increases past 16383 it is no longer modulo 16384. It becomes modulo 32768 when I add the new memory card and make use of address bit 1. Address bit 0 does not exist, so address 32768 becomes the same as 0, etc.

This leads to the interesting possibility that a machine could be increased to 64K but with quite a bit of work. Circuitry equivalent to the MB301 card would be needed to produce address bit 0. The SAC logic and disk (file) adapter logic would need to be changed in a few places to include the extra address bit. The existing SAC cable does not carry bit 0, it would need an additional signal line.

The flat cables to the memory do not carry bit 0, so signal lines would have to be added to carry the wider address. Finally, the select logic for the memory compartments would have to take into account bit 0 as well as 1 and 2. There may be other subtle factors, but a few cards worth of logic and some additional cabling would do the trick.

AD000 Jumper and timing settings for configuration changes
Page AD000 shows various jumpers that are installed or removed to control different configuration changes. Only five jumpers involved in memory configurations. One is used for any machine above 8K, to connect the file (disk) bit 2 into the address logic. Two are used if the 2.2us storage is installed, while the other two are used if the machine comes with the 3.6us type.

Based on this, I need no change to jumpers when increasing memory to 32K, but would have to swap the two sets of jumpers if changing to act like 2.2us memory. In that case, the oscillator card has to be adjusted to 3.64MHz (might need a different crystal) from the 2.25Mhz rate it has now. I would have to disable all of the existing core, since it is too slow, and use the entire 32K word new card as memory to operate as a 2.2us model.

The bottom line of all this investigation is that adding in my additional 16K of core should be quite easy, requiring only a few jumpers on the existing memory to look at 'not bit 1', adding cabling to my new interface logic and moving the terminators there. The 0.95us memory of the new card will readily work fast enough.

One complication inside my circuitry when using a much faster memory is that the data to modify a word for the write part of the cycle is not produced by the 1130 until halfway through the 3.6 or 2.2 us cycle, so I have to control how the new card does its rewrite half so it is delayed from 450ns to the 1.1 or 1.8 us point.

Fortunately for me, the EMM card has a mode - split mode - where it does the read half of an operation based on a read trigger pulse (RP) and waits for the user to initiate a write trigger pulse (WP) to trigger the rewrite. Thus, I can control the timing so that I send RP, it does a read in 450ns, waits until I trigger WP at 1100 or 1800 ns, then completes the rewrite by 1550 or 2250 ns.

The data out signals are wire-or connected to the B (storage data) register and will set bits on as soon as nonzero data from the core arrives. Normally this is from the sense amps as the IBM core is read, but I have to be sure that the data is blocked until it is safe for it to appear and that it goes away when necessary. This may work with no such blocking, but it is a need that I have to anticipate.

The rewrite which is done from the B register contents in the 1130 does not care if the data is not ready exactly at the halfway point of a memory cycle, as long as it is present and stable at the time the 2.2 or 3.6us memory is ready to flip cores on or off. The new card will complete the write much faster, so I may need to delay the WP pulse until the point when I am sure the 1130 has the B register value present and stable. This delay is pretty likely to be required.

As far as signal and power requirements, the new card uses TTL signaling levels, although inverted sense so +5V represents a zero logic state, and the memory needs +5, +15 and -15V supplies. The +15 and +5 rails can draw up to 3.8A, while the -15 needs no more than 1.2A. The board needs less than 100W of power and there are many low cost supplies I can buy to provide the power.

I need to provide for SLT to TTL level shifting - with the SLT operating with 0 to 3V signal levels while TTL is 0 to 5. I have already addressed this with my SAC Interface box and simply need to modify that design a bit to snoop on the 15 address bits and 16 'data out' bits coming from the CPU to memory. Then, I need open collector ICs to activate the 'data in' bits when my core is emitting sense bits in to the 1130 for a read. I have to snoop a few storage timing and inhibit lines as well, but that is the same problem as with the 31 data & address bits.

What also must be designed is inhibit logic if I need to control when my 'sense amp outputs' are presented to the CPU bus and to control when I fire the RP and WP pulses into the new memory card. This is the new portion of this design, all the rest being variations on previously solved and proven approaches.

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.