hexagon logo

code for checking an exception

Need to calculate these from a set of 8 results
[Spacing error not to exceed 0.005,
spacing between adjacent slot 0.003, 1 place may be 0.005 max]

I am using following code to calculate spacing error within 0.005, but I'm not sure how to find " 1 place may be 0.005 max"
I would highly appreciate any guidance as I need to create similar program for 60 set of slots as well.


LOC_ADJ1, 2, 3... is the spacing between adjacent slots

ASSIGN/ZERO=0

ASSIGN/V1=LOC_ADJ1.X.MEAS
ASSIGN/V2=LOC_ADJ2.X.MEAS
ASSIGN/V3=LOC_ADJ3.X.MEAS
ASSIGN/V4=LOC_ADJ4.X.MEAS
ASSIGN/V5=LOC_ADJ5.X.MEAS
ASSIGN/V6=LOC_ADJ6.X.MEAS
ASSIGN/V7=LOC_ADJ7.X.MEAS
ASSIGN/V8=LOC_ADJ8.X.MEAS

ASSIGN/VR=ARRAY(V1,V2,V3,V4,V5,V6,V7,V8)
ASSIGN/VMAX=MAX(VR)
ASSIGN/VMIN=MIN(VR)
ASSIGN/AVG=VMAX-VMIN

F1 =GENERIC/POINT,DEPENDENT,CARTESIAN,$
NOM/XYZ,<ZERO,ZERO,ZERO>,$
MEAS/XYZ,<AVG,AVG,AVG>,$
NOM/IJK,<0,0,1>,$
MEAS/IJK,<0,0,1>

DIM LOC_ADJ9= LOCATION OF POINT F1 UNITS=IN ,$
GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
X 0.00000 0.00500 0.00500 0.00001 0.00001 0.00000 --#--
END OF DIMENSION LOC_ADJ9
Parents
  • Yeah, I'm a bit confused as well. Your code shows you are assessing the average. why? your spec says nothing about average.
    If your spec is exclusively only concerning the variation of X axis, relative to adjacent features, you should assess the distance between each feature, then summarize max and min of all of them... No reason for averaging them out.

    If what you are "simplifying" is accurate, has a rock-solid method.
Reply
  • Yeah, I'm a bit confused as well. Your code shows you are assessing the average. why? your spec says nothing about average.
    If your spec is exclusively only concerning the variation of X axis, relative to adjacent features, you should assess the distance between each feature, then summarize max and min of all of them... No reason for averaging them out.

    If what you are "simplifying" is accurate, has a rock-solid method.
Children
No Data