◆ Rebuild

Part 14 · Electronics and Computing

Punched-Card Tabulating Machines

Before computers, offices kept records on punched cards and handled them with electric machines — punches, sorters, tabulators that add and print, collators that merge files, all set up by wiring a plugboard. How to build them, from Hollerith's hand-fed census press to card-fed machines, and how to run a town's accounts, census or billing with them.

Difficulty
●●●●●
Time
A week for a hand punch and pin-press counter; a season for a card-fed sorter; a year or more for a printing tabulator
Steps from zero
60 prerequisites →

You need first

Displays, Printers and Data StorageThe Relay Computer

This unlocks

—

Raw materials

plant fibrehardwood
The full path from nothing — 60 steps before this one
  1. Fire
  2. Cordage and Rope
  3. Stone Tools
  4. Finding and Preparing Clay
  5. Finding and Identifying Ores
  6. Sulfur
  7. Writing and Numbers
  8. Hunting and Trapping
  9. Basic Woodworking
  10. The Kiln
  11. Pottery
  12. Charcoal
  13. Arithmetic and Fractions
  14. Hides and Leather
  15. Lime
  16. Bricks
  17. Salt
  18. Mercury
  19. Lye and Potash
  20. Fermentation
  21. The Wheel and Axle
  22. Logic and Binary
  23. Glass
  24. Firebrick and Refractories
  25. Bellows
  26. Saltpeter
  27. The Lathe
  28. Gears
  29. Copper Smelting
  30. Iron (the Bloomery)
  31. Lead
  32. Laboratory Glassware
  33. Sulfuric Acid
  34. Pumps
  35. The Waterwheel
  36. Lenses
  37. Blacksmithing
  38. Gold and Silver
  39. Hydrochloric Acid
  40. The Battery
  41. The Vacuum Pump
  42. Magnets
  43. The Light Bulb
  44. Copper Wire
  45. Photography
  46. The Generator
  47. The Electromagnet
  48. The Vacuum Tube
  49. The Electric Arc Furnace
  50. The Induction Coil
  51. The Telegraph
  52. The Relay Computer
  53. The Telephone
  54. Pure Silicon
  55. Semiconductors and the Transistor
  56. Radio
  57. Integrated Circuits
  58. Cathode Rays and Television
  59. The Computer
  60. Displays, Printers and Data Storage
  61. Punched-Card Tabulating Machines

Do them roughly in this order. See it on the tech tree →

Why it matters

A census counted by hand is out of date before it is finished. The United States census of 1880 took about eight years to tabulate by clerks with tally sheets. In 1890, with Herman Hollerith's punched cards and electric counters, the first population total was out in about six weeks.

The trick is to put one record on one card: one person, one sale, one meter reading, one day's work. Once the facts are holes, machines can count them, sort them into any order, add the numbers on them, print lists and totals, and merge two files, hundreds of cards a minute, without tiring or miscounting. A small crew with card machines replaces dozens of ledger clerks for payroll, stock, bills, taxes, rationing, hospital records and statistics (Statistics and Probability).

These machines are the bridge between the paper ledger (Money, Trade and Record-keeping) and the stored-program The Computer. They use the cards of Displays, Printers and Data Storage and the relays and logic of The Relay Computer, but need no memory and no program: the "program" is a board of wires. They are far easier to build than a computer, and for routine records they do much of the same job.

How it works

The card is a record

The standard card (Displays, Printers and Data Storage) has 80 columns and 12 rows. Group the columns into fields: columns 1–6 a person's number, 7 sex, 8–9 age, 10–12 occupation code, and so on. Write everything as numbers, using printed code books (occupation 214 = blacksmith). Decide the layout once, print it on the card stock as a guide, and never change it without renumbering.

A digit is one hole in a column, in row 0 to 9. A letter is two holes: one zone punch in row 12, 11 or 0, plus one digit punch. A to I are 12 plus 1–9; J to R are 11 plus 1–9; S to Z are 0 plus 2–9.

Reading by timing

Every card machine reads the same way. The card moves, row after row, under a brush of fine springy wire pressing on a metal roller carrying current. Where there is a hole, the brush touches the roller and a pulse flows. The machine knows which digit it is by when the pulse comes. Fed with the 9 row first, the 9-hole reaches the brush first, then 8, and so on down to 0.

This makes adding easy. A counter wheel turns all the time on a driven shaft, but only moves when its clutch magnet is engaged. A pulse from the brush engages the clutch at hole time; a cam disengages all clutches together just after the 0 row. A hole in row 7 engages the wheel with seven steps left to run, so it advances exactly seven. Ten wheels side by side, with a carry from each to the next as it passes 9, make a ten-digit adding machine with no gears to set.

Sorting, counting, adding, merging

Four jobs cover nearly all record work:

  • Sort cards into order on any field.
  • Count cards with a given code ("how many farmers in the north valley").
  • Add the numbers in a field, with subtotals each time a group changes ("total wages for each workshop").
  • Merge two decks in order, or match them ("put each customer's meter readings behind the customer's address card").

What you need

Item Notes See
Card stock Stiff, even paper 0.18 mm, cut to 187.3 × 82.6 mm within 0.1 mm Paper, Displays, Printers and Data Storage
Hardened steel plate and rod Punch dies and pins Steel, Presses, Punches and Dies
Relays, by the hundred Selectors, comparing, control The Relay Computer
Electromagnets and counter wheels Counters The Electromagnet, Clockwork, Music Boxes and Counting Machines
Phosphor bronze or brass wire Reading brushes, contact springs Zinc and Brass, Iron and Brass Wire
Small motor, cams, clutches Card feed and timing The Electric Motor, Gears
Insulating board Plugboards Early Plastics, or varnished hardwood
DC supply, 24–50 V Magnets and relays Power Supplies and Regulators

Card stock. 160–180 g/m² paper of long, strong fibres, every sheet the same thickness within 0.01 mm. One card weighs about 2.5 g; a town of 2,000 households billed monthly needs 24,000 cards, about 60 kg of paper, a year. Keep cards between 40 and 60% humidity: damp cards swell and jam, dry ones curl.

The card punch

The hand punch

The simplest punch is a die plate: two plates of hardened steel, 4–6 mm thick, spaced a card's thickness apart, both drilled or filed with the full pattern of hole positions, 2.21 mm apart along a row and 6.35 mm between rows. The card slides between them against an end stop. Push a hardened steel pin, filed to the hole shape (1.4 × 3.2 mm), through the top plate, card and bottom plate with a small lever press. The bottom hole is about 0.02 mm larger all round so the chip clears.

Hollerith's pantograph punch (1890) made this faster: a big index plate with a labelled hole for each position, a stylus on a lever over it, and a single punch at the other end of the lever over the card. Poke the stylus into "male", "age 30–34", press, and the punch cuts that hole.

The keypunch

A keypunch cuts a whole column at a time from a keyboard, like the tape punch of the The Teleprinter.

  1. Twelve punch pins in a row over a die, one for each row of the card.
  2. Keys for 0–9, 11 and 12 (and letters, each wired or linked to its zone and digit pins). A key pushes a small steel interposer under the top of its pin.
  3. A power stroke from a cam or magnet drives a bar down. Only the pins with an interposer under the bar are driven through the card.
  4. After each stroke, a rack and escapement (The Typewriter) move the card one column, 2.21 mm. A space key moves it without punching.
  5. Skip and duplicate: a "program card" on a drum, with holes marking where fields begin, lets the punch skip unused columns and copy repeated fields from the previous card automatically.

A good operator punches 8,000–12,000 key strokes an hour. Verify everything: a second operator types the same source documents on a verifier, which senses the holes already in the card and stops, with a notch, at any column that does not match. Most errors in card systems are punching errors.

The pin-press reader: Hollerith's first machine

This is the simplest card machine that is truly useful, and you can build it before any card feed. It counts one card at a time, as fast as a clerk can work: 50–80 cards a minute.

Press plate one spring-loaded pin over every hole position Pull the handle Card Bed contact spring under each hole Counter A Counter B wired to "female" wired to "farmer" each dial steps one division per card Pins over paper are pushed back up their springs. Pins over holes pass through, touch the contact and close the circuit.
Fig. 1 The pin-press reader. The clerk lays the card on the bed and pulls the handle. Spring-loaded pins come down; where a pin meets card it is pushed back, but where there is a hole it passes through and touches a contact spring below, completing the circuit to a counter dial, which steps on by one. Here one counter is wired to the hole for "female" and another to the hole for "farmer".
  1. The bed: a plate of hard insulating board with a hole under every card position, and in each hole a small contact, a phosphor-bronze spring or a cup. Hollerith used cups of mercury; springs are safer and work well. Two corner pins locate the card exactly.
  2. The press: a hinged upper plate carrying one spring-loaded pin over each position, each pin wired to a common supply. Pull the handle and the plate comes down: pins over paper are pushed back up their springs; pins over holes pass through and touch the contacts below.
  3. Counters: each contact you care about is wired to an electromagnetic counter — a ratchet wheel stepped one tooth by a magnet each time it is pulsed, driving a dial of 100 divisions, with a second dial for hundreds (Clockwork, Music Boxes and Counting Machines). Forty counters on a board count forty facts at once.
  4. Combinations: to count "female farmers", wire the female contact through a relay coil and the farmer contact through that relay's contact in series: only cards with both holes step the counter. This is the AND gate of Logic and Binary.
  5. The sorting box: a cabinet of numbered compartments with lids. Wire a lid's latch magnet to a field, and the right lid springs open as the press closes; the clerk drops the card in and shuts it.
  6. A bell rings on every good reading. If the clerk does not hear it, the card was not read: re-press it.

The card sorter

The sorter puts a deck in order on any field, one column at a time.

How it is built.

  1. A hopper holds 1,000–3,000 cards face down, 9-edge first.
  2. A thin steel picker knife, moving back and forth on a crank, pushes only the bottom card through a throat set to about 1.5 card thicknesses (0.25–0.3 mm), into rubber-covered feed rolls.
  3. The card passes under one reading brush, which slides along a rail and locks over the column you want to sort on, and over a contact roller.
  4. Beyond it the card runs under a stack of thin, springy chute blades, one per pocket, whose tips the sorting magnet holds up out of the way. At the instant the hole passes the brush, the magnet releases the blades and they drop onto the moving card. Because the card has travelled one row-spacing further for each digit time, the timing decides how many blade tips its leading edge has already passed, and so which channel it slips into.
  5. Thirteen pockets: 9, 8 … 0, 11, 12, and reject for cards with no hole in that column.

Run it at 100–250 cards a minute at first; well-built sorters reach 600–2,000.

9 8 7 6 5 4 3 2 1 0 11 12 R Hopper picker knife card travels Brush set on one column Sorting magnet drops the chute blades at the moment of the hole Chute blades the later the hole, the further along the card goes pockets: 9 first, R = no hole (reject) Sorting on three digits: last digit first Start 523 117 305 112 528 301 After units pass 301 112 523 305 117 528 After tens pass 301 305 112 117 523 528 After hundreds pass 112 117 301 305 523 528
Fig. 2 The card sorter and how it sorts. Above: a card leaves the hopper, passes under the reading brush, and the sorting magnet drops the chute blades at the moment a hole is read, sending it to the pocket for that digit. Below: sorting on the units column first, then tens, then hundreds, puts any deck in order in three passes.

Sorting a deck. To sort on a three-digit field in columns 23–25:

  1. Set the brush on column 25 (units) and run the deck. Collect the pockets in order, 0 on top of 1 on top of 2 and so on, keeping each pocket's order.
  2. Move the brush to column 24 (tens), run the whole deck again, collect in order.
  3. Column 23 (hundreds), run, collect. The deck is now in order.

Always start with the last digit. A field of n digits takes n passes. Letters take two passes per column: digit first, then zone. To select rather than sort ("pull out all cards with occupation 214"), sort on just that field and take one pocket.

The tabulator

The tabulator (later the accounting machine) reads every column of every card, adds chosen fields into counters, and prints.

  • Reading: 80 brushes, one per column, read each card as it passes, at 100–150 cards a minute.
  • Counters: banks of the clutch-driven wheels described above, 5 to 10 digits each, with carry. Eight to sixteen counters is plenty.
  • Printing: one type bar per print position, carrying type 0–9 (and letters) up its length. All the bars rise together in step with the card moving under the brushes; a pulse at hole time fires a stop magnet that catches the bar with the right digit at the printing line. Then hammers strike all the bars at once through an inked ribbon onto paper (The Typewriter). Later machines used print wheels instead of bars.
  • Listing or totals: the machine either prints a line for every card, or prints only totals.

Subtotals by group (control break). A second set of brushes reads each card one cycle ahead. Comparing relays check a chosen field, such as the workshop number, between the card being added and the card coming next. When they differ, the group is finished: the machine stops feeding for one total cycle, prints the counter, and clears it to zero. A second counter collecting the same numbers but cleared only at the end gives the grand total.

Subtracting. Mark credit cards with a punch in the 11 row of one column. That hole picks up a selector relay which makes the counter add the complement of the amount, which is the same as subtracting (The Relay Computer).

The plugboard

A tabulator does a different job every day: payroll on Monday, stock on Tuesday. The plugboard (control panel) sets which column goes to which counter or print position, by wires.

Card read columns 1–20 1 5 10 15 20 Card read columns 21–40 21 25 30 35 40 Counter A entry and exit entry (high … low digit) exit (total out) Compare for subtotals Print positions 41–60 41 45 50 55 60 columns 31–35 into counter A counter A total prints at 41–45 column 5 to compare Each cord joins one hub to another. Rewire the board and the machine does a different job.
Fig. 3 A tabulator plugboard. Every brush, counter and printing bar ends in a hub on the board. Short cords connect them: here columns 31–35 of the card go to counter A, which prints its total at positions 41–45, and column 5 is wired to the comparing relays for subtotals. Wiring a new board changes the machine's job.

How to make it.

  1. A board of hard insulating material, 6–10 mm thick: phenolic resin board (Early Plastics), hard rubber, or varnished hardwood, about 30 × 45 cm for a full tabulator.
  2. Hubs: brass tubes or split sockets pressed into the board in a regular grid about 6–10 mm apart, each ending in a flat contact at the back.
  3. Rows of hubs for each machine function, printed or engraved on the face: card read (80), counter entry (one per counter digit), print entry (one per print position), control and compare, selector pickups and contacts.
  4. A frame on the machine holds rows of contact springs. The board slides into the frame, a lever presses it home, and every hub meets its spring.
  5. Cords: flexible insulated wire 10–60 cm long with a brass tip at each end, split so it grips the hub. Colour or mark them by length.

Wiring a job. Run a cord from each card-read hub of the field to the matching counter-entry hub, highest digit to highest digit; from the counter's exit hubs to the print hubs where the total should appear; from the control field's read hubs to the comparing relays. Label the board with its job, and keep wired boards in a rack: a library of programs. Always run a test deck with known totals after wiring or changing a board.

The collator

The collator compares two decks and combines them. It has two hoppers, a primary and a secondary, three or four output pockets, and relays that compare a field from each card digit by digit and decide high, equal or low.

  • Merge: two sorted decks become one sorted deck.
  • Match-merge: put each transaction card behind its master card; cards with no partner go to a separate pocket for checking.
  • Select: pull cards whose field is above, below or equal to a set number.
  • Sequence check: stop if any card is out of order.

Monthly billing, for example: a master card for each customer (number, name, address, rate) stays in a file. Each month the readers punch one card per meter reading (Electricity Meters and Billing). Sort the reading cards by customer number, match-merge them behind the masters on the collator, and run the combined deck through the tabulator: it prints a bill for each customer and a total for the day. Pull the masters back out and refile them.

Running records with cards

  • Control totals. Before cards go into the machine room, count them and add a key field by hand or on an adding machine (Calculating Aids). After each run, the machine's card count and totals must match. A lost card is found the same day.
  • Interpret cards: an interpreter prints the meaning of the holes along the top edge so people can read them.
  • Reproduce: a reproducer (gang punch) copies a deck, or punches fixed data into many cards at once.
  • Storage: 1,000 cards stand about 18 cm deep. Keep them in drawers or boxes, upright, numbered, dry, away from fire.
  • Throughput. A weekly payroll for 1,000 workers: sorting on a four-digit number, four passes at 400 a minute, takes about 10 minutes; tabulating takes 7–10 minutes more. A crew of three or four does what twenty ledger clerks did.

How to tell it worked

  • Punching: hold a punched card over a correctly punched master against the light. Every hole lines up within a quarter of its width. Clean edges, no hanging chips.
  • Pin press: press the same test card 100 times; every counter must read 100. A counter that reads 99 has a weak contact.
  • Sorter: sort a test deck of 100 cards numbered 000–099 in random order. After two passes they must come out in order, with none in reject.
  • Tabulator: run a test deck whose totals you worked out by hand, including subtotals and a credit card. Run it three times. Every figure must match every time.
  • Feeding: 1,000 cards through any machine without a jam or a double feed.

Note Troubleshooting. Two cards feed at once — throat too wide, or cards stuck together by damp; fan the deck before loading. Cards jam — swollen or curled stock, a burr on the throat, or a torn card edge. Wrong digit read (one too high or low) — brush or cam timing has slipped; re-time against a card punched with all digits. A digit sometimes missing — dirty or bent brush wires; clean the contact roller. Totals wrong only on some days — a loose plugboard cord, or a cord in the wrong hub. Check the board against its wiring sheet.

Dangers

Danger Privacy and power. A card file of people — names, religion, ethnicity, health, politics — is a tool that can be used to hurt them. In the 1930s and 1940s, punched-card population registers in Germany and occupied Europe helped authorities find people for persecution and deportation. Collect only what a record truly needs, keep identifying cards locked, limit who may sort them, and destroy records that are no longer needed.

  • Moving parts: feed rolls, picker knives, cams and type bars trap fingers. Clear jams only with the motor stopped.
  • Electricity: machines run on 24–110 V supplies with large relay banks; switch off before working inside.
  • Mercury, if you copy Hollerith's cups, is poisonous (Mercury); use spring contacts instead.
  • Fire: tons of card stock burn fiercely. No smoking or open flames in the card store (Fire Extinguishers and Alarms).

What this unlocks

Card machines run payroll, stock, bills, banking, health and census statistics for a whole region. The same cards later feed the first electronic computers, and the plugboard leads to the idea of a stored program (Programming). Card systems also drive weaving looms (Textile Machinery). Like the later internet, they show how much power lies in organised records — which is why the warning under Dangers matters.

How it was first done

Joseph-Marie Jacquard's loom (1804) chose threads with punched cards (Textile Machinery), and Charles Babbage planned to program his Analytical Engine with them in the 1830s. Herman Hollerith, an American engineer who had worked on the 1880 census, patented his punched-card tabulating system in 1889. For the 1890 United States census his pantograph punches, pin-press readers with mercury cups, dial counters and sorting boxes processed about 63 million people. His machines were soon counting censuses in Austria, Canada, Norway and Russia. He added automatic card feeds, adding counters, horizontal sorters (1901) and a wiring panel (about 1906). His Tabulating Machine Company merged in 1911 into the firm renamed IBM in 1924, which introduced the 80-column rectangular-hole card in 1928; James Powers' rival machines led to Remington Rand's 90-column card in 1930. Printing accounting machines such as the IBM 405 (1934) and 407 (1949), and the collator (1937), ran the offices of the world until stored-program computers took over in the 1960s and 1970s.

Source: content/entries/electronics/punched-card-machines.md