Jump to content

What parameter X?


---
 Share

Recommended Posts

Keeping my code simple to follow.

I have this, and it works fine to select a probe system:

//Begin Probe selection2 05.13.25
Bore_SystemX==bore_system
if getRecordHead("u_PartNumb")=="00-972938"
Bore_SystemX=bore_system2
endif
if getRecordHead("u_PartNumb")=="3031879-001"
Bore_SystemX=bore_system2
endif
if getRecordHead("u_PartNumb")=="00-971497"
Bore_SystemX=bore_system
endif

So, then I adapt all that to select a stylus tip:

DatumA_TipX==datum_a_tip
if getRecordHead("u_PartNumb")=="00-972938"
DatumA_TipX=datum_a_tip2
endif
if getRecordHead("u_PartNumb")=="3031879-001"
DatumA_TipX=datum_a_tip2
endif
if getRecordHead("u_PartNumb")=="00-971497"
DatumA_TipX=datum_a_tip
endif

The first set of code executes as planned.

the second set, the bastard cousin, prompts with an error.

Please sign in to view this quote.

What parameter X? There is no parameter X and hasn't been a parameter X. Unless "X" is some generic character in the error prompt?

If I remove the character "X" from the second set of code, I get the same error.

:classic_blink:

Any assistance is appreciated.

Link to comment
Share on other sites

What I have learned.

For some reason PCM doesn't like the variable "datum_a_tip2", although it is clearly defined in the para file.

Snippet of para file:

PN = "00-972938"
bore_system="5x75"
bore_system2="6mm"
kidney_system="3x50"
datum_a_tip=3
datum_a_tip2=5_-X
num_bores=11

datum_a-tip2=5_-X

 

and just like that I see the light.

The stylus tip needs to be the index number, in this case '5", not what I named it.

  • Like! 2
Link to comment
Share on other sites

make sure that when you are working with styli in PCM that you are using the proper format.  There are names, there are numbers, there are names + numbers, strings, ID codes and lists/arrays.

A few:

getProbe().confName
getProbe().probeName
getProbe().probeNameNumber
getProbe().ident
getProbe().probeIdent
getProbe().displayString
getProbe().stylusID

Link to comment
Share on other sites

 Share

×
×
  • Create New...