hexagon logo

learning looping.... I Want to just repeat program in the program?

So I have 100 small squares with 4 holes on the corners, I am set up to run 3 then the program ends.

I want to just replace the parts while the machine measures the last one, is this looping or a subroutine?

I will be getting 500 more tommorrow, and will likely measure 10 at a time instead.

any examples or point to previous thread appreciated!

Optivv 3 PCDMIS CAD 2011 MR1 Vision probe.

JoeSlight smile
Parents
  • I'm not sure 100% what you're after, but looping is fairly simple.
    Under the "Insert" menu, open the "Flow Control Command" sub menu, then click Looping.
    Fill in the parameters of the end number, start number(usually 1), skip number(usually blank), Variable ID(default should be fine).
    If you need to offset X, Y, or Z fill those in accordingly(from your description I'm guessing not).
    If you leave the box for "loop ID's" ticked, it will add[1], [2], [3], etc. to the feature ID's as it loops. If you want the ID's to be the same each loop, clear the tick box.
    At the end follow the menu above and select "End Loop".

    You need to decide how you're going record the results of each run(print or save file) and add the command before the End Loop. If your going to save you'll probably want to select the autoincrement feature in the print/report command.

    I hope this helps or at least gets you started.
Reply
  • I'm not sure 100% what you're after, but looping is fairly simple.
    Under the "Insert" menu, open the "Flow Control Command" sub menu, then click Looping.
    Fill in the parameters of the end number, start number(usually 1), skip number(usually blank), Variable ID(default should be fine).
    If you need to offset X, Y, or Z fill those in accordingly(from your description I'm guessing not).
    If you leave the box for "loop ID's" ticked, it will add[1], [2], [3], etc. to the feature ID's as it loops. If you want the ID's to be the same each loop, clear the tick box.
    At the end follow the menu above and select "End Loop".

    You need to decide how you're going record the results of each run(print or save file) and add the command before the End Loop. If your going to save you'll probably want to select the autoincrement feature in the print/report command.

    I hope this helps or at least gets you started.
Children
No Data