hexagon logo

Coordinate System Control for Loops.

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.
Parents
  • It might help if you posted some code, but let me share something I usually do. For anything except the simplest parts, I do not use the standard LOOP command. Instead I use an alternative such as WHILE, DO/UNTIL, etc. The LOOP command has many implied functions. The others are "dumb" commands and rely on the programmer to manipulate the probe, the alignment, etc. In pseduo code, my case would look like this -


    Alignment A1

    While (some variable test)
    recall A1
    measure features
    tolerance features
    etc
    Alignment translate/rotate
    Save Alignment to A1
    End While

    This would keep modifying A1 and then recall it at the start of each loop, instead of relying on the LOOP command to manage it.​​​​​​​
Reply Children
No Data