If emergency mode can't be cleared, then I'm guessing the issue is with the E-stop circuit/configuration.

Best option is audioandy's suggestion, so we can have a look.