Can I use logic to ignore alignments?

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

  • Can I use logic to ignore alignments?

    So I am writing a program I would like to check the same features during the op they are machined on, and also after then next machining op is done, since this is when the datums are machined... So the program is currently setup with 2 separate DCC alignments, and which one it looks at is determined by a YES/NO comment and some IF GOTO statements. See code below. So my question is this: When you click NO to run mill op2, it will run through A3 and when it skips to after A2, A2 becomes the active alignment. This basically tells the CMM to go to wherever the part was the last time op1 was checked, when I want it to only reference A3 for this particular scenario. Is there any way to make it skip an alignment without looking at it and making it the active alignment?

    A1 is the manual alignment, A3 is the mill op2 DCC alignment, and A2 is the mill op1 DCC alignment.


    Code:
    A1         =ALIGNMENT/START,RECALL:USE_PART_SETUP,LIST=YES
                ALIGNMENT/LEVEL,ZPLUS,PLN1
                ALIGNMENT/ROTATE,XPLUS,TO,LIN1,ABOUT,ZPLUS
                ALIGNMENT/TRANS,ZAXIS,PLN1
                ALIGNMENT/TRANS,XAXIS,CIR1
                ALIGNMENT/TRANS,YAXIS,CIR1
                ALIGNMENT/END
                MODE/DCC
                CLEARP/ZPLUS,0.3,ZPLUS,0,ON
    C1         =COMMENT/YESNO,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
                Click YES for Mill Op1 and NO for Mill Op2
                ASSIGN/V1=C1.INPUT
                IF_GOTO/V1=="YES",GOTO = MILLOP1
    MILLOP2    =LABEL/
    PLN3       =FEAT/PLANE,CARTESIAN,TRIANGLE
                THEO/<-0.0229,-0.0091,0>,<-0.0000064,-0.0000037,1>
                ACTL/<-0.0229,-0.0091,0>,<-0.0000033,-0.0000188,1>
                MEAS/PLANE,4
                MOVE/CLEARPLANE
                HIT/BASIC,NORMAL,<2.0553,-1.9902,0>,<-0.0000064,-0.0000037,1>,<2.0553,-1.9903,-0.0001>,USE THEO=YES
                HIT/BASIC,NORMAL,<-2.3687,-1.6391,-0.0001>,<-0.0000064,-0.0000037,1>,<-2.3688,-1.639,0>,USE THEO=YES
                HIT/BASIC,NORMAL,<-2.101,1.9261,0>,<-0.0000064,-0.0000037,1>,<-2.1009,1.9262,0>,USE THEO=YES
                HIT/BASIC,NORMAL,<2.3227,1.6668,0>,<-0.0000064,-0.0000037,1>,<2.3228,1.6667,0.0001>,USE THEO=YES
                ENDMEAS/
    CIR5       =FEAT/CIRCLE,CARTESIAN,OUT,LEAST_SQR
                THEO/<0,0,-0.3647>,<0,0,1>,5.979,0
                ACTL/<0.0001,0.0002,-0.3648>,<0,0,1>,5.9798,0
                MEAS/CIRCLE,8,ZPLUS
                MOVE/CLEARPLANE
                HIT/BASIC,NORMAL,<2.9895,0.0004,-0.3647>,<1,0.0001385,0>,<2.9895,0.0005,-0.3648>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<2.1136,2.1142,-0.3647>,<0.7070088,0.7072047,0>,<2.1139,2.1149,-0.3648>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<-0.0004,2.9895,-0.3647>,<-0.0001385,1,0>,<-0.0005,2.9901,-0.3648>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<-2.1142,2.1136,-0.3647>,<-0.7072047,0.7070088,0>,<-2.1149,2.1142,-0.3647>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<-2.9895,-0.0004,-0.3647>,<-1,-0.0001385,0>,<-2.9893,-0.0005,-0.3647>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<-2.1136,-2.1142,-0.3647>,<-0.7070088,-0.7072047,0>,<-2.1134,-2.1143,-0.3648>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<0.0004,-2.9895,-0.3647>,<0.0001385,-1,0>,<0.0006,-2.9902,-0.3648>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<2.1142,-2.1136,-0.3647>,<0.7072047,-0.7070088,0>,<2.1147,-2.1139,-0.3648>,USE THEO=YES
                ENDMEAS/
    LIN5       =FEAT/LINE,CARTESIAN,UNBOUNDED
                THEO/<-5.0311,0.6203,-7.0686>,<1,0.000119,0>
                ACTL/<-5.0313,0.6215,-7.0686>,<1,0.000008,0>
                MEAS/LINE,2,ZPLUS
                MOVE/CLEARPLANE
                HIT/BASIC,NORMAL,<-5.0311,0.6203,-7.0685>,<-0.000119,1,0>,<-5.0313,0.6215,-7.0686>,USE THEO=YES
                MOVE/POINT,NORMAL,<-4.4072,4.4656,-7.0682>
                MOVE/POINT,NORMAL,<4.4829,4.8151,-7.0682>
                HIT/BASIC,NORMAL,<5.2781,0.6215,-7.0686>,<-0.000119,1,0>,<5.278,0.6216,-7.0686>,USE THEO=YES
                ENDMEAS/
    A3         =ALIGNMENT/START,RECALL:A1,LIST=YES
                ALIGNMENT/LEVEL,ZPLUS,PLN3
                ALIGNMENT/ROTATE,XPLUS,TO,LIN5,ABOUT,ZPLUS
                ALIGNMENT/TRANS,ZAXIS,PLN3
                ALIGNMENT/TRANS,XAXIS,CIR5
                ALIGNMENT/TRANS,YAXIS,CIR5
                ALIGNMENT/END
                GOTO/SKIP
    MILLOP1    =LABEL/
    PLN2       =FEAT/PLANE,CARTESIAN,TRIANGLE
                THEO/<-0.0229,-0.0091,0>,<-0.0000064,-0.0000037,1>
                ACTL/<-0.0229,-0.0091,-0.0001>,<-0.0000014,-0.0000004,1>
                MEAS/PLANE,4
                MOVE/CLEARPLANE
                HIT/BASIC,NORMAL,<2.0551,-1.9905,0>,<-0.0000064,-0.0000037,1>,<2.0551,-1.9905,-0.0001>,USE THEO=YES
                HIT/BASIC,NORMAL,<-2.3689,-1.6387,-0.0001>,<-0.0000064,-0.0000037,1>,<-2.369,-1.6387,0>,USE THEO=YES
                HIT/BASIC,NORMAL,<-2.1007,1.9264,0>,<-0.0000064,-0.0000037,1>,<-2.1007,1.9265,-0.0001>,USE THEO=YES
                HIT/BASIC,NORMAL,<2.3229,1.6665,0>,<-0.0000064,-0.0000037,1>,<2.323,1.6664,0>,USE THEO=YES
                ENDMEAS/
    CIR2       =FEAT/CIRCLE,CARTESIAN,OUT,LEAST_SQR
                THEO/<0,0,-0.3647>,<0,0,1>,5.979,0
                ACTL/<0.0001,0,-0.3648>,<0,0,1>,5.9796,0
                MEAS/CIRCLE,8,ZPLUS
                MOVE/CLEARPLANE
                HIT/BASIC,NORMAL,<2.9895,0,-0.3647>,<1,0,0>,<2.9894,0.0001,-0.3648>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<2.1139,2.1139,-0.3647>,<0.7071068,0.7071068,0>,<2.1141,2.1144,-0.3648>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<0,2.9895,-0.3647>,<0,1,0>,<-0.0002,2.9899,-0.3648>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<-2.1139,2.1139,-0.3647>,<-0.7071068,0.7071068,0>,<-2.1141,2.1142,-0.3647>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<-2.9895,0,-0.3647>,<-1,0,0>,<-2.9893,-0.0002,-0.3647>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<-2.1139,-2.1139,-0.3647>,<-0.7071068,-0.7071068,0>,<-2.1137,-2.1143,-0.3648>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<0,-2.9895,-0.3647>,<0,-1,0>,<0.0002,-2.9902,-0.3648>,USE THEO=YES
                MOVE/CIRCULAR
                HIT/BASIC,NORMAL,<2.1139,-2.1139,-0.3647>,<0.7071068,-0.7071068,0>,<2.1144,-2.1141,-0.3648>,USE THEO=YES
                ENDMEAS/
    LIN2       =FEAT/LINE,CARTESIAN,UNBOUNDED
                THEO/<-1.5645,-5.2175,-3.8975>,<1,0.000119,0>
                ACTL/<-1.6989,-4.4956,-3.8228>,<0.9965462,0.0830407,0.0000001>
                MEAS/LINE,2,ZPLUS
                MOVE/CLEARPLANE
                HIT/BASIC,NORMAL,<-1.5645,-5.2175,-3.8976>,<0.000119,-1,0>,<-1.6859,-4.4951,-3.8228>,USE THEO=YES
                HIT/BASIC,NORMAL,<1.669,-5.2171,-3.8975>,<0.000119,-1,0>,<1.5365,-4.2265,-3.8227>,USE THEO=YES
                ENDMEAS/
    A2         =ALIGNMENT/START,RECALL:A1,LIST=YES
                ALIGNMENT/LEVEL,ZPLUS,PLN2
                ALIGNMENT/ROTATE,XPLUS,TO,LIN2,ABOUT,ZPLUS
                ALIGNMENT/TRANS,ZAXIS,PLN2
                ALIGNMENT/TRANS,XAXIS,CIR2
                ALIGNMENT/TRANS,YAXIS,CIR2
                ALIGNMENT/END
    SKIP       =LABEL/
                MOVE/CLEARPLANE
    PNT1       =FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
                THEO/<-1.0325,2.2484,-3.5032>,<0.2074822,-0.7806539,0.5895172>
                ACTL/<-1.0325,2.2484,-3.5032>,<0.2074822,-0.7806539,0.5895172>
                TARG/<-1.0325,2.2484,-3.5032>,<0.2074822,-0.7806539,0.5895172>
                SNAP=NO
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO

  • #2
    So PNT1 is measured with noth Ops right? Do you have other features after PNT1?
    B&S One
    PC-DMIS CAD v2014

    Romer Infinity

    Comment


    • #3
      Here is a perfect application for a saved external alignment. Basically what you want to do is use branching to execute one alignment or the other. Immediately after both alignments you put an alignment save command and have both commands save with the exact same name. Then you recall that saved alignment before measuring any of your other features. If you branched to alignment #1 then the transformation form alignment #1 will be stored in the saved alignment and recalled for your feature measurements. If you branched to alignment #2 then that transformation will be the one that is stored in the saved alignment. The program will always look upwards and see your recalled alignment command so which ever transform was saved inside that saved alignment is the one that will be active.
      2013MR1 SP6
      Global Frames, Tesastar-M Heads, LSP-X1M/H Probes

      Comment


      • #4
        Wait. You said at the end that mill op1 is A2, but mill op1 is bedore a2
        B&S One
        PC-DMIS CAD v2014

        Romer Infinity

        Comment


        • #5
          I dont see a reason to have all this goto, labels and other logic statments.

          An easier way would be:

          c1comment : Click yes to run mill op1, click NO to run mill op2
          If/c1==YES
          All you're mill op 1 features here
          Followed by Align2
          End/if
          All your mill op2 features here
          Followed by A3
          End/if

          Done!

          make fearures for mill op1,
          Last edited by WolfMan; 05-19-2015, 09:53 PM.
          B&S One
          PC-DMIS CAD v2014

          Romer Infinity

          Comment


          • #6
            PNT1 is it part of mill op1 or mill
            Op2??

            It looks like Pnt1 is measured by A2 and A3. First by A3 then A2
            Last edited by WolfMan; 05-19-2015, 10:21 PM.
            B&S One
            PC-DMIS CAD v2014

            Romer Infinity

            Comment


            • #7
              Code:
              A1 =ALIGNMENT/START,RECALL:USE_PART_SETUP,LIST=YES 
              
              ALIGNMENT/LEVEL,ZPLUS,PLN1
              ALIGNMENT/ROTATE,XPLUS,TO,LIN1,ABOUT,ZPLUS A
              LIGNMENT/TRANS,ZAXIS,PLN1 
              ALIGNMENT/TRANS,XAXIS,CIR1
              ALIGNMENT/TRANS,YAXIS,CIR1 
              ALIGNMENT/END 
              MODE/DCC 
              CLEARP/ZPLUS,0.3,ZPLUS,0,ON 
              [COLOR="#FF0000"][B]
              C1 =COMMENT/YESNO,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO, Click YES for Mill Op1 and NO for Mill Op2[/B][/COLOR] 
              
              [COLOR="#FF0000"][B]If/c1.input=="YES"[/B][/COLOR]
              PLN2 OP 1 stars here       =FEAT/PLANE,CARTESIAN,TRIANGLE
                          THEO/<-0.0229,-0.0091,0>,<-0.0000064,-0.0000037,1>
                          ACTL/<-0.0229,-0.0091,-0.0001>,<-0.0000014,-0.0000004,1>
                          MEAS/PLANE,4
                          MOVE/CLEARPLANE
                          HIT/BASIC,NORMAL,<2.0551,-1.9905,0>,<-0.0000064,-0.0000037,1>,<2.0551,-1.9905,-0.0001>,USE THEO=YES
                          HIT/BASIC,NORMAL,<-2.3689,-1.6387,-0.0001>,<-0.0000064,-0.0000037,1>,<-2.369,-1.6387,0>,USE THEO=YES
                          HIT/BASIC,NORMAL,<-2.1007,1.9264,0>,<-0.0000064,-0.0000037,1>,<-2.1007,1.9265,-0.0001>,USE THEO=YES
                          HIT/BASIC,NORMAL,<2.3229,1.6665,0>,<-0.0000064,-0.0000037,1>,<2.323,1.6664,0>,USE THEO=YES
                          ENDMEAS/
              CIR2       =FEAT/CIRCLE,CARTESIAN,OUT,LEAST_SQR
                          THEO/<0,0,-0.3647>,<0,0,1>,5.979,0
                          ACTL/<0.0001,0,-0.3648>,<0,0,1>,5.9796,0
                          MEAS/CIRCLE,8,ZPLUS
                          MOVE/CLEARPLANE
                          HIT/BASIC,NORMAL,<2.9895,0,-0.3647>,<1,0,0>,<2.9894,0.0001,-0.3648>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<2.1139,2.1139,-0.3647>,<0.7071068,0.7071068,0>,<2.1141,2.1144,-0.3648>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<0,2.9895,-0.3647>,<0,1,0>,<-0.0002,2.9899,-0.3648>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<-2.1139,2.1139,-0.3647>,<-0.7071068,0.7071068,0>,<-2.1141,2.1142,-0.3647>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<-2.9895,0,-0.3647>,<-1,0,0>,<-2.9893,-0.0002,-0.3647>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<-2.1139,-2.1139,-0.3647>,<-0.7071068,-0.7071068,0>,<-2.1137,-2.1143,-0.3648>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<0,-2.9895,-0.3647>,<0,-1,0>,<0.0002,-2.9902,-0.3648>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<2.1139,-2.1139,-0.3647>,<0.7071068,-0.7071068,0>,<2.1144,-2.1141,-0.3648>,USE THEO=YES
                          ENDMEAS/
              LIN2       =FEAT/LINE,CARTESIAN,UNBOUNDED
                          THEO/<-1.5645,-5.2175,-3.8975>,<1,0.000119,0>
                          ACTL/<-1.6989,-4.4956,-3.8228>,<0.9965462,0.0830407,0.0000001>
                          MEAS/LINE,2,ZPLUS
                          MOVE/CLEARPLANE
                          HIT/BASIC,NORMAL,<-1.5645,-5.2175,-3.8976>,<0.000119,-1,0>,<-1.6859,-4.4951,-3.8228>,USE THEO=YES
                          HIT/BASIC,NORMAL,<1.669,-5.2171,-3.8975>,<0.000119,-1,0>,<1.5365,-4.2265,-3.8227>,USE THEO=YES
                          ENDMEAS/
              A2         =ALIGNMENT/START,RECALL:A1,LIST=YES
                          ALIGNMENT/LEVEL,ZPLUS,PLN2
                          ALIGNMENT/ROTATE,XPLUS,TO,LIN2,ABOUT,ZPLUS
                          ALIGNMENT/TRANS,ZAXIS,PLN2
                          ALIGNMENT/TRANS,XAXIS,CIR2
                          ALIGNMENT/TRANS,YAXIS,CIR2
                          ALIGNMENT/END
              
              [COLOR="#FF0000"]End/if[/COLOR]
              PLN3 OP 2 stars here     =FEAT/PLANE,CARTESIAN,TRIANGLE
                          THEO/<-0.0229,-0.0091,0>,<-0.0000064,-0.0000037,1>
                          ACTL/<-0.0229,-0.0091,0>,<-0.0000033,-0.0000188,1>
                          MEAS/PLANE,4
                          MOVE/CLEARPLANE
                          HIT/BASIC,NORMAL,<2.0553,-1.9902,0>,<-0.0000064,-0.0000037,1>,<2.0553,-1.9903,-0.0001>,USE THEO=YES
                          HIT/BASIC,NORMAL,<-2.3687,-1.6391,-0.0001>,<-0.0000064,-0.0000037,1>,<-2.3688,-1.639,0>,USE THEO=YES
                          HIT/BASIC,NORMAL,<-2.101,1.9261,0>,<-0.0000064,-0.0000037,1>,<-2.1009,1.9262,0>,USE THEO=YES
                          HIT/BASIC,NORMAL,<2.3227,1.6668,0>,<-0.0000064,-0.0000037,1>,<2.3228,1.6667,0.0001>,USE THEO=YES
                          ENDMEAS/
              CIR5       =FEAT/CIRCLE,CARTESIAN,OUT,LEAST_SQR
                          THEO/<0,0,-0.3647>,<0,0,1>,5.979,0
                          ACTL/<0.0001,0.0002,-0.3648>,<0,0,1>,5.9798,0
                          MEAS/CIRCLE,8,ZPLUS
                          MOVE/CLEARPLANE
                          HIT/BASIC,NORMAL,<2.9895,0.0004,-0.3647>,<1,0.0001385,0>,<2.9895,0.0005,-0.3648>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<2.1136,2.1142,-0.3647>,<0.7070088,0.7072047,0>,<2.1139,2.1149,-0.3648>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<-0.0004,2.9895,-0.3647>,<-0.0001385,1,0>,<-0.0005,2.9901,-0.3648>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<-2.1142,2.1136,-0.3647>,<-0.7072047,0.7070088,0>,<-2.1149,2.1142,-0.3647>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<-2.9895,-0.0004,-0.3647>,<-1,-0.0001385,0>,<-2.9893,-0.0005,-0.3647>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<-2.1136,-2.1142,-0.3647>,<-0.7070088,-0.7072047,0>,<-2.1134,-2.1143,-0.3648>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<0.0004,-2.9895,-0.3647>,<0.0001385,-1,0>,<0.0006,-2.9902,-0.3648>,USE THEO=YES
                          MOVE/CIRCULAR
                          HIT/BASIC,NORMAL,<2.1142,-2.1136,-0.3647>,<0.7072047,-0.7070088,0>,<2.1147,-2.1139,-0.3648>,USE THEO=YES
                          ENDMEAS/
              LIN5       =FEAT/LINE,CARTESIAN,UNBOUNDED
                          THEO/<-5.0311,0.6203,-7.0686>,<1,0.000119,0>
                          ACTL/<-5.0313,0.6215,-7.0686>,<1,0.000008,0>
                          MEAS/LINE,2,ZPLUS
                          MOVE/CLEARPLANE
                          HIT/BASIC,NORMAL,<-5.0311,0.6203,-7.0685>,<-0.000119,1,0>,<-5.0313,0.6215,-7.0686>,USE THEO=YES
                          MOVE/POINT,NORMAL,<-4.4072,4.4656,-7.0682>
                          MOVE/POINT,NORMAL,<4.4829,4.8151,-7.0682>
                          HIT/BASIC,NORMAL,<5.2781,0.6215,-7.0686>,<-0.000119,1,0>,<5.278,0.6216,-7.0686>,USE THEO=YES
                          ENDMEAS/
              A3         =ALIGNMENT/START,RECALL:A2,LIST=YES
                          ALIGNMENT/LEVEL,ZPLUS,PLN3
                          ALIGNMENT/ROTATE,XPLUS,TO,LIN5,ABOUT,ZPLUS
                          ALIGNMENT/TRANS,ZAXIS,PLN3
                          ALIGNMENT/TRANS,XAXIS,CIR5
                          ALIGNMENT/TRANS,YAXIS,CIR5
                          ALIGNMENT/END
                          
                         MOVE/CLEARPLANE
              Last edited by WolfMan; 05-20-2015, 01:27 PM.
              B&S One
              PC-DMIS CAD v2014

              Romer Infinity

              Comment


              • #8
                Dude, are you drunk?
                2013MR1 SP6
                Global Frames, Tesastar-M Heads, LSP-X1M/H Probes

                Comment


                • #9
                  Originally posted by DaSalo View Post
                  Dude, are you drunk?
                  No, iam in the hotel, using my iPhone. I am just bored and dont have much to do here. It kinda crappy to use iphone for posting codes.

                  Anywho, I am at the airport now in Columbus OH. Its dead in [email protected] 4am
                  B&S One
                  PC-DMIS CAD v2014

                  Romer Infinity

                  Comment


                  • #10
                    Originally posted by DaSalo View Post
                    Here is a perfect application for a saved external alignment. Basically what you want to do is use branching to execute one alignment or the other. Immediately after both alignments you put an alignment save command and have both commands save with the exact same name. Then you recall that saved alignment before measuring any of your other features. If you branched to alignment #1 then the transformation form alignment #1 will be stored in the saved alignment and recalled for your feature measurements. If you branched to alignment #2 then that transformation will be the one that is stored in the saved alignment. The program will always look upwards and see your recalled alignment command so which ever transform was saved inside that saved alignment is the one that will be active.
                    Thanks DaSalo, this sounds like exactly what I want to do.

                    And WolfMan, PNT1 is just the first of many features measured by the program. I just didn't post anything else because the rest is irrelevant to my problem. Also, the Mill Op1 and Mill Op2 labels are at the beginning of the segments they are named for. And I thought about doing it with 2 separate feature sets (one for mill op1 and another for mill op2), but literally the only difference is the clocking line of the alignments and I didn't want the program to be 2x as long as it needs to be with duplicate features.

                    Comment


                    • #11
                      Well than my example should work for you.

                      Did you look at it?
                      B&S One
                      PC-DMIS CAD v2014

                      Romer Infinity

                      Comment


                      • #12
                        You must go into the F5 settings menu and uncheck "Reset global settings when branching."

                        If this box is checked, when you use flow controls to skip to any place in the program, PC-DMIS will search up for the most recent settings, like probe angle, and alignment.
                        If this box is UN-checked, the program will use the most recent executed settings without searching up through the code.

                        Comment


                        • #13
                          Well I believe I got it to work with external alignments, I'll know for sure when the parts come back from plating. TheBradish, that's an interesting option, it looks like that would have made my original program work the way it was. Thanks for the help and knowledge as always guys! I learned a few things today...

                          Comment


                          • #14
                            You can also put the alignment name you want to use into a variable, then use it in the recall command.

                            User clicks "yes":
                            ASSIGN/CURALGN="A1"

                            User clicks "no":
                            ASSIGN/CURALGN="A2"

                            Recall Alignment using variable:
                            RECALL/ALIGNMENT,INTERNAL,CURALGN

                            Comment


                            • #15
                              Hey, that's a cool idea ^^^^^^. Never thought to try that with assignments. Thanks!
                              2013MR1 SP6
                              Global Frames, Tesastar-M Heads, LSP-X1M/H Probes

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X