Your Products have been synced, click here to refresh
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? [COLOR="red"] IF_GOTO/C1.INPUT=="NO",GOTO = L1[/COLOR] 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
Put a comment near the end of program.
Code something like
C5 = comment/yesno,"Measure another part?"
If c5 =="yes" goto L1
um....thinking it's not a good idea to skip manual alignment....the cmm has no idea where it is
I will give this a shot, but can anyone see why it crashes when it gets to my move/point. I just can't figure why it runs when I use the manual alignment, but not when I skip it. It runs through the plane1 fine until it gets to the move/point.
Don't think. There are numerous ways and reasons to skip a manual alignment.
When done properly, it is not an issue.
Are you probing the same features in the manual alignment and DCC alignment?
Looking at your code says no.
Scratch that. Looks like they are the same features.
Take the move point out.
Put the probe where you want the move point to be.
Create a new move point at that spot.
I think you are trying to make the probe move through the part.
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |