hexagon logo

Loop Command

Hey guys and gals. I'm playing with the loop command for the first time. After the program reaches the end, there's a loop/end line in there. The issue is: the program doesn't automatically start over for the next part in the same fixture. How come? Here's the code:


V1 =LOOP/START,ID=YES,NUMBER=3,START=1,SKIP=,
OFFSET:XAXIS=63.5,YAXIS=0,ZAXIS=0,ANGLE=0
MOVE/POINT,NORMAL,<0,-30,0>

RECALL/ALIGNMENT,INTERNAL,DCC_ALIGN
STATS/TRANSFER,DIRECTORY=O:\QA\PROLINK SPC DATA\SPCDATA\SHEFFIELD CMM
LOOP/END
Parents
  • If you are setting up just one part to be measured at a time, no need for a loop.

    Use label and comment and flow control statements.

    L1 = Label
    
    Your program code here
    
    C1 COMMENT/YESNO,NO,FULL Screen=NO, MEASURE ANOTHER PART?
    
    IF/C1.INPUT == "YES"
    
    GOTO/L1
    
    END_IF/
    


    The parts are submitted to QC in groups of 10

    I needed the program to be able to measure any quantity between 1-10

    Thanks to you all for dusting off the cobwebs in my brain.Sunglasses
Reply
  • If you are setting up just one part to be measured at a time, no need for a loop.

    Use label and comment and flow control statements.

    L1 = Label
    
    Your program code here
    
    C1 COMMENT/YESNO,NO,FULL Screen=NO, MEASURE ANOTHER PART?
    
    IF/C1.INPUT == "YES"
    
    GOTO/L1
    
    END_IF/
    


    The parts are submitted to QC in groups of 10

    I needed the program to be able to measure any quantity between 1-10

    Thanks to you all for dusting off the cobwebs in my brain.Sunglasses
Children