Yes/No Operator comment - Cancel variable?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Yes/No Operator comment - Cancel variable?

    Morning Gents/Ladies.

    I'm building a calibration program where the operator should press YES/NO, yet there is an option to cancel which will cancel the program and leave the code up, I want to make it "idiot proof".

    I was going to use an if C1.INPUT == "Cancel" then programend.

    Is there anything similar? I.e. does PC DMIS store the cancel to be called upon a variable.

  • #2
    C1.INPUT == "Cancel" then programend.


    I don't follow - if that worked it would do the same as the cancel button (i,e cancel; prog but leave it open/visible)
    Applications Engineer
    Hexagon UK

    Comment


    • #3
      Sorry, I just proof read my first post and it's a bit wishy washy.

      C1.INPUT =="Cancel" then program end.

      This didn't work and isn't directly what I want. Instead of program end is there a command which will then close PC-DMIS down so that the part program isn't left open but not running when cancel is pressed.

      Comment


      • #4
        Dont use yes/no input

        use regular input statement

        L1 =LABEL/
        c1.input = comment/input,no,full screen=no,'blah, blah, blah, Y/N?'
        if/UPPERCASE(c1.input)=="Y" or UPPERCASE(c1.input)=="N"
        GOTO/CONTINUE
        END/IF
        GOTO/L1
        CONTINUE=LABEL/

        B&S CHAMELEON/PCDMIS CAD++ V2011

        There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

        sigpic

        Comment


        • #5
          All good suggestions. Ninja is right, when you ise input comment it has all three yes, no, cancel. So you really only need one comment input. If yes, it does this, if no it skips and does this, and cancel will cancel the program.
          B&S One
          PC-DMIS CAD v2014

          Romer Infinity

          Comment


          • #6
            I see, you don't just want to end the program, you also want to close the program or close PC-DMIS. I'm not aware of a command that will do this. You might have to run a script to accomplish that.

            Comment


            • #7
              Does the same happen in Operator Mode?
              AndersI
              SW support - Hexagon Metrology Nordic AB

              Comment

              Related Topics

              Collapse

              Working...
              X