|
发表于 2022-12-6 10:42:18
|
显示全部楼层
加进后处理,通过公差自动判断精度等级
global mom_inside_outside_tolerances intol outtol tol a b
if {[info exists mom_inside_outside_tolerances]} {
set intol [format "%.3f" $mom_inside_outside_tolerances(0)]
set outtol [format "%.3f" $mom_inside_outside_tolerances(1)]
set b [format "%.3f" [expr $intol + $outtol]]
}
MOM_output_literal "(Intol:$intol Outtol:$outtol)"
if {[info exists b] && $b <= 0.01} {
set a 10
} elseif {
$b > 0.01&& $b < 0.02} {
set a 5
} else {
set a 1
}
MOM_output_literal "G5.1 Q1 R$a"
}
|
|