Examine and tug EVERY crimped connection.
Poor choice of crimping tools creates this sort of stuff.
As for the E-Stop, have a careful look at earts on LPT cable and make sure screwed in.
Also ensure all earthing screws in X4 make proper contact.
Electrical interference often occurs running machine on a different phase to the PC/laptop. Try and use the same power point.