Jump to content

pcm question


---
 Share

Recommended Posts

---
Hello, everyone !
I have a question.

We used pcm to check the product location before measuring and then proceed with the measurement.

1. After setting the product due to operator error , The setting jig was not removed.
2.The product location was correct, but a collision occurred because the setting jig was not removed.
3. Here I am going to create random points on the setting jig.

Measurement stops when any point is touched,
If the touch does not work, I want to continue measuring.

// Test piece

measure("Z")
if abs(getNominal("Z").z - getActual("Z").z) < 2 then
measure("Y")
if abs(getNominal("Y").y - getActual("Y").y) < 2 then
measure("X")
if abs(getNominal("X").x - getActual("X").x) < 2 then
goto PieceOK
endif
endif
endif


This is an example of checking the current product location.
If the touch does not work, proceed. Is coding possible?

Thank You.
Link to comment
Share on other sites

  • 2 weeks later...
---
I believe what you are looking for is "Material detection" and "Continue at missing probing".

These can be set in the Measurement Plan Editor under "Probing". If you intend to allow the machine to continue without taking a point then you must enable "Continue at missing probing". This is a similar process to "Bore Missing" but works in the opposite fashion. A sample of what is possible is below.

Note: This REQUIRES that "Continue at missing probing" is enabled for point features being called by PCM here.
//--------------------------------------------Error Proofing---------------------------------------------------------------------------
//Error Proofing - skips if simulation - Material detection formula errors in simulation otherwise
if getRecordHead("operator") == ("User") then  //forces "User" to run errors proofing
if getRecordHead("dmesn") <> ("000000") then  //skips if simulation

// verify REF sphere was removed
	measure("Point Ref Sphere PCM").z
		if getActual("Point Ref Sphere PCM").materialDetected == true then 
			positionCMM(30,-30,-30,"Z","X","Y")	
			message("REMOVE CAL SPHERE"+cr()+"Please Try Again")
			cncBreak()
			endif

//	check if part is there
	measure("Point1").y
	if getActual("Point1").materialDetected == false then 
		positionCMM(30,-30,-30,"Z","X","Y")	
		message("Part Not Present"+cr()+"Please Try Again")
		cncBreak()
		endif

//	check if fixture is clamped - 1 of 
	measure("Point Clamp1").y
	if getActual("Point Clamp1").materialDetected == false then 
		positionCMM(30,-30,-30,"Z","X","Y")	
		message("Clamp not closed"+cr()+"Check Clamp"+cr()+"Please Try Again")
		cncBreak()
		endif

//create plane from fixture test points.  Recall points into plane to validate squareness of part to fixture
	if abs(deg(getActual("START Plane Recall").a1)) > 1.00 then
		positionCMM(30,-30,-30,"Z","X","Y")	
		message("Part Not Fixtured Properly"+cr()+"Please Try Again")
		cncBreak()
	endif
	if abs(deg(getActual("START Plane Recall").a2)) > 1.00 then
		positionCMM(30,-30,-30,"Z","X","Y")	
		message("Part Not Fixtured Properly"+cr()+"Please Try Again")
		cncBreak()
		endif
	endif
endif  //end error proofing checks section
Link to comment
Share on other sites

---
Hello, Jeff Penrod

I want to measure when I don't touch the product, and stop when I touch it.
Link to comment
Share on other sites

 Share

×
×
  • Create New...