NEMA 4 is a rating that indicates the HMI, when properly mounted in a panel, can provide protection against dirt, rain, and windblown dust, including hose directed water.
NEMA 4X is the same as NEMA 4 but must also provide protection against corrosion.