So I have two Max's, one at my work, and another at home. Both are running E3D hot ends and upgraded arms and both work wonderfully. But the time has come to move forward with the dual head setup.
I have spent some time designing a mounting system for the dual heads that incorporates cooling fans and all that good stuff. I know aligning the two heads has been a persistent problem, and my design doesn't really do much to improve upon that issue, I was mostly just planning on using some thin shims under the mounting screws on one of the heads if it needed adjustments.
One of the problems I can foresee with dual heads is that the one nozzle not printing will be dragging along in the exact same plane as the nozzle that is printing. Often my prints curl up a bit on edges and corners, or I get a bit of extra plastic in places. This extra head moving around in the same plane will inevitably come in contact with the printed part and cause it to break loose or disconnect one of the mag arms.
So, I was thinking how neat it would be to design a dual head mount that articulated with a small solenoid or servo motor. This would allow one of the heads to swivel up a few degrees and clear the part while the other head is doing its work. Then when its the other heads turn the solenoid switches and the other head rocks into place. This would give clearance room for each print nozzle and eliminate any problems with the other head being in the way.
I can design and build the mechanical system easily enough that allows this to happen. And would be more than willing to share my design with you guys, but my hold up is the software. How hard would it be to include a command in the G-code or update the firmware to send a signal to a servo whenever it switches from one head to another? And what pins on the Rambo could I use to do this? I hope this is a trivial question for some of you guys

Any help or direction would be appreciated.
Thanks