Quantcast
Channel: PC-DMIS User Forum - Forums
Viewing all articles
Browse latest Browse all 11658

Probe hit not occured variable ?

$
0
0
Hi,

I'm trying to use a label to bypass this error message (when the part is missing) :
Click image for larger version  Name:	Capture hit not occured within probe limit.PNG Views:	2 Size:	35.4 KB ID:	434664
And display a message to the operator showing that no part is mounted on the fixture.

Is there a variable for this error ?

Thank you.




Here is the code :


ONERROR/UNEXPECTED_HIT,GOTO L3
ONERROR/PROBE_MISS,GOTO L3
------------------------------------------------------------------------------------------
PNT_TEST =FEAT/POINT,CARTESIAN
THEO/<88.3547,-53.5647,80>,<0,0,1>
ACTL/<88.3562,-53.5686,72.7373>,<0,0,1>
MEAS/POINT,1,WORKPLANE
MOVE/CLEARPLANE
HIT/BASIC,NORMAL,<88.3547,-53.5647,72.72>,<0,0,1>,<88.3562,-53.5686,72.7373>,USE THEO=YES
ENDMEAS/
ASSIGN/V1=73.72
ASSIGN/V2=71.72
IF_GOTO/PNT_TEST.Z.MEAS <= V1 AND PNT_TEST.Z.MEAS >= V2,GOTO = L4
IF_GOTO/PNT_TEST.Z.MEAS >= V1 OR PNT_TEST.Z.MEAS <= V2,GOTO = L3
L3 =LABEL/
MOVE/CLEARPLANE
MOVE/POINT,NORMAL,<0,0,250>
GOTO/L1
L4 =LABEL/ => PROG START IF THE PART IS MOUNTED ON THE FIXTURE



I'd like the prog to jump at L3 when no part is mounted ont the fixture, but it keeps displaying the initial message on the picture.

Viewing all articles
Browse latest Browse all 11658

Trending Articles