Short answer: an 8-inch touchscreen on a clean indoor machine at 75 F [24 C] fits a 12 x 14 x 6 in [305 x 355 x 150 mm] enclosure in 304 stainless, rated NEMA 4X / IP66 by the manufacturer, with the factory cutting the 226 x 166 mm [8.9 x 6.5 in] display hole and 2 in [50 mm] of clear depth behind the panel. A Type 12 box carries the clean-hall duty; the 4X stainless box we build also survives the day someone hoses the machine down. Here are the numbers for rating, material, size, heat and mounting, and the exact lines for your order.
What NEMA rating does a machine-mounted HMI need?
Type 12 carries a clean, dry indoor machine; step up to NEMA 4X / IP66 once the box will see hose water, coolant spray, outdoor air or washdown chemicals, which on most floors happens eventually.
Walk the machine's floor and match it to the table. When two rows apply, order the tougher rating: changing a box on a running line costs a shutdown, and the tougher box costs you nothing at commissioning.
| Where the machine works | What reaches the box | Order this rating |
|---|---|---|
| Clean assembly hall, steady 70-80 F [21-27 C] | Settling dust, an occasional drip | Type 12 |
| Dial machine with oil mist or coolant | Oil and coolant spray | Type 13, or 4X if it ever gets hosed |
| Washdown line, food or pharma | Hose-directed water, cleaners | Type 4X / IP66 in 304, 316L if chlorinated |
| Outdoor or coastal pad | Rain, sun, salt fog | Type 4X / IP66 in 316L |
Our stainless wall-mount boxes leave the shop rated NEMA 4X / IP66 by the manufacturer and not UL listed, and NEMA itself tests nothing. The NEMA 4X vs IP66 comparison covers what each test sprays: IEC 60529 proves the second digit 6 with a 12.5 mm nozzle delivering 100 L/min from about 3 m. Type 4X adds the corrosion side, and UL 50E and NEMA 250 make that concrete: 4X enclosures take another 200 hours of salt spray against an AISI 304 control specimen (Table 5-1D). In US installations, NEC 110.28 keeps an IP code from standing in for a type rating, so write the NEMA type first and the IP code beside it. If your spec sheet asks for proof, how to verify an HMI NEMA rating claim lists the documents to ask for.
One more rule sets the assembly: the weakest part wins. A single IP54 gland in an IP66 wall makes that whole wall IP54, so every hole you add carries hardware rated to the box.
Stainless steel or non-metallic for a machine-mounted enclosure?
Order 304 stainless for the frame: it takes a knock from a parts tote, carries your grounding path, and holds its gasket seal through years of indexing vibration; choose non-metallic only when weight or a chemical rules metal out.
Match the grade to what touches the box. Use 304 for indoor washdown, food lines and most outdoor sites; move to 316L where salt air, brine or chloride-based cleaners are present, which means coastal pads, pharma and chemical areas. Both grades are built from one piece in the custom enclosure line, with every cutout you specify, including polycarbonate and FRP when you want non-metallic.
Non-metallic boxes earn their place on machines when the structure is light or the chemicals attack paint. The trade is grounding: under NEC 314.3, a nonmetallic box with metal raceways or metal-armored cable must have those metal parts bonded together inside the box, so plan a bonding bushing and a ground bar from the start. The polycarbonate vs fiberglass guide compares the two plastics where they win.
How big an enclosure does an 8 inch touchscreen need?
Order 12 x 14 x 6 in [305 x 355 x 150 mm]: the door holds the 226 x 166 mm [8.9 x 6.5 in] cutout, the 6 in body clears the 60 mm behind the panel, and 2 in [50 mm] of wiring room remains.
Those are height x width x depth. The cutout figure comes from the published mounting tables of a typical 8-inch touch panel, which also put about 60 mm [2.4 in] of the unit behind the mounting face; your HMI drawing is the one that counts, so send it with the order.
The door is the first check, and the arithmetic is short. Width: 14 - 8.9 = 5.1 in of door, or 2.55 in of steel beside the hole on each side. Height: 12 - 6.5 = 5.5 in, or 2.75 in above and below. Keep at least 1 in [25 mm] between any cutout edge and the door gasket so the door stays flat under the latch; 2.55 in clears that with room for an e-stop or a light ring beside the display.
Depth adds the same way. The panel occupies 60 mm; its connectors and the first cable bend want 50 mm more, so 110 mm [4.3 in] of the 152 mm body is spoken for and about 40 mm stays free for the rear cover. That margin is what how shallow an HMI enclosure can be for an 8 in panel works through. If the same box lands branch power, give those wires their bending space: NEC 312.6 sets it at terminals by wire size, and how to size an electrical enclosure walks those tables.
How much heat does an 8 in HMI leave inside the box?
An 8 in HMI terminal dissipates 20-30 W, and in a 12 x 14 x 6 in stainless box at 75 F [24 C] ambient that holds the inside air at or just under 40 C [104 F], which is the ceiling to design to.
Stainless walls shed heat at about 3.7 W per square metre per kelvin. The 12 x 14 x 6 in box has a surface of 2 x (0.305 x 0.355 + 0.305 x 0.152 + 0.355 x 0.152) = 0.42 m2, so it dumps 3.7 x 0.42 = 1.55 W for every kelvin of rise. A 25 W terminal then rises 25 / 1.55 = 16 K above ambient, and 24 C + 16 K = 40 C inside. Plan to 40 C around drives and most electronics unless the datasheet in your hand allows more.
| Heat load in the box | Rise over 75 F [24 C] | Air temperature inside |
|---|---|---|
| 20 W | 13 K | 37 C [99 F] |
| 25 W | 16 K | 40 C [104 F] |
| 40 W panel PC | 26 K | 50 C [122 F], past the ceiling |
A panel PC changes the size, not the method. At 40 W the small box lands at 50 C, so buy surface area: you need 40 / (3.7 x 16) = 0.68 m2, and a 16 x 18 x 8 in [406 x 457 x 203 mm] body gives 0.72 m2, for a 15 K rise and 39 C inside. That is the whole cooling decision on a machine-mounted HMI: terminals run in the small box, computers run in the big one.
How do you mount an HMI enclosure on the machine?
Bolt the box to the machine frame through its back with four M8 [5/16 in] fasteners, set the display center 45-55 in [1.1-1.4 m] above the walkway, and leave the door a full 90-degree swing clear of the dial table.
Put the hinge on the side away from the operator's approach, so an open door never covers the display, and write the hinge side on the order; a gasketed door seals the way it was hung. On a machine that indexes every few seconds, fit isolation washers under the mounting feet and re-torque the four fasteners after the first week. That re-check catches every loosened bolt while it is still a wrench job.
If maintenance will work in the box while it is live, NEC 110.26(A) wants clear space in front: at least 3 ft [900 mm] deep for circuits at 0-150 V to ground in Condition 1, with room for the door to open 90 degrees. Where the dial table blocks that, mount the box on a pedestal or swing arm outside the frame. Lock out the machine and prove absence of voltage before you wire anything inside.
For the door itself, screw cover vs latch enclosure compares the closures that survive machine vibration. Parts mounted on the door follow the same edge logic, and this panel-mounted fuse block hinge orientation guide works through the reasoning.
Should the factory cut the display hole, or can you cut it later?
Have the factory cut it: a milled hole to your HMI's drawing seats the gasket flat, and the finished box still ships in 10 business days from your drawing approval — field-cut holes in gasketed doors are where sealed boxes start to leak.
A 226 x 166 mm rectangular hole in a stainless door means a jigsaw, a file and heat tint around every edge, and the waviness that remains breaks the gasket line. Keep the cutout within 0.5 mm [0.02 in] of the drawing so the HMI's front gasket compresses evenly; that tolerance belongs on a machine table, not on the shop floor. Send the gland holes with it, two M20 holes in the bottom wall, each closed by a gland rated to the box.
The front of the assembly takes the HMI's own seal, not the door's: a panel with an IP65 front gasket gives you an IP65 front in an IP66 door, which is exactly how our HMI housings are worded — IP65-type front seal with the display installed, manufacturer rated. What NEMA rating a panel keeps after you cut it and mount devices works through every hole in the assembly. Before the order goes in, run the display module enclosure fit checklist: screen corners, bezel screws and connector depth are the three that bite.
What should the order say for a machine-mounted HMI?
Five lines: material, rating, size, cutout and gland holes — for the clean 75 F dial machine that reads 304 stainless, NEMA 4X / IP66 manufacturer-rated, 12 x 14 x 6 in [305 x 355 x 150 mm], cutout 226 x 166 mm, two M20 gland holes.
| Line on the order | For the clean indoor dial machine |
|---|---|
| Material | 304 stainless; 316L near salt water or brine; polycarbonate or FRP when weight counts |
| Rating | NEMA 4X / IP66 by the manufacturer, not UL listed; Type 12 as a custom build if the machine will never be hosed |
| Outside size | 12 x 14 x 6 in [305 x 355 x 150 mm], height x width x depth |
| Display cutout | 226 x 166 mm [8.9 x 6.5 in], centered on the door, within 0.5 mm |
| Clearance | 2 in [50 mm] free behind the HMI |
| Glands | Two M20 holes in the bottom wall, glands rated IP66 |
| Hardware | Hinge away from the operator, quarter-turn latch |
Decide by environment and load. A plain HMI terminal in a clean hall: Type 12 in 304, or the standard 4X / IP66 box that shrugs off tomorrow's hose. Any washdown or food-plant cleaning: 4X / IP66 in 304. Salt air, brine or chloride cleaners: 4X / IP66 in 316L. A panel PC at 40 W: the 16 x 18 x 8 in body from the heat section. If your display is an IMD panel PC of this size, the 8-inch panel PC HMI housing in 304 stainless arrives already cut; browse HMI enclosures, set your own dimensions in the custom enclosure builder, or filter outside sizes on the stainless size finder.
Enclosures in this article
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 8" HMI enclosure | 304 stainless | 8.39 x 9.98 x 3.92 in | IP65-type front seal with the display installed, manufacturer rated; not UL listed |
Questions
Does a bigger enclosure change the HMI cutout size?
No. The cutout follows the display alone: 226 x 166 mm [8.9 x 6.5 in] for a typical 8-inch panel, whatever box surrounds it. A bigger box adds wiring room and cooling surface, so order it for the heat load, never for the hole.
How many cable glands does a machine-mounted HMI box need?
Two cover most 8-inch HMIs: one M20 for power and one M20 for signal. Add a third M25 if the display passes a D-sub or USB through, and have every hole cut at the factory so each gland seats on a flat wall.
Will a latched door stay shut on an indexing dial machine?
Yes, with a quarter-turn latch or a screw cover. On a table that indexes every few seconds the screw cover holds best, because it clamps the gasket at four points instead of two and cannot work itself open.
Can you fit a mini PC behind the touchscreen?
Yes. The 8-inch HMI housing in our catalog is cut for an IMD touch monitor with an IMD mini PC on a bracket behind it, with a VESA 100 rear mount and a gasketed rear cover; count on the rear cover adding depth beyond the 2 in [50 mm] wiring clearance.
Is IP65 the same protection as NEMA 4X?
No. IEC 60529 proves IPX5 with jets from a 6.3 mm nozzle at 12.5 L/min, while IP66 uses a 12.5 mm nozzle at 100 L/min, and Type 4X adds corrosion testing on top. NEC 110.28 keeps an IP code from standing in for the type rating in US installs.





