What's new
What's new

Fanuc M code restricted from running in auto by parameter or MTB?

yardbird

Titanium
Joined
Jul 3, 2013
Location
Indiana
My machine has a Mcode that puts it in service mode witch allows me to run the spindle with the door open. Polish and knock burs off threads and such. At the end of my programs I set the gear, rpm and direction before the M30 so I can execute the Mcode in MDI and hit spindle start all is good.

I can only get the machine to take this code in MDI. In auto it just sits there and does nothing no alarm or anything.

OK so I'm thinking it's a protected code and just won't read it in automatic. Parameter setting maybe idk?

Then I thought I wouldn't call that code in auto but try to hid it in a custom M code. M499 has the gear range, direction and RPM and the code. Works perfectly in MDI but in auto same shit.

The reset button cancels service mode returns it back to normal operating condition. The funny thing is that I can start a program in automatic mode with the machine already in service mode condition and it runs without issue until the M30 witch then takes again out of service mode.

Anybody have any ideas how to get around this?

Thanks as always fellas...

Brent

Edit: control Fanuc Oi-TD
 
Last edited:

Pipes

Hot Rolled
Joined
Feb 16, 2007
Location
Rhode Island, USA
Check to see if the M code is running a Macro. If it is then review the macro to verify the check for operation mode.

If it is not running a macro then find it in the ladder to see why it won't run in Auto.
 

yardbird

Titanium
Joined
Jul 3, 2013
Location
Indiana
No I don't think it is running a macro not any I can see anyways. I've looked at all the protected 9000 programs in the control.

It more then likely is a ladder issue witch I don't know much about but I have a copy I can look at. Would it be obvious when looking? Would I possibly see the code in the ladder?

Thank you btw...

Brent
 

yardbird

Titanium
Joined
Jul 3, 2013
Location
Indiana
Definitely a builder determination. Possibly a keep relay will be provided to change that behavior, but I'd be a bit surprised it they did.


"There is a keep relay that enables the portion of the ladder that allows the M code function. Generally K51#0 on most of the turning centers."

I stumbled across this ^^ top secret info. I have yet to see anything mentioned in any documentation I have for our machines about this M code. None!!

That is a copy/paste from someone on another site elsewhere not my words but the way I take it is the relay enables or disables the feature.

My K51 is set to zero.

Thanks biker...

Brent
 

Vancbiker

Diamond
Joined
Jan 5, 2014
Location
Vancouver, WA. USA
Was that piece of info from the same builder as your machine?

Before changing that, I'd spend a little time perusing the ladder either hardcopy or live to look at the logic controlling the operation of the service M code to see if that keep relay is included in the logic.

Does your 0iTD have the ladder edit function? If so then you could also mod the ladder to allow the service M code to run in Auto mode.

yardbird said:
I stumbled across this ^^ top secret info.

Learning to read ladder can sometimes let one "uncover" un-documented service procedures. When I first got my Mori, I had to figure out how to mod the door interlock function. A bit of study uncovered that to unlock the parameters regarding door functions one had to activate an unlabeled touch screen softkey in addition to the regular parameter write enable setting.
 

yardbird

Titanium
Joined
Jul 3, 2013
Location
Indiana
Was that piece of info from the same builder as your machine?

Actually yes it was.

Before changing that, I'd spend a little time perusing the ladder either hardcopy or live to look at the logic controlling the operation of the service M code to see if that keep relay is included in the logic.

K51 relay is already set to zero and the service M code is functional. I lied to you and after looking at the ladder I did find mention of the M code in a few places.

Does your 0iTD have the ladder edit function? If so then you could also mod the ladder to allow the service M code to run in Auto mode.

I have no idea if this machine is able to edit the ladder at the control. Is there a way to see if it does at the control?

Learning to read ladder can sometimes let one "uncover" un-documented service procedures. When I first got my Mori, I had to figure out how to mod the door interlock function. A bit of study uncovered that to unlock the parameters regarding door functions one had to activate an unlabeled touch screen softkey in addition to the regular parameter write enable setting.

Yes I can see how that would be handy as hell. I've studied the ladder a smidgen and like I say I found the M code but unfortunately other then the words I can read and the codes I recognize the rest of looks like chicken scratches. At this point me modifying the ladder would be one hell of a bone head stunt. I simply don't know what I'd be doing and that idea is off the table for now. I am curious if it's possible on my machine though?

Before I start crying uncle and give up to taking whooping one last ditch thought.

I've used up all my custom G codes I'm allowed is the reason why I decided/had to use a M code and the fact I didn't want hafta change a shit pot full of programs already done switching codes around.

But before I admit defeat would it have made any difference if I had used a custom G code instead of a M code to try and hide service mode code? I remember reading something about one code being able to do something the other couldn't. Maybe it was pass variables idk?

Thanks again everyone!!! I'm going to go lick my wounds now.

Brent
 

Needshave

Aluminum
Joined
Oct 20, 2009
Location
MA
You could try not putting M30 in your program. Use M99 to loop it and M00 to stop it. Activate the service m code in MDI before your first cycle start.
 

LockNut

Stainless
Joined
Jan 6, 2007
Location
Bergen County
Brent,
I just read this thread and have to tell you that the service mode was never meant to run in Auto mode. It is purely an MDI function, hence the "service mode" designation. Again, I will ask when I get into work tomorrow.

Paul
 

yardbird

Titanium
Joined
Jul 3, 2013
Location
Indiana
Brent,
I just read this thread and have to tell you that the service mode was never meant to run in Auto mode. It is purely an MDI function, hence the "service mode" designation. Again, I will ask when I get into work tomorrow.

Paul

Thanks for having a look! I appreciate it Paul...

:cheers:


Brent
 

LockNut

Stainless
Joined
Jan 6, 2007
Location
Bergen County
I didn't tell you this but you can take the key off the door and insert it into the interlock. We do this all the time here in the showroom. In another life we reverse engineered the door keys and had a few wire edm'd and kept on our key chains. I DON"T recommend passing them out to just anybody, seriously.

Paul
 

yardbird

Titanium
Joined
Jul 3, 2013
Location
Indiana
Ha!Ha!...Yeah I've been doing that for years. I get caught doing that today and I'll hafta roll around on the ground pulling hair with the safety pecherhead.

The wonderful thing about the M code is I'm the only one that knows it (other then you of course). He walks up and the machine is spinning with the door open I hit the reset button and at that point get amnesia then let him figger it out and he won't. It's magic...

I'm convinced to do what I'm wanting to do it would take a ladder modification witch is above my pay grade.

Oh well I've tried everything I know to solve this problem. I'll just keep doing as I was.

Paul I really do appreciate you looking into this for me. Thank you!!!

Again thanks to all who replied!

Brent
 








 
Top