hexagon logo

Yes No Comment Problem

I am having a problem when entering a yes/no comment input step into my program.
The program runs all the through with no problems when I click "NO" and enter the manual alignment.
When I click "YES" it skips the manual alignment measures my plane, but when it gets to my move point it wonders off like the vector are wrong.
I tried inserting a clearance plane and the arm wonders off as soon as it gets to the clearance plane in the program.
Is there something I am missing.
I just can't understand why it runs fine with the manual alignment, but when it's skipped it crashes.
I am new to pcdmis so go easy on me.
Thanks,

STARTUP =ALIGNMENT/START,RECALL:,LIST=YES
ALIGNMENT/END
MODE/MANUAL
FLY/ON,0.1181
FORMAT/TEXT,OPTIONS, ,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, ,
LOADPROBE/TIP#3
TIP/TIP1, SHANKIJK=0, 0, 1, ANGLE=0
C1 =COMMENT/YESNO,NO,Has the alignment changed?
IF_GOTO/C1.INPUT=="NO",GOTO = L1
PLANE1 =FEAT/PLANE,RECT,TRIANGLE
THEO/14.6673,0.0486,-19.2551,0.0037534,0.0027835,0.9999891
ACTL/14.6677,0.0324,-19.2542,0.006103,0.0046575,0.9999705
MEAS/PLANE,3
HIT/BASIC,NORMAL,14.1444,-0.4188,-19.2518,0.0037534,0.0027835,0.9999891,14.1441,-0.4844,-19.2486,USE THEO = YES
HIT/BASIC,NORMAL,14.3211,1.1118,-19.2568,0.0037534,0.0027835,0.9999891,14.3143,1.1301,-19.2571,USE THEO = YES
HIT/BASIC,NORMAL,15.5366,-0.5471,-19.2567,0.0037534,0.0027835,0.9999891,15.5446,-0.5485,-19.2568,USE THEO = YES
ENDMEAS/
LINE1 =FEAT/LINE,RECT,UNBND
THEO/13.6109,-0.4459,-19.3623,0.9999091,-0.0134803,0
ACTL/13.6416,-0.4458,-19.2848,0.9998849,-0.0151703,0
MEAS/LINE,2,WORKPLANE
HIT/BASIC,NORMAL,13.6112,-0.4459,-19.3621,0.0134803,0.9999091,0,13.6417,-0.4458,-19.2847,USE THEO = YES
HIT/BASIC,NORMAL,13.8335,-0.4489,-19.3625,0.0134803,0.9999091,0,13.8726,-0.4493,-19.2849,USE THEO = YES
ENDMEAS/
LINE2 =FEAT/LINE,RECT,UNBND
THEO/14.2015,-0.1812,-19.3627,0.0030642,0.9999953,0
ACTL/14.2015,-0.1884,-19.283,0.0030025,0.9999846,-0.0046759
MEAS/LINE,2,WORKPLANE
HIT/BASIC,NORMAL,14.2015,-0.1811,-19.3627,-0.9999953,0.0030642,0,14.2015,-0.1884,-19.2849,USE THEO = YES
HIT/BASIC,NORMAL,14.2041,0.6861,-19.3628,-0.9999953,0.0030642,0,14.2042,0.6922,-19.285,USE THEO = YES
ENDMEAS/
ALIGN1 =ALIGNMENT/START,RECALL:STARTUP,LIST=YES
ALIGNMENT/LEVEL,ZPLUS,PLANE1
ALIGNMENT/ROTATE,XPLUS,TO,LINE1,ABOUT,ZPLUS
ALIGNMENT/TRANS,XAXIS,LINE2
ALIGNMENT/TRANS,YAXIS,LINE1
ALIGNMENT/TRANS,ZAXIS,PLANE1
ALIGNMENT/END
L1 =LABEL/
MODE/DCC
MOVESPEED/ 90
TOUCHSPEED/ 1
PLANE2 =FEAT/PLANE,RECT,TRIANGLE
THEO/0.4734,0.4876,0.0002,0.0003825,0.0000655,0.9999999
ACTL/0.4728,0.488,0.0001,0.0003489,0.0000895,0.9999999
MEAS/PLANE,3
HIT/BASIC,NORMAL,-0.0436,-0.0111,0.0004,0.0003826,0.0000656,0.9999999,-0.0435,-0.0109,0.0003,USE THEO = YES
HIT/BASIC,NORMAL,0.0713,1.5689,0.0002,0.0003826,0.0000656,0.9999999,0.0705,1.5686,0.0001,USE THEO = YES
HIT/BASIC,NORMAL,1.3927,-0.0948,-0.0002,0.0003826,0.0000656,0.9999999,1.3915,-0.0938,-0.0002,USE THEO = YES
ENDMEAS/
MOVE/POINT,NORMAL,-0.5503,0.0799,0.1045
LINE3 =FEAT/LINE,RECT,UNBND
THEO/-0.5486,0.0001,-0.0341,0.9999999,-0.0003979,0
ACTL/-0.5481,0.0002,-0.0327,1,-0.0000634,0
MEAS/LINE,2,WORKPLANE
HIT/BASIC,NORMAL,-0.5483,0.0001,-0.0348,0.0003979,0.9999999,0,-0.5481,0.0002,-0.0331,USE THEO = YES
HIT/BASIC,NORMAL,-0.347,0,-0.0336,0.0003979,0.9999999,0,-0.3478,0.0002,-0.0323,USE THEO = YES
ENDMEAS/
LINE4 =FEAT/LINE,RECT,UNBND
THEO/0.0052,0.2732,-0.0283,-0.0121658,0.999926,0
ACTL/0.0053,0.2733,-0.0273,-0.0121568,0.9999261,0
MEAS/LINE,2,WORKPLANE
HIT/BASIC,NORMAL,0.0052,0.2733,-0.0302,-0.999926,-0.0121658,0,0.0053,0.2733,-0.0293,USE THEO = YES
HIT/BASIC,NORMAL,-0.0057,1.1714,-0.0262,-0.999926,-0.0121658,0,-0.0057,1.1713,-0.0252,USE THEO = YES
ENDMEAS/
ALIGN2 =ALIGNMENT/START,RECALL:ALIGN1,LIST=YES
ALIGNMENT/LEVEL,ZPLUS,PLANE2
ALIGNMENT/ROTATE,XPLUS,TO,LINE3,ABOUT,ZPLUS
ALIGNMENT/TRANS,XAXIS,LINE4
ALIGNMENT/TRANS,YAXIS,LINE3
ALIGNMENT/TRANS,ZAXIS,PLANE2
ALIGNMENT/END
Parents
  • Maybe I am reading this wrong, but shouldn't it skip the manual alignment if you say no?


    Yeah, I agree. That doesn't make sense. You ask "Has the alignment changed?" If running a 2nd part, you should click "No" and the program should take off in DCC Mode. Sounds like you click NO, and it goes to Manual Alignment... So of course it's then going to know where to go!!
Reply
  • Maybe I am reading this wrong, but shouldn't it skip the manual alignment if you say no?


    Yeah, I agree. That doesn't make sense. You ask "Has the alignment changed?" If running a 2nd part, you should click "No" and the program should take off in DCC Mode. Sounds like you click NO, and it goes to Manual Alignment... So of course it's then going to know where to go!!
Children
No Data