hexagon logo

Yes No Input comments

Is it possible to use a YES/NO comment to branch around a portion of a program? I don't want to have to do any gymnastics to get this done. I have a program that runs sub assemblies and one of these subs sometimes has a bracket on it that I want to skip the measurements on IF it isn't there.

I'm thinking something like

IF C1.INPUT = "NO" then goto XXXXX

I keep getting an "invalid number entered" error.

Thanks,

Bill
Parents
  • Bill,

    Here is what I do....

    C1 =COMMENT/YESNO,Run Manual Alignment?
    IF_GOTO/C1.INPUT=="NO",GOTO = L1
    F1 =FEAT/PLANE,RECT
    THEO/15.0317,-19.4311,-17.3088,-0.0003581,-0.0177169,0.999843
    ACTL/3.863,-18.5774,-17.2303,-0.0085609,-0.0024601,0.9999603
    MEAS/PLANE,3
    HIT/BASIC,14.4963,-19.556,-17.3112,-0.0003581,-0.0177169,0.999843,3.3072,-18.7043,-17.2354
    HIT/BASIC,14.4965,-19.3689,-17.3079,-0.0003581,-0.0177169,0.999843,3.3074,-18.514,-17.2349
    HIT/BASIC,16.1023,-19.3684,-17.3073,-0.0003581,-0.0177169,0.999843,4.974,-18.5129,-17.2206
    ENDMEAS/
    F2 =FEAT/LINE,RECT,UNBND
    THEO/14.4062,-19.6311,-17.4194,0.9999983,-0.0018271,0
    ACTL/3.2681,-18.7563,-17.2851,0.9998809,-0.0154331,0
    MEAS/LINE,2,WORKPLANE
    HIT/BASIC,14.4062,-19.6311,-17.4194,-0.0018271,-0.9999983,0,3.2679,-18.7563,-17.2851
    HIT/BASIC,16.1373,-19.6343,-17.4195,-0.0018271,-0.9999983,0,5.0043,-18.7831,-17.2851
    ENDMEAS/
    F3 =FEAT/POINT,RECT
    THEO/14.5718,-19.4765,-17.4179,1,0,0
    ACTL/3.3903,-18.6441,-17.2851,0.9999991,0.0009556,0.0009556
    MEAS/POINT,1
    HIT/BASIC,14.5718,-19.4765,-17.4179,1,0,0,3.3903,-18.6441,-17.2851
    ENDMEAS/
    A0 =ALIGNMENT/START,RECALL:STARTUP, LIST= YES
    ALIGNMENT/LEVEL,ZPLUS,F1
    ALIGNMENT/ROTATE,XPLUS,TO,F2,ABOUT,ZPLUS
    ALIGNMENT/TRANS,XAXIS,F3
    ALIGNMENT/TRANS,YAXIS,F2
    ALIGNMENT/TRANS,ZAXIS,F1
    ALIGNMENT/END
    MODE/DCC
    L1 =LABEL/


    I use this all the time. I set the part up on my Rayco plate. I run the first one. Then tell the operator to always answer NO. The program goes right into the measurement stage (skips the section that is red). Is this what you were trying to say?
Reply
  • Bill,

    Here is what I do....

    C1 =COMMENT/YESNO,Run Manual Alignment?
    IF_GOTO/C1.INPUT=="NO",GOTO = L1
    F1 =FEAT/PLANE,RECT
    THEO/15.0317,-19.4311,-17.3088,-0.0003581,-0.0177169,0.999843
    ACTL/3.863,-18.5774,-17.2303,-0.0085609,-0.0024601,0.9999603
    MEAS/PLANE,3
    HIT/BASIC,14.4963,-19.556,-17.3112,-0.0003581,-0.0177169,0.999843,3.3072,-18.7043,-17.2354
    HIT/BASIC,14.4965,-19.3689,-17.3079,-0.0003581,-0.0177169,0.999843,3.3074,-18.514,-17.2349
    HIT/BASIC,16.1023,-19.3684,-17.3073,-0.0003581,-0.0177169,0.999843,4.974,-18.5129,-17.2206
    ENDMEAS/
    F2 =FEAT/LINE,RECT,UNBND
    THEO/14.4062,-19.6311,-17.4194,0.9999983,-0.0018271,0
    ACTL/3.2681,-18.7563,-17.2851,0.9998809,-0.0154331,0
    MEAS/LINE,2,WORKPLANE
    HIT/BASIC,14.4062,-19.6311,-17.4194,-0.0018271,-0.9999983,0,3.2679,-18.7563,-17.2851
    HIT/BASIC,16.1373,-19.6343,-17.4195,-0.0018271,-0.9999983,0,5.0043,-18.7831,-17.2851
    ENDMEAS/
    F3 =FEAT/POINT,RECT
    THEO/14.5718,-19.4765,-17.4179,1,0,0
    ACTL/3.3903,-18.6441,-17.2851,0.9999991,0.0009556,0.0009556
    MEAS/POINT,1
    HIT/BASIC,14.5718,-19.4765,-17.4179,1,0,0,3.3903,-18.6441,-17.2851
    ENDMEAS/
    A0 =ALIGNMENT/START,RECALL:STARTUP, LIST= YES
    ALIGNMENT/LEVEL,ZPLUS,F1
    ALIGNMENT/ROTATE,XPLUS,TO,F2,ABOUT,ZPLUS
    ALIGNMENT/TRANS,XAXIS,F3
    ALIGNMENT/TRANS,YAXIS,F2
    ALIGNMENT/TRANS,ZAXIS,F1
    ALIGNMENT/END
    MODE/DCC
    L1 =LABEL/


    I use this all the time. I set the part up on my Rayco plate. I run the first one. Then tell the operator to always answer NO. The program goes right into the measurement stage (skips the section that is red). Is this what you were trying to say?
Children
No Data