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
  • Looping is meant for a single 'part' but checked in multiple places on the table at once time, in your case, if all you are checking is the 4 holes on the corners, your program would be just 4 holes, then the looping would make it 'increment' to the right (or left, or front, or back) a specified distance to check a second one and so on. If you set them up in a 4x4 grid, it would be a double loop, increment 4 times in one direction, then an increment in the other direction repeated 4 times.

    If you are putting the parts in the same place, you could do it as easily as placing a LABEL at the beginning of the program and a COMMENT/OPER and a GOTO at the end. The comment will make the machine pause until you hit "DONE" then it will take off again. The GOTO will send it to the label at the beginning. You can by-pass the COMMENT/OPER if you are using Datapage by having it set to query you for the STAT COUNT when it runs, which can also be 'continued' by hitting the DONE button as it will auto-increment.
Reply
  • Looping is meant for a single 'part' but checked in multiple places on the table at once time, in your case, if all you are checking is the 4 holes on the corners, your program would be just 4 holes, then the looping would make it 'increment' to the right (or left, or front, or back) a specified distance to check a second one and so on. If you set them up in a 4x4 grid, it would be a double loop, increment 4 times in one direction, then an increment in the other direction repeated 4 times.

    If you are putting the parts in the same place, you could do it as easily as placing a LABEL at the beginning of the program and a COMMENT/OPER and a GOTO at the end. The comment will make the machine pause until you hit "DONE" then it will take off again. The GOTO will send it to the label at the beginning. You can by-pass the COMMENT/OPER if you are using Datapage by having it set to query you for the STAT COUNT when it runs, which can also be 'continued' by hitting the DONE button as it will auto-increment.
Children
No Data