Hey BR

I needed to modify the tool change and use a rotary air cylinder, can we make this work?
This is what needs to happen, I have searched the forums and came up with nothing even close.
Here it is, operations in the tool change:
Call up selected tool (1 through 8 )
do nothing if at the current tool selected
if not at the tool then these steps must happen.
(lets say for example the tool is at tool position 2, and I call up tool 1)
move x0.2 z-0.2 (Machine coordinates)
Activate solenoid 1 (de activates lathe stop dog)
Activate solenoid 2 (pop up lathe turret)
Activate solenoid 3 (activates air driven worm gear and turns turret in only 1 direction)
Wait for signal from input 1 (no other input) (there are mechanical switches that all give off 5v once the rotary disc is in position, but input 1 means tool 1, input 2 means tool 2, input 3 means tool 3, etc. etc.)
Once it receives signal from input 1 (or input 1-8 depending on which tool is capped for):
Deactivate solenoid 1 (to stop the turret from spinning)
Deactivate solenoid 3 (stoped airdriven worm gear)
Deactivate solenoid 2 (drops turret into locked seat)
Update DRO and tool offsets
Return to program.
Any ideas?
Thanks
