NORMAL MODE HAS THE IBM 1130 HOOKED TO BUILDING POWER AT ALL TIMES
The Virtual 2315 Cartridge Facility (V2315CF) is designed to hook to an IBM 1130 computer which is plugged into the building power mains at all times. A utility outlet inside the 1130 system provides access to 120V AC at all times, often used to power an oscilloscope while an engineer is diagnosing hardware failures.
The V2315CF substitutes mini 2315 cartridges for the full sized IBM 2315 Disk Cartridge that slides into the internal 2310 disk drive. Rather than reading and writing data from the 14" magnetic platter inside the 2315 cartridge, the V2315CF accesses a file on a microSD card inside the mini cartridge. It holds that data in RAM while the 1130 system reads and writes to it. When the user switches off the disk drive, the data is written back from RAM into the microSD card so that all changes during the current session are saved just as they would be had a 2315 cartridge been used in an unmodified 1130 system.
There was a risk that an abrupt power down of the 1130 before the user turned off the disk drive would lose any changes from the current session since it wouldn't have written the RAM back to the microSD card. Further, a power failure in the building might occur, leading tot he same loss. Other situations where a power supply in the 1130 fails would similarly threaten the persistence of data written to the disk drive.
To protect against the loss of data in those situations, I designed the V2315CF to keep a 12V lead acid battery charged and ready. If power drops for any reason while the V2315CF believes a cartridge is loaded and being used, the system will switch over to the battery and trigger itself to perform a quick write of the RAM contents out to the microSD card.
The utility outlet is connected to a smart battery charger which maintains the 12V battery at full charge as long as the building power is available. A relay timer switches the V2315CF components over to the battery as soon as the 12V supply from the 1130 drops, keeping the battery connected for about 40 seconds which is plenty of time to save the current sessions version of the cartridge back to the microSD card.
ISSUES WHEN THE 1130 IS DISCONNECTED FROM THE BUILDING FOR LONG PERIODS
I found that when I was away from the workshop for many days, the battery was being drained because the 1130 is not plugged into the wall when I am not there, so the battery charger was not topping up the battery. In fact, the voltage drops over time because of two things draining power when the building is not connected.
The timer relay that connects the battery to the V2315CF for 40 seconds must be powered from the battery in order to remain active for the 40 seconds. It is pulling 5 to 10 ma from the battery continuously when the system is not on.
The smart/trickle charger is also draining the battery when it is not connected to 120V, as when the 1130 system is disconnected from wall power. I believe this is in the range of 10 to 20ma.
Since the battery only has a 7.2 amp-hour capacity, the battery would be fully drained in ten days with a 30 ma drain, but even after four or five days its voltage drops enough to cause problems when the 1130 is first powered up. The timer relay oscillates and the V2315CF won't come up.
IMPROVED DESIGN DISCONNECTS THE BATTERY WHEN UNHOOKED FROM BUILDING
I wanted to stop both of those drains if I don't see 120V on the utility outlet, which means that the 1130 is disconnected from the wall, the building power has failed, or some malfunction has occurred with the utility power source in the 1130. This cannot occur during the 40 seconds when the system is properly responding to an unexpected power drop and doing its write of RAM to the mini cartridge.
I have a circuit that monitors the 120V coming from the utility outlet. When that drops, the circuit continues to keep the battery connected for about 90 seconds, then disconnects the negative terminal of the battery from the rest of the circuitry. This isolates the battery so that the only loss of power will be from internal draining that can't be avoided with these types of batteries, but blocks the 30ma of demand that would otherwise be imposed on the battery.
I REDESIGNED THE POWER PCB TO ACCOMODATE THIS AND TO MAKE WIRING EASIER
I added another ten screw terminals to the board, to that every wire in the power system goes directly to one point. It eliminates the junctions that I soldered together to bond multiple wires since the previous version of the board didn't have enough terminals.
The board is off to be fabricated at JLCPCB and the components for the new disconnect circuit - a MOSFET, an optoisolator, a CD4093 Schmitt Trigger, and some timing components - are on order from Digikey. Once it arrives I will update the two V2315CF installations I have built.









