[Cl...] Posted August 11, 2022 Share Posted August 11, 2022 Hello forum users! I am trying to change nominals(x, y, and z) in specific features based on a user input. I am very much so a beginner(probably lower than a beginner) with PCM. Here is my example: if getRecordHead("u_headerinfo")="xyz","zyx","yzx" then blank. <----- this is where i get lost. Like I said, very much so a beginner so be gentle. Link to comment https://qualityforum.zeiss.com/topic/9778-need-pcm-help/ Share on other sites More sharing options...
[Se...] Posted August 12, 2022 Share Posted August 12, 2022 Hello Clayton, maybe you can try this: user_input=getRecordHead("u_headerinfo") selectCase user_input case "xyz" nominal_X1= 1.3 nominal_Y1= 2.3 nominal_Z1= 3.3 case "zyx" nominal_X1= 1.5 nominal_Y1= 2.5 nominal_Z1= 3.5 case "yzx" nominal_X1= 1.7 nominal_Y1= 2.7 nominal_Z1= 3.7 endSelect Link to comment https://qualityforum.zeiss.com/topic/9778-need-pcm-help/#findComment-46164 Share on other sites More sharing options...
[No...] Posted August 12, 2022 Share Posted August 12, 2022 Please sign in to view this quote. Just for completeness: Sebastien's code should be placed in the presettings of the inspection plan You also need to put formulas in the X/Y/Z nominals of the features in question and enter the corresponding variable name (nominal_X1...). Link to comment https://qualityforum.zeiss.com/topic/9778-need-pcm-help/#findComment-46166 Share on other sites More sharing options...
[Se...] Posted August 12, 2022 Share Posted August 12, 2022 Thank you Norbert for this additional information! For me it seemed obvious but it is certainly useful to specify it... 😉 Link to comment https://qualityforum.zeiss.com/topic/9778-need-pcm-help/#findComment-46168 Share on other sites More sharing options...
[Cl...] Posted August 12, 2022 Author Share Posted August 12, 2022 Thank you both! This worked very well. Link to comment https://qualityforum.zeiss.com/topic/9778-need-pcm-help/#findComment-46170 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