I am looking for guidance on how coordinate systems interact with loops. I can get stuff to work but often when I make a change inside the loop my Theoretical positions don't work correctly. As well as looking at Theoretical positions that are not correct for the current zero position but the loop works fine.
At end of each loop I recall starting coordinate system. Not sure if this is correct.
When you have a loop, you execute it, and then try to edit it, if the LOOP COUNT is still relative to the shifted alignment of that quantity.
Editing a loop after executing with any value other than one will shift all your edited theo's to match THAT qty instance of the current loop count.
Do yourself a favor, and
ALWAYS set the loop count to a static 1, execute
BEFORE making a single change (offline or online it doesn't matter, but offline will be "cleaner" as theo's & meas will match).
voila problem solved.