Min Max of a group of dimensions

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

  • Min Max of a group of dimensions

    I have 30 pockets on a part that need width, length, parallelism,and perpendicularity checked on each pocket. However I only need to report the min and max for all 30. Is there a quick way to report the min and max on a group of dimensions other than exporting them to a spread sheet. I need to do this on 150 Parts.

  • #2
    you could easily assign min/max of each pocket to variables, I'm not following if you want to report min/max for each pocket or only the smallest min and largest max value among all 30?

    Comment


    • gszpot
      gszpot commented
      Editing a comment
      I'm looking for the smallest min and the largest max of all 30

  • #3
    to report two values, the smallest found and largest found among all 30 pockets, assign individual min/max to variables, use them to create an array and extract the min/max of the array

    Comment


    • #4
      Try this..

      Measure your stuff, report dimensions you need, capture those dimensions in an array, create a variable that finds the highest of each array, create a variable that finds the lowest of each array, assign the created variables to generic features (I chose circles) so the variables have somewhere to go, report the six circles. You can name your variables anything you want, I try to be pretty specific with my names so I can debug later if needed,

      Code:
      PLN1 =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,NONE,LEAST_SQR
      THEO/<0,0,0>,<-1,0,0>
      ACTL/<0,0,0>,<-1,0,0>
      TARG/<0,0,0>,<-1,0,0>
      ANGLE VEC=<1,0,0>,RADIAL
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=NO
      PLN2 =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,NONE,LEAST_SQR
      THEO/<1,0,0>,<1,0,0>
      ACTL/<1,0,0>,<1,0,0>
      TARG/<1,0,0>,<1,0,0>
      ANGLE VEC=<1,0,0>,RADIAL
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=NO
      PLN3 =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,NONE,LEAST_SQR
      THEO/<0.5,0,0>,<0,0,1>
      ACTL/<0.5,0,0>,<0,0,1>
      TARG/<0.5,0,0>,<0,0,1>
      ANGLE VEC=<1,0,0>,RADIAL
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=NO
      FORMAT/TEXT,OPTIONS,ID,HEADINGS,SYMBOLS, ;MEAS, , , , , ,
      DIM DIST1= 2D DISTANCE FROM PLANE PLN1 TO PLANE PLN2 PAR TO XAXIS,NO_RADIUS UNITS=IN,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
      AX MEAS
      M 1.0000 ----#----
      DIM PARL1= PARALLELISM OF PLANE PLN1,RFS TO PLANE PLN1,RFS UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
      AX MEAS
      M 0.0000 #--------
      DIM PERP1= PERPENDICULARITY OF PLANE PLN1,RFS TO PLANE PLN1,RFS UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
      AX MEAS
      M 0.0000 #--------
      A1 =ALIGNMENT/START,RECALL:STARTUP,LIST=YES
      ALIGNMENT/ROTATE_OFFSET,120,ABOUT,ZPLUS
      ALIGNMENT/END
      PLN4 =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,NONE,LEAST_SQR
      THEO/<0,0,0>,<0.5,-0.8660254,0>
      ACTL/<0,0,0>,<0.5,-0.8660254,0>
      TARG/<0,0,0>,<0.5,-0.8660254,0>
      ANGLE VEC=<-0.5,0.8660254,0>,RADIAL
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=NO
      PLN5 =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,NONE,LEAST_SQR
      THEO/<-0.5,0.866,0>,<-0.5,0.8660254,0>
      ACTL/<-0.5,0.866,0>,<-0.5,0.8660254,0>
      TARG/<-0.5,0.866,0>,<-0.5,0.8660254,0>
      ANGLE VEC=<-0.5,0.8660254,0>,RADIAL
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=NO
      PLN6 =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,NONE,LEAST_SQR
      THEO/<-0.25,0.433,0>,<0,0,1>
      ACTL/<-0.25,0.433,0>,<0,0,1>
      TARG/<-0.25,0.433,0>,<0,0,1>
      ANGLE VEC=<-0.5,0.8660254,0>,RADIAL
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=NO
      FORMAT/TEXT,OPTIONS,ID,HEADINGS,SYMBOLS, ;MEAS, , , , , ,
      DIM DIST2= 2D DISTANCE FROM PLANE PLN4 TO PLANE PLN5 PAR TO XAXIS,NO_RADIUS UNITS=IN,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
      AX MEAS
      M 1.0000 ----#----
      DIM PARL2= PARALLELISM OF PLANE PLN4,RFS TO PLANE PLN5,RFS UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
      AX MEAS
      M 0.0000 #--------
      DIM PERP2= PERPENDICULARITY OF PLANE PLN4,RFS TO PLANE PLN6,RFS UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
      AX MEAS
      M 0.0000 #--------
      A2 =ALIGNMENT/START,RECALL:A1,LIST=YES
      ALIGNMENT/ROTATE_OFFSET,120,ABOUT,ZPLUS
      ALIGNMENT/END
      PLN7 =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,NONE,LEAST_SQR
      THEO/<0,0,0>,<0.5,0.8660254,0>
      ACTL/<0,0,0>,<0.5,0.8660254,0>
      TARG/<0,0,0>,<0.5,0.8660254,0>
      ANGLE VEC=<-0.5,-0.8660254,0>,RADIAL
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=NO
      PLN8 =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,NONE,LEAST_SQR
      THEO/<-0.5,-0.866,0>,<-0.5,-0.8660254,0>
      ACTL/<-0.5,-0.866,0>,<-0.5,-0.8660254,0>
      TARG/<-0.5,-0.866,0>,<-0.5,-0.8660254,0>
      ANGLE VEC=<-0.5,-0.8660254,0>,RADIAL
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=NO
      PLN9 =FEAT/CONTACT/PLANE/DEFAULT,CARTESIAN,NONE,LEAST_SQR
      THEO/<-0.25,-0.433,0>,<0,0,1>
      ACTL/<-0.25,-0.433,0>,<0,0,1>
      TARG/<-0.25,-0.433,0>,<0,0,1>
      ANGLE VEC=<-0.5,-0.8660254,0>,RADIAL
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=NO
      FORMAT/TEXT,OPTIONS,ID,HEADINGS,SYMBOLS, ;MEAS, , , , , ,
      DIM DIST3= 2D DISTANCE FROM PLANE PLN7 TO PLANE PLN8 PAR TO XAXIS,NO_RADIUS UNITS=IN,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
      AX MEAS
      M 1.0000 ----#----
      DIM PARL3= PARALLELISM OF PLANE PLN7,RFS TO PLANE PLN8,RFS UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
      AX MEAS
      M 0.0000 #--------
      DIM PERP3= PERPENDICULARITY OF PLANE PLN7,RFS TO PLANE PLN9,RFS UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
      AX MEAS
      M 0.0000 #--------
      ASSIGN/VAR_LIST_DIST=ARRAY(DIST1.M.MEAS,DIST2.M.MEAS,DIST 3.M.MEAS)
      ASSIGN/VAR_DIST_MAX=MAX(VAR_LIST_DIST)
      ASSIGN/VAR_DIST_MIN=MIN(VAR_LIST_DIST)
      CIR_WIDTH_MAX=GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
      NOM/XYZ,<0,0,0>,$
      MEAS/XYZ,<0,0,0>,$
      NOM/IJK,<0,0,1>,$
      MEAS/IJK,<0,0,1>,$
      DIAMETER/0,MAX(VAR_LIST_DIST)
      CIR_WIDTH_MIN=GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
      NOM/XYZ,<0,0,0>,$
      MEAS/XYZ,<0,0,0>,$
      NOM/IJK,<0,0,1>,$
      MEAS/IJK,<0,0,1>,$
      DIAMETER/0,VAR_DIST_MIN
      FORMAT/TEXT,OPTIONS,ID,HEADINGS,SYMBOLS, ;MEAS,NOM,TOL,DEV,OUTTOL, ,
      DIM LOC1= LOCATION OF CIRCLE CIR_WIDTH_MAX UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
      D 1.0000 1.0000 0.0020 0.0020 0.0000 0.0000 ----#----
      END OF DIMENSION LOC1
      DIM LOC2= LOCATION OF CIRCLE CIR_WIDTH_MIN UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
      D 1.0000 1.0000 0.0020 0.0020 0.0000 0.0000 ----#----
      END OF DIMENSION LOC2
      FORMAT/TEXT,OPTIONS,ID,HEADINGS,SYMBOLS, ;MEAS, , , , , ,
      ASSIGN/VAR_LIST_PAR=ARRAY(PARL1.M.MEAS,PARL2.M.MEAS,PARL3 .M.MEAS)
      ASSIGN/VAR_PAR_MAX=MAX(VAR_LIST_PAR)
      ASSIGN/VAR_PAR_MIN=MIN(VAR_LIST_PAR)
      CIR_PAR_MAX=GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
      NOM/XYZ,<0,0,0>,$
      MEAS/XYZ,<0,0,0>,$
      NOM/IJK,<0,0,1>,$
      MEAS/IJK,<0,0,1>,$
      DIAMETER/0,VAR_PAR_MAX
      CIR_PAR_MIN=GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
      NOM/XYZ,<0,0,0>,$
      MEAS/XYZ,<0,0,0>,$
      NOM/IJK,<0,0,1>,$
      MEAS/IJK,<0,0,1>,$
      DIAMETER/0,VAR_PAR_MIN
      FORMAT/TEXT,OPTIONS,ID,HEADINGS,SYMBOLS, ;MEAS,NOM,TOL,DEV,OUTTOL, ,
      DIM LOC3= LOCATION OF CIRCLE CIR_PAR_MAX UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
      D 0.0000 0.0000 0.0020 0.0000 0.0000 0.0000 #--------
      END OF DIMENSION LOC3
      DIM LOC4= LOCATION OF CIRCLE CIR_PAR_MIN UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
      D 0.0000 0.0000 0.0020 0.0000 0.0000 0.0000 #--------
      END OF DIMENSION LOC4
      FORMAT/TEXT,OPTIONS,ID,HEADINGS,SYMBOLS, ;MEAS, , , , , ,
      ASSIGN/VAR_LIST_PERP=ARRAY(PERP1.M.MEAS,PERP2.M.MEAS,PERP 3.M.MEAS)
      ASSIGN/VAR_PERP_MAX=MAX(VAR_LIST_PERP)
      ASSIGN/VAR_PERP_MIN=MIN(VAR_LIST_PERP)
      CIR_PERP_MAX=GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
      NOM/XYZ,<0,0,0>,$
      MEAS/XYZ,<0,0,0>,$
      NOM/IJK,<0,0,1>,$
      MEAS/IJK,<0,0,1>,$
      DIAMETER/0,VAR_PERP_MAX
      CIR_PERP_MIN=GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
      NOM/XYZ,<0,0,0>,$
      MEAS/XYZ,<0,0,0>,$
      NOM/IJK,<0,0,1>,$
      MEAS/IJK,<0,0,1>,$
      DIAMETER/0,VAR_PERP_MIN
      FORMAT/TEXT,OPTIONS,ID,HEADINGS,SYMBOLS, ;MEAS,NOM,TOL,DEV,OUTTOL, ,
      DIM LOC5= LOCATION OF CIRCLE CIR_PERP_MAX UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
      D 0.0000 0.0000 0.0020 0.0000 0.0000 0.0000 #--------
      END OF DIMENSION LOC5
      DIM LOC6= LOCATION OF CIRCLE CIR_PERP_MIN UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
      D 0.0000 0.0000 0.0020 0.0000 0.0000 0.0000 #--------
      END OF DIMENSION LOC6
      SF7107(PCD), SF454(PCD), 152614(Quindos), 9159(Quindos), 7107(Quindos), B&S Manual, M&M Gear Checker

      Comment


      • Douglas
        Douglas commented
        Editing a comment
        I knew if I said array you would bring the code

    • #5
      You can automatically create arrays like this :

      Code:
      V1 =LOOP/START,ID=YES,NUMBER=30,START=1,SKIP=,
      OFFSET:XAXIS=0,YAXIS=3,ZAXIS=0,ANGLE=0
      ASSIGN/DIST_ARRAY[V1]="DIST"+V1+".MEAS"
      LOOP/END
      ASSIGN/DIST_MAX=MAX(DIST_ARRAY)

      Comment


      • DAN_M
        DAN_M commented
        Editing a comment
        Hi Jefman, I am really trying to learn this (creating the array through the use of a loop) but I keep trying it ant it isn't working. Can you please confirm that your syntax is 100% correct?
        Last edited by DAN_M; 06-08-2020, 01:46 PM.

    • #6
      DAN_M : I wasn't at the cmm, sorry...


      Code:
      V1 =LOOP/START,ID=YES,NUMBER=30,START=1,SKIP=
      , OFFSET:XAXIS=0,YAXIS=3,ZAXIS=0,ANGLE=0
      ASSIGN/V2="DIST"+V1
      ASSIGN/DIST_ARRAY[V1]=V2.MEAS
      LOOP/END
      ASSIGN/DIST_MAX=MAX(DIST_ARRAY)

      Comment

      Related Topics

      Collapse

      • hertangel
        Min/Max
        by hertangel
        Hello,
        how do you report MIN or MAX id that's what the drawing asking.

        in other words the print calls for 25 max dimater.
        12-20-2011, 01:24 PM
      • cfranklin
        max & min
        by cfranklin
        Good morning all :

        When u print out a report, the max and min are supposed to display what values??? Is it the max and min due to the...
        01-30-2009, 11:35 AM
      • ADAM WALLACE
        Maybe Glitch max/min
        by ADAM WALLACE
        When I measure a circle and dimension max/min it gives me the max/min but once I close the program and reopen it the max/min show a 0.0000 value. Has...
        01-04-2013, 12:55 PM
      • MikeF
        Min/max of a diameter
        by MikeF
        I ran a part with the min/max turned off, the customer wants the diameter min/max so I go back in the program turn on min/max output and they show min...
        10-24-2018, 11:52 AM
      • TKOFaith
        Min of Multiple Dimensions
        by TKOFaith
        My print calls for the surfaces of four bosses be co-planar within .010 TIR. So I would like to have PC-DMIS calculate the Min and Max and output a report...
        02-05-2019, 03:47 PM
      Working...
      X