8 Angles Equal Withen 1 Degree

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

  • 8 Angles Equal Withen 1 Degree

    I have a part with 8 angles they are to be equal withen 1 degree.
    i think i need to use variables not sure.
    cant figure out how to report it.
    thanks

  • #2
    Its a friday morning and I was out last night so this is probably not the best method but it will work, I have added some sample code below as an example

    Assign an array to the measured dimensions of your angles
    Assign a variable to the max dimension of the array
    Assign a variable to the min dimension of the array
    Assign a variable to the max minus the min value,
    Use an IF statement to write OUT OF TOLERANCE to your report if the difference is greater than 1
    Use an ELSE statement to write IN TOLERANCE to your report if the difference is less than 1


    ASSIGN/V1 = 1
    ASSIGN/V2 = 2
    ASSIGN/V3 = 3
    ASSIGN/V4 = 4
    ASSIGN/V5 = 5
    ASSIGN/V2 = ARRAY(V1,V2,V3,V4,V5)
    ASSIGN/V_MAX = MAX(V2)
    ASSIGN/V_MIN = MIN(V2)
    IF/V_MAX-V_MIN>1
    COMMENT/REPT,OUT OF TOLERANCE
    END_IF/
    ELSE/
    COMMENT/REPT,ALL ANGLES WITHIN 1 DEGREE OF EACHOTHER
    END_ELSE/

    Not brilliant but I am still working with a beer cloud in my brain
    sigpic

    Comment


    • #3
      Thanks jon_dav_uk;
      that did what i needed it to do.
      not to be a pain in the a$$ but is it possable to have the comment in red if it is greater than 1 deg.?

      Comment


      • #4
        I don't think so, but you could create a generic feature with the variable in it. You can do the same with keyed in dimension.
        You also could use a COMMENT/OPER. That would put a comment window up telling the operator it was out. Many ways to deal with this, basically personal preference.
        When in doubt, post code. A second set of eyes might see something you missed.
        sigpic

        Comment

        Related Topics

        Collapse

        Working...
        X