Tuesday, October 7, 2014

Tools to work on 1053 console printer of the 1130 - Selectric tools

I have been fortunate to find quite a few tools that are designed for servicing Selectric mechanisms, most of which make tasks on the printer much easier to do. The first group came from a mislabeled eBay auction - it was a bunch of parts and tools labeled as vintage mainframe parts. The second was an offer by a retired service person who offered to sell some specialized tools he had.

Lot on ebay mislabeled as vintage mainframe parts
The eBay lot was obviously IBM typewriter parts but had some tools included. When I looked closer, I saw that there was a degree wheel for hand cycling, a cclip holer, t handle and other tools that are ideal for certain assembly steps where it is nearly impossible to get fingers or standard tools in place. Because of the miscategorization, it sold for $9.95 with free shipping.

The retired service person has other tools that will be incredibly handy, particularly the spring hooks which I can use to attach the pesky spring for the cycle clutch latch. One of them will hold a spring at the end of a rod, allowing you to maneuver the end of the spring into its hole, but remains attached to the spring until you release it. This means I can grasp the closer end of the spring with a spring hook, pull it into its attachment location, before releasing the far end of the spring deep inside the machinery.

Spring hooks to attach teeny springs in nearly inaccessible locations

Design work on interface to hook devices to 1130 through SAC

DESIGNING 1130 SAC INTERFACE BOX

One of my objectives in designing the interface to hook up peripherals to the 1130 was to allow more than one device to be hooked up at the same time. Outbound access from the 1131, via the XIO instructions, is inherently serialized but inbound access, both cycle stealing to move data and requests for interrupts, may occur from more than one of the devices in uncontrolled sequences.

Interrupt levels could be used by more than one device on my box, thus I have to keep track of requests and present them in appropriate priority order. Cycle steal requests share a single level with the SAC, but if more than one device asks for cycle stealing, I not only have to keep track and present requests in some order. I also have to block the devices which are not given the cycle stealing hardware from seeing the CS level occur.

The logic for each device would presume that when CS level 1 is active, its request for cycle stealing was granted. All devices which requested cycle stealing will attempt to control the hardware when they see CS Level 1 active.

I realized that on the 1130 system, the SAC is designed to support just one connected device.  In order to handle more than one, the 1133 Multiplexer cabinet is hooked to the SAC. The multiplexing logic in the 1133 is similar to what I want to do - it divides up the devices into a number of multiplex levels, prioritizing access, blocking visibility of control signals and holding requests until they can be presented.
Role of 1133 as a multiplexer for more than one device through SAC
I have a general outline for how I will implement the multiplexing, working from the control lines that are available on the SAC, the outbound sequences for XIO instructions and some thinking about the conditions and states that can exist for inbound requests from the devices.

Since each device adapter is responsible for almost all of the work of tracking the XIO instruction, latching data, signaling for writes to core, handling interrupts, cycle steals and sense status, the multiplexer logic is only involved in gating the interrupt and cycle steal signals between devices and the 1131. It only has to switch the gating based on priority as the active device drops its requests.

I also have a design for the FSM to track the stages of an XIO instruction and to recognize when to take certain actions such as latching data from the 1131, setting up and signaling channel write for data going out to the 1131, and setting other status information. This is the logic needed at the heart of a device adapter. It can be instantiated for each device interface being implemented for connection through the SAC.

Friday, October 3, 2014

The circuits - TTL to SLT interfaces to 1130 SAC transmission lines (signal cables)

DRIVER CIRCUIT

Here is the driver circuit which takes TTL inputs and drives the twisted pair transmission lines used in 1130 signal cables, particularly the Storage Access Channel. It is shown with the circuitry of the 5807916 receiver card that is used with the SAC.

My driver circuit on left to interface TTL to 1130 SAC cable

RECEIVER CIRCUIT

Here is the receiver circuit which terminates the twisted pair transmission lines used in 1130 signal cables, particularly the Storage Access Channel, and yields a TTL level signal. It is shown with the circuitry of the 5803447 driver card that is used with the SAC.

My circuit on right to detect 1130 SAC signals as TTL level logic outputs

Thursday, October 2, 2014

Working on receiver and driver circuits to interface to 1131 SAC

DRIVER CIRCUIT

The driver is quite easy, as it is a transistor that will pull the transmission line down to ground or let it float up to the +3V supplied through the far end's 95 ohm pull up resistor/terminator. Doesn't require simulation and testing.

1131 SAC TRANSMISSION LINE BEHAVIOR

The transmission line is twisted pairs with 93 ohm characteristic impedance, allowed to have up to 33 ohms resistance, with a 95 ohm terminator resistor pulling the receiver end up to +3V. The driver is a transistor that will pull the line down to ground or let if float up.

The challenge is dealing with the maximum resistance case - 33 ohms - as that produces an off state at over .75 volt, well above the SLT specification of .3V max for a logic level 0. The logic 1 case, +3V is well above the minimum of 1.8V and quite satisfactory, even with a bit of loading from a receiver circuit it will meet specs.

RECEIVER CIRCUIT

I have to design a receiver that will properly yield a logic 0 when the line is above .75V, and generate a logic 1 when the voltage is up close to 3V. If I simply hooked up a standard logic gate to the transmission line, the gate must interpret the .75-.8 volt level as a fully legal binary 0.

I am working on discrete components as a receiver circuit, allowing me to control the behavior and simulate it as I tweak the design. Unless I figure out a standard gate that is sure to interpret my levels properly, the custom design is necessary.

Wednesday, October 1, 2014

Designing interface to use 1130 Storage Access Channel to interface arbitrary modern peripherals to the system

BUILDING SAC INTERFACE TO 1131

I spent some time during my cross country flights developing interface circuits that would take TTL logic levels and drive valid inputs to SLT logic, plus circuits to take SLT inputs and drive TTL logic outputs. These converters will sit between the Storage Access Channel circuitry in the 1130 and whatever logic I build to interface various devices to the 1130.

To do this, I started with the circuits used in the 1130 for sending the SAC signals out and for receiving inbound signals. One of the cards is defined in the online SLT designers documentation on bitsavers.org, but the receiver was not. By carefully studying all the various SLT and card schematic documentation, I was able to reconstruct the receiver card.

The transmission line driver and receiver for the SAC is the 30ns family AI without load resister feeding an AOI on the receiving end, the end of the line terminated by a 95 or 100 ohm pullup resistor to +3V.

The usual transmission receiver card has one input to an AOI (and-or-inverter, the basic logic gate of SLT) so it acts like a NOT gate but restores the logic signal. The driver is an and-inverter with just one input so it too functions as a NOT, but driving more current than a normal logic gate output, and with no pullup resistor on the collector of the inverter.

The receiver in the 1130 SAC uses two inputs in the AOI - acting as an AND gate, with one of the two inputs used to gate whether the incoming bit is passed on to the rest of the 1131. One such input is the 'write gate' that is set when a device is transferring data from a read into memory or during a cycle steal handling a read.

The usual receiver card has ten AOI circuits on board. The board in the 1130 SAC uses nine AOI - one AOI is used to receive the gating control signal, such as channel write gate, this signal then gates the other eight AOI which deliver the gated inbound bits.

Because of all the documentation, I am very confident that I have reconstructed the circuits on both sides. I was able to simulate them, verify the voltages, currents, transition points and other characteristics. This is necessary since my circuits will masquerade as a driver or a receiver, depending on whether a signal in outbound or inbound to the 1131.

Recreated 1130 SAC driver and receiver circuitry, showing point where my circuits replace left or right side
Based on this circuit, reception is pretty easy - I hold the line up to 3V with a 95 ohm resistor and sense the voltage. Logical 1 is 1.8V to 3V, while logical 0 is .3V or lower and of course the zone in between is undefined. I am going to design my circuit to produce TTL level signals but also raise an alarm signal if the value is in the forbidden zone. I can use this to troubleshoot electrical and reliability issues.

The driver is even simpler - it is a transistor that will conduct when the intent is to send a logical 0, otherwise it lets the signal float. The 95 ohm terminator resistor on the far end will pull the line to 3V when we have a logical 1, and I will pull about 30ma of current through the transistor to drag the line down to near 0 volts for logical 0. I expect to have only a few millivolts at the far end, the result of wire resistance, transmission line mismatch and inherent resistance in the transistor - this will be well below the 300mv that is the cutoff for a valid logical 0 state.

I also developed all the rules for when I have to assert certain lines or latch in data, to implement the XIO instructions, interrupt handling and cycle stealing functions. It appears quite straightforward to produce a single device that connects to the SAC, although I want to design a more generalized interface that may have multiple devices connected simultaneously.

Over the coming couple of days I will work out the design approach for the generalized interface, allowing several devices to share the device. Whatever fpga board I use to implement this needs 76 I/Os for the SAC cable (36 output and 40 inbound signals), although I can disregard a few of them, e.g. CPU Meter In and Meter Out, since I don't care about running usage meters for billing purposes.

The board then needs additional IOs to attach all the intended devices. This will be a major design and sourcing factor. Most lower cost fpga boards have limited IO pins even if the fpga chip onboard itself has many hundreds of input/output pins - most are not connected externally.

Monday, September 29, 2014

Repaired the delay board and prepared to use it to replace the original time delay relay in the disk drive

1131 INTERNAL DISK DRIVE RESTORATION

I ran out to a local supply shop to pick up the surface mount timer chip then installed it into the delayed on relay board that was broken when I received it. The bad behavior continued. I then traced the circuit to figure out what they were attempting and from that to determine what was wrong.

It appears that the through holes near the potentiometer don't have enough clearance around the internal ground plane, so that some boards are shorting one of those pins, causing the circuit to be reconfigured into the astable (cycling) mode.

I planned a way to wire around it - removing some components and connecting them differently to set up the right circuit wiring. When I wired in the planned component values - 1000uf capacitor and 100K resistor - the timing came in close enough to target that I don't need to tweak the part selection.

Resistor and capacitor wired around the flawed circuit board traces
The target is 90 seconds before the relay turns on, and the board as it sits activates after 100 seconds. That is close and on the safe side (longer means more time for disk platter to adjust to the air temperature inside the drive).

This replaces the original, malfunctioning relay in tight quarters in the AC power box of the disk drive. I attached the relay board to the mounting bracket removed from the relay. It fits in the intended space.

Relay mounting bracket used to hold delay board in place
Before I install this, I need to put together a resistor voltage divider to drop the 48VDC input down to the 12V that the relay board uses, cut the spade lugs off the existing wires and attach them to the terminal blocks on the board. Once that is done, it can be put into place and the drive closed up.

I had to spend most of today preparing for my business trip tomorrow morning, but am pleased that I was able to revive the delay board and establish the behavior required to support the disk drive disk loading sequence. When a cartridge is in place and the switch thrown, the motor begins spinning the cartridge  and energizes our delay circuit. We hold a signal line low until the 100 seconds has expired, then disconnect the line from ground. That signal is normally grounded through the relay and only allowed to pull up high after the delay.

The disk drive electronics won't pick the disk head loading solenoid until this signal goes high, along with other required conditions such as adequate rotational speed. Now that I have a good time delay to raise that signal, it will be fully operable. More importantly, the covers can be put in place and the annoying door closed up.

1132 PRINTER RESTORATION PREP WORK

I spent a good hour with the FE maintenance and theory of operations manuals, plus the illustrated parts catalog, to discover the mechanisms I need to lubricate and check in order to get the print wheels striking the paper with enough force to leave a clean character image. No time to begin the cleaning, but that will be first up when I return from my trip.

Sunday, September 28, 2014

Finishing new keypunch interface unit, progress testing the 1132 and a bit of work on card reader and disk drive

NEW KEYPUNCH INTERFACE CONSTRUCTION

I spent many hours carefully wiring together the interface, using the connectors, checking wiring and soldering, double checking which wire I was holding before putting it on a connector. At this point, the unit is closed up but one task remains before I begin code development and testing. I have to install a power brick inside and a suitable molex power connector, then wire up the corresponding connection inside the keypunch to bring power to everything.

Wiring complete other than power brick
A lot of connections, finally complete
Wires soldered to header pins, inserted in the Arduino
Molex connectors hooked to relay board, barely visible mid-upper right

Unit closed up until I add the power brick and start testing.
I am will be unable to work on the machine from Tuesday through the following Friday due to intensive business commitments, thus will wait to do the exploratory testing and hardware checkout until I am back in the workshop.

1442 CARD READER/PUNCH WORK

My next step to get the cards moving from the cornering station to the stackers is to increase the pressure on the rollers pulling the card into the stacker area. I began to adjust the indicated screws but I need to spend more time to be sure I get this pulling more firmly. I don't want to introduce skew into the card movement, which is possible if the pressure on the two rollers is not the same.

1132 PRINTER WORK

I put in some fresh paper and reloaded the test program. I have an instruction which is supposed to decrement a counter each time I find and print one of my target letters, but the value in that counter, index register two, is not going down. After a look at the program, I realized I was using hollerith code (card reader and keyboard), not 1132 printer codes.

Instead of stopping when I get four matches, I am going to take 48 read emitter interrupts, which is one complete cycle of the print wheels. That should ensure I issue the scan codes to print in all eight of the last columns.

Running with the full 48 character interrupts gave me a satisfying sound of printing, but the page was blank. I probably have a ribbon that is so dried out there is essentially no ink to transfer. I pulled out a spare ribbon, which is about 25 years past its 'use by' date but might just have a bit of ink left. I had to read the manuals to learn how to change the ribbon, but I did get it changed.

It was definitely full of ink - got on the printer cover where I rested the ribbon spool as well as on my fingers! Running the print program again produced very slightly darker letters but only in a few spots. It appears the print hammers are likely partly glued with old lubricants and can't snap crisply into the print wheel.

Ink stains on printer top from the replacement ribbon resting there temporarily
Only some of the hammers can leave an impression, others don't strike with enough force. I also see one case where the letter D printed in the column where I was requesting to print a C. Since that is the next sequential character after the one I requested, it is consistent with a gummed up mechanism latching up too late to match the C.

The next step for this unit is to clean the old lubrication from the hammer and print related moving parts, putting on new oil and making sure it is all moving freely. Once that is done, I can try the print test again and see where I am in the restoration of this device.

1131 INTERNAL DISK DRIVE WORK

I toyed around with the broken delay board from yesterday, finding a way to get it triggering but not correctly. With the original capacitor, it worked on a 10 second delay which is too short for my purposes, thus my second set of tests were with a much larger capacitor to produce a longer time interval.

The first tests, with the 10 second time interval, were supposed to show a turn on delay, meaning the circuit should start with the relay off, wait ten seconds, flip the relay on, and stay in that monostable state while power remains on. Instead, it began latched, then each ten seconds it turned the relay off or on, alternating forever in a bistable mode. It should not be oscillating.

The second tests, with the longer interval, showed even stranger behavior. It would start out active, blip the relay off and on for less than a second, wait the long interval, then repeat the blip. Each interval had a momentary blip and a long wait. Again, not useful for my purposes.

My working assumption is that the LM555 chip (timer) that is the heart of the circuit is malfunctioning, since all the components seem to have proper values and be wired correctly. I desoldered the chip from the board, using my hot air rework gun, and will pick up a surface mount 555 chip to replace it. I am feeling hopeful that with a bit of work I can get this board doing what I want, replacing the original time delay relay in the disk drive startup circuitry.