Hitting a limit during operation says something bad just happened, so don't try moving anything. So you have to override the E-stop function and take responsibility for jogging in the correct way to clear the problem. Note that after an E-stop Mach 3 no longer knows where it is. So you must reestablish your X0,Y0,Z0 positions.