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
  • Sounds like you need new operators if they don't follow instructions.

    But seriously, couldn't they always cancel the program another way, like the E-Stop button? Someone here might talk you through how to create a custom form without a cancel, but it could be dangerous not to be able to stop the program at all.


    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)
Reply
  • Sounds like you need new operators if they don't follow instructions.

    But seriously, couldn't they always cancel the program another way, like the E-Stop button? Someone here might talk you through how to create a custom form without a cancel, but it could be dangerous not to be able to stop the program at all.


    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)
Children
No Data