hexagon logo

Looping With A Twist

My boss unilaterally designed this fixture … for 13 pc sample. Parts are aprox 4.3X4.3 inch.
My plan – start by selecting 1 or 6 parts. Read point on first part. Start loop with offsets and 180° rotation. At end of loop X and Y offsets are updated in a case statement using a counter initialized before the loop and incremented at end of loop.
Then a rough DCC align with BIG prehit/retract (did I mention there is a lot of slop in this fixture?). Followed by 2 full DCC alignments to lock everything up.
Now probe, dimension and report. Report consists of PDF automatically saved (with option to print), CSV file and DataPage+ (if I ever get it set up).
Finally the case statement, update counter and loop/end.
I like it – the demon don’t.
Seems to be an offset problem. Run offline, rotation seems fine but X/Y translation is not as expected. Online is the same?
Am going to play with it more and can post code later. Does anyone see obvious error in my logic?

Attached Files
Parents
  • I have a 50 piece program, 3 on one side and 2 on the other, which is looped 10 times. I have not experienced problems.

    As for OP, are the pivot points the same? Rotating in a loop, offsets and pivots need to be spot on. Maybe an option would be to program a loop with one rotation then program another loop with the rotated parts.
Reply
  • I have a 50 piece program, 3 on one side and 2 on the other, which is looped 10 times. I have not experienced problems.

    As for OP, are the pivot points the same? Rotating in a loop, offsets and pivots need to be spot on. Maybe an option would be to program a loop with one rotation then program another loop with the rotated parts.
Children