Motors and generators for explosive atmospheres