Jump to content

Re-measure a feature according to a condition


Recommended Posts

Hi everyone! I am trying to find out how to re-measure a feature according to a result, for instance, I've created a feature circle "c1" and characteristic "d1" and in the feature "c1" I placed on post-condition a code to check the error form like this:

result=getActual("c1").form

if result > 0.001 then

   activateFeature("c1")

   meausure()

end if

The idea is: if the result is bigger than 0,001 the measurement of the circle should be perform again, but it doesn't work.

I will really apreciate if anyone has an idea how to do this.

Thanks in advance//

Ricardo

Please sign in to view this quote.

I tried this code but it doesn't work because when I check for instance the form of a diameter and I choose option 3 to re-measure, it evaluates the diameter without measuring the circle again, because the loop is applied to the characteristic, not to the feature.

We just use two characteristics.  If a diameter of a bore is out of spec from a simple scan, it un-masks characteristics that re-capture the feature with an intensive long boring scan.  Concerning parts just automatically have an extra report page with the intensive scan and graphics. 

  • 1 month later...

I declare a global parameter (DoHelixScan = 0)

The "Non Intensive Scan" characteristic has postprocessing step that sets the DoHelixScan variable based on its results:

Dim7Act    = getActual("Dim 7_Dia").actual
Dim7Nom   = getNominal("Dim 7_Dia").actual
Dim7Upper = getNominal("Dim 7_Dia").tolerance.upperTolerance
Dim7Lower = getNominal("Dim 7_Dia").tolerance.lowerTolerance

if  ( (Dim7Act > (Dim7Nom + Dim7Upper)) or (Dim7Act < (Dim7Nom +Dim7Lower)) )
    DoHelixScan = 1
    display("Helical scan triggered. Dia:", Dim7Act)
else
    DoHelixScan = 0
    display("NO helical scan. Dia:", Dim7Act)
endif

 

The "Intensive Scan" characteristic has a precondition set to "DoHelixScan == 1" and will only execute if the characteristic is out of tolerance. 

  • Like! 1
×
×
  • Create New...