Its been a while so I thought I would post an update.
I haven't fiddled with the servo drives since I posted the problem with the voltage suppressors. I did contact yaskawa again hoping to identify the mystery component. While they told me they are surge protectors, the exact specifications are proprietary. Go figure. At this point, I'm considering replacing them with an off the shelf radio shack part that won't fail under the current load.
I ordered an MPG module from CS labs per Hood's recommendation. Because the mpg encoder emits a 12V signal, I got another Fast optocoupler from automation direct. They convert the 12v signal to 5v. As you can see in the picture, I haven't wired it up yet, just snapped it onto the din rail earlier today.
I also bought an ENC threading module. I'm hoping to do rigid tapping, or semi rigid tapping or synchronous tapping, whatever the heck they call it when the z axis follows the rpm of the spindle. I admit, I've done zero research on setting up rigid tapping on a cs labs controller so I'm not even sure I need the module. I was just ordered it with the MPG module to save on shipping. If I don't use it on the matsuura, I'll use it on a lathe retrofit I hope to do next.
When I started the project, the first thing I did was connect the DL06 plc to mach3 and test out modbus tcp. It took a while to simply connect the pc to the PLC. Hours of research revealed that oem firewall settings in windows interrupt the communications and must be deactivated. You want an unfettered signal between the two. After a solid connection was made, I learned how to work the modbus tcp setup page. This step was extremely frustrating as only through trial and persistent error did I discover that mach has to be shut down and rebooted every time you change a setting on this page. (very much like the brain set-up). Next, I experimented with using brains to activate outputs and internal contacts in the PLC. I learned basic ladder logic by watching endless you tube videos on the subject and reading the exhausting and thorough DL06 Manual. I can't thank Scott Schaffer aka Poppabear enough for turning me onto the idea of using a DL06 for the toolchanger and other accessories. Using modbus tcp, brains and a plc all in conjunction allows awesome control over the machine and all its functions. For example, I'm thinking of creating a program in the plc which will allow me to flip a switch on the control panel which will activate a program that will send periodic blasts of air via pneumatic solenoids at the tool to help with chip clearing, but only if the spindle is active. This will help tremendously with deep pocket milling.
Another cool thing you can do with the DL06 is control the spindle vfd. This is imperative for the tool changer, as the first step in the process is to rotate the spindle at very low rpm until the dog locks it into the correct orientation. Did I mention that I love my DL06? AD customer support has been super helpful as well. As a first-timmer, its not easy integrating all this hardware. Without this forum and their customer support, I'd be bald from pulling my hair out.
Lastly, I redesigned the control panel. I'm having it waterjet by a company here in town and then I'm taking it south to Denver where another company will laser etch the button labels. Ive included every button I can imagine needing, but if i missed one, please speak up. The two unlabeled circles in the center are joysticks and the small rectangle box above them is a USB port for loading programs. The large box in the lower left hand corner is for the MPG of corse and the unlabeled circle above it is the estop. I'll post a pic of the control panel the minute it gets back from laser etching.
