Short answer: move the switching point to a proximity sensor with no exposed moving parts, in a 316L stainless or nonmetallic body with a potted cable, rated NEMA 4X where it faces spray and Type 6P where it can end up under water. Run it on 24 V DC into a PLC input, and land the splice in a 316L NEMA 4X junction box above the spray line. Before you order, compare the sensor's off-state leakage (most two-wire sensors draw under 2 mA with no target) with the input module's off threshold. A coal shiploader boom is the example duty throughout: salt fog, hose-down wash, coal slurry, and a limit that must fail visibly.
Where the salt finds the switch
A limit switch in sea air dies at one of five points, and only one of them is the switch element itself. Walk the whole assembly before you settle on a part number:
- The body. Painted aluminium blisters, then pits through where the coating is thinnest.
- The fasteners. A stainless screw in an aluminium thread corrodes into a solid lump; the screw shears before it ever comes loose.
- The terminal compartment. Water walks past a flattened cover gasket or an unsealed entry and eats the terminals.
- The moving parts. Lever, roller, spring and shaft seal seize; operating force climbs until the mechanism misses the target.
- The cable entry. An unpotted entry wicks water down the jacket toward the terminations.
Each failure shows up in the panel as an input that never turns on, one that never turns off, or one that flickers with vibration. A proximity switch with a potted cable removes four of the five points at a stroke. The 316L junction box described below takes the fifth.
The rating the device and the box need
Ask for Type 4X as the floor. Type 4 covers hose-directed water, rain and external icing; the X adds corrosion, which NEMA 250 tests with 200 hours of salt spray (ASTM B117) against an AISI 304 stainless specimen. Submersion is a separate rating: Type 6 covers temporary immersion, the nearest IP pair being IP67's 1 m [3.3 ft] for 30 minutes, and Type 6P covers prolonged submersion under conditions the maker states. Several corrosion-resistant mechanical limit switch families carry 4X and 6P on one body, so the lever route survives where the machine genuinely needs overtravel.
The device marking is only half of it. Every gland, plug and entry carries its own rating, and the weakest one sets the assembly's; the cutouts, glands and windows guide is the reference for entry detail. In the United States, NEC 110.28 states that IP ratings are not a substitute for enclosure type ratings, so your spec carries the NEMA type even when the datasheet prints both; the Type 4 vs 4X and IP66 comparison works through the pairing. Our stainless wall-mount enclosures are rated NEMA 4X / IP66 by the manufacturer; not UL listed. The manufacturer ratings and listing guide explains when an inspector wants a listing instead.
Pick a sensor with no exposed moving parts
An inductive proximity switch is the first choice when a metal bracket on the moving machine can pass the sensor. Typical datasheet values for an M18-sized inductive sensor sit at 5-8 mm, so set the target inside that window across full travel plus wear; 2 mm of play on an 8 mm gap is a 25% margin loss. Where the machine can carry a magnet target, a magnetic proximity switch does the same job with the magnet bolted to the moving part.
Keep the electronics out of the weather. Specify a potted cable exit rather than a terminal compartment with a cover, and run that cable to a dry box where the terminations live. A walkthrough on replacing a mechanical limit switch with a proximity sensor covers the mechanical side of the swap.
Body, fasteners and the stainless grade
Aluminium bodies with stainless screws are the classic marine trap. Salt bridges the couple, the thread corrodes solid, and the first removal attempt shears the screw; anti-seize paste helps little on screws this small. Choose a nonmetallic body where impact loads allow it, or a coated alloy body away from the direct splash line. The salt-spray comparison of stainless fasteners and coated bolts explains why the metal pair, not the coating alone, decides the joint.
At the box, the grade decision is short: 316L near salt. Chloride deposits pit 304 even at room temperature, and both grades meet chloride stress-corrosion cracking near 60 C (140 F). The molybdenum in 316L buys pitting and crevice resistance, not a higher threshold; the 304 vs 316L guide carries the full comparison.
The 24 V DC interface: keep the input off with no target
Read two figures before you buy: the sensor's off-state leakage and the input module's off-state threshold. Two-wire sensors leak while nominally off — the figure sits on every sensor datasheet, a documented industrial example draws 0.8 mA, and most sit under 2 mA — while a high-impedance 24 V DC input can latch on at a milliamp-scale threshold.
Worked example, with assumed figures you replace from your own parts: sensor leakage 1.5 mA; module turns off below 1.2 mA. With the target away, the input sees 1.5 mA and reads on, so the panel believes the boom sits on the limit forever.
Two fixes, in order of preference:
- Three-wire PNP sensor. Off-state leakage sits in microamps, orders of magnitude below typical thresholds. The cost is one more conductor in the cable.
- Bleeder resistor across the input. A 22 kΩ part draws 24 V ÷ 22,000 Ω = 1.1 mA, so the input's share falls to 1.5 − 1.1 = 0.4 mA, under the 1.2 mA threshold. It dissipates 24² ÷ 22,000 Ω ≈ 0.026 W, so a 0.25 W resistor runs cool. The sensor's on-state carries the input's on-current plus 1.1 mA, small against a two-wire sensor's rated switching current, usually 100-200 mA on the datasheet.
Wire the input normally closed, so a broken cable reads as a fault instead of a satisfied limit. Where the target rotates, the tail-pulley underspeed scheme with one timer on the on-pulses and one on the off-pulses catches a stopped target in either state.
The junction box that keeps the splice dry
Land the sensor cable on DIN rail terminals inside a 316L wall-mount box mounted above the spray line, with a drip loop on every cable so water runs off the jacket before it reaches a gland. Order the cutouts to the actual jacket diameters and plug every unused hole; how to tell a genuinely 4X-built junction box gives you the marking and build checks.
Condensation is the leak no rating covers. A sealed box that breathes warm humid air by day can rain internally on a cold night, so fit a breather or drain only as the enclosure maker's approved device with its mounting instructions; a field-drilled hole ends the manufacturer's rating. For contrast, NEC 314.15 permits drainage openings of 3 mm [1/8 in] to 6 mm [1/4 in] in boxes listed for damp or wet locations — the escape route for ordinary wet-location boxes, not for a sealed Type 4X assembly. The outdoor enclosures page carries the breather and heater options for boxes that cycle.
Take the ground conductor out through its own sealed gland; running a ground wire out of an outdoor enclosure covers the seal. In a nonmetallic box, grounding inside a plastic enclosure exposed to salt spray shows what changes for bonding. Our stainless junction boxes come in the nine smallest wall-mount sizes, with a hinged gasketed door and a removable panel, and the cutouts come to your drawing.
What to put on the order
| Order line | Write this | Basis |
|---|---|---|
| Switch | Inductive or magnetic proximity, no exposed moving parts, potted cable exit | removes lever, spring, shaft seal and terminal cover from the salt |
| Device rating | Type 4X; Type 6P where the device can submerge | 200 h salt spray; prolonged submersion |
| Body | Nonmetallic or 316L; coated alloy away from the splash line | aluminium threads seize on stainless screws |
| Circuit | 24 V DC; sensor leakage below the module's off-state threshold | phantom-on input |
| Input wiring | Normally closed to the PLC | broken cable reads as a fault |
| Junction box | 316L wall-mount, manufacturer-rated NEMA 4X / IP66, cutouts to the cable diameters | splice stays dry |
| Entries | Glands on ordered cutouts, plugs in unused holes, drip loops below | the weakest entry sets the assembly |
| Terminals | DIN rail with end stops, sized to the wire count with spare positions | retermination without crowding |
Decision by exposure:
- Boom tip, direct spray and hose-down: proximity switch rated 4X with a potted cable, 316L or nonmetallic body, 316L junction box above the spray line, and the leakage checked against the module threshold.
- Device can stand under water at high tide or in flooding: the same layout with a Type 6P-rated device; the box still sits high and dry.
- Occasional salt mist on an inland dock: a coated alloy body earns its keep, and the 316L box stays worth it because salt deposits pit 304.
Order the junction box with the gland cutouts you laid out, and the rating holds end to end: delivered in 10 business days, anywhere in the world, counted from your order; for custom work, from your approval of the drawing.
Catalog dimensions to compare
Compare these catalog dimensions with your component layout. Open each enclosure for its rating, material and usable space, then check those specifications against your application.
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 12 × 10 × 6 in | 316L stainless | 12 x 10 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 20 × 16 × 8 in | 316L stainless | 20 x 16 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 24 × 20 × 8 in | 316L stainless | 24 x 20 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 16 × 14 × 8 in | 316L stainless | 16 x 14 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Does a NEMA 4X rating cover a switch that ends up under water?
No. Type 4X covers hose-down water, dust and corrosion; the X adds 200 hours of salt spray to the NEMA 250 test. Submersion needs Type 6, tested as 1 m [3.3 ft] for 30 minutes, or Type 6P for prolonged submersion under the conditions the maker states. Pick a 6P-rated device wherever tide, flooding or wash water can stand over it.
Can a two-wire proximity switch hold a PLC input on with no target?
Yes, when its off-state leakage exceeds the input module's off-state threshold. In a worked example with assumed figures, a sensor leaking 1.5 mA into an input that turns off below 1.2 mA reads on with no target. Fit a 22 kΩ bleeder across the input (it draws 1.1 mA at 24 V, leaving 0.4 mA) or move to a 3-wire PNP sensor, whose leakage sits in microamps.
304 or 316L stainless at a dockside installation?
316L, for the junction box and its mounting hardware. The molybdenum in 316L raises pitting and crevice resistance, which is exactly what the splash line attacks first, so the premium buys its keep at the water's edge.
Why not keep the mechanical limit switch and just seal it better?
A sealed lever still carries a shaft, spring and roller in the salt, and corrosion raises its operating force until the mechanism misses the target. Some corrosion-resistant mechanical switches do carry Type 4X and Type 6P ratings, so the mechanical route stays open where the machine needs real overtravel; for a plain position signal, a proximity switch removes the moving parts entirely.
What voltage should the sensing circuit run at?
24 V DC. Standard proximity sensors and PLC inputs are built around it, the fault energy at an exposed wet terminal is far lower than at 110 V AC, and a two-wire failure mode stays a milliamp-scale nuisance rather than a welded contact. Keep the sensor supply separate in the panel and fuse the branch small.





