Results 1 to 5 of 5

Thread: macro b local variable

  1. #1
    Registered samu's Avatar
    Join Date
    Feb 2007
    Location
    quebec
    Posts
    264
    Downloads
    0
    Uploads
    0

    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
    Registered dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2,504
    Downloads
    0
    Uploads
    0
    Here's the only information I can find on that (from the 0M-D Parameter Manual)
    Attached Thumbnails Attached Thumbnails macro b local variable-0m-d_macro_variables_reset%5D.jpg  


  3. #3
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1,509
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Mar 2010
    Location
    USA
    Posts
    18
    Downloads
    0
    Uploads
    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
    Registered
    Join Date
    Nov 2010
    Location
    USA
    Posts
    55
    Downloads
    0
    Uploads
    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, 04:33 AM
    2. Macro Variable Lock
      By James L in forum Haas Mills
      Replies: 2
      Last Post: 07-23-2009, 09:29 AM
    3. local variables of a macro
      By sinha_nsit in forum Fanuc
      Replies: 8
      Last Post: 01-16-2008, 07:19 AM
    4. Macro variable example I programmed today.
      By theemudracer in forum G-Code Programing
      Replies: 1
      Last Post: 03-07-2007, 09:50 PM
    5. Macro variable for current tool diam ?
      By Shizzlemah in forum Fadal
      Replies: 3
      Last Post: 10-30-2006, 09:47 AM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.