Jump to content

Do parametric programs require PCM?


---
 Share

Recommended Posts

I have two simple programs I run that informs me if I have a measuring issue. I generally test once a week.
To use this on other CMMs I need to enter the Radius value of the Reference Sphere per CMM.
I would like to load the Radius values prior to running the program and not have to edit the features manually.

Can I prompt the user for a Radius value, pass it to the features and not have PCM?
Link to comment
Share on other sites

Please sign in to view this quote.

I put it in the Base Alignment Sphere (That's all there is, a Sphere).
The Sphere has 8 points.
After I get through all the prompts repeating, it does it again, repeating.
Link to comment
Share on other sites

Perhaps there can be workaround.

Try theoretical sphere - add to diameter that formula.
Then on sphere from base alignment use formula for diameter, but now just actual from theoretical one.

I'll try something tommorow.
Link to comment
Share on other sites

you can read out the radius of your sphere.

Take a txt-file in your inspection direction (I named it "Referenzkugel_abfragen.txt") with the line

"RadiusRef=getParameterNamed(baseSystem().machine.sDO.tco.tcoSphereMgmt.GetAllReferenceSpheres,1).Radius"

then add the following condition to your first characteristic

"setParameterNamed(strElement(1,"=",text(getTechnologySegment(readListFile(getActualInspectionDir()+"\Referenzkugel_abfragen.txt"),1))),compute(strElement(2,"=",getTechnologySegment(readListFile(getActualInspectionDir()+"\Referenzkugel_abfragen.txt"),1))))==0"

and set it to "No".

Now you have a variable named "RadiusRef" with the actual radius that you can use 🙂

Important: no quotation marks
Link to comment
Share on other sites

Please sign in to view this quote.

Regardless of using a physical entity or an theoretical entity, the diameter value comes up "0.000000" after entering the Radius value, "0.590474". (Or any value).
Link to comment
Share on other sites

Have you considered using a "result element" to prompt the user for the sphere radius? You can then reference this value by formula in whatever features require it. No PCM needed.
Link to comment
Share on other sites

Iˇve just tested it. If you have "Result element" with "inquireNumber" - then sphere where is diameter used as " getActual("Result Element1").actual" then it will ask once - then it is stored and running.
Link to comment
Share on other sites

 Share

×
×
  • Create New...