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
  • If your gonna run that many parts. I would highly suggest putting a print command at the end, so you can delete instances. I was informed PC-DMIS has a small buffer. To much and your program will most likely crash during or at the end of the program.


    Yes Sir you are correct!

    Program starts with a script to create folders and sub folders (Accept, Reject, CSV folder, etc...). 2 print commands inside the loop one if part is good (Accept folder) other if part is bad (Reject folder).

    The most Ive managed to run in a single loop is 36pcs and I'm yet to encounter any issues. Thanks, for the heads up I'll be on the look for any errors/crashes. I did come across issues with TruPos dimensions but found a solution.
Reply
  • If your gonna run that many parts. I would highly suggest putting a print command at the end, so you can delete instances. I was informed PC-DMIS has a small buffer. To much and your program will most likely crash during or at the end of the program.


    Yes Sir you are correct!

    Program starts with a script to create folders and sub folders (Accept, Reject, CSV folder, etc...). 2 print commands inside the loop one if part is good (Accept folder) other if part is bad (Reject folder).

    The most Ive managed to run in a single loop is 36pcs and I'm yet to encounter any issues. Thanks, for the heads up I'll be on the look for any errors/crashes. I did come across issues with TruPos dimensions but found a solution.
Children