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
  • I am having a problem when entering these steps 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,


    Best bet would be to start a new thread and post your code.
    Perhaps we can see where the error is.
    There are lots of things that could be happening.
    Is the part in the same spot?
    Is the manual alignment correct?
    Even though you aren't running the manual alignment, PC-DMIS recognizes that as the alignment until it comes to the next one.
Reply
  • I am having a problem when entering these steps 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,


    Best bet would be to start a new thread and post your code.
    Perhaps we can see where the error is.
    There are lots of things that could be happening.
    Is the part in the same spot?
    Is the manual alignment correct?
    Even though you aren't running the manual alignment, PC-DMIS recognizes that as the alignment until it comes to the next one.
Children
No Data