The "Run" LED remaining lit at all times, even with Mach4 shut down is very suspicious. When you say "the speed control and directional control to the VFD are both working", do you mean that the PMDX-422/407 combo is able to control the direction and spindle speed in response to "S", "M3" and "M4" commands in Mach4? And the PMDX-407's "Run" LED remains lit even when the PMDX-422's "Outputs Enabled" LED is off (which it would be when Mach shuts down)?
Let me verify some really basic things:
- The PMDX-407 in plugged in to the 422 so that the 407's circuit board almost touches the 422's relay?
- The mounting holes in the 407 line up directly over the 422's mounting holes?
- Jumper JP1 on the PMDX-422 is set to "On"?
- Do you have anything connected to J2 on the PMDX-407 (the 2-position screw terminal)?
I'll have to ponder this a bit more as, aside from a component failure or a short circuit, I cannot explain this behavior.
As for the spindle running at a very low RPM after an M5 command - the PMDX-407's analog output cannot go all the way down to 0.0V. The lowest voltage is somewhere around 0.4V. That means that you should have J2 on the PMDX-407 connected to a "run" signal on your VFD (the above issue with the "Run" LED not withstanding), or configure your VFD to ignore voltages below approx 0.5V (or 0.05 times full speed for a 0-10V input range). It sounds like you found that setting.
Bob