Short answer: wipe a white lint-free cloth across a board edge, the door gasket channel and the cabinet floor of the suspect cabinet. Oil on the cloth means mist ingress, and in a CNC shop that mist explains errors that move between cards and clear on restart. It gets in at three paths: the fan and filter through-flow, the door gasket seam, and unsealed cable entries and knockouts. Clean the oil off with electronics-grade isopropyl alcohol, fit a fresh gasket and seal every entry. Then choose between a serviced filtered inlet and a fully sealed box, judged by how fast the film returns in your shop. Leave one path open and the errors are back within weeks.
What oil mist does to a control cabinet
Oil mist on its own is a nuisance; mixed with shop dust it turns into a paste that clings to boards, pins and contact faces. The paste conducts a little, so leakage currents appear between closely spaced pins and traces. It also insulates the faces that should make metal-to-metal contact, and it blankets filters and fan blades so the cabinet runs hotter; a matted filter can push internal temperature past the 40 C (104 F) ambient limit most drives and electronics are rated for.
Power-cycling clears the alarm for a while, but the film stays put. The next vibration or thermal cycle breaks contact again, and reseating a card without cleaning smears oil onto fresh surfaces, so the fault returns somewhere new. The symptoms sort into a short list, and each one points at a stage of the same problem:
- Alarms that move between cards and clear on restart — leakage across an oily surface, not one failed part.
- Faults that appear late in the shift — heat thins the film, and the heat itself points to a matted filter.
- Faults that follow vibration or axis motion — smeared contacts inside a connector.
- A cabinet running 5-10 C (9-18 F) hotter than before, with fans slower or noisier — oil-wet media and filmed impellers.
- Haze inside the viewing window, pooled oil on the floor, streaks below top entries — live entry paths, already mapped for you.
Where the mist gets in, most likely first
Work the paths in this order. In a bought-used machine whose cabinet was never sealed, all of them are usually live at once, so expect to close more than one in your box.
- The fan through-flow. An exhaust fan with plain louvers holds the cabinet at negative pressure and pulls shop air through every seam. An intake filter fan keeps the box positive, but it inhales mist-laden air, and oil aerosol wets filter media the way dry dust never does.
- The door gasket. Flattened corners, a cracked length, or latches backed off until the gasket barely compresses. Most closed-cell gaskets want roughly 25-30 % compression against the door, and the hinge-side seam shows the loss first.
- Cable and conduit entries. Spare knockouts left open, glands sized a step above the cable so an open annulus remains (a gland marked for 6-12 mm cable sealed on 4 mm cord leaves a gap all round), and top entries whose threads wick oil downward.
- Thermal breathing. After shutdown the air inside cools and contracts, and the make-up air comes in through the widest gap. That is how fanless cabinets fill with mist overnight.
- The source. Way lube and coolant atomizing at the cut, a mist collector switched off or full, and machine doors open during cutting.
How to check each entry path
Each check costs minutes, and each one names its leak:
- Wipe test: press a white lint-free wipe on the filter face, the gasket channel, the floor under each entry and one board edge. Grease on the wipe marks a live path, and the location tells you which one.
- Smoke-pencil test: with the fan running and doors latched, trace the door seam and every entry. Smoke drawn inward marks a leak; tag each one with masking tape and work the list.
- Paper-strip pull: a strip of paper should drag with even resistance all the way around the gasket. Any stretch that slides out freely has lost compression.
- Filter look: media wet with oil reads dark and glossy under a lamp, while dry dust reads grey and matte.
- Drip tracks: oil-darkened streaks on the outside wall below a gland point at that entry's threads or plug.
Check the machine side too. Confirm the mist collector runs, and wipe the ways area, because a saturated patch there feeds mist into the shop air all shift.
Worked example: oil carried in by a 100 m³/h filter fan on one 8-hour shift
The case is a single-shift shop with an intake filter fan rated 100 m³/h at free flow. That airflow sits mid-range for 120 × 120 mm units on small filter-fan datasheets, so use the figure on your fan's own datasheet. The shift runs 8 hours. The oil mist concentration at the inlet is assumed at 5 mg/m³, a placeholder for a shop with visible mist, and you should replace it with a measured value from an air check at your machine. Half the presented mist mass is assumed to wet the media and impeller, with the rest passing through or staying airborne.
The rule: mass of oil mist presented to the cabinet = airflow × run time × concentration, and the mass that stays behind = presented mass × deposition fraction.
- 100 m³/h × 8 h = 800 m³ of shop air drawn through the cabinet in one shift.
- 800 m³ × 5 mg/m³ = 4,000 mg, so 4 g of oil mist reaches the filter each shift.
- 4 g × 0.5 = 2 g caught on the media and impeller per shift.
- 2 g × 20 shifts = 40 g of oil held by one filter in a month of single shifts.
Forty grams mats a 120 × 120 mm pad long before its dust-holding capacity is spent. Two grams per shift is why a through-flowed cabinet in a misty shop gets its filter checked monthly, at the assumed concentration. With the filter missing or bypassed, the same 4 g per shift lands on boards and connectors instead of on media. If the wipe test finds film inside the cabinet between monthly services, the through-flow is itself an entry path: seal the box and move the cooling duty to equipment that keeps shop air out.
Cleaning the boards and cabinet
Clean first and seal second, because sealing a dirty cabinet traps the paste against the contacts.
- Lock out the main disconnect and confirm zero volts at the incoming terminals with a meter. Drives and supplies hold charge after shutdown, so wait out the discharge time the drive manual states, typically 5 minutes on small units.
- Photograph every connector, card position and duct run, and save parameters, offsets and programs while the control still has power. If the data sits in battery-backed memory, check the battery before any long power-off.
- Wipe pooled oil off the floor and walls with lint-free wipes, and lift chips and dust out with a vacuum rated for electronics work.
- Clean boards and contact fingers with electronics-grade isopropyl alcohol and a soft brush, moving to a fresh wipe often so the oil lifts away instead of spreading. Give boards about 10 minutes at room temperature to dry before reassembly.
- Clean connector bodies and socket contacts with a plastic-safe contact cleaner, then reassemble against the photos and seat every retainer.
- Replace oil-wet filter media outright, and clean or replace filmed impellers. If airflow points the wrong way afterwards, turn the fan around; reversing the supply does not reverse a brushless DC or EC fan and can damage it.
Compressed air has no place in this job, because it drives oil and fine swarf under components and adds a static risk. Inspect as you clean: green or white corrosion, swollen capacitors and carbonized tracking between pins mean a board needs repair or replacement, not cleaning. Filmed impellers and soaked media are exactly the faults behind cabinet fans that stall in misty shops, and the enclosure fan failure in mist checklist walks through them.
Sealing the door, gasket and entries
Fit a new gasket wherever the wipe or paper test failed. Molded corners keep the seal continuous at the spots that leak first, and the practical difference against a spliced length is set out in the spliced vs molded gasket article. If you cut and fit a gasket yourself, nitrile is the oil-resistant choice among the common elastomers, with service from about -30 to 120 °C. EPDM outlasts it in water and steam, but it is the wrong polymer for oil.
Set the latches so the gasket compresses evenly, and use the paper-strip drag around the full perimeter as the pass check. The door, hinge and gasket demands behind a Type 4 rating are laid out in the NEMA 4 gasket and door requirements article.
Seal the entries with the same discipline. Fit a gland matched to each cable's outside diameter so the seal rides on the cable, plug every unused knockout with a metal plug, and bring entries in low or through the side with a drip loop below each gland. A top entry hands oil a wick straight down the threads. The steps for a conduit entry against liquid are covered in the EMT entry sealing article, and the same gland-and-plug rules apply to every hole you make.
Our stainless wall-mount and HMI boxes are manufacturer-rated NEMA 4X / IP66, not UL listed. IP66 is tested with a 12.5 mm nozzle at 100 L/min, and Type 4X adds a corrosion test on top of Type 4's hose-down water. The rating holds only with the door latched and every opening sealed as above.
Filtered fan or fully sealed: the airflow decision
Light mist that you also tame at the machine: keep a filtered intake fan. It holds the cabinet at slight positive pressure, so leaks push outward instead of drawing in, the same logic that makes positive pressure work on dusty enclosures. Service the filter monthly at the worked example's conditions, and sooner whenever the media reads dark and glossy.
Heavy mist, meaning film on a board edge between monthly services: stop pulling shop air through the cabinet. Seal it per the list above, then move the heat out with a cooling unit or heat exchanger sized to the internal heat load, because an oil layer also insulates and the sealed box needs deliberate cooling rather than convection alone. Check the passive capacity before you pick the cooler: for a 20 × 16 × 8 in (508 × 406 × 203 mm) stainless box the outside area is about 0.78 m², and at the site's k = 3.7 W/m²K for stainless a 120 W internal load gives 120 ÷ (0.78 × 3.7) ≈ 42 C (75 F) of rise. At 24 C (75 F) shop ambient that is 66 C (151 F) inside, far past the 40 C (104 F) limit, so this box needs a cooling unit, not surface area. The fan, filter fan or cooling unit decision for a hot shop carries straight over, with mist simply removing the plain filtered-fan option.
Keeping it clean, and when to re-specify
Run the service loop. Wipe one board edge and the filter face monthly, every 20 shifts at the example's conditions, and repeat the paper-strip test after any door work. A fingertip across a board edge that comes away clean after the first week back in service says the seals hold.
Keep the source lean as well: mist collector running and serviced, way-lube leaks fixed, cutting done with machine doors closed. On a router or machining center, the choice of chip removal decides how much mist the shop air carries in the first place.
Re-specify the cabinet when film returns inside a month with an intact gasket and sealed entries. That points at through-flow you cannot service often enough, or a source you cannot tame. The answer is a sealed stainless box with no louvers, cutouts only where glands go, and deliberate cooling. Indoors with direct oil and coolant spray, NEMA 250 defines Type 13 for that exposure, and the NEMA 13 oil and coolant protection article explains what it demands of the build. If the type numbers are unfamiliar, the NEMA enclosure types guide walks the full set.
When you order the replacement, decide material, size and cutouts in one pass. Take 304 for routine duty and 316L where coolants and cleaners attack; the washdown enclosures page maps the two grades to the duty. Place gland cutouts low or on the side, with drip space under each. Our stainless wall-mount boxes are manufacturer-rated NEMA 4X / IP66, not UL listed, and delivered in 10 business days from drawing approval. The CNC control cabinet quote checklist lists what to send with the request, and the range gives you the sizes to start from.
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 |
|---|---|---|---|
| 20 × 16 × 8 in | 304 stainless | 20 x 16 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 60 × 36 × 16 in | 304 stainless | 60 x 36 x 16 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 48 × 36 × 16 in | 304 stainless | 48 x 36 x 16 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 60 × 36 × 12 in | 304 stainless | 60 x 36 x 12 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Can oil mist really cause random control errors?
Yes. Oil mist mixed with shop dust forms a slightly conductive paste that leaks between closely spaced pins and coats contact faces, so alarms move around and clear on restart. A 100 m³/h filter fan running an 8-hour shift pulls 800 m³ of shop air through the cabinet; at an assumed 5 mg/m³ that presents 4 g of oil to the filter per shift, and cleaning alone buys weeks rather than a fix.
What is the right way to clean oil off control boards?
Lock out, confirm zero volts with a meter, and photograph the as-found wiring first. Wipe pooled oil with lint-free wipes, clean boards and contact fingers with electronics-grade isopropyl alcohol and a soft brush, and use a plastic-safe contact cleaner on connector bodies. Allow about 10 minutes of drying at room temperature before reassembly, and skip compressed air, which drives oil and swarf under components.
How often should the cabinet filter be serviced in a misty shop?
At the worked example's conditions, a 100 m³/h fan on 8-hour shifts with an assumed 5 mg/m³ of mist, about 2 g of oil lands on the media per shift and roughly 40 g builds over 20 shifts. Check the filter monthly and replace it when the media reads dark and glossy rather than grey and matte. A clean shop runs the same filter far longer.
Which enclosure type keeps oil mist out?
A sealed cabinet: gasketed door, sealed entries and no through-flow. Our stainless wall-mount boxes are manufacturer-rated NEMA 4X / IP66, not UL listed; Type 4X covers hose-down water and adds a corrosion test over Type 4. Indoors with direct oil and coolant spray, NEMA 250 defines Type 13. In heavy mist, order with cutouts only where the glands go.





