I use BSL left for all my rotary index tables.
Basically I pick a bit file and go to town.
Most of the time I use one word file to track something:
Say B10:0 could be the tracking for part present on the table
B10:1 could be the part status, good or bad.
So when a part is loaded at station 1, I load a "1" into B10:0/01, bit 1 I always use as station 1, most of the time I never run into problems because I've never seen a 15 station rotary table yet ;-).
Also in the same index, I would load a "0" into B10:1/01, so what I have now is a register that looks like this:
B10:0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
B10:1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Let's say on the next index or station, my part status is still bad, but I still loaded another part.
B10:0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0
B10:1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Let's say on index #3, I get to the vision station and it was a good part:
B10:0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0
B10:1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
So now, my very first part I placed on the index table has arrive at station #4, the accept bin....basically I now compare bits,
If B10:0/04 is "1" and B10:1/04 is "1", then ACCEPT the part.
So providing that my next part passed vision, my register would look like this:
B10:0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0
B10:1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0
Hope that helps.
You can download an example Index Table I wrote here:
RS Logix File:
http://www.mrplc.com/dl/index.php?action=view&view=entry&entryid=23
PDF Only:
http://www.mrplc.com/dl/index.php?action=view&view=entry&entryid=21
Good luck