[La...] Posted October 5, 2022 Share Posted October 5, 2022 Hello all, I start to execute my CMM part program by some PCM commands in the presetting window. in the command i execute on excel file with macro to generate 4 para. files (with datas following the part in the family). in this family, we could have some machining or not following the article n°. i call this machining step "PRV" In the presetting i read and run the para file to get the variable "PosPRVPln" by these command : ParaFolder = "\\Lis-vnxcifs1\machine3d$\programmes\CALYPSO\05-Indutec\RPV_Gen5\FileForZeissMach" ParaFile1 = "\RpvGen5Datas.Para" FullPathPara1 = ParaFolder + ParaFile1 Message1="check datas" Message2="Done" waitForFile(FullPathPara1,Message1,1,30,Message2,1) readPCMFile(ParaFolder,ParaFile1) runPCMFile(FullPathPara1) This first para file is to get the value of PosPRVPln. I did one macro file for this "PRV" that i call in the master program. I've defined one condition to execute or not this macro "PRV" following this : My problem is when i have PosPRVPln ==0 calypso execute the PRV macro that i want not. Anybody has one idea ? Many thanks in advance Link to comment Share on other sites More sharing options...
[He...] Posted October 5, 2022 Share Posted October 5, 2022 If you are running from feature list the conditions in characteristics list would not be applicable until calculation of the results and by then the features are already measured. I would suggest creating miniplans that you activate with the command setRunID() in presettings. Link to comment Share on other sites More sharing options...
[La...] Posted October 6, 2022 Author Share Posted October 6, 2022 Good morning Henrik, Many thanks for your idea. Could i do a mini-plan with the macro ? it means that i must have only one cmm part program , create some mini-plans and to define what i must measure or not ? I wish you a nice day Link to comment Share on other sites More sharing options...
[He...] Posted October 6, 2022 Share Posted October 6, 2022 I don't really like macros for my applications so I've not used it very much but it should work. 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