We have 5 Mori Sekis in our shop with a 16i or 18i (can't remember) and I am trying to write a trick program to sort the tools back it to their "right" Pot at the end of a run.
So I need to know what variables control the tools and pots. The only thing I could find so far is #4120 is the tool that's in the spindle. I just need something to reference in my macro program.
Here is my program idea so far:
Start
N1
Does Tool X exist?
-Yes move on
-No end program
N2
Is Tool X in Pot X?
-Yes Skip to N4
-No move on
N3
Is Tool X in the Spindle?
-Yes Tool change to Pot X
-No Tool change to Tool X then goto N3
N4
Loop back to N1 with a counter to the next tool number
N5
End program
That's the basic idea. It with change once I now how the macros are setup in the control.
So if anybody has a detailed list of the system variables that would be great!
Thanks much
-Andy