585,605 active members*
3,171 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2013
    Posts
    23

    Accessing Macro Variable from another macro

    Hi is it possible to access a variable assigned in one macro from a different macro?

    M810.m1s
    Dim MyVariable

    MyVariable=123.456


    M811.m1s
    Dim MyNewVariable
    MyNewVariable=MyVariable/2

    ex-egll

  2. #2
    It would depend on the machine you are running. In the Fanuc machines I run the variables are stored in the machines variable list. The values will stay in those variables until the machine is powered down or overwritten.
    I can set a value in variable #100 and then call it from any program in place of a value.

    Brad English
    fanucmilling.com

Similar Threads

  1. Macro b variable order
    By Diggitdude in forum Parametric Programing
    Replies: 4
    Last Post: 01-13-2014, 06:02 AM
  2. Macro/Variable Programing
    By chadr03 in forum WinCnc
    Replies: 1
    Last Post: 02-02-2011, 02:00 PM
  3. macro b local variable
    By samu in forum Fanuc
    Replies: 4
    Last Post: 12-19-2010, 12:55 AM
  4. Macro Variable Lock
    By James L in forum Haas Mills
    Replies: 2
    Last Post: 07-23-2009, 02:29 PM
  5. Macro variable example I programmed today.
    By theemudracer in forum G-Code Programing
    Replies: 1
    Last Post: 03-08-2007, 03:50 AM

Posting Permissions

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