hexagon logo

Looping alignments

Im currently writing a program to inspect 4 parts on a fixture. Im looking for some help with creating a loop that has multiple alignments to reference to, but only loops 1 measurement routine (hole locations, planes, etc) and updates those theoretical locations based on which part is being measured. I have a input comment to the operator to say how many parts are being inspected, and made an assignment to that value. That value is then driving how many times the loop will cycle through. I just cant figure out how to make different alignments active, and update the features theoretical values.
Parents

  • C1 =COMMENT/INPUT,NO,FULL SCREEN=NO,
    How Many Parts Do You Want To Run?

    A1 =ALIGNMENT/START,RECALL:STARTUP,LIST=YES
    ALIGNMENT/LEVEL,ZPLUS,PLN1
    ALIGNMENT/ROTATE,XPLUS,TO,LIN1,ABOUT,ZPLUS <<<<<<<<<<<manual alignment
    ALIGNMENT/TRANS,ZAXIS,PLN1
    ALIGNMENT/TRANS,YAXIS,LIN1
    ALIGNMENT/TRANS,XAXIS,PNT1
    ALIGNMENT/END

    V1 =LOOP/START,ID=YES,NUMBER= C1.INPUT,START=1,SKIP=, <<<<<<<<<<<<<<You can simply put C1.input in the number spot instead of assigning it to a variable
    OFFSET:XAXIS= 0,YAXIS= 4.75,ZAXIS= 0,ANGLE=0 <<<<<<<<<<<<<You need to offset it in some direction You said Y


    PLN2
    LIN2 <<<<<<<<<<<<<<Maybe auto features or something
    PNT2

    A2 =ALIGNMENT/START,RECALL: (USE_ACTIVE_ALIGNMENT),LIST=YES
    ALIGNMENT/LEVEL,ZPLUS,PLN2
    ALIGNMENT/ROTATE,XPLUS,TO,LIN2,ABOUT,ZPLUS <<<<<<<<<<<DCC alignment
    ALIGNMENT/TRANS,ZAXIS,PLN2
    ALIGNMENT/TRANS,YAXIS,LIN2
    ALIGNMENT/TRANS,XAXIS,PNT2
    ALIGNMENT/END



    ************************************************

    Program

    ************************************************

    LOOP/END
Reply

  • C1 =COMMENT/INPUT,NO,FULL SCREEN=NO,
    How Many Parts Do You Want To Run?

    A1 =ALIGNMENT/START,RECALL:STARTUP,LIST=YES
    ALIGNMENT/LEVEL,ZPLUS,PLN1
    ALIGNMENT/ROTATE,XPLUS,TO,LIN1,ABOUT,ZPLUS <<<<<<<<<<<manual alignment
    ALIGNMENT/TRANS,ZAXIS,PLN1
    ALIGNMENT/TRANS,YAXIS,LIN1
    ALIGNMENT/TRANS,XAXIS,PNT1
    ALIGNMENT/END

    V1 =LOOP/START,ID=YES,NUMBER= C1.INPUT,START=1,SKIP=, <<<<<<<<<<<<<<You can simply put C1.input in the number spot instead of assigning it to a variable
    OFFSET:XAXIS= 0,YAXIS= 4.75,ZAXIS= 0,ANGLE=0 <<<<<<<<<<<<<You need to offset it in some direction You said Y


    PLN2
    LIN2 <<<<<<<<<<<<<<Maybe auto features or something
    PNT2

    A2 =ALIGNMENT/START,RECALL: (USE_ACTIVE_ALIGNMENT),LIST=YES
    ALIGNMENT/LEVEL,ZPLUS,PLN2
    ALIGNMENT/ROTATE,XPLUS,TO,LIN2,ABOUT,ZPLUS <<<<<<<<<<<DCC alignment
    ALIGNMENT/TRANS,ZAXIS,PLN2
    ALIGNMENT/TRANS,YAXIS,LIN2
    ALIGNMENT/TRANS,XAXIS,PNT2
    ALIGNMENT/END



    ************************************************

    Program

    ************************************************

    LOOP/END
Children
No Data