Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 07:40:06 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Return Called with no sub in effect...Looping
Pages: 1   Go Down
Print
Author Topic: Return Called with no sub in effect...Looping  (Read 535 times)
0 Members and 2 Guests are viewing this topic.
Mariah
Active Member

Offline Offline

Posts: 8


View Profile
« on: April 07, 2011, 10:10:03 PM »

When I single block through the last few lines of my subroutine there is an error message that says  "Return Called with no sub in effect...Looping"  M99 is only placed once at the end of the subroutine, what does this message mean?

Thanks
Mariah
Logged
ostie01
Active Member

Offline Offline

Posts: 563


View Profile
« Reply #1 on: April 08, 2011, 02:07:00 AM »

Try adding a P address after the M99 to try a different line for the return.

Maybe M99 P100 to return to line 100 or whatever line you want to return.


Jeff
Logged
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #2 on: April 08, 2011, 02:55:24 PM »

IF you are just stepping down throught the sub without it being called you WILL get that message beacuse mach see the sub end without a return call to the main program.

(;-) TP
Logged
Mariah
Active Member

Offline Offline

Posts: 8


View Profile
« Reply #3 on: April 08, 2011, 03:09:50 PM »

I thought M99 meant end of sub & return to next line of main program.  How should I return call to main program for successive cuts that will feed Z farther into my part?  When I run in auto cycle it reads my whole main program but ignors any tool or fixture offsets to remove additional stock and it doesn't show any error message?
Logged
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #4 on: April 08, 2011, 04:04:32 PM »

M99 means end of sub return back to the line (M98 P#L#) it was called from and continue the main program.

IF it is not seeing the offsets then something is wrong with your code.

For succesive lower cuts use the sub loop function  M98 P100 L10   the L10 loops the sub 10 times.

(;-) TP

Logged
Mariah
Active Member

Offline Offline

Posts: 8


View Profile
« Reply #5 on: April 09, 2011, 11:28:58 PM »

Jeff, TP,

Guys I want to thank you both for your help, but my brain is fried.  I have read Smid's 3rd edition programming manual over and over along with the Mach Turn pdf info and I just can't get my control to respond to the offsets.  I just realized that I have spent over 100hrs. troubleshooting a simple program with no progress...I give up.
Thanks,
Mariah
Logged
ostie01
Active Member

Offline Offline

Posts: 563


View Profile
« Reply #6 on: April 10, 2011, 12:21:37 AM »

Here's for you. Cheesy

http://www.youtube.com/watch?v=qiu6RMMNERs


Jeff
Logged
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #7 on: April 10, 2011, 03:11:43 PM »

Can you post your gcode file?? That way we can test it for you.

(;-) TP
Logged
TramAlot
Active Member

Offline Offline

Posts: 129


View Profile
« Reply #8 on: April 10, 2011, 03:38:37 PM »

Jeff, TP,

Guys I want to thank you both for your help, but my brain is fried.  I have read Smid's 3rd edition programming manual over and over along with the Mach Turn pdf info and I just can't get my control to respond to the offsets.  I just realized that I have spent over 100hrs. troubleshooting a simple program with no progress...I give up.
Thanks,
Mariah

What helps me when I take in too much new information at one time is to give it a rest for a few days, when I go back to it I seem to forget a lot of useless junk and tend to find the solution quicker.....

Don't give up I've been lurking here for a year and these guy's will stick with it as long as you can!
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!