![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Fanuc Discuss Fanuc controllers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Hi all, I have an odd thing occurring with the auto coolant on my fanuc om series controlling my Leadwell machine center. The coolant switches on at the start and off at the end of the program as you would expect, but when the M30 program end code is read the coolant switches on again. Has anyone experienced this before? I can avoid the problem by leaving out the M30 code at the end of the program, is doing this likely to cause any issues? Thanks |
|
#2
| ||||
| ||||
| I suppose it is possible that the problem could be a logic problem, where the state of the coolant motor relay is simply inverted when the M30 is executed, based on the assumption that the coolant was on. Was the coolant on with the last tool in the program, or was it off? Do you usually command the coolant on/off with every tool change? Have you tried turning the coolant off with an M09 at the end of the program?
__________________ First you get good, then you get fast. Then grouchiness sets in. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#3
| |||
| |||
| I have been playing with a basic test program and re-arranging the M09 to different parts of the program to switch off the coolant, nothing appears to work other than deleting the M30 line of code which brings up a 008 error code. Looking at my manuals, the error codes jump from 007 to 009, so I assume it must be a code initiated by the MTB. Again nothing in the MTB manual about a 008 error code. I also tried switching the coolant on at the end of the program hoping that the logic which appears to occur in M30 line would actually switch it off...no luck. Program I have been playing with is: % O0011 (PROGRAM NAME - TEST) N100G21 N102G0G17G40G49G80G90 (TOOL - 1 DIA. OFF. - 1 LEN. - 1 DIA. - 10.) N104T1M6 N106G0G90G54X23.76Y-25.39S500M3 N108G43H1Z1.M8 N110G99G81Z-1.R1.F500. N112G80 N114M5 N116G91G28Z0.M9 N118G28X0.Y0. N120M30 % Any other ideas? Thanks |
|
#4
| |||
| |||
| This might be kind of dumb but. Have you tried putting the M9 code in a block all by itself? Also maybe try using a M2 at the end of the program instead of the M30. It will not rewind the program but it does the trick of ending it. Stevo |
|
#5
| |||
| |||
| I tried putting the M9 in its own block and the M2 command at the end and still had the same issue. I noticed in the MTB manual a M0 command for program stop. I tried M0 at the end of the program and the coolant stayed off. Does the M0 command have a similar function as M30? If so this should solve my problem. Thanks for the help |
| Sponsored Links |
|
#6
| |||
| |||
| The M0 is a program stop. This is typically input in a program when you want to stop to check a dimension,tool ect. Once cycle start is pressed it will continue on with the program. You could use this if you wanted to but you will have to press reset after it reads the M0 to get back to the beginning of the program. If you push cycle start at this point you will get the same error you were getting when you removed the M30 from the end of the program. Stevo |
|
#7
| ||||
| ||||
| Well, for what it's worth, here's the explanation of alarm 008. You might try to end your program as shown below. The machine should stop at N120, then when you cycle start, it will jump back to the beginning of the program and run another cycle. N116G91G28Z0.M9 N118G28X0.Y0. N120M00 N121M99 % |
|
#9
| ||||
| ||||
| It certainly sounds with something overlooked by the OEM in programming the ladder. If this is a current machine, try dropping a line to Leadwell support and see if this problem has occurred since and been rectified. They may send you a new Ladder cassette. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
![]() |
| 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 |
| Need Help!- Is M8 common Code for coolant? | SpeedsCustom | LinuxCNC (formerly EMC2) | 15 | 04-03-2008 08:13 PM |
| Robot quirk...Multiplex 6200 (Y) | CNCMP Scott | Mazak, Mitsubishi, Mazatrol | 2 | 02-07-2008 06:30 AM |
| M code for coolant | SIG | Daewoo/Doosan | 5 | 11-29-2007 09:51 PM |
| How to control coolant by G code? | Simonetz Tamás | Syil Products | 9 | 09-03-2007 12:44 PM |
| Mathematical Quirk? | Jim Estes | BobCad-Cam | 3 | 12-10-2005 11:26 PM |