ok
but can mach3 activate solenoid #1 and solenoid #2 as its needed?
And will it run both tools without stopping or will I have to wait for the first tool to finish the enter the code and run the second tool?
For your solenoids you could have them set up as Flood and Mist Coolant outputs. What you would then have in your code is M7 to activate one then when you have finished with that tool you would call M9 to retract and then call M8 to activate the other tool and so on.
As rrc1962 has mentione you could use G92 (or G52) or you could use fixture offsets such as G54, G55,G56 etc. For example if you are in G54 which is the default offset you would move tool 1 to the position you want it to be zero, and then zero the DROs, next move it up and in MDI line type G55 and then move tool 2 to the same position as tool 1 was at and zero the DROs. Now if you type G54 in via MDI you will see that an offset has been created between the two tools and the value in the DROs is the amount that you would need to move to get tool 1 back to zero again.
To use that in your code it would be as simple as calling a G54 or G55 before each tool is used.
Hood