RationalDMIS 7.1面轮廓度变量取值最大偏差/最小偏差的计算,可以用DMIS语句得到;
T(TPFS1)=TOL/PROFS,-0.0300,0.0300,DAT(A),DAT(B),DAT(C)
OUTPUT/FA(PATERN1),TA(TPFS1)
DECL/COMMON,REAL,TPFS1_MAX
TPFS1_MAX = OBTAIN/TA(TPFS1),3
DECL/COMMON,REAL,TPFS1_MIN
TPFS1_MIN = OBTAIN/TA(TPFS1),2
WRITE/DID(DEFAULTSCREEN),'最大偏差=',TPFS1_MAX
WRITE/DID(DEFAULTSCREEN),'最小偏差=',TPFS1_MIN
MIN and MAX deviation are now added. The change affects the following DMIS output
TA(Label) = TOL/PROFS, lotol, uptol
Lotol is now the Min deviation
Uptol is now the Max deviation
OBTAIN/TA(), n
N = 2, it will return the Min Deviation 最小偏差
N = 3, it will return the Max Deviation 最大偏差
T(TPFS1)=TOL/PROFS,-0.0300,0.0300,DAT(A),DAT(B),DAT(C)
OUTPUT/FA(PATERN1),TA(TPFS1)
DECL/COMMON,REAL,TPFS1_MAX
TPFS1_MAX = OBTAIN/TA(TPFS1),3
DECL/COMMON,REAL,TPFS1_MIN
TPFS1_MIN = OBTAIN/TA(TPFS1),2
WRITE/DID(DEFAULTSCREEN),'最大偏差=',TPFS1_MAX
WRITE/DID(DEFAULTSCREEN),'最小偏差=',TPFS1_MIN