hexagon logo

Looping for Multi Fixture Station

Hello,

I am trying to add a loop into the program for a multifixture station. Due to the tip angles I can only set this up for 3 parts. The tricky part is the station is basically setup at a triangle, meaning in one row there will be 2 parts with the same x axis about 150mm apart and the 3rd station is located in the center offset about 100mm in +y. Z is the same for all 3 stations.

I know this would be easy if all 3 were in a row or if there were 2 rows of 2 equally spaced but unfortunatly this is not the case.

Also, I will need to setup a variable to allo the operator to input how many parts they want to run because they will not always be running all 3, it could be 1 or 2.

Any gurus out there willing to help me out on this?
Parents
  • Maybe you should assign offsets in an if statement ?
    Something like
    ASSIGN/I=1
    DO/
    IF I==1
    ASSIGN/POS_X=0
    ASSIGN/POS_Y=0
    END IF
    IF I==2
    ASSIGN/POS_X=150
    ASSIGN/POS_Y=0
    END IF
    IF I==3
    ASSIGN/POS_X=75
    ASSIGN/POS_Y=100
    END IF
    (alignment origin at POS_X POS_Y)
    Measure part
    ASSIGN/I=I+1
    UNTIL /I==3
Reply
  • Maybe you should assign offsets in an if statement ?
    Something like
    ASSIGN/I=1
    DO/
    IF I==1
    ASSIGN/POS_X=0
    ASSIGN/POS_Y=0
    END IF
    IF I==2
    ASSIGN/POS_X=150
    ASSIGN/POS_Y=0
    END IF
    IF I==3
    ASSIGN/POS_X=75
    ASSIGN/POS_Y=100
    END IF
    (alignment origin at POS_X POS_Y)
    Measure part
    ASSIGN/I=I+1
    UNTIL /I==3
Children
No Data