I am still acquainting myself with the vast 420 page manual for the WJ200 drive. The WJ200 has an fully configurable internal relay that I am planning on using with its alarm/trip function. When the drive encounters one of many possible errors (over temp, over current, overload, etc.) it will initiate a spindle stop command and enter a state where the spindle cannot be run until the alarm is reset. I plan on using this relay with the PMDX-126's estop circuit so if the drive encounters an error and enters the alarm/trip state, mach3 will do the same. This relay is open when the drive is powered down, which means the estop circuit is active. I would add a bypass switch that bypasses the relay contacts, and allow me to move the machine without the drive being powered.
I am still undecided with regards to safe tool changes. There are many options available. The WJ200 has the ability to rig up an external alarm/trip and reset switch. I was thinking about using a switch to manually enter the drive into an alarm/trip state, which would disable its ability to run the spindle. Entering this alarm/trip state would also open the drives relay contacts, which would initiate an estop in mach3, disabling its outputs. It should be completely safe for me to change a cutting tools at this time. I could add another redundant level of safety by utilizing the PMDX-126's K2 relay and the geckos motor disable function, but this would be going too far.
This is the switch I am currently looking at utilizing:
http://www.ebay.com/itm/ATI-DPB22-22...item4ad7ead41a
Pressing the OFF button would manually trip the alarm on the WJ200 and light the LED lamp on the switch using the alarm output function. Pressing the ON button would reset the WJ200's alarm and close its relay contacts. The drive should now be ready to operate and the PMDX-126's estop circuit should be closed. Pressing reset in mach3 will enable the machine's outputs.
I like your VFD "at speed" input idea. There are a few programmable output functions that I saw in the WJ200 manual that might work for this. There is a configurable frequency arrive signal and a zero Hz speed detection signal.