Jump to content

possible to set nominal tolerance by condition in pcm?


---
 Share

Recommended Posts

Hi together,

is there a way to set nominal tolerance by condition?

this is my current script

selectCase getRecordHead("u_auft") 
	case "A" 
		setRecordHead("drawingno", "11111")
		setRecordHead("u_drawingindex", "A")
		setRecordHead("u_Aindex", "01")
	case "B"
		setRecordHead("drawingno", "22222")
		setRecordHead("u_drawingindex", "B")
		setRecordHead("u_Aindex", "02")		
	case "C"
		setRecordHead("drawingno", "33333")
		setRecordHead("u_drawingindex", "C")
		setRecordHead("u_Aindex", "03")	
	caseElse
		message("Auftrag [", getRecordHead("u_auft"), "] nicht bekannt!", chr(13),"Programm wird abgebrochen!")
		cncBreak()	
endSelect

 

reading tolerance value works great

display(getNominal("Feature").tolerance.upperTolerance)

(Wish) would be cool, if something like this would be possible

getNominal("Feature").tolerance.upperTolerance) = 0.15

 

Link to comment
Share on other sites

  • 3 weeks later...

The usual limit value is entered in the Lower and Upper Tol. fields.
Your reply sounds, i can set a variable in this fields or switch the fields to something.
Could you tell me how to edit this?

Link to comment
Share on other sites

Please sign in to view this username.

Are you asking how to set a variable to upper/lower tolerance or how to change those values?

Edited
edit
Link to comment
Share on other sites

setting variables should be like

feature_nominal = 10.0
feature_ltol = -0.2
feature_utol = 0.2

in pcm. ok?

but how to set/use the variable in the feature dialog? how to get this variable in the fields?

Link to comment
Share on other sites

If you have a pcm license, you would right click the relevant field and select "formula". Not all fields accept a formula input, but most do

Link to comment
Share on other sites

  • 2 weeks later...
 Share

×
×
  • Create New...