The two wire connector on the Z Axis is for a brake. The brake operates on 24VDC. There is no polarity for the two wires (can be wired: +,- or -,+). There are a few parameters relating to the brake. Also, Mitsubishi suggests using a separate 24VDC power supply for the brake only. I suspect the brake circuit causes noise. The brake uses less than 1 amp if I remember correctly.
The brake does not cause noise. The problem is that any coil creates a big spike when it is shut off. You will note in the Mitsu manual they show a diode in the output wiring. This is to dissipate the spike, however, when directly connected to the output, this is like playing with a white tiger on stage . . . usually everything goes well.
I recommend a separate power supply for ANY device that has a coil. I use a separate 24V power supply for the brakes, contactors and solenoid operated valves, for example. One of my products includes a solenoid (coil) operated pneumatic valve. I make a special relay that has the diodes mentioned above, but still use a separate PS for the valves. The relay is solid state and isolates the 24V from the 5V CNC side. (relay is not for sale separately).
This may have been posted earlier, but it bears repeating. My advice is to run the outputs thru an opto to isolate the Mitsu (or other industrial drive) from anything that can hurt it.
The most important thing to remember about the drive outputs is that they are not current limited so grounding an output (which is 'ON') without running thru resistance will instantly fry the output. In order to make it impossible for customers to fry outputs on these very expensive drives, I made a custom interface board that contains a 400 ohm power resistor and optos. This is also not available for sale separately, but you don't need a fancy board to make up the simple circuit.
Just run the output thru a 400ohm power resistor to an opto or SSR and back to the Mitsu signal ground. Then use the other side of the opto or relay to switch power to the device you want to control. The 400 ohm resistor will keep the current below the spec max, and the SSR or opto will isolate the drive electronics. You can still add a diode to the coil side of the circuit to keep from frying the SSR or opto.
Last tip; do not use mechanical relays. They make lots of noise.