Multi Cavity

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

  • Multi Cavity

    Is there a way to import the same STEP file to create a program to measure multiple cavities of the same part all within one program?

  • #2
    Yes there is.

    Doing so will get into some upper level PC DMIS programming methodologies.
    SF7107(PCD), SF454(PCD), 152614(Quindos), 9159(Quindos), 7107(Quindos), B&S Manual, M&M Gear Checker

    Comment


    • #3
      How can I go about doing this?

      Comment


      • #4
        Arr you familiar with "while looping"?
        SF7107(PCD), SF454(PCD), 152614(Quindos), 9159(Quindos), 7107(Quindos), B&S Manual, M&M Gear Checker

        Comment


        • #5
          This gets kind of advanced with some nested loops and variable-ization and array indicie understanding.
          SF7107(PCD), SF454(PCD), 152614(Quindos), 9159(Quindos), 7107(Quindos), B&S Manual, M&M Gear Checker

          Comment


          • #6
            I can't say that I am.

            Comment


            • #7
              The short answer to your question is yes, PCD can do this. With all due respect, it’s not worth trying to explain this to you until you get a much higher level of PCD training.

              if you really need this done quick, I would recommend contacting Hexagon. They will write a program for you.
              SF7107(PCD), SF454(PCD), 152614(Quindos), 9159(Quindos), 7107(Quindos), B&S Manual, M&M Gear Checker

              Comment


              • #8
                No offense taken, thank you for your input.
                As I get more experience I will be taking the level 2 training as I see what you are talking about is covered in that course.
                Thanks again.

                Comment


                • Schlag
                  Schlag commented
                  Editing a comment
                  None of that is covered in level 2.

              • #9
                Good luck!

                I’ll show you a copy of my macro program when I have a chance
                SF7107(PCD), SF454(PCD), 152614(Quindos), 9159(Quindos), 7107(Quindos), B&S Manual, M&M Gear Checker

                Comment


                • #10
                  Awhite

                  I have a CMM with a large grid plate. My inspectors load the plate with parts, type in the amount of parts that they loaded on the plate, type in their serial numbers, then walk away. They are trained to load the plate from left to right & from machine's Y- to Y+.

                  I write my original program and then cut & paste it between the code below.

                  Note that there are TWO "while" loops. One controls the serial number portion, the other loop is for the actual measurement program. The "MPOINT" values for the "PALLET_POS" variables need to be changed for each program based on the location of your parts from the origin of the fixture plate you'll use.

                  Code:
                  COUNT_PROMPT =COMMENT/INPUT,NO,FULL SCREEN=NO,
                              How many parts are you inspecting?
                  $$ NO,
                              ~
                              ~
                              ~
                              ADD STUFF RIGHT HERE TO LOCK DOWN THE NUMBER THEY'RE ALLOWED TO TYPE IN
                              FOR THE "COUNT_PROMPT" (ABOVE). LOOP BACK TO "COUNT_PROMPT" IF THEY MESS UP.
                              ~
                              ~
                              ~
                              ASSIGN/TOTAL_PARTS=COUNT_PROMPT.INPUT
                              ASSIGN/SER=0
                              WHILE/SER<TOTAL_PARTS
                                ASSIGN/SER=SER+1
                  SER_PROMPT   =COMMENT/INPUT,NO,FULL SCREEN=NO,
                                Please enter the serial number of the
                                "part at Pallet Position "+SER+"."
                    $$ NO,
                                ~
                                ~
                                ~
                                ADD STUFF RIGHT HERE TO LOCK DOWN THE NUMBER THEY'RE ALLOWED TO TYPE IN
                                FOR THE "SER_PROMPT" (ABOVE). LOOP BACK TO "SER_PROMPT" IF THEY MESS UP.
                                ~
                                ~
                                ~
                                ASSIGN/SER_NUM[SER]=SER_PROMPT.INPUT
                              END_WHILE/
                              ASSIGN/CONFIRMCOUNTSTATEMENT="Are there "+COUNT_PROMPT.INPUT+" parts on the table?"
                  CONFIRM_COUNT =COMMENT/YESNO,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
                              CONFIRMCOUNTSTATEMENT
                  CONFIRM_LOCATIONS =COMMENT/YESNO,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
                              Are the part(s) in the correct location(s)?
                              IF_GOTO/CONFIRM_LOCATIONS.INPUT=="NO" OR CONFIRM_COUNT.INPUT=="NO",GOTO = COUNT_PROMPT
                              RECALL/ALIGNMENT,EXTERNAL,FIXT_ALN_FAKE
                  $$ NO,
                              Pallet Handling
                              ---------------
                              ASSIGN/PALLET_POS[1]=MPOINT(0,0,0)
                              ASSIGN/PALLET_POS[2]=MPOINT(6,0,0)
                              ASSIGN/PALLET_POS[3]=MPOINT(12,0,0)
                              ASSIGN/PALLET_POS[4]=MPOINT(0,6,0)
                              ASSIGN/PALLET_POS[5]=MPOINT(6,6,0)
                              ASSIGN/PALLET_POS[6]=MPOINT(12,6,0)
                              ASSIGN/PALLET_POS[7]=MPOINT(0,12,0)
                              ASSIGN/PALLET_POS[8]=MPOINT(6,12,0)
                              ASSIGN/PALLET_POS[9]=MPOINT(12,12,0)
                  $$ NO,
                              Inspection Loop
                              ---------------
                              ASSIGN/CURR_POS=0
                              WHILE/CURR_POS<TOTAL_PARTS
                                ASSIGN/CURR_POS=CURR_POS+1
                    $$ NO,
                                Report Header
                                -------------
                                COMMENT/REPT,
                                "Serial Number: "+SER_NUM[CURR_POS]
                    $$ NO,
                                Pallet Position Offset (PO)
                                ASSIGN/PO=PALLET_POS[CURR_POS]
                  PO_PNT       =GENERIC/POINT,DEPENDENT,CARTESIAN,$
                                NOM/XYZ,<0*1,0*1,0*1>,$
                                MEAS/XYZ,<PO.X,PO.Y,PO.Z>,$
                                NOM/IJK,<0*1,0*1,1*1>,$
                                MEAS/IJK,<0*1,0*1,1*1>
                  INIT_ALN     =ALIGNMENT/START,RECALL:FIXT_ALN_FAKE,LIST=YES
                                  ALIGNMENT/TRANS,XAXIS,PO_PNT
                                  ALIGNMENT/TRANS,YAXIS,PO_PNT
                                  ALIGNMENT/TRANS,ZAXIS,PO_PNT
                                ALIGNMENT/END
                    $$ NO,
                                Print Report
                                ASSIGN/PRGNAME="PALLET_PRG_SAMPLE"
                                ASSIGN/RPTPATH="O:\\CMM PROGRAMS\\PCDMIS\\_NEW CMM PROGRAMS\\___PALLET_PROGRAM_SAMPLE"+"-"+PRGNAME+"-"+SER_PROMPT.INPUT
                                PRINT/REPORT,EXEC MODE=END,$
                                  TO_FILE=ON,OVERWRITE=RPTPATH,AUTO OPEN=OFF,$
                                  TO_PRINTER=OFF,COPIES=1,$
                                  TO_DMIS_REPORT=OFF,FILE_OPTION=INDEX,FILENAME=,$
                                  REPORT_THEORETICALS=NONE,REPORT_FEATURE_WITH_DIMENSIONS=NO,$
                                  TO_EXCEL=OFF,$
                                  PREVIOUS_RUNS=DELETE_INSTANCES
                              END_WHILE/
                  LABEL_TERMINUS=LABEL/
                  Last edited by DAN_M; 12-17-2019, 01:35 PM.
                  SF7107(PCD), SF454(PCD), 152614(Quindos), 9159(Quindos), 7107(Quindos), B&S Manual, M&M Gear Checker

                  Comment

                  Related Topics

                  Collapse

                  Working...
                  X