1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. Fanuc Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Program Stack Size

  • bencor21
  • April 13, 2018 at 9:15 PM
  • Thread is Resolved
  • bencor21
    Reactions Received
    10
    Trophies
    3
    Posts
    109
    • April 13, 2018 at 9:15 PM
    • #1

    I recently got an alarm INTP-302 Stack Overflow when running a TP program. Tried a number of things, rebooting, etc. to not get this but no luck. Quick internet search & saw about increasing the stack size in the TP program detail page. In my many years of dealing with Fanuc robots, I have never seen this alarm & have often overlooked this field on the detail page. I see that 500 is the default & minimum value. Does anyone have any info as to when it may be necessary to increase this or anything to look for. The Fanuc information that I found is pretty basic.

  • Robo_Eng_13
    Reactions Received
    26
    Trophies
    4
    Posts
    432
    • April 13, 2018 at 9:37 PM
    • #2

    If you are hitting a stack limit of 500, it sounds like you have programs that are sub-calling in a loop and never reaching their end to return to where they were called from, but i do not have the experience to say for certain that this would be the most likely cause with Fanuc.

  • bencor21
    Reactions Received
    10
    Trophies
    3
    Posts
    109
    • April 13, 2018 at 9:46 PM
    • #3

    If I was running my Main program, I could see that, it gets many levels deep. But when I was getting this, I was running a GO_HOME routine, which just does some decision making & has some moves to get safely home. Nothing overly complicated at all. That's why I was trying the normal function, abort all. That's supposed to kill the program stack (or so I thought). Rebooted. Tried coming up through a controlled start. Nothing. One time it started to move then almost got home & got the alarm. All I did was take the stack size from 500 to 1000 & it finished. I even put it back to 500 & it then did not get the alarm. That's why I was really puzzled.

  • Robo_Eng_13
    Reactions Received
    26
    Trophies
    4
    Posts
    432
    • April 13, 2018 at 10:06 PM
    • #4

    That is very odd... No background logic, Karel, or Macros that might be being triggered and running unnoticed?

  • bencor21
    Reactions Received
    10
    Trophies
    3
    Posts
    109
    • April 13, 2018 at 11:08 PM
    • #5

    No Karel or macros, but 2 background logic programs. Neither of which are that large & have remained unchanged for months.

  • HawkME
    Reactions Received
    570
    Trophies
    11
    Posts
    3,269
    • April 14, 2018 at 1:52 AM
    • #6

    It may help if you post the code. The only time I have seen this error is when you have recursion.

    Example:

    Program A calls program B
    Program B calls Program C
    Program C calls Program A

    It may be buried in your program and hard to find, but this behavior quickly eats up all the available memory on the robot.

  • bencor21
    Reactions Received
    10
    Trophies
    3
    Posts
    109
    • April 14, 2018 at 3:18 AM
    • #7

    HawkME, the program I was running is a program I have also not modified in months since the cell installation. Just a really generic get safely to home program. I totally get what you're saying but that's definitely not it. & like I also said, I increased the stack size in the program details from 500 to 1000 to get it to run, then put it back to 500 to see if the alarm would happen again, & it did not. It was really weird.

  • alive15
    Reactions Received
    15
    Trophies
    3
    Posts
    161
    • April 16, 2018 at 10:04 PM
    • #8

    Yo Bencor21, is your program still running or did you get the fault again? I'm interested to see what the solution is to your problem.

  • bencor21
    Reactions Received
    10
    Trophies
    3
    Posts
    109
    • April 17, 2018 at 1:07 PM
    • #9

    It's running. Exactly as I said, tried to run a program, got the fault numerous times trying numerous remedies. Ultimately changed stack size in program detail screen to 1000, ran fine, no errors. Put it back to 500 where it was initially & it still ran fine. So the only thing I changed, I reverted back to & the alarm did not reappear.

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download