![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
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
| ||||
| ||||
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 |
|
#4
| |||
| |||
| 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
| ||||
| ||||
| Fanuc%20Variables(1).xls
Things like #1139 can be found in your mantaince manaul the are called descrett inputs and outputs |
| Sponsored Links |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem- Soliciting comments | Carlton Jenkins | Okuma | 5 | 07-14-2008 12:06 PM |
| Need Help!- Macro Advice - Customising Mach3 | UKRobotics | Mach Wizards, Macros, & Addons | 2 | 06-08-2008 06:09 PM |
| Advice on a Haas VF0 | mbpp | Haas Mills | 1 | 08-21-2007 05:30 PM |
| Haas VF3 Y cable fault error - advice? | JHR1 | Haas Mills | 2 | 05-27-2006 08:05 PM |
| Haas Vf-2,macro For Tool Life | Tulak | Haas Mills | 0 | 10-22-2004 09:06 AM |