Results 1 to 8 of 8

Thread: macro

  1. #1
    Registered
    Join Date
    Aug 2008
    Location
    INDIA
    Posts
    15
    Downloads
    0
    Uploads
    0

    macro

    anyone can say the macro variable no for current tool in spindle?


  2. #2
    Registered luky's Avatar
    Join Date
    Oct 2008
    Location
    China
    Posts
    11
    Downloads
    0
    Uploads
    0
    I think it is #148,please check macro variable list as ATC.


  3. #3
    Registered dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2,502
    Downloads
    0
    Uploads
    0
    #148 is a local variable, not necessarily the tool # in the spindle.

    On a 21iM, #4120 is the active T# (last T read), not necessarily the tool # in the spindle.

    I'm not sure there IS a variable for the tool # in the spindle. You may have to store the T# in a 500 series variable, i.e.: #520=#4120 after the M06.


  4. #4
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1,509
    Downloads
    0
    Uploads
    0
    Sometimes the MTB will assign a variable for the current tool in the spindle. Check your parameter book from the MTB it should specify if they used one. If they did then it will probably be assigned to one of the input/output variables #1000-#1035 or #1100-#1135. If they did not use one Dcoupar is correct the best way to track the tool in the spindle is to write it to a variable in your tool change macro.

    Stevo


  • #5
    Registered luky's Avatar
    Join Date
    Oct 2008
    Location
    China
    Posts
    11
    Downloads
    0
    Uploads
    0
    Dear dcoupar,as your say,#148 is a local variable.on our Mori MC is #148=#4120 everytime as ATC.if your need system variable,please check my attached file.
    Attached Thumbnails Attached Thumbnails macro-fanuc16i_18i_21i_modal_inform.gif  


  • #6
    Registered
    Join Date
    Aug 2008
    Location
    INDIA
    Posts
    15
    Downloads
    0
    Uploads
    0

    thanks

    hi

    this is the best way to trace current tool in spindle but
    if #500 changed after m06 may not possible to trace the tool. ie restriction to change #500,

    thanks

    msantaji1




    Quote Originally Posted by dcoupar View Post
    #148 is a local variable, not necessarily the tool # in the spindle.

    On a 21iM, #4120 is the active T# (last T read), not necessarily the tool # in the spindle.

    I'm not sure there IS a variable for the tool # in the spindle. You may have to store the T# in a 500 series variable, i.e.: #520=#4120 after the M06.


  • #7
    Registered
    Join Date
    Jun 2008
    Location
    United States
    Posts
    1,509
    Downloads
    0
    Uploads
    0
    Lucky,
    What Dcoupar means is that #148 is not "Fanucs" variable for the current tool in the spindle as you stated. #4120 is also not the current tool in the spindle. You have this in your program because either the MTB wrote it to the tool change macro or a programmer did. #148 is specific for "your" machine but there is a bunch of ways this can be done. With using #148 this variable is cleared at power down. How do you know what tool is in the spindle at first power up?

    Msantaji1,
    What do you mean you can't change #500? You should be able to read and write to these variables. What kind of control are you using? You should be able to program right to these variables by #500=#4120. I would use #500 and above as these do not clear at power down.

    #1-#33 are local variable assignments. They clear at reset and power down.
    #100-#199 are common variables. They clear at power down.
    #500-#599 are permanent common variables. They stay until programmed to change.

    Stevo


  • #8
    Registered
    Join Date
    Jun 2006
    Location
    italy
    Posts
    46
    Downloads
    0
    Uploads
    0

    Talking BEST WAY

    Put #500=#4120 in tool change program for mill(9001)

    is the best way!!!

    Attention!!! dont use #500 in any other way!!!
    #500-#530 keep value when you turn off!!!

    I used this metod on my mill!!!


  • Similar Threads

    1. Macro
      By Get lucky in forum G-Code Programing
      Replies: 2
      Last Post: 08-01-2008, 11:59 AM
    2. Need Help!- Need a Macro-pro
      By Ceramic Man in forum Haas Lathes
      Replies: 6
      Last Post: 03-06-2008, 05:09 PM
    3. Convert Fanuc Macro to Fadal Macro
      By bfoster59 in forum Fadal
      Replies: 1
      Last Post: 11-09-2007, 12:41 AM
    4. Macro
      By gm3211 in forum Mazak, Mitsubishi, Mazatrol
      Replies: 2
      Last Post: 09-06-2007, 08:02 AM
    5. Macro A
      By StinkFish in forum Fanuc
      Replies: 8
      Last Post: 08-08-2007, 10:19 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.