Technically you are required to remove power to motorized equipment in the case a an E-stop.
For cabinet enclosure wiring there is the necessary requirements in NFPA79, there is a copy out there on the WEB, if you cannot find it I can send a copy over.