Skip features

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

  • Skip features

    I am programming a part that half of the run goes thru a piercing die that adds two holes. I have left the two holes until last and want my program to ask if the part has holes or not. If I answer yes I want the program to measure and report attached dimensions and if the answer is no I want the program to skip the holes and dimensions and go to a move point.

    PC-DMIS 4.1
    "People demand freedom of speech as a compensation for the freedom of thought, which they seldom use." ~ Soren Kierkegaard

  • #2
    Do some research on MARKED SETS. They are pretty awesome. I'd go into further detail but it's time for a UNION NEGOTIATED BREAK...
    sigpic
    Xcel 15-20-10 - PFXcel 7-6-5 - Merlin 11-11-7 - Romer Absolute 7525SI
    PCDMIS 2012
    Windows Office XP

    Comment


    • #3
      If/end is what you want. I think we went through this once before.

      Comment


      • #4
        Here is the thread to which I was refering.

        Comment


        • #5
          Thanks much

          I did search around before I posted I guess not Goodluck enough :^)

          Thanks again for the quick responses.
          "People demand freedom of speech as a compensation for the freedom of thought, which they seldom use." ~ Soren Kierkegaard

          Comment


          • #6
            Originally posted by Joe Zastrow View Post
            Thanks much

            I did search around before I posted I guess not Goodluck enough :^)

            Thanks again for the quick responses.
            Search works much better if you know some of the details of what you are searching for. I searched for if/end if first and got nothing of value. Then I remembered it was a muffler he was checking and searched muffler. That brought it right up.

            Comment


            • #7
              IF_Go/to & Lables

              COM_HOLES =COMMENT/YESNO,NO,Does part Have Holes
              IF_GOTO/COM_HOLES.INPUT=="YES" ,GOTO = HOLES
              IF_GOTO/COM_HOLES.INPUT=="NO" ,GOTO = END
              HOLES =LABEL/

              Insert Holes here




              END =LABEL/
              2014 SP5, DataPage + v5.0 #331
              [testing v2015.1]

              Comment


              • #8
                With 2 choices IF/END_IF would be better than labels. My opinion. Your method does not have vulnerability but IF/END_IF is cleaner.
                <internet bumper sticker goes here>

                Comment


                • #9
                  Originally posted by david phillips View Post
                  COM_HOLES =COMMENT/YESNO,NO,Does part Have Holes
                  IF_GOTO/COM_HOLES.INPUT=="YES" ,GOTO = HOLES
                  IF_GOTO/COM_HOLES.INPUT=="NO" ,GOTO = END
                  HOLES =LABEL/

                  Insert Holes here




                  END =LABEL/
                  I don't understand. I couldn't get it to work. See code below


                  COM_HOLES =COMMENT/YESNO,NO,Does part Have Holes
                  IF_GOTO/COM_HOLES.INPUT=="YES" ,GOTO = HOLES
                  IF_GOTO/COM_HOLES.INPUT=="NO" ,GOTO = END
                  HOLES =LABEL/
                  http://ettc.lrhsd.org/archives/holes.jpg
                  END =LABEL/
                  sigpic
                  Xcel 15-20-10 - PFXcel 7-6-5 - Merlin 11-11-7 - Romer Absolute 7525SI
                  PCDMIS 2012
                  Windows Office XP

                  Comment


                  • #10
                    Originally posted by rangerboat72 View Post
                    I don't understand. I couldn't get it to work. See code below


                    COM_HOLES =COMMENT/YESNO,NO,Does part Have Holes
                    IF_GOTO/COM_HOLES.INPUT=="YES" ,GOTO = HOLES
                    IF_GOTO/COM_HOLES.INPUT=="NO" ,GOTO = END
                    HOLES =LABEL/
                    http://ettc.lrhsd.org/archives/holes.jpg
                    END =LABEL/
                    What, your computer didn't read the book out loud to you when you answered yes?

                    Comment


                    • #11
                      Originally posted by Goodluck View Post
                      What, your computer didn't read the book out loud to you when you answered yes?
                      Nope! I didn't get the screen of death either???
                      sigpic
                      Xcel 15-20-10 - PFXcel 7-6-5 - Merlin 11-11-7 - Romer Absolute 7525SI
                      PCDMIS 2012
                      Windows Office XP

                      Comment


                      • #12
                        You need a space between INPUT and the first =
                        INPUT =="YES"

                        Comment


                        • #13
                          Why make it so complex?

                          Add an Operator comment before the 2 holes:

                          Comment:
                          Measure the 2 holes?
                          Press OK to measure the holes.
                          Press CANCEL to end the program now.
                          Lately, it occurs to me
                          What a long, strange trip it's been.

                          2017 R1 (Offline programming)

                          Comment

                          Related Topics

                          Collapse

                          • DaVe_M
                            IF/THEN/GOTO Commands
                            by DaVe_M
                            I have searched through the Help Files and cannot find anything that covers what I'm trying to do. I'm not exactly sure of the terminology for what I'm...
                            05-11-2009, 01:43 PM
                          • ed_mag
                            Random Feature Pattern Inspection
                            by ed_mag
                            Hello Forum,

                            I have been told of an inspection method where Pc-Dmis will measure pattern feature randomly. Lets say I have a plate with 12...
                            09-01-2020, 09:57 AM
                          • AuRules
                            Names
                            by AuRules
                            Just need to know.... I have a part (C-4917-1) real easy to program just 12 holes around the edge in XYPL, was looking at the print and noticed there's...
                            02-21-2007, 09:07 AM
                          • jkb_mcg
                            4.2 FCF Help
                            by jkb_mcg
                            My drawing has 67 holes on it. It has a T/P of .016 to [A](which is the top plane surface, [B] (Which is one of the 67 holes), and [C] (Which is another...
                            06-18-2008, 01:04 PM
                          • Mykel
                            Finding a holes existence.
                            by Mykel
                            Hi Guys,

                            I'm in need for your help and guidance.

                            I have a part with quite many holes.
                            Some off them are connected with...
                            07-27-2020, 06:34 AM
                          Working...
                          X