PDA

View Full Version : GOSUB TEST_CLEAR error



jonny_apple_seed
03-23-2007, 12:10 PM
Help:

I am getting an error from the zzero.sbp file. The error I get is "Too Many Nested GOSUBS. [GOSUB TEST_CLEAR] line:63"

The header in the zzero.sbp file I am running is as follows:

'ZZERO.SBP -- Example File showing how to Zero Z Axis on contact plate
'Copyright 1998-2005. ShopBot Tools, Inc.
'T.Hall 12/98,7/00,5/01,4/04,7/05
'B.Young 9/05

This is a major headache for me as I can call this program 10 time and have no problems but the 11th time I get the error without fail, usually half way through a production run. I am using C2 to call the zzero program. My only solution is to stop the cut file I am running and close and re-load the ShopBot control program.

If anyone has any ideas what I can do please help.

paco
03-23-2007, 01:27 PM
Which control software release?

Have you made any custom modification?

The only "11th time I run the routine" thing, can you duplicate this; is it always the same, each time you reach the point where you have run the routine 10 times it'll fail on the 11th?

bill.young
03-23-2007, 02:03 PM
Hey Jon,

The version of the Zzero routine you're using is an older one...the current one was updated on 4/06...so I'm guessing that you're running an older version of the ShopBot software. As far as I can tell, though, this isn't a known bug that's been fixed so it's kind of mysterious...I just ran the z-zero routine 21 times without seeing that error which means we'll have to dig a little deeper.

The best thing to do is to send an email to ShopBot support with as many details as you can...what version of the ShopBot software you're running, any modifications you've made to the Zzero routine, etc and attach a copy of the file that you're running that calls the C2 command and we'll see if we can figure it out.

Bill

richards
03-23-2007, 03:27 PM
Jon,
I think that you're stuffing the stack with repeated calls to that subroutine. Somehow, it appears, that the stack is not being cleared properly between Z-zero calls.

jonny_apple_seed
03-23-2007, 05:39 PM
It looks like I am running version 3.3.18 on the computer that is running the ShopBot but version 3.4.27 on the computer I run simulations.

I will update to the current version and see if that fixes my problem. If I still have the same problem I will drop a note to ShopBot support with all the particulars and see what they can do.

Thanks for all the input.