[Ja...] Posted September 9, 2022 Share Posted September 9, 2022 Does anyone know where the name/number of the active reference sphere is? I found in an older post for the radius, baseSystem().machine.machineControl.sphereNormalObject.sphereRadius and I figured the it would just be .sphereName or sphereNumber, but it's not and I'm out of guesses. And what if I wanted the names and dates from all the reference spheres in the system? And lastly where does everyone find this stuff? I've looked in the PCM book that comes with Calypso but a good deal of the code I see floating around here in the forum is not in there. Thanks for any help. Link to comment Share on other sites More sharing options...
[Ph...] Posted September 9, 2022 Share Posted September 9, 2022 Try this... baseSystem().machine.machineControl.sphereNormalObject.ident baseSystem().machine.machineControl.sphereNormalObject.serialNo Forgot the second part of your question..... refSphereList=baseSystem().machine.sDO.tco.tcoSphereMgmt.GetAllReferenceSpheres for i = 1 to refSphereList.size display("Name= "+getParameterNamed(refSphereList,i).Id) display("Serial No= "+getParameterNamed(refSphereList,i).SerialNumber) display("Cal Date= "+getParameterNamed(refSphereList,i).DateOfCalibration) next i Link to comment Share on other sites More sharing options...
[Ja...] Posted September 9, 2022 Author Share Posted September 9, 2022 Those both worked, thanks. Ident returns the value as a number with decimals and serialNo returns just the name. I tired .sphereSerialNo. But I didn't think to drop the sphere part altogether. Link to comment Share on other sites More sharing options...
[Ph...] Posted September 9, 2022 Share Posted September 9, 2022 Does this work? baseSystem().machine.machineControl.sphereNormalObject.ident.rounded getParameterNamed(refSphereList,i).Id.asNumber.rounded) Link to comment Share on other sites More sharing options...
[Ja...] Posted September 9, 2022 Author Share Posted September 9, 2022 Lol. Yep. It all worked. Did you pull that all out of your head? Link to comment Share on other sites More sharing options...
[Ph...] Posted September 9, 2022 Share Posted September 9, 2022 Please sign in to view this quote. I did today..... But, that's only because I was playing around with stuff back in the day. Decided not to use it for anything constructive. Link to comment Share on other sites More sharing options...
[No...] Posted September 12, 2022 Share Posted September 12, 2022 Please sign in to view this quote. Voodoo 😡 Link to comment Share on other sites More sharing options...
[Mi...] Posted April 24 Share Posted April 24 Hello I would like to build further on this. What are the parameters for capturing a reference sphere's Tilt and Rotation? Regards, Mike Roterdam Link to comment Share on other sites More sharing options...
[Mi...] Posted April 25 Share Posted April 25 Please sign in to view this quote. baseSystem().machine.machineControl.sphereNormalObject.shaftDirection.inclinationAngle.asDEG baseSystem().machine.machineControl.sphereNormalObject.shaftDirection.rotationAngle.asDEG Link to comment Share on other sites More sharing options...
[Mi...] Posted April 25 Share Posted April 25 Michael thank you very much. Who is your source for all of this valuable PCM? I am sure you cannot reveal. 🙂 Regards Mike Roterdam Link to comment Share on other sites More sharing options...
[Mi...] Posted April 25 Share Posted April 25 Michael, sorry, forgot to ask to the getParameterNamed().variable information for tilt (inclination angle) and rotation. Please provide at your convenience. Regards, Mike Roterdam Link to comment Share on other sites More sharing options...
[An...] Posted April 29 Share Posted April 29 Please sign in to view this quote. Assuming that means in this format: Please sign in to view this quote. Get a medley of reference sphere data: refSphereList = baseSystem().machine.sDO.tco.tcoSphereMgmt.GetAllReferenceSpheres for i = 1 to refSphereList.size display("========================") display("Reference sphere: ", getParameterNamed(refSphereList, i).Id.asNumber.rounded) display(cr(), "--- Settings ---") display("Sphere radius: ", getParameterNamed(refSphereList, i).RadiusOfSphere) display("Serial Number: ", getParameterNamed(refSphereList, i).SerialNumber) display("X Offset: ", getParameterNamed(getParameterNamed(refSphereList, i).SpherePosition, 1)) display("Y Offset: ", getParameterNamed(getParameterNamed(refSphereList, i).SpherePosition, 2)) display("Z Offset: ", getParameterNamed(getParameterNamed(refSphereList, i).SpherePosition, 3)) display("Sigma: ", getParameterNamed(refSphereList, i).Sigma) display("Roundness (",chr(181),"m): ", getParameterNamed(refSphereList, i).RoundnessDeflexion) display("Update stylus d.: ", getParameterNamed(refSphereList, i).RecalcProbe) display("Shaft Radius: ", getParameterNamed(refSphereList, i).RadiusOfShaft) display("Virt. ref. sph.: ", getParameterNamed(refSphereList, i).IsVirtual) display("Cal Date: ", getParameterNamed(refSphereList, i).CalibrationDate.asDate) display("Temp. coeff.: ", getParameterNamed(refSphereList, i).CoefficientOfExpansion) display("Pos. valid: ", getParameterNamed(refSphereList, i).Valid) display(cr(), "--- Clearance Distance ---") display("-X: ", getParameterNamed(getParameterNamed(refSphereList, i).NegClearanceDistance, 1)) display("+X: ", getParameterNamed(getParameterNamed(refSphereList, i).PosClearanceDistance, 1)) display("-Y: ", getParameterNamed(getParameterNamed(refSphereList, i).NegClearanceDistance, 2)) display("+Y: ", getParameterNamed(getParameterNamed(refSphereList, i).PosClearanceDistance, 2)) display("-Z: ", getParameterNamed(getParameterNamed(refSphereList, i).NegClearanceDistance, 3)) display("+Z: ", getParameterNamed(getParameterNamed(refSphereList, i).PosClearanceDistance, 3)) display(cr(), "--- Tilt and rotation angle ---") display("Inclination angle: ", getParameterNamed(refSphereList, i).TiltAngle) display("Rotation angle: ", getParameterNamed(refSphereList, i).RotationAngle) next i Output: ======================== Reference sphere: 1 --- Settings --- Sphere radius: 15.0d Serial Number: 9999 X Offset: 0.0d Y Offset: 0.0d Z Offset: 0.0d Sigma: 0.0d Roundness (µm): 3.0d Update stylus d.: true Shaft Radius: 3.5d Virt. ref. sph.: false Cal Date: March 15, 2024 Temp. coeff.: 5.5d Pos. valid: true --- Clearance Distance --- -X: -25.0d +X: 25.0d -Y: -25.0d +Y: 25.0d -Z: -25.0d +Z: 25.0d --- Tilt and rotation angle --- Inclination angle: 135.0d Rotation angle: 135.0d ======================== Reference sphere: 2 --- Settings --- Sphere radius: 4.0d Serial Number: Mr.Sphere.2 X Offset: 300.0d Y Offset: -450.0d Z Offset: -375.0d Sigma: 0.0d Roundness (µm): 0.123456d Update stylus d.: true Shaft Radius: 1.5d Virt. ref. sph.: false Cal Date: April 26, 2024 Temp. coeff.: 5.5d Pos. valid: false --- Clearance Distance --- -X: -50.0d +X: 50.0d -Y: -25.0d +Y: 25.0d -Z: -75.0d +Z: 75.0d --- Tilt and rotation angle --- Inclination angle: 135.0d Rotation angle: 90.0d In the spirit of https://qualityforum.zeiss.com/topic/17112-getprobe-characteristics/?do=findComment&comment=95736, in the order they are used in PCM above: .Id .RadiusOfSphere .SerialNumber .SpherePosition .Sigma .RoundnessDeflexion .RecalcProbe .RadiusOfShaft .IsVirtual .CalibrationDate .CoefficientOfExpansion .Valid .NegClearanceDistance .PosClearanceDistance .RotationAngle .RotationAngleInRad .TiltAngle .TiltAngleInRad sphere.png Link to comment Share on other sites More sharing options...
[Mi...] Posted April 30 Share Posted April 30 Thank you for the great details...over and beyond! 🙂 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