Jump to content

Active Sphere Name/Number


Recommended Posts

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
https://qualityforum.zeiss.com/topic/5774-active-sphere-namenumber/
Share on other sites

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
  • 1 year later...

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

×
×
  • Create New...