586,058 active members*
4,455 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2009
    Posts
    6028

    Local variables

    Is there a way to keep the local variable from resetting to zero? We use a lot of nesting and generic programs using variables, but would like them to stay active. Been through every parameter i could find, i did find a M99 won't re-set them, but reset will.

    Thanks.

  2. #2
    Join Date
    Nov 2007
    Posts
    188

    local variable

    I think you will have to use a Global variable #100 to #199 or #500 to #699 Globals even hold there value after the machine has been shut down reset will not affect them either they stay until you change them.

  3. #3
    Join Date
    May 2004
    Posts
    4519
    Switch to globals or assign the variable value inside of the program to be run.

  4. #4
    Join Date
    Feb 2009
    Posts
    6028
    Thanks! Global will work fine.

Similar Threads

  1. Are local variables "saved in memory"...
    By gogego in forum Okuma
    Replies: 5
    Last Post: 04-19-2011, 12:36 AM
  2. Local Variables?
    By TURNER in forum NCPlot G-Code editor / backplotter
    Replies: 2
    Last Post: 03-03-2008, 01:25 PM
  3. local variables of a macro
    By sinha_nsit in forum Fanuc
    Replies: 8
    Last Post: 01-16-2008, 01:19 PM
  4. Local variables
    By jorgehrr in forum G-Code Programing
    Replies: 4
    Last Post: 02-19-2007, 10:03 PM
  5. G65 local variables help
    By FanukRC in forum G-Code Programing
    Replies: 7
    Last Post: 07-26-2006, 12:00 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
  •