Monday, April 25, 2022

Testing rig for voltage regulator card being set up, believe I found and fixed the problem

CONCEPT FOR TESTING THE 6V AMPLIFIER CARD OUTSIDE THE POWER SUPPLY

Based on the schematics of the supply and the regulator card, I believe I can connect the input power supply across the K,L,M pads for negative and the positive end hooked to pad R which is the +Sense connection. Then a variable supply is set up across the +sense and -sense pads (R and Q) so that I can see how the regulator responds as the voltage is below, on and above target. 

The output of the card at B,C would be drive current that flows into the base electrodes of the bank of power transistors, returning out of the emitter through a .10 ohm resistor to the K,L,M pad side of the input power supply. I will wire up one spare 108 transistor and resistor for this purpose. For the load side I will connect a 15 ohm resistor which should draw about 600ma at the target output voltage.

I played around with circuit simulations until I felt comfortable with how this will work before I applied power and possibly damaged the card. I am ready to head over to the shop, breadboard this out and check the card.

WIRING PRACTICALITIES

I either need to find a spare SMS socket or do something more involved to connect to the various pads B, C, K, L, M, R and Q. Wiring in resistors and connections to the bench supply is easy. I did indeed have a spare SMS socket, so I was ready to go. I decided to check the Overvoltage Protection card first, just to see at what voltage it would trigger.

OV CARD HAS WEIRD HYSTERESIS BUT TRIGGERS ABOVE 6.5V

Setting my bench supply to current limit at 500ma, I began applying increasing voltages to the crowbar card circuit until it fired, latched up and hit the current limit of the supply. That seemed to be somewhere in the range of 6.5 to 6.6V, well enough above the top of the valid range for the +6V supply that it shouldn't spuriously trigger.

When it fires, it locks down regardless of reductions in the input supply. However, when I switch off the supply entirely it should immediately reset, since it is a SCR thyristor which will unlatch when current goes to zero.

However, it didn't unlatch right away. I found that for many tens of seconds after it triggered and I disconnected the power, when I reapplied even a very low voltage it would still be conducting. There are no capacitors on the card, so this is some weird internal capacitance or other phenomenon of either of the two SCRs. Not an issue, just an odd behavior.

OBSERVATION SUGGESTED MAIN DRIVER TRANSISTOR WAS BAD

Driving the regulator card with my test setup, I would see that its ability to hold the output voltage would stop at about 13.5 volts on the input, where it began to oscillate up and down with excursions well into the overvoltage trip range. 

As I checked the output, it looked to me like the driver transistor was bad - which makes sense because if it can't drive the bases of the main power transistors, they won't be able to regulate their current and establish the voltage level desired.

The other two 108 transistors which failed all exhibit a characteristic behavior on the VOM diode test setting. While a good 108 will have a voltage drop in only one direction between emitter and base, the bad transistors show voltages in both directions. I look for the open circuit to determine that a 108 transistor is still good.

REPLACED 108 TRANSISTOR, RESULTS MUCH BETTER

After I unsoldered the bad one and installed a replacement, the behavior in the test rig was much better. I moved the card over to the actual power supply, hooked up my bench supply and electronic load, then tested again. 

At 4A load, the supply held rock steady even as I advanced the input voltage from 9V all the way up to the 16.5V that comes out of the unloaded DC Power Supply in the 1130. No oscillations, no excursions, just clean behavior with nary a hiccup as I varied the load.

I am glad it was the 108, for which I have spare units, rather than the two 026, the 086 or the 123 transistors that are on the regulator card (or the two 033 transistors on the overvoltage card). It could also have been failed zener diodes, one in the regulator and one in the overvoltage, for which I don't have a written spec for the voltage level making replacement challenging. 

READYING FOR A FULL LOAD TEST IN THE MACHINE

While this looks like I have turned the corner and fixed the power supply, I can't be sure until I see how it behaves with a full load on it. I have the resistor complex that will let me set up loads of 6, 12, 18 and then 24A but the supply is going to have to be fed by something that can deliver more than 24A of input voltage. 

As I mentioned earlier, the way I intend to perform this test is to put the power supply into the 1130, but leave the load side disconnected - the logic circuits won't touch the supply until I feel it is truly solid. Instead I will wire in my resistor load complex and test it that way. If it survives the full 24A of load with steady output voltage and no overvoltage incidents, I will wire it back to the logic circuits and move forward. 

DC Power Supply for raw DC voltages

Sunday, April 24, 2022

+6V Regulated Power Supply in more depth

THIS SUPPLY REGULATES DC DOWN TO A VERY STEADY +6V

The IBM 1130 has a DC power supply that is fed input mains voltage, transforms it down, rectifies it and smooths it with large capacitors. The resulting voltages can shift up and down with changes in the building power as well as with the effects of varying loads as different circuits operate. This raw DC is fed to a set of regulating power supplies that produce regulated steady power for use with the logic.

The +6V supply is nominally fed with 12V raw DC from the DC Power Supply, although in our case it is actually up at 16.5V. The negative side of the input is fed into this regulator and the positive side of the raw DC is tied to the positive output terminal. Thus the supply acts by moving the negative or common output terminal to be six volts below the positive output. 

The output transistors will conduct enough current from the negative side of the input to bring the common output to zero volts. The regulator circuit is on another SMS card and will drive the output transistors based on what is needed to keep the difference across the output at the target set.

It does this starting with a differential transistor pair that uses a zener diode as a reference voltage on one side and a potentiometer adjusted fraction of the output voltage on the other side. The power transistors are then driven by other circuitry so that it keeps the differential pair essentially balanced. 

You can think of this as a kind of servo or feedback mechanism, with the regulator card producing an error signal that is amplified to a strong drive signal for the output transistors. IBM's official name for this SMS card is "6V Amplifier".

Redrawn schematic used for circuit simulation

FOLDING AND STACKING A CHAIN OF SIX OUTPUT TRANSISTORS

The supply puts each output transistor on its own heat sink, along with an emitter resistor that causes the transistors to balance the load among the various transistors. The emitter and base connections are daisy chained with appropriate thickness of wire, producing a long train of heat sinks initially. 

Six heat sinks each handling 4A of output current

These are then placed side by side and electrically connected by a heavy aluminum bar spanning the heat sinks. If all six were linearly placed the supply would take up too much real estate, so the design will place three across, then fold the chain to run back in the other direction for the next three. These are therefore stacked, two levels of heat sinks, to fix all six in a reasonable volume. 

First three in place, layer one complete

Full stack assembled
+
CHECKING OUT DC POWER SUPPLY

I removed the DC Power Supply to be sure there was nothing wrong there that led to the 16.5V output. This box feeds raw power for +3, -3, +6, +48 and +12 thus is large and extremely heavy. I wanted to be sure there wasn't a problem with the windings involved in 230V operation, or with the rectifier diodes. 
DC Supply removed, all the wiring in place.



The diodes are good and even when I rewired and hooked it up to 115V, the output was the same stepdown ratio. Thus, this is the level the supply is going to be dealing with, so the focus remains solely on the regulator card.

Overvoltage protection is essential with rare vintage computers

OVERVOLTAGE PROTECTION - CROWBAR CIRCUIT

Because excess voltage can break down junctions of transistors and diodes, said parts being in extremely limited supply, it is essential that power circuits in vintage systems like the IBM 1130 have a means of detecting any deviation upwards in voltage and cutting it off very rapidly.

The method used in these systems is to short across the input to a power supply when the output voltage exceeds some threshold, this short circuit causing the circuit breaker to trip very rapidly. This is termed a crowbar circuit, alluding to the method used with electrified railways to quickly kill power by tossing a metal bar across the power rails to force fuses to blow. 

IBM's power supplies are built to use an SMS card that is set with a zener diode at some threshold above the nominal supply voltage. For example, it might be set at 7.2V to give a bit of margin for power supply swings while crisply acting on any larger excursion. The zener diode sets a reference voltage on one of a pair of transistors, the other side of the differential pair is sensing the supply voltage. 

When the supply side exceeds the reference side, the differential pair swings over to the side that is connected to a SCR (Silicon Controlled Rectifier). The SCR will latch on and remain conducting until all power is removed from the system. 

Because the power supply being protected is high capacity and protected by a 30A circuit breaker, the SCR must be able to absorb more than that for the time it takes for the quick trip breaker to flip off. The IBM SMS card actually uses a pair of SCRs - a smaller one that will conduct immediately based on the relatively sensitive differential transistor pair, which in turn will feed enough current to trigger a major 80A rated SCR. 

THE FAILURE IN THE 6V REGULATED SUPPLY CAUSED HIGH VOLTAGE SWINGS

What I observed in the power supply on the bench was that with the relatively high input at 16.5V, the supply would be unstable, the output voltage surging up over 7.5 volts regularly. This in turn would cause the overvoltage card to latch the SCRs on in an attempt to trip the break. 

Since my measly 5A bench supply couldn't deliver the high current needed to trip the breaker, we just went into current limiting mode and the input voltage sagged. When hooked to the real IBM 1130 supply of 16.5V, with its ability to feed serious current, the breaker tripped almost instantly. 

TRIPPING BREAKERS RATHER THAN DESTROYING ELECTRONIC COMPONENTS

Tripping a breaker in milliseconds, while lowering the output voltage to nearly zero in much less time than that, means that sensitive junctions don't have time for heat effects to damage their junctions. This keeps a power supply malfunction from destroying hundreds of SLT cards. 

Saturday, April 23, 2022

108 Transistors arrived, power supply back together but still not working correctly

RECEIVED MY FIRST BATCH OF 108 TRANSISTORS AND TESTED TWO UNDER 4A LOAD

I serially installed two of the new transistors in one of the heat sinks and verified that the unit would support the full 4A load with steady output voltage. With all the main transistors now working properly it was time to put things together and finish the testing.

REASSEMBLED POWER SUPPLY AND FAILED WITH TEST AT FULL 24A RATING

My bench supply can't deliver 25A to test this out so I had to take advantage of the 1130 which can feed that much. I hooked the 6V power supply into the 1130, but instead of connecting its output to the logic circuits I hooked it to my resistor complex at the initial load level of 6A.

The breaker immediately popped! I pulled the unit and put it back on my bench power supply, where it worked properly again. At this point I started to look more carefully at the supply of the raw voltage that is fed to the unit in question. 

The 1130 power system is divided into two halves. One part has transformers, rectifiers and capacitors, producing raw unregulated voltages at different levels to be fed to the other part, the regulator supply. The unit I am repairing is the regulator supply. The first part shows its output as 12V on the ALDs and other documentation, but measures 16.5 volts in real life. In fact, all the raw voltages are a bit high, the 48V raw runs at 52.5, the raw 12V is at 13.9, and the raw 3V supplies sit at around 7. 

I increased the voltage of my bench supply from the 9V I had been using up to 16.5V, where I immediately saw the power supply try to trip the breaker. It couldn't because my bench supply is current limited at 5A, therefore the supplied voltage sagged instead. 

CHECKED WHAT IS HAPPENING AT HIGHER INPUT VOLTAGES

My testing focused solely on whether the output voltage remained constant as I varied the load, up to the realistic limits of my bench setup which is around 4.7A. I hadn't looked at higher raw voltages on the input, but this appears to be the issue.

With experimentation I discovered the supply is happy up to about 12.5V of raw input, but above that the output voltage starts varying upwards, quickly triggering the overvoltage protection which would trip the breaker if we weren't current limited. With over 16V coming from the raw supply the breaker will trip as it did repeatedly. 

I grabbed the small DC-DC supply that had been wired into the 1130 by a past restorer. This unit is claimed to support up to 20A which should allow me to test at loads up to 18A with my resistor complex. I wired it into the line between my bench supply set to 16.5 and the regulator supply I am testing, with the DC-DC board set to 11.5 volts output. 

At 4.7A load, this held steady but when I tried increasing my electronic load to 6.7A, I saw everything sag. Measuring the voltage at the input of the regulator supply showed it dropping well below the 11.5V that it should be outputting. It appears to be current limited quite a bit below the faceplate capacity of 20A. 

NEXT UP - TROUBLESHOOT THE VOLTAGE REGULATOR BOARD

The likely culprit in all this is the voltage regulator board, an SMS card with five transistors and a medley of other parts, which should be modulating the drive of the six main transistors to delivery steady power at the target voltage. 

Friday, April 22, 2022

Found and corrected miswiring of 1130 metering power supply, adding Console Loading Automaton

IBM 1130 CUSTOMER USAGE METER POWER SUPPLY LEFT AT 115VAC SETTING

The IBM 1130 with its three possible 60Hz supply voltages of 115, 208 or 230 has a number of transformers whose windings must be selected to match the voltage, so that the output is the intended level, e.g. 48V regardless of the choice of mains supply. 

Enough that it requires quite a bit of diligence to be sure that you have set all of them properly when changing a machine between different voltage levels, as I did switching my own 1130 from 208 to 230 and as this machine must do to change from 115 to 230.

I was suspicious of the usage meter supply because the case has an 'anti tampering' plastic insert which is almost always broken off when a modern day owner has opened the case, but it was intact on this system. I doubted that the past restorers were in possession of a tool to open this piece or even aware of the purpose of that plastic bit.

IBM rented computers rather than sold them until they agreed to a 1950s era consent decree with the US Department of Justice that ended up shifting the business to almost exclusively outright sale or long term lease. In support of rental, IBM configured their systems with usage meters that would count the hours and tenths of hours that a machine was running. This allowed customers to choose lower priced 'one shift per day' rental rates or around-the-clock but higher rates. 

When IBM maintained a system, a second CE usage meter was switched on so that the hours spent doing repair were not billed to the customer. This is why you see to meters with a keyswitch in between them; the CE would switch over when they took the mainframe for service and switch it back when returning it to the customer. 

Since the hours recorded were important to the revenue, IBM sealed the circuitry that switched between CE and customer mode, as well as powered the meters. The box with the power supply and logic for the usage meters had a plastic security tab inserted that would break off if an unauthorized (or not criminally clever) person opened the box. 

When I opened the box I found the wiring still set for 115VAC. That means that the hour meters were receiving double their designed voltage and the control circuitry was as well. Fortunately, there are no transistors or other particularly voltage sensitive parts inside, just relays and resistors and diodes, thus I expect this has survived the overvoltage. It is now set to 230VAC for future operation. Whether the hour meters have suffered any damage will have to wait until I am running the system to determine. 

CONSOLE LOADING AUTOMATON TO BE ADDED TO THIS SYSTEM

To help out a UK museum that has a running IBM 1130, I developed a small tool based around an Arduino and a few relay boards that would let a PC based text file drive this to load core memory with whatever contents were desired. This was much faster than manually flipping the console entry switches on the 1130 and pushing the buttons to load each word, thus making it practical to load in decent sized programs and data. 

I don't need this on my own 1130 because my FPGA based extender box makes use of cycle stealing (DMA) to load and dump memory at even faster speeds, but for the system I am restoring, I will add this capability. Essentially this flips the entry switches and pushes the Program Start button to load the data into a memory location. It also flips the entry switches and pushes the Load IAR button to set the next address for a block of data to be loaded. 

The Arduino communicates over the USB serial link to a remote system which can issue the commands I defined to set the IAR and to load contents into memory. 

The protocol is extremely simple. You transmit lines with four hexadecimal characters to have that word loaded into the current IAR. The 1130 system will automatically advance the IAR after loading a word, thus the next data goes into the next sequential address. Prefixing a word with @ will take those hex digits as an address and load the IAR with them.  Without a prefix, this is a data value to load.

A prefix of # will take control over the 1130 for loading (activation), however if already active then it will return control (deactivation). This allows the link to remain active between the terminal/PC and the 1130 system, allowing normal console operations until it is activated. 

Going to replace the stepdown transformers in the IBM 1130 being restored

INADEQUATE TRANSFORMER CAPACITY RAISES SAFETY ISSUES

Portions of the IBM 1130 system require 115V supply thus when a machine is configured to attach to 208V or 230V mains, stepdown transformers were used in the machine to deliver the lower voltage. Specifically, two transformers T2 and T3 are configured in machines that attach to higher voltages.

Transformer T3 is used solely to power some convenience outlets, the normal US household duplex outlets, which are inside the covers of the IBM 1130 processor and inside the 1442 Card Reader/Punch. These are generally used to power oscilloscopes and other test gear, but have been used for vacuum cleaners and floor washing machinery in data centers. 

The transformer has its primary inputs protected by fuses F3 and F4, thus limiting the current that can be drawn through all the attached convenience outlets to a maximum of 6.5A at 115V. The transformers that are installed in the machine right now are rated at 300VA, thus they cannot support the roughly 750VA that the outlets could pull. The result in that situation is that the transformer overheats, perhaps is damaged but in the worst case could burn. 

Temporarily, I am protecting against that risk by lowering the fuse sizes in F3 and F4 to keep the load within T3's 300VA capability. Longer term, I will purchase a new stepdown transformer good for at least 750VA and place that in the 1130 along with the original fuse sizes. 

Transformer T2 is used to provide 115V to a number of destinations in the machine, per the design, plus one additional load that is unique to this machine. As designed by IBM, this transformer provides 115VAC for the cooling fans in the machine. It also provides 115VAC for peripherals such as the internal disk drive, the console printer and in other system devices such as paper tape peripherals or plotter. 

Since our machine has had most of its cooling fans in the 1130 replaced with 230V motors, they no longer are attached to T2. On the other hand, the lighting power supply that is used by all the incandescent bulbs behind the main display panel is a part that comes in two types. One type is 115VAC only, the other type is only 208 or 230V. Since this machine was originally configured for 115VAC, I had to provide the power to this supply from T2.

The primaries for T2 are not protected by fuses. Instead there are fuses to limit some but not all of the draw on it. Fuse F7 limits the 115V load for the incandescent light power supply to 1A. Fuse F6 limits the load for the console printer motor, disk drive motor, and disk drive cooling fan to 3.25A. These sum to almost 500VA which exceeds the capability of T2 even without it driving the seven cooling fans in the processor box. Without blowing fuses this could produce overheating and perhaps burning of transformer T2.

I will replace this transformer with one having sufficient capacity to power all the gear and the original 115V cooling fans, even though I won't convert back to those fans at this time. 

Thursday, April 21, 2022

Finishing wiring of the console panel lighting power, tested and closed up fpga extender box for other 1130

IMPLEMENTING FUSE FOR THE LIGHTING PANEL POWER SUPPLY

I disconnected the feed to fuse F7 which was fed from the 230V line after the power contactor. The various fuses have wires with terminal rings that daisy chain the power between the fuses that share a source. By moving one wire that runs to F7, taking it off F2 where it was tapping the 230V supply and moving it to F6 which is tapping the T2 115V supply, I 'converted' the fuse to a 115V feed which can go directly to the terminal block to connect to the lighting power supply.

The only change that needed to be made was to swing the common side wire from where it was placed on the terminal for the 230V common and move it one down to a common for the 115V out of T2. I now have a properly fused supply that will be getting 115V when the machine is powered up.

TESTING SUPPLY AND OUTPUT VOLTAGE OFFLINE

I wired up a temporary plug to 115V with a 1A fuse and wired it to the power supply, having disconnected the wires from the 1130 power distribution box. This allowed me to fire it up and verify the correct operation and output voltage before I hooked it to the system.

Indeed, the supply worked without blowing the fuse and produced a bit over 7.25VAC on its output. All appears good so I proceeded to wire this into the machine, put in fuse F7 and power up the 1130.

VERIFYING LIGHTS WORK ON DISPLAY BOARD

Once this was up and running I hooked up a small bench supply to deliver 3V through a 6.2Kohm series resistor to various lamp input pins of the control board. I of course verified that the black terminal of the bench supply did not carry a voltage relative to the lighting board common terminal, since that is the return side of the 3V I will inject. 

I found about 15VAC across the grounds, clearly something picked up from the neutral side of the AC supply to which the bench supply was connected. I quickly solved that problem by putting in the fuses to active T3 and the convenience outlet. With the bench supply plugged into that outlet, I have isolation of ground and could wire the 'ground' or return terminal of the bench supply to the shared ground in the lighting panel circuit.

When I touched the 3V fed through the resistor to various signal pins, the lamps lit exactly as expected. I feel confident that most if not all will display when I get the +6V supply repaired and back into the machine. 

FINISHED CONTINUITY TESTING OF CABLE CONNECTORS TO THE FPGA BOARD

My FPGA based extender box connects to my IBM 1130 using the Storage Access Channel cables plus an augmented set of functions I added on a separate cable. I finished up the testing of the wiring and closed up the box. Next steps are to move it over next to my 1130, and cable it up.