Jump to content

Avoid Measurement If Feature is Obstructed?


Recommended Posts

Hi
I'm trying to write a production program, where there is a possibility a hole may be obstructed due to a a "washer key" being installed. Is there a way to avoid probing the feature if the operator has flagged that it is obstructed?

here is my code so far in relation to "flagging":

WK = confirm("Does part have Washer Keys in the Ø " + M3_Nom + " hole?")
if WK == true then
Text2 = "Unable to check E08_0007DIAM_001_001 due to Washer Key obstruction in Ø " + M3_Nom + [color=#FF00FF]"hole"[/color])
[color=#0000FF]message[/color]([color=#00BF40]Text2[/color])
[color=#FF8000]endif else[/color]
[color=#FF8000]if[/color] [color=#00BF40]WK[/color] == [color=#FF8000]false then[/color]
[color=#00BF40]Text2[/color] = [color=#FF00FF]"No obstruction recorded in Ø "[/color] + [color=#00BF40]M3_Nom[/color] + [color=#FF00FF]"hole"[/color]
[color=#0000FF]message[/color]([color=#00BF40]Text2[/color])
[color=#FF8000]endif[/color]
hahaha! It's an idea, but i'd like to be able to completly bypass the measurement.

It seemed to work on the Offline station, but whilst proving out the program on the machine it wanted to measure the holes regardless of the answer. Am I missing something?
If you wish to make it idiot-proof. Missing bore is the way to go. Otherwise it's a 50% chance they mess up... And no one likes those odds...

But as you still seems to wish to have operator input. Go with clarke's way.
Make your question select the mini-plan with setRunID().
If you want to use conditions on characteristics and still run from feature list you can use the same condition on all the strategies inside the feature. I don't remember if Calypso just skips the whole feature of if it just goes to the clearance position. I think it just skips it altogether.

Please sign in to view this quote.

I managed to do that method, however you can't add the condition to the Clearance Position and because it is in a loop using the rotary table, it just rotates in a weird stepped fashon around 360° without probing. It works, but just looks odd.
  • 4 weeks later...
×
×
  • Create New...