OK back to the tool changer...
I know how this sucker works now.
Two relays for each motor,carousel forward, reverse, shuttle in, out, takes 160vdc from the servo power supply.
Two proximity sensors shuttle in/out , Carousel home, carousel pulse at each station, so 20 stations over all.
Without having to rebuild the entire mechanism can I use what I have?
Home the machine at start up.
Note this uses a geneva mechanism, so carousel motor position doesnt have to be 100% perfect.
Carousel is commanded to rotate
Controller sees Carousel home switch , stop Carousel
Reset carousel counter to Zero (tool 1)
"Tool change request comes in for example tool 6"
"Tool logic to see if tool 6 is already in spindle"
Spindle Stops
Z axis is commanded to Tool Change Position
Spindle is oriented
Orient pin input true/false
Shuttle output commanded in ,input true/false
Tool Release output is activated. input true/false
Z raises to tool change Safe position
Carousel is commanded to rotate in direction of tool 6
Since Home is Zero, it counts to #5 then stops
Shortest path logic in here somewhere.
Z lowers back to tool change position
Tool release output is commanded off , clamp tool.
Clamp tool input true/false
Shuttle is commanded out
Shuttle out input true/false
Tool change complete.
This way tool #1 should always be in the spindle on shut down.
This is how HAAS does it.
INPUTS
Shuttle In
Shuttle Out
Carousel Home Pulse
Carousel Position Pulse, no pulse at #1 since it is zero, home is tool #1
Tool Clamp
Tool Unclamp
Orient Pin Out (spindle released)
Orient Pin In (spindle locked)
OUTPUTS
Shuttle In (forward relay)
Shuttle Out (reverse relay)
Carousel (Clockwise relay)
Carousel (Counter Clockwise relay)
Tool Clamp (on/off relay)
Orient Pin ( spindle lock relay)
Orient Pin (spindle unlock relay)
Should be easy??