[Da...] Posted September 5, 2022 Share Posted September 5, 2022 Hi all, Hi would you output on the report different grades of the cylinder bore ? PCM ? E.G: 83.000 + 0.018 'A' 83.000 + 0.027 'B' 83.000 + 0.037 'C' Anything above red Anything below red Link to comment Share on other sites More sharing options...
[Is...] Posted September 6, 2022 Share Posted September 6, 2022 Nothing complicated, we request numbers instead of other characters. then selectCase function to asign the grade to an actual value.. Link to comment Share on other sites More sharing options...
[Is...] Posted September 7, 2022 Share Posted September 7, 2022 OSP_A_MIN = 86.94 // MIN Diameter Group A "1" OSP_A_MAX = 86.97 // MAX Diameter Group A "1" OSP_B_MIN = 86.99 // MIN Diameter Group B "2" OSP_B_MAX = 87.02 // MAX Diameter Group B "2" OSP_C_MIN = 87.04 // MIN Diameter Group C "3" OSP_C_MAX = 87.07 // MAX Diameter Group C "3" ///////////////////////////////////////////////////////////// selectCase getActual().actual case OSP_C_MIN to OSP_C_MAX BGrade=3 case OSP_B_MIN to OSP_B_MAX BGrade=2 case OSP_A_MIN to OSP_A_MAX BGrade=1 caseElse BGrade=0 endSelect Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in