Auto circle

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

  • Auto circle

    Is there anyone out here that can explain how the hits are generated in auto circle. I've written a program using assignments for the diameter of the circle that I want to check I get the diameter by operator input then I assign this to a varible. But the numbers for the hits don't change with the new diameter that was entered, so the CMM wants take hits from the last part that was ran in the program. If I change the number of hits in the edit page it works, but I have to enter the diameter because it won't accept my varible that I use in the edit page...

  • #2
    You might have to use a learned feature, not sure. I've never used vars in an auto feature.
    <internet bumper sticker goes here>

    Comment


    • #3
      Like Craig said, it might only work for a learned feature, but I dicovered you have to execute the ASSIGN command for it to work. I was using some variables in move points. Had the assignments at the beginning of the program. Wanted to execute only the last part of the program. Didn't work, but worked when I put the cursor before the variable. Might work here.
      When in doubt, post code. A second set of eyes might see something you missed.
      sigpic

      Comment


      • #4
        It works great, put the variable in two places, the theo. line and the target line.

        You may have to run the program offline once for the values to update.


        John, I have not had problems with that. The Assigns update when you enter hte values. If you hover over the variable in the command where you are using it, it should show you the current value. I have had problems with PCDMIS not recognizing the variable if I copied and pasted into field (sometimes), but this is a broken record for me.
        Last edited by cmmguy; 02-19-2007, 11:41 AM.
        Links to my utilities for PCDMIS

        Comment


        • #5
          cmmguy

          I don't see where I can put the varible in the Targ., All I see for targ. is X,Y,Z,I,J,K unless I'm over looking something here. This is what I have in the program:

          STARTUP =ALIGNMENT/START,RECALL:,LIST=YES
          ALIGNMENT/END
          MODE/MANUAL
          FORMAT/TEXT,OPTIONS, ,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, ,
          LOADPROBE/PROBE1
          TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
          RECALL/ALIGNMENT,EXTERNAL,a2,DIESETFIX:a2
          C1 =COMMENT/INPUT,YES,'Gage Number:'
          C2 =COMMENT/INPUT,NO,'GO Diameter:'
          ASSIGN/V1 = C2.INPUT
          COMMENT/OPER,NO,Take (3) hits on GO Dia.

          MAN_GO =FEAT/CIRCLE,RECT,OUT,LEAST_SQR
          THEO/-2.8395,-2.3915,3.4,0,0,1,1.4927
          ACTL/-3.8989,-2.128,4.2973,0,0,1,1.8381
          MEAS/CIRCLE,3,WORKPLANE
          HIT/BASIC,NORMAL,-2.0932,-2.3915,3.4,1,0,0,-4.8107,-436,4.2973,USETHEO = YES
          MOVE/CIRCULAR
          HIT/BASIC,NORMAL,-3.2127,-1.7451,3.4,-0.5,0.8660254,0,-3.2329,-4.298,USETHEO = YES
          MOVE/CIRCULAR
          HIT/BASIC,NORMAL,-3.2127,-3.0379,3.4,-0.5,-0.8660254,0,-4.0075,-3,4.2965,USE THEO = YES
          ENDMEAS/
          MODE/DCC
          A1 =ALIGNMENT/START,RECALLIESETFIX:a2,LIST=YES
          ALIGNMENT/TRANS,XAXIS,MAN_GO
          ALIGNMENT/TRANS,YAXIS,MAN_GO
          ALIGNMENT/TRANS,ZAXIS,MAN_GO
          ALIGNMENT/END
          MOVE/INCREMENT,0,0,1
          MOVE/POINT,NORMAL,-2,0,1
          MOVESPEED/ 20
          GO =AUTO/CIRCLE,SHOWALLPARAMS = NO,SHOWHITS = YES
          THEO/0,0,0,0,0,-1,V1,0.362
          ACTL/0,0,0,0,0,-1,0.724,0.362
          TARG/0,0,0,0,0,-1
          MEAS/CIRCLE
          HIT/BASIC,-0.362,0,0,-1,0,0,-0.362,0,0
          HIT/BASIC,-0.181,0.3135,0,-0.5,0.8660254,0,-0.181,0.3135,0
          HIT/BASIC,0.181,0.3135,0,0.5,0.8660254,0,0.181,0.3135, 0
          HIT/BASIC,0.362,0,0,1,0,0,0.362,0,0
          HIT/BASIC,0.181,-0.3135,0,0.5,-0.8660254,0,0.181,-0.3135,0
          HIT/BASIC,-0.181,-0.3135,0,-0.5,-0.8660254,0,-0.181,-0.3135,0
          ENDMEAS/
          MOVE/INCREMENT,0,0,5

          Comment


          • #6
            I had to go back and look at one of my programs and your right, I put the nominals in for the location and that is what I was thinking about.

            Code:
            DATUM_A =AUTO/CIRCLE,SHOWALLPARAMS = NO,SHOWHITS = NO
                        THEO/DATUM_AT_X,V0,V0,-1,0,0,FEATDIAM
                        ACTL/0.655,0.0001,0,-1,0,0,14.2001
                        TARG/DATUM_AT_X,V0,V0,-1,0,0
            What is this in your THEO line?
            THEO/0,0,0,0,0,-1,V1,0.362

            I couldn't find that in the HELP or in my code.
            Last edited by cmmguy; 02-19-2007, 01:57 PM.
            Links to my utilities for PCDMIS

            Comment


            • #7
              Originally posted by tclements View Post
              cmmguy

              I don't see where I can put the varible in the Targ., All I see for targ. is X,Y,Z,I,J,K unless I'm over looking something here. This is what I have in the program:

              STARTUP =ALIGNMENT/START,RECALL:,LIST=YES
              ALIGNMENT/END
              MODE/MANUAL
              FORMAT/TEXT,OPTIONS, ,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, ,
              LOADPROBE/PROBE1
              TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
              RECALL/ALIGNMENT,EXTERNAL,a2,DIESETFIX:a2
              C1 =COMMENT/INPUT,YES,'Gage Number:'
              C2 =COMMENT/INPUT,NO,'GO Diameter:'
              ASSIGN/V1 = C2.INPUT
              COMMENT/OPER,NO,Take (3) hits on GO Dia.

              MAN_GO =FEAT/CIRCLE,RECT,OUT,LEAST_SQR
              THEO/-2.8395,-2.3915,3.4,0,0,1,1.4927
              ACTL/-3.8989,-2.128,4.2973,0,0,1,1.8381
              MEAS/CIRCLE,3,WORKPLANE
              HIT/BASIC,NORMAL,-2.0932,-2.3915,3.4,1,0,0,-4.8107,-436,4.2973,USETHEO = YES
              MOVE/CIRCULAR
              HIT/BASIC,NORMAL,-3.2127,-1.7451,3.4,-0.5,0.8660254,0,-3.2329,-4.298,USETHEO = YES
              MOVE/CIRCULAR
              HIT/BASIC,NORMAL,-3.2127,-3.0379,3.4,-0.5,-0.8660254,0,-4.0075,-3,4.2965,USE THEO = YES
              ENDMEAS/
              MODE/DCC
              A1 =ALIGNMENT/START,RECALLIESETFIX:a2,LIST=YES
              ALIGNMENT/TRANS,XAXIS,MAN_GO
              ALIGNMENT/TRANS,YAXIS,MAN_GO
              ALIGNMENT/TRANS,ZAXIS,MAN_GO
              ALIGNMENT/END
              MOVE/INCREMENT,0,0,1
              MOVE/POINT,NORMAL,-2,0,1
              MOVESPEED/ 20
              GO =AUTO/CIRCLE,SHOWALLPARAMS = NO,SHOWHITS = YES
              THEO/0,0,0,0,0,-1,V1,0.362
              ACTL/0,0,0,0,0,-1,0.724,0.362
              TARG/0,0,0,0,0,-1
              MEAS/CIRCLE
              HIT/BASIC,-0.362,0,0,-1,0,0,-0.362,0,0
              HIT/BASIC,-0.181,0.3135,0,-0.5,0.8660254,0,-0.181,0.3135,0
              HIT/BASIC,0.181,0.3135,0,0.5,0.8660254,0,0.181,0.3135, 0
              HIT/BASIC,0.362,0,0,1,0,0,0.362,0,0
              HIT/BASIC,0.181,-0.3135,0,0.5,-0.8660254,0,0.181,-0.3135,0
              HIT/BASIC,-0.181,-0.3135,0,-0.5,-0.8660254,0,-0.181,-0.3135,0
              ENDMEAS/
              MOVE/INCREMENT,0,0,5
              Can you turn your peramerters ON and reattach the same portion of the program?

              Comment


              • #8
                What is this in your THEO line?
                THEO/0,0,0,0,0,-1,V1,0.362





                When I go into to the edit for this auto circle there is a box for the Height, and thats what this 0.362 is.

                Comment


                • #9
                  tested...

                  Could you be more specific I don't understand what you asking, sorry bout that....

                  Comment


                  • #10
                    He means this:
                    GO =AUTO/CIRCLE,SHOWALLPARAMS = NO,SHOWHITS = YES
                    change to SHOWALLPARAMS = YES
                    Links to my utilities for PCDMIS

                    Comment


                    • #11
                      Oh now I understand...

                      STARTUP =ALIGNMENT/START,RECALL:,LIST=YES
                      ALIGNMENT/END
                      MODE/MANUAL
                      FORMAT/TEXT,OPTIONS, ,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, ,
                      LOADPROBE/PROBE1
                      TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
                      RECALL/ALIGNMENT,EXTERNAL,a2,DIESETFIX:a2
                      C1 =COMMENT/INPUT,YES,'Gage Number:'
                      C2 =COMMENT/INPUT,NO,'GO Diameter:'
                      ASSIGN/V1 = C2.INPUT
                      COMMENT/OPER,NO,Take (3) hits on GO Dia.
                      MAN_GO =FEAT/CIRCLE,RECT,OUT,LEAST_SQR
                      THEO/-2.8395,-2.3915,3.4,0,0,1,1.4927
                      ACTL/-3.8841,-2.1139,4.2742,0,0,1,1.8418
                      MEAS/CIRCLE,3,WORKPLANE
                      HIT/BASIC,NORMAL,-2.0932,-2.3915,3.4,1,0,0,-4.7943,-2.254,4.2736,USE THEO = YES
                      MOVE/CIRCULAR
                      HIT/BASIC,NORMAL,-3.2127,-1.7451,3.4,-0.5,0.8660254,0,-3.7233,-3.0207,4.2753,USE THEO = YES
                      MOVE/CIRCULAR
                      HIT/BASIC,NORMAL,-3.2127,-3.0379,3.4,-0.5,-0.8660254,0,-3.3149,-1.3899,4.2738,USE THEO = YES
                      ENDMEAS/
                      MODE/DCC
                      A1 =ALIGNMENT/START,RECALL DIESETFIX:a2,LIST=YES
                      ALIGNMENT/TRANS,XAXIS,MAN_GO
                      ALIGNMENT/TRANS,YAXIS,MAN_GO
                      ALIGNMENT/TRANS,ZAXIS,MAN_GO
                      ALIGNMENT/END
                      MOVE/INCREMENT,0,0,1
                      MOVE/POINT,NORMAL,-2,0,1
                      MOVESPEED/ 20
                      GO =AUTO/CIRCLE,SHOWALLPARAMS = YES,SHOWHITS = YES
                      THEO/0,0,0,0,0,-1,V1,0
                      ACTL/0,0,0,0,0,-1,0.7246,0
                      TARG/0,0,0,0,0,-1
                      THEO_THICKNESS = 0,RECT,OUT,CIRCULAR,LEAST_SQR,ONERROR = NO,$
                      AUTO MOVE = NO,DISTANCE = 0,RMEAS = None,None,None,$
                      READ POS = NO,FIND HOLE = DISABLED,REMEASURE = NO,$
                      NUMHITS = 6,INIT = 0,PERM = 0,SPACER = 0.2,PITCH = 0,$
                      START ANG = 0,END ANG = 360,DEPTH = 0,$
                      VOID DETECT = NO,$
                      ANGLE VEC = -1,0,0
                      MEAS/CIRCLE
                      HIT/BASIC,-0.362,0,0,-1,0,0,0.7565,-0.2865,0.0074
                      HIT/BASIC,-0.181,0.3135,0,-0.5,0.8660254,0,0.3543,0.3792,0.0095
                      HIT/BASIC,0.181,0.3135,0,0.5,0.8660254,0,0.7174,0.3787 ,0.0096
                      HIT/BASIC,0.362,0,0,1,0,0,0.8975,0.0646,0.0101
                      HIT/BASIC,0.181,-0.3135,0,0.5,-0.8660254,0,0.7955,0.3459,0.0069
                      HIT/BASIC,-0.181,-0.3135,0,-0.5,-0.8660254,0,0.3552,-0.249,0.0095
                      ENDMEAS/
                      MOVE/INCREMENT,0,0,5

                      Comment


                      • #12
                        Num Hits

                        I think the only way you'll get the number of hits to change is to add a var. there also.

                        Comment


                        • #13
                          It's not the number of hits that I have a problem with, it's the hit points that's generated. For some reason they don't change with the (V1) variable. It keeps the hit points from the last part that I checked.

                          Comment


                          • #14
                            I just did a test and it works. The values in the hits may not change but the hits are in the right location. I changed the diameter and the features reported correctly but the nominals in the hits stay.

                            Because you use an input to assign, the variable has no value until runtime and this may be why you dont see the change. are you using the variable to update the Dimension also?

                            ps. Enclose your code in the CODE brackets, see the icon http://pcdmisforum.com/style2/editor/code.gif

                            (did you used to work at getrag in newton?)
                            Last edited by cmmguy; 02-19-2007, 04:22 PM.
                            Links to my utilities for PCDMIS

                            Comment


                            • #15
                              Originally posted by cmmguy View Post
                              I just did a test and it works. The values in the hits may not change but the hits are in the right location. I changed the diameter and the features reported correctly but the nominals in the hits stay.

                              Because you use an input to assign, the variable has no value until runtime and this may be why you dont see the change. are you using the variable to update the Dimension also?

                              ps. Enclose your code in the CODE brackets, see the icon http://pcdmisforum.com/style2/editor/code.gif

                              (did you used to work at getrag in newton?)
                              I understand that the points don't change in the code, But once I get it to check a part by editing the hit points, it will not check the next part unless I edit the hit points, it tries to take the hits from the last part. In this program the operator enters the diameter, then manually touchs the part (3) times, to find center then the CMM takes over to touch the same dia. I'm doing this because we are checking these parts in a V-block and the center changes from part to part. Each part has a different diameter.

                              What I find strange about this is I'm doing pretty much the same thing in a different program checking a totally different type of part actually a family of (3) different parts, where the operator enters the diameter without touching the part, using assigned Vars. with fixtured parts and it runs fine from part to part.... crazy stuff

                              PS: No sir I've never worked at getrag in newton...

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X