Jump to content

Good method to cancel pcm script and measure program?


---
 Share

Recommended Posts

Hi all,

exist a good method to cancel a pcm script and measure program?

most times lot of deep if else endif are needed, when i want do lot of routines like checking, convert and verify an input string of part id.
or settings nominal and tolerance values for some features.

i wish, there is an exit or return and exit measure program command.
i don't like cncBreak() because this raises errors and put the cmm traffic light in red state.
I'm not sure, does endInspection() stop the complete measure program, or will i get a pdf protocol and dfq export?

do you have better methods?

i think maybe i should do somethin like this:
 

clearParameters()

bContinue = true

//Step 1
if (bContinue)
	//do this
	...
	//result bad
	bContinue = false	
end if

//Step 2
if (bContinue)
	//do other
	...
	//result bad
	bContinue = false	
end if

//Step 3
if (continue)
	//do something
	...
	//result bad
	bContinue = false	
end if

//Finish
if (bContinue == false)
	//stop 
	message("some bad things happen")
	cncBreak()
end if


 

Link to comment
Share on other sites

Thank you for your answer.
If i understand, the pdf protocol and qdas export executes in this case. That's not what i'd like.

Link to comment
Share on other sites

Ditto to what Lord Calypso said. endInspection is a much better command than cncBreak as cncBreak will "red-light" the machine/software. 

I have ran into some unique cases though where I could not get endInspection to reliably function, mainly things like inside of a repeat function. 

Link to comment
Share on other sites

 Share

×
×
  • Create New...