hexagon logo

i need a work around for the "Cancel" Button.

I have been searching for a possible solution to my problem and not had a whole lot of luck. For starters I have 7107 silver advantage CMM with 2014.1 PC DMIS. My problem is that i need a way to ask for an operator input of "YES" or "NO" without the operator having the ability to use the "Cancel" button that is in the input pop up screen. I need a definitive way to get a YES or NO answer without the operator being able to hit cancel and stop the program instead of answering. Any suggestions would be greatly appreciated
.
Parents


  • The CANCEL in the execution box isn't the same thing.

    You CAN keep them from ignoring (canceling) that using CODE. Easiest way off the top of my head is to use numeric values as inputs (and clear previous instances in a setup menu). Such as:
    1) YES
    2) NO
    And then put a label BEFORE the input and IF/GOTO after so that if they don't enter a valid number, it just keeps looping through that comment/input

    here is an example I did for a part that may or may not have nuts put in it:

    L1 =LABEL/
    C1 =COMMENT/INPUT,NO,'1 = NUTS
    ,2 = NO NUTS'
    ASSIGN/V1 = C1.INPUT
    IF_GOTO/V1<1,GOTO = L1
    IF_GOTO/V1>2,GOTO = L1


    If a number less than 1 is entered or a number greater than 2, it loops back to label L1 and asks again.
    (later in the program I use the value to branch for nuts or no-nuts)


    This is the setup that we are currently using. the problem is in the comment input box that opens up. That comment box has a place to put in the input value and it has an OK button to accept the information or a Cancel button that just ends the program where its at. I need a way that the operator is not able to press the cancel button in the input pop up box.
Reply


  • The CANCEL in the execution box isn't the same thing.

    You CAN keep them from ignoring (canceling) that using CODE. Easiest way off the top of my head is to use numeric values as inputs (and clear previous instances in a setup menu). Such as:
    1) YES
    2) NO
    And then put a label BEFORE the input and IF/GOTO after so that if they don't enter a valid number, it just keeps looping through that comment/input

    here is an example I did for a part that may or may not have nuts put in it:

    L1 =LABEL/
    C1 =COMMENT/INPUT,NO,'1 = NUTS
    ,2 = NO NUTS'
    ASSIGN/V1 = C1.INPUT
    IF_GOTO/V1<1,GOTO = L1
    IF_GOTO/V1>2,GOTO = L1


    If a number less than 1 is entered or a number greater than 2, it loops back to label L1 and asks again.
    (later in the program I use the value to branch for nuts or no-nuts)


    This is the setup that we are currently using. the problem is in the comment input box that opens up. That comment box has a place to put in the input value and it has an OK button to accept the information or a Cancel button that just ends the program where its at. I need a way that the operator is not able to press the cancel button in the input pop up box.
Children
No Data