586,058 active members*
4,243 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Posts
    314

    macro b local variable

    Does local variable are reset to null a the end of program? I think there is some prm related to variable but i don't know wich one. Fanuc 0M-D

  2. #2
    Join Date
    Mar 2003
    Posts
    2932
    Here's the only information I can find on that (from the 0M-D Parameter Manual)
    Attached Thumbnails Attached Thumbnails 0M-D Macro Variables when Reset].jpg  

  3. #3
    Join Date
    Jun 2008
    Posts
    1511
    Some model Fanucs have a parameter for clearing them to null after M30 or reset and some do not. According the setting Dave has posted it is after reset but it says nothing about ending with M2 or end/rewind with M30. What you will probably have to do is run a program and try.

    #1=1
    M30---then try M2

    Do this with the parameter settings Dave gave you set both ways.

    Stevo

  4. #4
    Join Date
    Mar 2010
    Posts
    0
    Local variables get reset (set to vacant) on power down or by reset depending on the parameter. Most often the PMC ladder (machine tool builder) will create a reset on M02/M30. Therefore, M02/M30 may (or most often) will reset the local variables based on the parameter. The 0-MD parameter was given previously.

    The test provided will of course disclose all.

  5. #5
    Join Date
    Nov 2010
    Posts
    0

    Wink

    Only the lower # variables get reset. Try using #500. I've used it many times with no problem at all.
    Dan

Similar Threads

  1. Mazak Fusion 640 Local Variable Display
    By ggborgen in forum Parametric Programing
    Replies: 1
    Last Post: 10-31-2010, 09:33 AM
  2. Macro Variable Lock
    By James L in forum Haas Mills
    Replies: 2
    Last Post: 07-23-2009, 02:29 PM
  3. local variables of a macro
    By sinha_nsit in forum Fanuc
    Replies: 8
    Last Post: 01-16-2008, 01:19 PM
  4. Macro variable example I programmed today.
    By theemudracer in forum G-Code Programing
    Replies: 1
    Last Post: 03-08-2007, 03:50 AM
  5. Macro variable for current tool diam ?
    By Shizzlemah in forum Fadal
    Replies: 3
    Last Post: 10-30-2006, 03:47 PM

Posting Permissions

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