Aligning part inside loop

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Aligning part inside loop

    Hello. We got fixture to measure 8 parts at the same time. But the part is complex and I want to measure align inside loop every time. The problem is when I try to use first align (Level) after that program starts to move to the first part instead of measuring the measured part and crashes.

    Part of my code:
    Code:
    A8         =ALIGNMENT/START,RECALL:A6,LIST=YES
                ALIGNMENT/END
    V2         =LOOP/START,ID=YES,NUMBER=2,START=1,SKIP=,
                  OFFSET:XAXIS=330,YAXIS=0,ZAXIS=0,ANGLE=0
    V1           =LOOP/START,ID=YES,NUMBER=4,START=1,SKIP=,
                    OFFSET:XAXIS=0.4,YAXIS=150,ZAXIS=-1.6,ANGLE=0
                    PREHIT/2
                    RETRACT/2
                    TIP/T1A0B0, SHANKIJK=0, 0.011, 1, ANGLE=-0.158
                    MOVESPEED/ 40
                    MOVE/POINT,NORMAL,<3.585,4.503,40>
                    MOVESPEED/ 30
                    MOVE/POINT,NORMAL,<-6.222,45.157,13.239>
                    TIP/T2A0B0, SHANKIJK=-0.014, 1, -0.009, ANGLE=0.218
                    MOVE/POINT,NORMAL,<-5.872,15.857,-3.228>
    PLANE_2_T_12    =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                    THEO/<-4.229,9.619,-5.778>,<-0.0000133,1,0>
                    ACTL/<-4.228,9.405,-5.779>,<-0.0000133,1,0>
                    TARG/<-4.229,9.619,-5.778>,<-0.0000133,1,0>
                    SNAP=NO
                    SHOW FEATURE PARAMETERS=NO
                    SHOW CONTACT PARAMETERS=YES
                      AVOIDANCE MOVE=BOTH,DISTANCE=1.5
                    SHOW HITS=NO
    PLANE_2_T_22    =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                    THEO/<-7.524,9.619,-5.944>,<-0.0000133,1,0>
                    ACTL/<-7.523,9.382,-5.945>,<-0.0000133,1,0>
                    TARG/<-7.524,9.619,-5.944>,<-0.0000133,1,0>
                    SNAP=NO
                    SHOW FEATURE PARAMETERS=NO
                    SHOW CONTACT PARAMETERS=YES
                      AVOIDANCE MOVE=BOTH,DISTANCE=1.5
                    SHOW HITS=NO
    PLANE_2_T_32    =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                    THEO/<-7.739,9.619,-13.693>,<-0.0000133,1,0>
                    ACTL/<-7.738,9.471,-13.693>,<-0.0000133,1,0>
                    TARG/<-7.739,9.619,-13.693>,<-0.0000133,1,0>
                    SNAP=NO
                    SHOW FEATURE PARAMETERS=NO
                    SHOW CONTACT PARAMETERS=YES
                      AVOIDANCE MOVE=BOTH,DISTANCE=1.5
                    SHOW HITS=NO
    C_BAZE_PL2     =FEAT/PLANE,CARTESIAN,TRIANGLE,NO
                    THEO/<-6.497,9.619,-8.472>,<-0.0000133,1,0>
                    ACTL/<-6.497,9.42,-8.472>,<-0.007664,0.9999024,0.0116803>
                    CONSTR/PLANE,BF,PLANE_2_T_12,PLANE_2_T_22,PLANE_2_T_32,,
                    OUTLIER_REMOVAL/OFF,3
                    FILTER/OFF,WAVELENGTH=0
    A9             =ALIGNMENT/START,RECALL:USE_ACTIVE_ALIGNMENT(A8),LIST=YES
                      ALIGNMENT/LEVEL,YPLUS,C_BAZE_PL2
                    ALIGNMENT/END
                    MOVE/POINT,NORMAL,<-7.522,16.709,-10.01>
                    MOVE/POINT,NORMAL,<13.218,16.413,-9.994>
    ........
    So after "A9" alignment machine goes to move point without using preset loop offset coordinates (moves to the first part).
    Any suggestion?

  • #2
    You can save the alignment as an external one at the end of the loop, then recall it at the start, or look at this thread :

    https://www.pcdmisforum.com/forum/pc...ebugging-loops


    Comment


    • #3
      Use the technique(s) I describe in this thread....

      Easiest & safest way to loop parts IMNSVHO

      https://www.pcdmisforum.com/forum/pc...e-of-a-surface

      Automettech - Automated Metrology Technology

      Comment


      • #4
        But OP's code "should" work, no?
        PC-DMIS CAD++ 2o19 R1

        Comment


        • EmilySue
          EmilySue commented
          Editing a comment
          I don't know why loops always need all 6 dof in every alignment, but I try to 1) use active alignment AND 2) still repeat every DOF in every alignment in every loop. It's infuriating, as the human brain has such an easy time with this concept, and PCDMIS needs everything absolutely rock solid everywhere in order to avoid messing up. Like "hey... just move 6 inches and do the whole thing again"... can someone please make that a command?

        • NinjaBadger
          NinjaBadger commented
          Editing a comment
          Well, the loop function should obviously work without jiggerpokery to make it do so. The OP's program on the other-hand I'm not so sure, there's a level alignment with nothing else, which recalls an empty alignment outside the loop, which recalls????

        • vpt.se
          vpt.se commented
          Editing a comment
          I hope it is meant to work as EmilySue says "move 6 inches and do it again...". However, it seems it needs serious ****aroundery in order to behave that way. This can't be the intention.

      Related Topics

      Collapse

      Working...
      X