If_Goto Statements

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

  • If_Goto Statements

    Can anyone help me with If_Goto Statements? We have entered a comments that instruct the operator to enter a hand checked dimension, we would like to make a statement that says if that entry is less than or grater than the value entered it will go directly to the end of the program and will not check the part. Is this possible?

  • #2
    If_Goto

    Yes you can.......
    First, put a label "L1" at the very end of the program (Insert-> Flow Control Command-> Label)

    C1 =COMMENT/INPUT,NO,'ENTER DIMENSION REQUIRED'
    IF_GOTO/C1.INPUT<=10,GOTO = L1

    Program Body here.................

    L1 =LABEL/

    Comment


    • #3
      Heres a subroutine I use alot:

      START =LABEL/
      C1 =COMMENT/INPUT,NO,'What program do you want to run?
      ,1) Alignment
      ,2) Holes
      ,3) Short Program
      ,4) GRR
      ,5) End'
      IF_GOTO/C1.INPUT==1,GOTO = ALIGN
      IF_GOTO/C1.INPUT==2,GOTO = HOLES
      IF_GOTO/C1.INPUT==3,GOTO = SHORT
      IF_GOTO/C1.INPUT==4,GOTO = GRR
      IF_GOTO/C1.INPUT==5,GOTO = END
      ALIGN =LABEL/

      Comment

      Related Topics

      Collapse

      • Rodney Edmonds
        Help With If_GoTo
        by Rodney Edmonds
        Hello:

        I'm trying to write some code for the first time that will allow me to run multiple parts from the same program. Each has a different...
        01-19-2015, 01:46 PM
      • TKOFaith
        Yes/No Goto
        by TKOFaith
        I did a search, but didn't find anything that was helpful for me (maybe I used the wrong search words, who knows?). I want to use the input from a Yes/No...
        11-20-2013, 10:10 AM
      • jaymunday
        branching help.
        by jaymunday
        MENU_1 =COMMENT/INPUT,NO,Please chose 1...
        ,1.)Calibrate
        ,2.)Man Align
        ...
        03-20-2012, 12:19 PM
      • norville
        Scaled parts
        by norville
        I have to measure a huge family of parts wich have exactly same shape, but are scaled. Has anyone a good idea other than using tons of variables and ...
        10-08-2012, 03:11 PM
      • drako28
        GOTO LABEL Question.....
        by drako28
        Has anyone ever tried putting a GOTO label at the very end of your program to go back to the start of the program??? I've tried this in ver4.2mr1. The...
        10-25-2007, 03:21 PM
      Working...
      X