Results 1 to 5 of 5

Thread: Soliciting Haas Macro Advice

  1. #1
    Registered
    Join Date
    Jul 2009
    Location
    USA
    Posts
    25
    Downloads
    0
    Uploads
    0

    Soliciting Haas Macro Advice

    Hello all,

    I have another situation I need help with--this one is not so critical, though.

    The following concerns a Haas TM-1.

    I have no experience writing macros, but I'd like to have an alarm go off whenever the machine's M30 counter hits a certain number, then zero out the M30 counter.

    I'm aware that Haas controllers have a function for tool life where you can set an alarm threshold that goes off after a certain amount of tool changes, and that is exactly what I'm looking to do, but this routine doesn't require a tool change. Rather than writing a macro, is there a parameter to advance the tool usage counter when a tool is called, but not actually changed?

    Also, as a bonus question, I was wondering if there is a way to sound an audible alarm to warn an operator of the forthcoming end of a program, or if I have to install an alarm and connect it to one of the miscellaneous M code relays.

    Thanks again,
    MC


  2. #2
    Registered chucker's Avatar
    Join Date
    Nov 2007
    Location
    USA
    Posts
    173
    Downloads
    0
    Uploads
    0

    (TOOL LIFE ALARM) Marco

    Just put this in your program after the tool runs each time You can change the # numbers to use it on more than one tool #632 would be what you set for your limit of how many parts to run on the tool. I set this up for our mill
    the #1129,#1139 may be different on your machine try it in MDI the rest should work ok when the alarm is set off it will put a masage on the screen and put the machine in Feed hold
    O1234
    PART PROGRAM HERE


    #631= #631 + 1 (COUNTS 1 TIME EACH TOOL IS RAN)
    (TOOL LIFE ALARM)
    IF [ #631 GE #632 ] GOTO1000
    IF [ #631 LT #632 ] GOTO1001
    N1000
    #631= 0 (SET COUNTER TO ZERO)
    #1129= 1 (RED LITE ON)
    #1139= 1 (BUZZER ON)
    (ALARM STATEMENT)
    #3006= 1 (CHANGE 3/4 MILL)

    #1139= 0 (BUZZER ON OFF)
    #1129= 0 (RED LITE OFF)
    N1001
    NEXT TOOL PART PROGRAM HERE


  3. #3
    Registered
    Join Date
    Jul 2009
    Location
    USA
    Posts
    25
    Downloads
    0
    Uploads
    0
    Excellent. Thank you very much. I'll plug that in when I get a chance and test it out.


  4. #4
    Registered
    Join Date
    Jul 2009
    Location
    USA
    Posts
    25
    Downloads
    0
    Uploads
    0
    I'm looking to start incorporating more macros into my programming. Does anyone know where I would go to find a comprehensive list of macro variables? For example, how did you know that #1139 controls the buzzer, chucker?

    I program for both a Haas TM-1 and a Miyano with a Yasnac i-80 controller. Google isn't very helpful in this department. Is it something I'll have to go to the manufacturer for?


  • #5
    Registered chucker's Avatar
    Join Date
    Nov 2007
    Location
    USA
    Posts
    173
    Downloads
    0
    Uploads
    0
    Fanuc%20Variables(1).xls
    Quote Originally Posted by mcmachining View Post
    I'm looking to start incorporating more macros into my programming. Does anyone know where I would go to find a comprehensive list of macro variables? For example, how did you know that #1139 controls the buzzer, chucker?
    Things like #1139 can be found in your mantaince manaul the are called descrett inputs and outputs


  • Similar Threads

    1. Need Help!- Macro Advice - Customising Mach3
      By UKRobotics in forum Mach Wizards, Macros, & Addons
      Replies: 3
      Last Post: 12-06-2012, 06:13 PM
    2. Problem- Soliciting comments
      By Carlton Jenkins in forum Okuma
      Replies: 5
      Last Post: 07-14-2008, 01:06 PM
    3. Advice on a Haas VF0
      By mbpp in forum Haas Mills
      Replies: 1
      Last Post: 08-21-2007, 06:30 PM
    4. Haas VF3 Y cable fault error - advice?
      By JHR1 in forum Haas Mills
      Replies: 2
      Last Post: 05-27-2006, 09:05 PM
    5. Haas Vf-2,macro For Tool Life
      By Tulak in forum Haas Mills
      Replies: 0
      Last Post: 10-22-2004, 10:06 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.