[Ca...] Posted April 30, 2019 Share Posted April 30, 2019 Hello, I have a short Problem with setCF (i assume in my case it should be the right tool) I used it already several times to work with the part number or some thing, but in this case i was not able to find a proper way. What I have: Cone1 = Length of 10mm - getNominal("Cone1").len Measured 5 heights all along the cone at 5 - 25 - 50 - 75 - 95%. (Which always called DIA_1, DIA_2, DIA_3 etc...) What i want: I want to say, if Cone length is shorter than 10mm then measure only DIA_1, DIA_3, DIA_5 instead of all.. (if longer for sure measure all). But after wards continue with the other groups and don't stop with only this features. I tried already: if getNominal("Cone1").len <= 20.00 then setCF("DIA_1","DIA_3","DIA_5") endif Which is working, but then he really only measure this characteristics nothing else, i tried already to put this code on the pre / post setting of the group (of this cone), but there nothing happens, the program continues to measure everything. When i put it in the Presettings of the Program it works fine. I would be very happy if someone could hook me up 🙂 Thanks in advance, Link to comment Share on other sites More sharing options...
[Ca...] Posted April 30, 2019 Author Share Posted April 30, 2019 Hello, just as a work around I did it currently with a condition, but i assume there is really a nicer way as to put 20 conditions in the program it self or? 🙂 I created for 2 / 4 a separate group and send "condition" getNominal("Cone1").len <= 20 Thanks for your support. Link to comment Share on other sites More sharing options...
[No...] Posted April 30, 2019 Share Posted April 30, 2019 I never used setCF(), but I assume it expects a list of all characteristics you want to measure. So you have to feed it a list containing "everything" EXCEPT the items you don't want to measure. Wouldn't it make more sense to use conditions on the DIA... characteristics instead of PCM? ---> edit: Ah, I see, you already tried that... Link to comment Share on other sites More sharing options...
[De...] Posted April 30, 2019 Share Posted April 30, 2019 I haven't used it but, it sounds like you should be able to use addCF() instead of setCF() from the documentation.. addCF() Adds additional characteristics to the scope of measurement. The syntax is: addCF(CharacteristicName1,CharacteristicName2, …) Or addCF(ListName) You can specify individual characteristics or groups as characteristic name. NOTE Characteristics added in this way are always checked even if they are not selected at CNC start. Link to comment Share on other sites More sharing options...
[Ca...] Posted May 3, 2019 Author Share Posted May 3, 2019 Hello, thanks for all your feedback 🙂 I was in an longer "workers day" weekend and just back at work today hehe. With the Syntax "addCF" I also already tried, but didn't get it working with that, currently the only possibility would be to use "setCF(list)" or to do an condition. I will continue to find a way, if I find something I will post it 🙂 otherwise I will simply use the condition. Thanks guys 🙂 Link to comment Share on other sites More sharing options...
[De...] Posted May 3, 2019 Share Posted May 3, 2019 Just a suggestion, but another option might be to make multiple measurement strategies in the feature and then use setInspectionStrategy() to use the strategy you want dependent on the conditions you set. So for example in your cone you could make three strategies - the default strategy, then one called medium and one called short. The default would measure the entire length of the cone, in your condition you could use setInspectionStrategy("short") or setInspectionStrategy("medium") depending on the length of the cone to limit how much was measured. Link to comment Share on other sites More sharing options...
[Ca...] Posted May 6, 2019 Author Share Posted May 6, 2019 Many Thanks for this idea, sounds interesting, I will definitely start to try / play with it 🙂 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