Reporting Min/Max for Dummies please

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

  • Reporting Min/Max for Dummies please

    Hi, I know it's been posted a tonne of times before but I can't make heads or tails of what's been posted. Please explain like I'm five. I need to report the min/max of some diameters. I've assigned variables to the diameters I want to report the min/max of and that's as far as I got. I think variables are involved but I really have no idea what I'm doing or where to go from here. Please help. They wanted this data like two days ago but for some reason they want to make this particular part super difficult compared to every other sister part that doesn't require min/max reporting.

    Edit: This is as far as I got:

    DIM B4= LOCATION OF CIRCLE B4CIRCLE UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
    D 3.1305 3.1305 0.0025 0.0025 0.0000 0.0000 0.0000 0.0000 --#--
    END OF DIMENSION B4
    ASSIGN/V1=B4CIRCLE.DIAM
    ASSIGN/MYMAX=MAX(B4CIRCLE.DIAM)
    ASSIGN/MYMIN=MIN(B4CIRCLE.DIAM)
    I saw something saying to make a generic feature but I'm not sure how to get the generic feature to refer to my min/max commands.

    Edit two: I figured out my generic features but only one set works and it's giving me crazy numbers:

    DIM B4= LOCATION OF CIRCLE B4CIRCLE UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
    D 3.1325 3.1305 0.0025 0.0025 0.0020 0.0000 3.1333 3.1311 ----#
    END OF DIMENSION B4
    ASSIGN/V1=B4CIRCLE.DIAM
    ASSIGN/MYMAX=MAX(B4CIRCLE.DIAM)
    ASSIGN/MYMIN=MIN(B4CIRCLE.DIAM)
    B4MAX =GENERIC/POINT,DEPENDENT,CARTESIAN,$
    NOM/XYZ,<MYMAX,MYMIN,0>,$
    MEAS/XYZ,<MYMAX,MYMIN,0>,$
    NOM/IJK,<0,0,1>,$
    MEAS/IJK,<-0.0019383,0.0071764,0.9999724>
    DIM B4MAX/MIN= LOCATION OF POINT B4MAX UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
    X 3.4612 3.1305 0.0025 0.0025 0.3307 0.3282 3.4612 3.4612 ---->
    Y 4.0957 3.1305 0.0025 0.0025 0.9652 0.9627 4.0957 4.0957 ---->
    END OF DIMENSION B4MAX/MIN
    DIM B5= LOCATION OF CIRCLE B5CIRCLE UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
    D 3.3565 3.3610 0.0050 0.0050 -0.0045 0.0000 0.0000 0.0000 #----
    END OF DIMENSION B5
    ASSIGN/V2=B5CIRCLE.DIAM
    ASSIGN/MYMAX=MAX(B5CIRCLE.DIAM)
    ASSIGN/MYMIN=MIN(B5CIRCLE.DIAM)
    B5MAXMINDDIAM=GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
    NOM/XYZ,<MYMAX,MYMIN,0>,$
    MEAS/XYZ,<MYMAX,MYMIN,-0.0091>,$
    NOM/IJK,<0,0,1>,$
    MEAS/IJK,<0.0005462,0.0026287,0.9999964>,$
    RADIUS/0,0
    DIM LOC2= LOCATION OF CIRCLE B5MAXMINDDIAM UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
    X 3.3569 3.3567 0.0050 0.0050 0.0002 0.0000 3.3569 3.3569 --#--
    Y 3.3569 3.3567 0.0050 0.0050 0.0002 0.0000 3.3569 3.3569 --#--
    END OF DIMENSION LOC2
    I've got min/max turned on for my program but that doesn't send to STATS for some reason.
    Last edited by gt143744; 09-24-2020, 08:35 AM.

  • #2
    You can turn on MAX/MIN in the parameter settings F10 - Dimension - then tick box MIN/MAX

    Comment


    • gt143744
      gt143744 commented
      Editing a comment
      I did that, but it doesn't seem to export out to QC Calc. If I gave them 60 PDFs I'd be in big trouble. They want it in an excel format for easy use.

    • YGOLORTEM
      YGOLORTEM commented
      Editing a comment
      Make sure stats are on

  • #3
    key in format then F9 it and set your preferences

    Code:
    FORMAT/TEXT,OPTIONS, ,HEADINGS,SYMBOLS, ;MEAS,NOM,TOL,OUTTOL,MAXMIN,DEV,
    Jesse Krook

    Comment


    • gt143744
      gt143744 commented
      Editing a comment
      It still doesn't export to STATS and I did figure out my generic features but only one set works and it's giving me crazy numbers. It's made even more frustrating because no other part like this requires min/max diameters so I have no idea why I need to jump through so many hoops for this one.

  • #4
    Let me try to help you out here, first of all I would get rid of the space in DIM B4, change it something like DIM_B4

    Code:
    DIM B4= LOCATION OF CIRCLE B4CIRCLE UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
    D 3.1305 3.1305 0.0025 0.0025 0.0000 0.0000 0.0000 0.0000 --#--
    END OF DIMENSION B4
    ASSIGN/V1=B4CIRCLE.DIAM
    ASSIGN/MYMAX=MAX(B4CIRCLE.DIAM)
    ASSIGN/MYMIN=MIN(B4CIRCLE.DIAM)
    your assignment should look something like this:

    Code:
    DIM_B4= LOCATION OF CYLINDER CYL30 UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL OUTTOL MAX MIN DEV
    X 0.0000000 0.0000000 0.0005000 0.0005000 0.0000000 1.2262514 -1.2262514 0.0000000 -#--
    Z 0.0000000 0.0000000 0.0100000 0.0100000 0.0000000 -0.2425024 -1.2500000 0.0000000 -#--
    D 2.5000000 2.5000000 0.0010000 0.0010000 0.0000000 2.5000000 2.5000000 0.0000000 -#--
    END OF DIMENSION F39
    ASSIGN/V4=DIM_B4.X.MAX
    (2nd EDIT: I suppose you could replace the X with the D in the assignment for diameter min max as well)

    Then use the V4 in a generic feature and output it:



    Code:
    F4 =GENERIC/NONE,DEPENDENT,CARTESIAN,OUT,$
    NOM/XYZ,<1.226,0,0>,$
    MEAS/XYZ,<V4,0,0>,$
    NOM/IJK,<0,0,1>,$
    MEAS/IJK,<0,0,1>,$
    DIAMETER/0,0,$
    ANGLE/0,0,$
    DISTANCE/0,0
    DIM DIM_B4_MAX= LOCATION OF PLANE F4 UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL OUTTOL MAX MIN DEV
    X 1.2262514 1.2260000 0.0003937 0.0003937 0.0000000 1.2262514 1.2262514 0.0002514 ---#
    END OF DIMENSION DIM_B4_MAX


    (1st EDIT: for diameter you could turn on MAX INSC or MIN CIRC on the feature itself

    Code:
    CYL36 =FEAT/CONTACT/CYLINDER/DEFAULT,POLAR,OUT,MIN_CIRCSC
    THEO/<0.75,300,0.0950002>,<0,-1,0>,0.4,0.250003
    ACTL/<0.75,300,0.0950002>,<0,-1,0>,0.4,0.250003
    TARG/<0.75,300,0.0000002>,<0,-1,0>
    START ANG=0,END ANG=360
    ANGLE VEC=<0.5,0,0.8660254>
    DIRECTION=CCW
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=NO
    Last edited by YGOLORTEM; 09-24-2020, 09:26 AM.
    Jesse Krook

    Comment


    • gt143744
      gt143744 commented
      Editing a comment
      Something I've noticed is that it will work for one part but then when I go to run the next part it completely screws up and gives me crazy numbers again. I have no idea why it stops working when I go to the next part when nothing about the program has been changed.

      Edit: it's not really working at all now. 2 are correct but the other 2 are built the same way and nothing has changed and now they don't work.
      Last edited by gt143744; 09-24-2020, 10:10 AM.

    • YGOLORTEM
      YGOLORTEM commented
      Editing a comment
      Can you share the code?

    • gt143744
      gt143744 commented
      Editing a comment
      This is the code I ended up going with. And like I said, it worked really well with the first part. And now, nothing. Edit: also those features are now red with an asterick in the dimension box. Google says that means they weren't executed but I don't know why they wouldn't have been.

      DIM B4= LOCATION OF CIRCLE B4CIRCLE UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
      D 3.1316 3.1305 0.0025 0.0025 0.0011 0.0000 3.1321 3.1312 ---#-
      END OF DIMENSION B4
      ASSIGN/V1=B4.D.MAX
      B4MAXFEAT =GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
      NOM/XYZ,<3.1315,0,0>,$
      MEAS/XYZ,<V1,0,0>,$
      NOM/IJK,<0,0,1>,$
      MEAS/IJK,<0,0,1>,$
      DIAMETER/0,0
      ASSIGN/V2=B4.D.MIN
      B4MINFEAT =GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
      NOM/XYZ,<3.1315,0,0>,$
      MEAS/XYZ,<V2,0,-0.0008>,$
      NOM/IJK,<0,0,1>,$
      MEAS/IJK,<0,0,1>,$
      DIAMETER/0,0
      DIM B4MAX= LOCATION OF CIRCLE B4MAXFEAT UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
      X 3.3131 3.1315 0.0025 0.0025 0.1816 0.1791 3.3131 3.3131 ---->
      END OF DIMENSION B4MAX
      DIM B4MIN= LOCATION OF CIRCLE B4MINFEAT UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
      X 3.1312 3.1315 0.0025 0.0025 -0.0003 0.0000 3.1312 3.1312 --#--
      END OF DIMENSION B4MIN
      DIM B5= LOCATION OF CIRCLE B5CIRCLE UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
      D 3.3580 3.3610 0.0050 0.0050 -0.0030 0.0000 3.3586 3.3573 #----
      END OF DIMENSION B5
      ASSIGN/V3=B5.D.MAX
      B5MAXFEAT =GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
      NOM/XYZ,<3.361,0,0>,$
      MEAS/XYZ,<V3,0,-0.0009>,$
      NOM/IJK,<0,0,1>,$
      MEAS/IJK,<0.0004359,0.0003407,0.9999998>,$
      DIAMETER/3.361,3.361
      ASSIGN/V4=B5.D.MIN
      B5MINFEAT =GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
      NOM/XYZ,<3.361,0,0>,$
      MEAS/XYZ,<V4,0,-0.0008>,$
      NOM/IJK,<0,0,1>,$
      MEAS/IJK,<-0.0004641,0.0000407,0.9999999>,$
      DIAMETER/0,3.361
      DIM B5MAX= LOCATION OF CIRCLE B5MAXFEAT UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
      X 3.3609 3.3610 0.0000 0.0000 -0.0001 0.0001 3.3609 3.3609 <----
      END OF DIMENSION B5MAX
      DIM B5MIN= LOCATION OF CIRCLE B5MINFEAT UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
      X 3.0048 3.3610 0.0050 0.0050 -0.3562 0.3512 3.0048 3.0048 <----
      END OF DIMENSION B5MIN

  • #5
    you could use distances across the diameter and use the attached code for your min max
    Attached Files

    Comment


    • gt143744
      gt143744 commented
      Editing a comment
      There was another program written and I didn't understand why they had SO MANY points on the program but now I see this is what they were attempting to do with it.

  • #6
    I see you didn't get rid of the spacing in the dimension output this will mess the variable. Also your variable doesn't match the dimension see below in red
    Code:
    DIM B4= LOCATION OF CIRCLE B4CIRCLE UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
    D 3.1316 3.1305 0.0025 0.0025 0.0011 0.0000 3.1321 3.1312 ---#-
    END OF DIMENSION B4
    ASSIGN/V1=B4.D.MAX 
    B4MAXFEAT =GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
    NOM/XYZ,<3.1315,0,0>,$
    MEAS/XYZ,<V1,0,0>,$
    NOM/IJK,<0,0,1>,$
    MEAS/IJK,<0,0,1>,$
    DIAMETER/0,0
    ASSIGN/V2=B4.D.MIN
    B4MINFEAT =GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
    NOM/XYZ,<3.1315,0,0>,$
    MEAS/XYZ,<V2,0,-0.0008>,$
    NOM/IJK,<0,0,1>,$
    MEAS/IJK,<0,0,1>,$
    DIAMETER/0,0
    DIM B4MAX= LOCATION OF CIRCLE B4MAXFEAT UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
    X 3.3131 3.1315 0.0025 0.0025 0.1816 0.1791 3.3131 3.3131 ---->
    END OF DIMENSION B4MAX
    DIM B4MIN= LOCATION OF CIRCLE B4MINFEAT UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
    X 3.1312 3.1315 0.0025 0.0025 -0.0003 0.0000 3.1312 3.1312 --#--
    END OF DIMENSION B4MIN
    Try changing these to:

    Code:
    DIM_B4= LOCATION OF CIRCLE B4CIRCLE UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
    D 3.1316 3.1305 0.0025 0.0025 0.0011 0.0000 3.1321 3.1312 ---#-
    END OF DIMENSION B4
    ASSIGN/V1=DIM_B4.D.MAX 
    B4MAXFEAT =GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
    NOM/XYZ,<3.1315,0,0>,$
    MEAS/XYZ,<V1,0,0>,$
    NOM/IJK,<0,0,1>,$
    MEAS/IJK,<0,0,1>,$
    DIAMETER/0,0
    ASSIGN/V2=DIM_B4.D.MIN
    B4MINFEAT =GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
    NOM/XYZ,<3.1315,0,0>,$
    MEAS/XYZ,<V2,0,-0.0008>,$
    NOM/IJK,<0,0,1>,$
    MEAS/IJK,<0,0,1>,$
    DIAMETER/0,0
    DIM B4MAX= LOCATION OF CIRCLE B4MAXFEAT UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
    X 3.3131 3.1315 0.0025 0.0025 0.1816 0.1791 3.3131 3.3131 ---->
    END OF DIMENSION B4MAX
    DIM B4MIN= LOCATION OF CIRCLE B4MINFEAT UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
    X 3.1312 3.1315 0.0025 0.0025 -0.0003 0.0000 3.1312 3.1312 --#--
    END OF DIMENSION B4MIN
    Jesse Krook

    Comment


    • YGOLORTEM
      YGOLORTEM commented
      Editing a comment
      does changing to this help?

      Code:
      DIM B4= LOCATION OF CIRCLE B4CIRCLE UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL MAX MIN
      D 3.1316 3.1305 0.0025 0.0025 0.0011 0.0000 3.1321 3.1312 ---#-
      END OF DIMENSION B4
      ASSIGN/V1=DIM B4.D.MAX

    • gt143744
      gt143744 commented
      Editing a comment
      It is a full 360 degrees. I couldn't get it to work right yesterday but I just exported to Excel and copy pasted. The PCDMIS excel output isn't working this morning so I'm going to try this again. The diameter isn't a cylinder and it wouldn't allow me to put the DIM in front of it. It should work and be repeatable, I have no idea why it isn't. Thanks for the help, I think your code and way of doing things is absolutely right PC DMIS just hates me.

    • gt143744
      gt143744 commented
      Editing a comment
      Go figure. Same code, same program, and now it's working. Makes no sense but I won't question it.

  • #7
    Try this

    Code:
    ASSIGN/V1=ARRAY(DIM_B4.D.MEAS,DIM_B5.D.MEAS,DIM_B6.D.MEAS, ETC...)
    MYMAX =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/3.1305,MAX(V1)
    MYMIN =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/3.1305,MIN(V1)

    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
    • 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
    • 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
    • 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
    • gszpot
      Min Max of a group of dimensions
      by gszpot
      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...
      06-05-2020, 01:01 PM
    Working...
    X