Jump to content

Result Element


---
 Share

Recommended Posts

---
Not sure what's going on but I'm seeing this when trying to use Result Element for probe info...PLS HELP
4495_16a4956600a6c951a31f5dcf73339963.png
Link to comment
Share on other sites

---
what happens if you put that same code in the pre or post settings of the program or feature?
or change the program to mm?
or change the result element from "Length" to "Number"?
or use the code to pull from a different probe?

Also, is it really "Master Probe"? all of mine are "MasterProbe"
Link to comment
Share on other sites

---
That value is typical of an error in the PCM you are using.
Try this:
getProbe("MasterProbe","1").stdProbeDev/25.4

The above is the format we are using v2022.
Link to comment
Share on other sites

---

Please sign in to view this quote.

Syntax error
getProbe("1","MasterProbe").stdProbeDev   
You have a space between "Master" and "Probe". This is invalid and the reason for the improper reporting value.

If you are ever unsure of your stylus reference formulas, change the stylus to active (simulation or CNC, doesn't matter) and use getProbe().`instance variable` but leave the ident/name area blank to query the active system.
getProbe().ident
or
getProbe().probeName
or
getProbe().probeIdent
= individual stylus name/number
getProbe().confName
= stylus system/configuration name

The rest of the syntax you have is correct.
getProbe("ident","confName").stdProbeDev

Please sign in to view this quote.

This syntax is invalid in all CALYPSO versions up through 2023 and will produce an error.
Link to comment
Share on other sites

---
Thanks guys! Both suggestions from Jeff & Rich were the solutions. I hadn't done this in ages and the last time I remember doing it the Stylus System was first and then the Stylus was second. Deleting the space in between Master Probe worked as well.

When and why in the heck would they change those things?
Link to comment
Share on other sites

---
Per the PCM code example it is Stylus Name first then Stylus System Name.
659_a9c15acb835b7ec45d4ff1f9d6e2e6c9.png
getProbe("1","MasterProbe").stdProbeDev 
659_5335a41993f9dca37c9f1c750ba3958b.png
getProbe("MasterProbe","1").stdProbeDev
659_f632007f18f47d7d3f343b9582852aca.png
Link to comment
Share on other sites

---
Calypsos standard response for errors wneh not running CNC is 9999. 9999 mm is equal to 393.6614173 inch. In other words there is something wrong with the syntax.
If you were to run the program in CNC mode you would get an error message instead of 9999.
Link to comment
Share on other sites

 Share

×
×
  • Create New...