Re: Fanuc Oi-Mc Control Sub Program Call?
- From: "John R. Carroll" <jcarroll@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 01 Sep 2006 21:35:10 GMT
Anthony wrote:
"John R. Carroll" <jcarroll@xxxxxxxxxxxxxxxxxxxxx> wrote in
news:Lp0Kg.23080$gY6.22179@xxxxxxxxxxxxxxxxxxxxxxxxxx:
seanmc23@xxxxxxxxxxx wrote:
Beege wrote:
<seanmc23@xxxxxxxxxxx> wrote in message
news:1157136086.794821.272180@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Beege wrote:
<seanmc23@xxxxxxxxxxx> wrote in message
news:1157135311.613557.282170@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a long program that I need to let run un-attended over
the weeekend.
Because of the half-assed system we have for loading our
programs here, I need to run this program in 2 parts.
I will be DNC-ing the main program off a Flash memory card. Can
I call another program off the card as a sub-program (M99)
during this DNC run?
Both programs on a flash card, from which I am DNCing mprogram 0100
Sean,
The short answer is no if I understand you correctly. You really are
DNC'ing when you run that card and won't be able to call a sub unless
it's embedded. If you find a work around please let me know. I've
been through this a couple of times over the years and could use a
cool trick to get by this limit.
The quick and dirty method would be a jump to a sub-section of the
program and a return. It's all still in the main program, but it will
work like a sub, depending on how you write it. If you call it
multiple times you will need to assign a variable to keep track of
where to jump back to, but it works.
178 bla-bla-bla
179 #600=1
180 GOTO 900
---
190 bla-bla-bla
---
240 #600=2
241 GOTO 900
---
900 bla
bla
bla
IF[#600EQ1]GOTO190
IF[#600EQ2]GOTO242
Etc.
Yes Anthony, and it's what I call an "embedded sub" or macro. As long as you
don't have to search outside of what's running you are good to go. I'll hang
on to this though and thanks. This is the kind of thing I've done, or seen
done, to look at probe data and then say, run the appropriate roughing
program depending on the value stored when a casting was probed. I'll bet
you do a lot of that sort of thing. It gives me a headache but that's
largely because I do it once and then go two years before needing to do it
again. I have to re-learn the whole thing every time but hey- I'm getting
faster and the curve shorter as I age :>)
LOL
I don't know if you have been behaving and will be getting time off this
weekend but either way, have a good one.
--
John R. Carroll
Machining Solution Software, Inc.
Los Angeles San Francisco
www.machiningsolution.com
.
- Follow-Ups:
- Re: Fanuc Oi-Mc Control Sub Program Call?
- From: Anthony
- Re: Fanuc Oi-Mc Control Sub Program Call?
- From: Anthony
- Re: Fanuc Oi-Mc Control Sub Program Call?
- References:
- Fanuc Oi-Mc Control Sub Program Call?
- From: seanmc23
- Re: Fanuc Oi-Mc Control Sub Program Call?
- From: Beege
- Re: Fanuc Oi-Mc Control Sub Program Call?
- From: seanmc23
- Re: Fanuc Oi-Mc Control Sub Program Call?
- From: Beege
- Re: Fanuc Oi-Mc Control Sub Program Call?
- From: seanmc23
- Re: Fanuc Oi-Mc Control Sub Program Call?
- From: John R. Carroll
- Re: Fanuc Oi-Mc Control Sub Program Call?
- From: Anthony
- Fanuc Oi-Mc Control Sub Program Call?
- Prev by Date: Re: Calipers
- Next by Date: Re: Survey: Do You "Dry Run" Your Programs?
- Previous by thread: Re: Fanuc Oi-Mc Control Sub Program Call?
- Next by thread: Re: Fanuc Oi-Mc Control Sub Program Call?
- Index(es):
Relevant Pages
|