Welcome, Guest. Please login or register.
Did you miss your activation email?
February 08, 2012, 10:58:21 AM
Home Help Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question / Answer to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Industrial Robot Help and Discussion Center
| |-+  KUKA Robot Forum (Moderators: Werner Hampel, Martin H, SkyeFire)
| | |-+  Program stack overflow
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Program stack overflow  (Read 408 times)
tomasss
Newbie
*
Offline Offline

Posts: 28


« on: September 01, 2010, 01:09:19 PM »

Good day,

I use KUKA KRC1 with software V 3.2.6 SPO1

I create new Program structure

Haupt program (haupt981), Polishing program (P981_PM), Glanc program (g981_PM)
I run the robot on automatic cycle and whe the robot made 7 piece that signifies (7x passage all programs). The when the robot jump from (haupt981) to (P981_PM) robot arm will stops  on INI (Inicialization) and in the text window is Program stack overflow. But I dont know where is mistake
every time  jamming up 7 repetition
http://img20.imageshack.us/i/programstackoverflow.jpg/

Please coukd you help me?
Logged
SkyeFire
Global Moderator
*****
Offline Offline

Posts: 1625


« Reply #1 on: September 01, 2010, 05:12:50 PM »

One of your programs, rather than ending properly, is calling the higher level program again.  You have something like this going on: 
Code:
DEF Program1()
  Program2()
END
DEF PROGRAM 2()
  Program3()
END
DEF PROGRAM3()
  Program1() ; DO NOT DO THIS!!!!  Simply let the program run to the END statement and the pointer will return to Program2 naturally.
END

Except under very specific conditions, a program should never call itself, or the program that called it, or the program that called the program that called it.  What's happening in the example above is that Program3 never ends, but instead calls a new second instance of Program1, which calls a new second instance of Program2, and so on.  The KRC controller can do this, but only up to a limited point -- the stack can only hold so many programs.  When you call one program too many, the error occurs.

Without seeing your code, I can't tell you where your bug is, but it's definitely something like this.



Logged
tomasss
Newbie
*
Offline Offline

Posts: 28


« Reply #2 on: September 13, 2010, 12:01:46 PM »

I had wrong program-structure. I solved this problem, thank you for your advice.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

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