Calypso - Condition Based on Confirm Statement
Create your alignment, in our case datums A-B-C. Here are our features.
When this program is ready to run you will need to be run from the Characteristic list.
Here are our Characteristics. the Flatness and Perpendicularity are our datums. The 35 Deg Bore and the .875 Bore are the characteristics we will target.
Select the Diameter_35 Deg Angle Bore in the Characteristics and right-click. Click on Parameter. In the Presettings add the following code.
PCM Code.
question=confirm("Is the 35 deg Angle Bore Present")
if question == True then
message("You have confirmed the bore is present")
endif
if question == False then
message("You have confirmed the bore is NOT present")
endif
Now go to the Diameter_35 Deg Angle Bore in the Characteristic list and right click. Select Condition. Right click in the top window and select Formula. Enter this formula.
What to expect. Yes, (it does exist) the CMM will measure the 35 Deg Bore. No, (does not exist) it will skip the 35 Deg Bore and move to the .875 diameter.
Alternative method: the PCM code was added to the feature. Instead, it could be added to the Presettings of the program.