Loop not looping

  • Filter
  • Time
  • Show
Clear All
new posts

  • Loop not looping

    I'm not sure what I'm missing here but this program is wanting to break the loop regardless of the response. I want the program to be open ended so that it can be run as many times as needed for a single lot. Capture.JPG

  • #2
    Edit: Disregard this. Apparently this was happening because I was only executing part of the program. Once I tried a full run through it seems to be working fine. My apologies.


    • #3
      Here's a silly question. If there has to be an operator present to load the parts and answer the questions, what's the point of the loop?
      Sheffield Endeavor3 9.20.8, Tesastar-SM, Leitz LSP-X1s & LSP-X1M, PCDMIS 2011 MR1


      • ajlee7
        ajlee7 commented
        Editing a comment
        I'm making this program to be used in Inspect by people who have never so much as looked at PC-DMIS and I figured this way would be better than having to run the same program multiple times and then compile the data for our logs (we're checking batches of received parts). This way we have one single document associated to the lot number with all measurements on it.

        I'd prefer for a dedicated fixture where all the parts could be measured at once without any changing out, but that's management's decision.

    • #4
      Thanks !
      You shouldn't use "spaces" in the feature / group / alignment names...


      • Kp61dude!
        Kp61dude! commented
        Editing a comment
        what you thanking JEFMAN?

      • JEFMAN
        JEFMAN commented
        Editing a comment
        Kp61dude! : just the fact that he gave the solution !

      • Kp61dude!
        Kp61dude! commented
        Editing a comment
        I should probably read before asking questions. Pfft manufacturing life...

    • #5
      One thing I would suggest for you so you don't have to answer the question everytime "Are there any more Parts?"

      create an Input at the beginning asking "How many Parts Do You Want To Run? Then just put C1.INPUT for NUMBER=
      and just put a Operator Comment to change in between each part

                  How Many Parts Do You Want To Run?
                    Change the Part !!!!!!
      Last edited by KIRBSTER269; 12-18-2019, 02:24 PM.
      (In Memory of my Loving wife, "Ronda" who I lost March 7, 2016. I love you baby.)
      They say "Nobody's Perfect." I must be Nobody.


      • ajlee7
        ajlee7 commented
        Editing a comment
        Hmmm, I do like this a lot. Is there a way I can issue an if statement that's essentially "if iteration# - C1.input == 0 --> break" so that way it skips over the last command to change the part out?

      • KIRBSTER269
        KIRBSTER269 commented
        Editing a comment
        Well I usually put "Change the Part" at the beginning, the only time that the Comment is irrelevant, is the first piece that is ran. just take that Comment and put it right after the LOOP command
        Last edited by KIRBSTER269; 12-18-2019, 02:19 PM.

      • KIRBSTER269
        KIRBSTER269 commented
        Editing a comment
        I'll change it above

    Related Topics


    • kass_b
      itterative allignment
      by kass_b
      Running 3.7MR2 writting an iterative align to cad with loop runs the loop but wont write to program any help appreciated.
      05-19-2007, 09:03 AM
    • Donny Wallbanger
      Looping a Loop?
      by Donny Wallbanger
      Good morning all I hope you are all having a good day, I have a program that contains a simple loop to check multiple pockets on a valve rotator body,...
      01-13-2017, 04:37 AM
    • bhska
      Looping Question?
      by bhska
      I have a program to check multiple features on these parts for inspection. I have looped 1-3 with one loop command that translates along X. My question...
      06-15-2006, 04:07 PM
    • JBELL
      Another Loop Question
      by JBELL
      I have searched with no luck for an answer. I am very new to looping and have some questions. Right now, I am doing a Man align then loop commands then...
      11-04-2015, 02:58 PM
    • fiddlestixx
      Looping Parts on a Grid
      by fiddlestixx
      Hi guys this is my first post so i apologize if this has been posted before.
      I have parts that are arranged on a 4x3 grid or a 5x5 grid(the parts...
      10-30-2012, 02:31 PM