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.​​​​​​​
  • Don, I have tried using While instead, and it still is changing the theocraticals unless I put 0+ in front of them. Could this be a carry over from when I removed the loops and switched to While. I can provide code example if it would help. Any additional thoughts would be appreciated. Really is frustrating. Thank you for any help.
Reply Children
No Data