Re: Fanuc Oi-Mc Control Sub Program Call?



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


.



Relevant Pages

  • Re: Enable / Disable 802.1x with some script
    ... Because only one of my network cards support 802.1x the key below only lists ... Sub DoInterfaceSuccess() ... >> I've been able to see network card configuration settings in the following ...
    (microsoft.public.scripting.vbscript)
  • Re: Scout Section Programme Planning under the new regime
    ... number of possible choices for each sub section. ... The chart had a tracking on it, so each individual requirement could be ... say you had johnnie on the Pathfinder Award. ... you just took the card away and filled ...
    (uk.rec.scouting)
  • Still Gold
    ... Looks like I have Gold membership for another month thanks to a 1-month sub I entered some time ago. ... But also, as I was checking, I noticed it still showed the "last 4 digits" of my credit card... ... I guess I'll have to ring up those dear people at MS and account for myself once more! ... it's nice to be on for another month and good game tonight all. ...
    (uk.games.video.misc)
  • RE: Input box sorting?
    ... "Ewing25" wrote: ... Message = "Please Enter Last 5 Digits of Your Card Number" ... MyValue = InputBox ... Exit Sub ...
    (microsoft.public.excel.programming)
  • Re: FOOB 5/1/07: Gah.
    ... of it but Elly's in the "nobody but Anthony" camp anyway. ... out-of-character clanging about-face to have Liz suddenly go cold ... just friends" card - right after she'd been sexually assaulted. ...
    (rec.arts.comics.strips)