Missing Something Simple...I Hope

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

  • Missing Something Simple...I Hope

    Hey all Hope its going well for everyone.

    I'm having an issue where the probe keeps "crashing" when I try to measure a hole. The "crash" happens right in between my manual alignment and my first DCC alignment. I am leveling to a plane, creating a line from 2 circles, and then I the plane, the line and one of the circles to lock all my translates down.
    Then when it switches to DCC, measures the plane again and then come to measure to hole and hits the side of the hole.
    When I put my cursor above A1 all of my features line up correctly on the screen, then when I place the cursor below A1 all of my features move. See Pictures 1 and 2.

    This originally happened in a program I wrote offline, eventually I said screw it and just rewrote the whole program Online and it did the same thing.

    Code:
    MAN_PNT_1  =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<-7.2554,6.4032,-0.0167>,<0.0000002,-0.0030104,0.9999955>
                ACTL/<18.8641,17.8721,-29.2933>,<-0.0604878,0.0485539,0.9969873>
                TARG/<-7.2554,6.4032,-0.0167>,<0.0000002,-0.0030104,0.9999955>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  AVOIDANCE MOVE=NO,DISTANCE=0.3937
                SHOW HITS=NO
    MAN_PNT_2  =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<-7.1767,2.115,-0.0296>,<0.0000002,-0.0030104,0.9999955>
                ACTL/<18.8982,13.6825,-29.2931>,<-0.0637221,0.0601004,0.9961563>
                TARG/<-7.1767,2.115,-0.0296>,<0.0000002,-0.0030104,0.9999955>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  AVOIDANCE MOVE=NO,DISTANCE=0.3937
                SHOW HITS=NO
    MAN_PNT_3  =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<-13.9166,2.0709,-0.0298>,<0.0000002,-0.0030104,0.9999955>
                ACTL/<12.2408,13.6838,-29.2922>,<-0.0770604,0.037707,0.9963131>
                TARG/<-13.9166,2.0709,-0.0298>,<0.0000002,-0.0030104,0.9999955>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  AVOIDANCE MOVE=NO,DISTANCE=0.3937
                SHOW HITS=NO
    MAN_PNT_4  =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<-14.049,6.3862,-0.0168>,<0.0000002,-0.0030104,0.9999955>
                ACTL/<12.2418,17.8971,-29.2923>,<-0.0945211,0.0339304,0.9949445>
                TARG/<-14.049,6.3862,-0.0168>,<0.0000002,-0.0030104,0.9999955>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  AVOIDANCE MOVE=NO,DISTANCE=0.3937
                SHOW HITS=NO
    MAN_PLN_1  =FEAT/PLANE,CARTESIAN,OUTLINE,NO
                THEO/<-10.5994,4.2438,-0.0232>,<0.0000002,-0.0030104,0.9999955>
                ACTL/<15.5612,15.7839,-29.2927>,<0.0001392,0.0000458,1>
                CONSTR/PLANE,BF,MAN_PNT_1,MAN_PNT_2,MAN_PNT_3,MAN_PNT_4,,
                OUTLIER_REMOVAL/OFF,3
                FILTER/OFF,WAVELENGTH=0
    MAN_CIR_C  =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<0,0,0>,<0.0000002,-0.0030104,0.9999955>,0.252
                ACTL/<26.2839,11.5222,0.0347>,<0.0000002,-0.0030104,0.9999955>,0.2524
                TARG/<0,0,0>,<0.0000002,-0.0030104,0.9999955>
                START ANG=0,END ANG=-360
                ANGLE VEC=<-1,0,0.0000002>
                DIRECTION=CW
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  NUMHITS=4,DEPTH=0.04,PITCH=0
                  SAMPLE METHOD=SAMPLE_HITS
                  SAMPLE HITS=0,SPACER=0
                  AVOIDANCE MOVE=NO,DISTANCE=0.3937
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO
    MAN_CIR_2  =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<-21.326,0,0>,<0.0000002,-0.0030104,0.9999955>,0.252
                ACTL/<4.9573,11.5353,0.0347>,<0.0000002,-0.0030104,0.9999955>,0.252
                TARG/<-21.326,0,0>,<0.0000002,-0.0030104,0.9999955>
                START ANG=0,END ANG=360
                ANGLE VEC=<1,0,-0.0000002>
                DIRECTION=CCW
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  NUMHITS=7,DEPTH=0.04,PITCH=0
                  SAMPLE METHOD=SAMPLE_HITS
                  SAMPLE HITS=0,SPACER=0
                  AVOIDANCE MOVE=NO,DISTANCE=0.3937
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO
    LIN1       =FEAT/LINE,CARTESIAN,UNBOUNDED,NO
                THEO/<0,0,0>,<-1,0,0.0000002>
                ACTL/<26.2839,11.5222,0.0347>,<-0.9999998,0.0006142,0.0000021>
                CONSTR/LINE,BF,3D,MAN_CIR_C,MAN_CIR_2,,
                OUTLIER_REMOVAL/OFF,3
                FILTER/OFF,WAVELENGTH=0
    A1         =ALIGNMENT/START,RECALL:STARTUP,LIST=YES
                  ALIGNMENT/LEVEL,ZPLUS,MAN_PLN_1
                  ALIGNMENT/ROTATE,XMINUS,TO,LIN1,ABOUT,ZPLUS
                  ALIGNMENT/TRANS,ZAXIS,MAN_PLN_1
                  ALIGNMENT/TRANS,YAXIS,LIN1
                  ALIGNMENT/TRANS,XAXIS,MAN_CIR_C
                ALIGNMENT/END
                GOTO/MENU
    RUN_DCC_ALIGNMENT=LABEL/
                MODE/DCC
                CLEARP/ZPLUS,2,ZPLUS,2,ON
                MOVE/CLEARPLANE
    DCC_PNT_1  =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<-4.0957,6.3534,0>,<0,0,1>
                ACTL/<-4.0957,6.3534,-0.0007>,<0,0,1>
                TARG/<-4.0957,6.3534,0>,<0,0,1>
                SNAP=NO
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  AVOIDANCE MOVE=NO,DISTANCE=0.3937
                SHOW HITS=NO
                MOVE/CLEARPLANE
    DCC_PNT_2  =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<-3.9045,2.1719,0>,<0,0,1>
                ACTL/<-3.9046,2.1719,-0.0007>,<0,0,1>
                TARG/<-3.9045,2.1719,0>,<0,0,1>
                SNAP=NO
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  AVOIDANCE MOVE=NO,DISTANCE=0.3937
                SHOW HITS=NO
                MOVE/CLEARPLANE
    DCC_PNT_3  =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<-17.3028,1.9728,0>,<0,0,1>
                ACTL/<-17.3029,1.9728,-0.0008>,<0,0,1>
                TARG/<-17.3028,1.9728,0>,<0,0,1>
                SNAP=NO
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  AVOIDANCE MOVE=NO,DISTANCE=0.3937
                SHOW HITS=NO
                MOVE/CLEARPLANE
    DCC_PNT_4  =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<-17.5543,6.3488,0>,<0,0,1>
                ACTL/<-17.5544,6.3488,-0.001>,<0,0,1>
                TARG/<-17.5543,6.3488,0>,<0,0,1>
                SNAP=NO
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  AVOIDANCE MOVE=NO,DISTANCE=0.3937
                SHOW HITS=NO
    DCC_PLN_1  =FEAT/PLANE,CARTESIAN,OUTLINE,NO
                THEO/<-10.7143,4.2117,0>,<0,0,1>
                ACTL/<-10.7144,4.2117,-0.0008>,<-0.0000215,0.0000448,1>
                CONSTR/PLANE,HIPNT,DCC_PNT_1,DCC_PNT_2,DCC_PNT_3,DCC_PNT_4,,
                MOVE/CLEARPLANE
    DCC_CIR_1  =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<-21.326,0.0004,0.036>,<0,0,1>,0.252
                ACTL/<-21.326,0.0004,0.036>,<0,0,1>,0.252
                TARG/<-21.326,0.0004,0.036>,<0,0,1>
                START ANG=0,END ANG=-360
                ANGLE VEC=<-1,0.0000207,0>
                DIRECTION=CW
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  NUMHITS=7,DEPTH=0.04,PITCH=0
                  SAMPLE METHOD=SAMPLE_HITS
                  SAMPLE HITS=0,SPACER=0
                  AVOIDANCE MOVE=NO,DISTANCE=0.3937
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO
                MOVE/CLEARPLANE
    DCC_CIR_2  =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<0,0,0>,<0,0,1>,0.252
                ACTL/<-26.2768,-11.5383,29.2538>,<-0.0001371,-0.0030563,0.9999953>,0.252
                TARG/<0,0,0>,<0,0,1>
                START ANG=0,END ANG=360
                ANGLE VEC=<1,0,0>
                DIRECTION=CCW
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  NUMHITS=7,DEPTH=0,PITCH=0
                  SAMPLE METHOD=SAMPLE_HITS
                  SAMPLE HITS=0,SPACER=0
                  AVOIDANCE MOVE=NO,DISTANCE=0.3937
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO
    LIN2       =FEAT/LINE,CARTESIAN,UNBOUNDED,NO
                THEO/<0,0,0>,<-0.9999986,0.0000207,0.0016881>
                ACTL/<-26.2768,-11.5383,29.2538>,<-0.9999986,-0.0005987,0.0015492>
                CONSTR/LINE,BF,3D,DCC_CIR_2,DCC_CIR_1,,
                OUTLIER_REMOVAL/OFF,3
                FILTER/OFF,WAVELENGTH=0
    A2         =ALIGNMENT/START,RECALL:A1,LIST=YES
                  ALIGNMENT/LEVEL,ZPLUS,DCC_PLN_1
                  ALIGNMENT/ROTATE,XMINUS,TO,LIN2,ABOUT,ZPLUS
                  ALIGNMENT/TRANS,ZAXIS,DCC_PLN_1
                  ALIGNMENT/TRANS,YAXIS,LIN2
                  ALIGNMENT/TRANS,XAXIS,DCC_CIR_1
                ALIGNMENT/END
    Above A1
    Above A1.JPG

    Below A1
    Below A1.JPG

    Thanks in advance for any help.

  • #2
    Thank the PCDIMIS gods for Find Hole.
    Find Hole is working to make the program run, but I have done alignments like this plenty of times and have never had this issue.
    Undocumented Enhancement?

    Comment


    • #3
      Code:
      DCC_CIR_1  =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                  THEO/<-21.326,0.0004,0.036>,<0,0,1>,0.252
                  ACTL/<-21.326,0.0004,0.036>,<0,0,1>,0.252
                  TARG/<-21.326,0.0004,0.036>,<0,0,1>
      Shouldn't these be -21.326, 0.000, 0.000 ?

      Also, the Z-coord for the MAN_PNTx looks like it should be zero and the vectors should be 0,0,1.
      PC-DMIS CAD++ 2o23.1

      Comment


      • #4
        Loon4ever,
        Fix your theoretical ijk vectors. They should be (0,0,1) or (-1,0,0), whatever the case may be. I see some of them are a little off, that can throw off an alignment. Fix those, and see if that helps.

        Comment


        • #5
          Look at your z values for your manual circles.

          Your z for your plane is around -29 (inches I guess)

          Because you use Auto circles they are defined at z=0 so that's where they are measured.

          This is in machine co-ords so in effect tyhey are projected to the top of your CMM.


          For you manual circles select (in the auto feature dialog) a Relative measure feature (your DCC plane) , or switch on sample hit(s) for them.






          Applications Engineer
          Hexagon UK

          Comment


          • #6
            1. You should make the plane and level it before measuring a 2D feature (circles, lines, etc.) You need to give the CMM a reference plane to work in. You may be close to parallel to your surface plate now, but if it isn't later, you or someone else will have a problem.

            2. There is no reason to make separate points instead of just measuring the plane.

            3. click the BLUE plane icon, and then the probe icon. Click the model in 4 places on plane -A- (or whatever you are using). Hit the end key on the keyboard.
            4. make an alignment to that plane on Z.
            5. click the BLUE circle icon on the screen.
            6. click in circle -C- 4 places and hit end.
            7. click in the other circle 4 places and click end.
            8. you'll notice all your nominals are now correct (zeroed out and in a square reference system, not showing K as .999999993).
            9. make an alignment, level Z to your plane, rotate and select BOTH circles in the direction you want them to go, then zero out on X, Y, and Z. no reason to make the line first manually. This does it for you.
            10. Run this program and NOW take the hits with the jogbox. This will line up your cad to your program. touching as you go doesn't tie your program to your model. You have to click the model for the hits on the screen and close the element BEFORE you actually measure the hits.

            This should fix the line up, don't line up thing.

            Might fix the other, since nothing is "square" on your nominals, it might be aligning funny. Not sure.

            Comment


            • #7
              You are making more work for the operator by using points to create the planes. No one wants to probe point and enter for every point, use measured features and pick number of points you want and hit end.
              Cleaner and less work for the operator (yourself). You should level after the plane during manual and DCC alignments and correct your vectors as said above.
              Alignments will make or break your program so try and get in the habit of creating the feature and aligning it: create plane then level and origin, create line and rotate, then origin.
              In this case you need to create the circles first before the line.

              Comment


              • #8
                Thanks for the suggestions guys, I'll try them out sometime this weekend when the bosses aren't breathing down my neck to have the CMM running.

                Comment


                • #9
                  How'd that work out?

                  Comment


                  • #10
                    It would appear that the vectors were the cause of my issues.
                    Amusingly enough however a couple of my programs ended up being fine despite being programmed the same initially. From now on I'll be doing my alignments like suggested above, Create Level Feature-Level, Create Rotate Feature-Rotate and so on.
                    In the initial pinch however, Find Hole got me running.

                    Comment


                    • #11
                      Originally posted by Caemgen View Post
                      1. You should make the plane and level it before measuring a 2D feature (circles, lines, etc.) You need to give the CMM a reference plane to work in. You may be close to parallel to your surface plate now, but if it isn't later, you or someone else will have a problem.

                      2. There is no reason to make separate points instead of just measuring the plane.

                      3. click the BLUE plane icon, and then the probe icon. Click the model in 4 places on plane -A- (or whatever you are using). Hit the end key on the keyboard.
                      4. make an alignment to that plane on Z.
                      5. click the BLUE circle icon on the screen.
                      6. click in circle -C- 4 places and hit end.
                      7. click in the other circle 4 places and click end.
                      8. you'll notice all your nominals are now correct (zeroed out and in a square reference system, not showing K as .999999993).
                      9. make an alignment, level Z to your plane, rotate and select BOTH circles in the direction you want them to go, then zero out on X, Y, and Z. no reason to make the line first manually. This does it for you.
                      10. Run this program and NOW take the hits with the jogbox. This will line up your cad to your program. touching as you go doesn't tie your program to your model. You have to click the model for the hits on the screen and close the element BEFORE you actually measure the hits.

                      This should fix the line up, don't line up thing.

                      Might fix the other, since nothing is "square" on your nominals, it might be aligning funny. Not sure.
                      I don't level to a plane before I measure my other features, never had a problem. I create my alignments like Loon4ever. The vectors are not good.
                      Last edited by QS920; 07-12-2019, 10:43 PM.

                      Comment

                      Related Topics

                      Collapse

                      Working...
                      X