how to use the GOTO command to GOTO A variable
Close
Login to Your Account
Likes Likes:  0
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2019
    Country
    UNITED KINGDOM
    Posts
    4
    Post Thanks / Like
    Likes (Given)
    0
    Likes (Received)
    0

    Default how to use the GOTO command to GOTO A variable

    How can I use the GOTO command to go to a variable instead of a N number. Or can I put a variable after the N number for the GOTO command to see?

  2. #2
    Join Date
    Sep 2010
    Location
    Victoria Australia
    Posts
    3,776
    Post Thanks / Like
    Likes (Given)
    0
    Likes (Received)
    1480

    Default

    Quote Originally Posted by mattjames74 View Post
    How can I use the GOTO command to go to a variable instead of a N number. Or can I put a variable after the N number for the GOTO command to see?
    Hello Matt,
    You don't give the make of the control involved, however, most follow the same syntax and rules as Fanuc.

    The GOTO Command us used to branch to a specified Sequence Number in the range 1 to 99999. The specification of the Sequence Number can be made with an explicit number, an expression, or a Variable. However, Sequence Numbers can't be referenced using variables. For example, the following is not allowed:

    N#10

    But a Sequence Number can be specified with a GOTO Command using a Variable in the following manner:

    GOTO#10

    If #10 had the value 20, then the above GOTO Command would have the program branch to N20. But it can't be used to Branch to an actual Variable, only a Sequence Number.

    Regards,

    Bill

  3. #3
    Join Date
    Jan 2019
    Country
    UNITED STATES
    State/Province
    Missouri
    Posts
    116
    Post Thanks / Like
    Likes (Given)
    9
    Likes (Received)
    33

    Default

    What is it you are trying to do by going to a variable?

  4. #4
    Join Date
    Jan 2014
    Country
    UNITED STATES
    State/Province
    Washington
    Posts
    4,847
    Post Thanks / Like
    Likes (Given)
    872
    Likes (Received)
    2611

    Default

    Quote Originally Posted by MoriMillMan View Post
    What is it you are trying to do by going to a variable?
    Don't know the OP's application but this is commonly used in engraving macros to branch to the program section that engraves a specific character

  5. #5
    Join Date
    Jan 2019
    Country
    UNITED STATES
    State/Province
    Missouri
    Posts
    116
    Post Thanks / Like
    Likes (Given)
    9
    Likes (Received)
    33

    Default

    Quote Originally Posted by Vancbiker View Post
    Don't know the OP's application but this is commonly used in engraving macros to branch to the program section that engraves a specific character
    Ah okay I was having a hard time figuring out an application.

    Thanks


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •