Quantcast
Channel: PC-DMIS User Forum - Forums
Viewing all articles
Browse latest Browse all 11658

Looping auto alignments

$
0
0
Hi,

I am trying to set up my default program template to allow for looping of my auto alignments (i.e. operator specifies # of times that they wish auto alignment procedure to run through).

The operator specifies a number (1-4) and I assign that to a max iteration variable max_iter. I then initialize the current iteration iter at 1 along with a dummy variable j. Right before the DCC alignment I set a label called STARTALN. After the alignments are finished I enter a while loop stating that if the current iteration is less than the max iteration, return to the label and increase the value of the current iteration.

The problem that I am having is that the first auto alignment will continue to recall the previous manual alignment in this loop and the alignment names will all stay the same. My question is whether or not the following code is valid by using variables in the feature/alignment names. I have not added the logic to the alignment recall sections but I will get around to doing that if this is a practical method of looping the DCC alignment process. I will post a section of the code.

Thank you in advance.


Code:
C6         =COMMENT/INPUT,NO,FULL SCREEN=NO,
            HOW MANY TIMES (1-4) SHOULD THE DCC ALIGNMENT RUN?
            IF/C6.INPUT<1 OR C6.INPUT>4
              COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
              INVALID ENTRY
            GOTO/NUM_ITER
            END_IF/
            IF/C6.INPUT-INT(C6.INPUT)<>0
              COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
              INTEGER VALUE REQUIRED
            GOTO/NUM_ITER
            END_IF/
            ASSIGN/J=1
            ASSIGN/ITER=1
            ASSIGN/MAX_ITER=INT(C6.INPUT)
L2         =LABEL/
            COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
            ENSURE PROBE IS LOCATED AT A SAFE DISTANCE ABOVE THE PART
            ENTERING DCC MODE
            MODE/DCC
STARTALN   =LABEL/
"AUTO" + ITER=ALIGNMENT/START,RECALL:STARTUP,LIST=YES
            ALIGNMENT/END
"AUTO" + (ITER + J)=ALIGNMENT/START,RECALL:AUTO4,LIST=YES
            ALIGNMENT/END
            ASSIGN/J=J+1
 WHILE/ITER<MAX_ITER
              ASSIGN/ITER=ITER+1
              MOVE/INCREMENT,<0,0,3>
  $$ NO,

              //////////////////////////////////////////////////
              // Path to start point must be determined ////////
              //////////////////////////////////////////////////

            GOTO/STARTALN
            END_WHILE/

Viewing all articles
Browse latest Browse all 11658

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>