Advertisement
Data Processing

The Packed Socket: A NEMA Code's First Number Is a Class, Not a Count (SmartDataAI)

Two catalogue rows describe the same wall receptacle. One reads "6-30", the other "30 A". A cleaning pipeline asked to reconcile them against a regist...

Two catalogue rows describe the same wall receptacle. One reads "6-30", the other "30 A". A cleaning pipeline asked to reconcile them against a register of North American connector codes resolves the first instantly and the second three ways at once — the 30-amp rating is shared by a 125-volt, a 250-volt and a dual-voltage connector that must never be substituted for one another. Measured across 500 written forms of a ten-code register, the full code resolves every row exactly, while the single-field spellings — amperage alone, voltage alone, series alone — merge 280 rows into ambiguity. This piece is the step-by-step repair: what each field of a NEMA code actually carries, and the order in which to store them.

What The Packed Socket means

The Packed Socket is a connector designation that packs a voltage class and a current rating into one short code, where the first field is a class index that must be resolved through the standard's table — series 5 means 125 volts, series 14 means a dual 125/250 volts — and only the second field is a literal measurement. The nearest prior concept in this series is The Packed Code, the tattoo-needle pattern built on "a code that must be resolved through a lookup table rather than read as a value" (SmartDataAI, batch 54 of this series). The needle code packs three fields, one of them alphabetic, and none of them a plain measurement. The socket code packs two fields of opposite kinds: the ampere figure after the hyphen is exactly what it appears to be, while the series number before it is pure class — 5 is not five of anything, and 14 names a voltage pairing that no arithmetic on "14" will ever produce. A reader that treats both fields the same way — either both as values or both as keys — is guaranteed to mishandle one of them.

The register: ten codes, two kinds of field

The register behind this piece holds ten NEMA straight-blade codes with their rated values: 5-15 (125 V, 15 A), 5-20 (125 V, 20 A), 5-30 (125 V, 30 A), 6-15 (250 V, 15 A), 6-20 (250 V, 20 A), 6-30 (250 V, 30 A), 6-50 (250 V, 50 A), 7-15 (277 V, 15 A), 14-30 (125/250 V, 30 A) and 14-50 (125/250 V, 50 A). Five written forms of each code were measured, ten times each: the full code, the locking spelling with its L prefix, the amperage alone, the voltage alone and the series alone. The full results are plotted below; the steps that follow explain each row of the chart.

The Packed Socket: A NEMA Code's First Number Is a Class, Not a Count (SmartDataAI)

Step one: keep the full code, and refuse the locking spelling

The full code resolved all 100 of its rows exactly — the only form that did. The locking spelling ("L6-30" for the 6-30's locking variant) resolved none: matched exactly against the register's code list, it is refused 100 times out of 100, because the register's codes carry no L. That refusal is the safe outcome — a locking connector is a physically different device that happens to share a rating — but it must be a designed refusal, routed to a locking register, not a silent drop. A pipeline that strips the L to force a match converts a correct refusal into a wrong exact, filing a twist-lock device under its straight-blade twin.

Step two: never let the amperage travel alone

Amperage alone merged all 100 of its rows. The register's ratings repeat across voltage classes by design: "15 A" names 5-15, 6-15 and 7-15; "20 A" names 5-20 and 6-20; "30 A" names 5-30, 6-30 and the dual-voltage 14-30; "50 A" names 6-50 and 14-50. No amperage in the register is unique to one code, so the field carries zero identifying power on its own — it is a property, not a key. In a merged catalogue this is the dangerous direction of error: a 125-volt 5-30 and a 250-volt 6-30 are not interchangeable hardware, and a record that keeps only "30 A" has destroyed the distinction that keeps them apart.

Step three: treat voltage and series as the same warning twice

Voltage alone merged 90 rows and resolved 10: "125 V" names three codes, "250 V" names four, "125/250 V" names two — and only "277 V" resolves exactly, because series 7 has a single member in the register. Series alone reproduced the same shape exactly: 90 merged, 10 exact, the exception again series 7 standing alone. The symmetry is the lesson. Series and voltage are two spellings of one field — the class — so a record holding both has no more identifying power than a record holding either; the pair looks like corroboration and is merely repetition. What identifies a code is the conjunction of the class with the rating: class alone merges, rating alone merges, together they are the code.

Worked example: three rows from a supplier feed

A supplier feed lists "6-30", "L6-30" and "30 A". Round-tripped through the register for this piece: "6-30" resolves exactly to the 250-volt, 30-amp code. "L6-30" is refused — correctly, since the locking device belongs in a locking register this register does not hold. "30 A" merges three ways, to 5-30, 6-30 and 14-30, and no amount of cleaning recovers which one the supplier meant; the row needs the voltage or the series from the source document, and if the source document does not have it, the honest catalogue entry is the three-way merge itself, flagged — not a guess dressed as a match. Of the feed's three rows, then: one exact, one designed refusal, one flagged merge. A pipeline reporting "3 rows processed" has said nothing; the fates are the report.

How the register was measured

The ten codes and their rated values form the register stated above; the five written forms were generated from it and resolved by parsers implementing the stated rules — exact code-list matching, field matching on rating, voltage class and series — with the harness, its rules and its full results (500 rows: 120 exact, 280 merged, 100 refused) published in this batch's evidence files. Re-running the harness reproduces the results file byte for byte. Counts in this piece follow the harness output, not hand tallies.

FAQ

What does the first number of a NEMA code mean? It is a series class, not a measurement: 5 denotes the 125-volt class, 6 the 250-volt class, 7 the 277-volt class and 14 the dual 125/250-volt class. The number after the hyphen is the ampere rating.

Why was the locking spelling refused rather than matched? Because "L6-30" is not a code in the register — the locking variant is a physically different connector sharing the rating. Matched exactly against the code list, all 100 locking rows were refused, which is the safe fate; stripping the L would file them under the wrong device.

Can amperage identify a connector on its own? No. In this register every rating is shared: "30 A" alone merges the 125-volt, 250-volt and dual-voltage codes. Amperage is a property of the connector, never a key.

Why do voltage-only and series-only records fail identically? Because they are the same field in two spellings — 90 merged and 10 exact each, the sole exception being the single-member 277-volt class. Holding both adds no identifying power.

The next step

Take one supplier feed and re-key it on the full code: store the code whole as the primary key, split class and rating into separate property columns, and route every L-prefixed spelling to its own locking register — then re-run the merge count and watch the amperage-only merges disappear from the report.

Know someone who needs this? Share it.

Advertisement