# Program does not execute continuously in the Main Module

**URL:** <https://tech-community.robotics.abb.com/t/program-does-not-execute-continuously-in-the-main-module/10427>\
**Category:** RAPID Programming\
**Tags:** proc-main, main-module\
**Created:** [October 20, 2021, 7:21pm UTC](https://tech-community.robotics.abb.com/t/program-does-not-execute-continuously-in-the-main-module/10427 "2021-10-20T19:21:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![moondhir](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@moondhir](https://tech-community.robotics.abb.com/u/moondhir)\
**Post date:** [October 20, 2021, 7:21pm UTC](https://tech-community.robotics.abb.com/t/program-does-not-execute-continuously-in-the-main-module/10427/1 "2021-10-20T19:21:47Z")

</div>

Hi,

I’m having a problem running the program continuously in PROC main ( ). When the controller is switched to Automatic Mode it executes the program in the PROC main ( ) but it stops after the program finishes and does not run continuously as it should.

 ![image.png](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/4/4847f3bc3dfe81b2cb157ed73e639e21f0995362.png)

---

<div class="post-metadata">

**Author:** ![graemepaulin](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@graemepaulin](https://tech-community.robotics.abb.com/u/graemepaulin)\
**Post date:** [October 20, 2021, 7:28pm UTC](https://tech-community.robotics.abb.com/t/program-does-not-execute-continuously-in-the-main-module/10427/2 "2021-10-20T19:28:48Z")

</div>

Is the run mode (middle of RAPID tab) in continuous?

---

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [October 20, 2021, 7:33pm UTC](https://tech-community.robotics.abb.com/t/program-does-not-execute-continuously-in-the-main-module/10427/3 "2021-10-20T19:33:44Z")

</div>

You know, you are not required to be so specific about your location in your profile…

---

<div class="post-metadata">

**Author:** ![moondhir](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@moondhir](https://tech-community.robotics.abb.com/u/moondhir)\
**Post date:** [October 20, 2021, 7:47pm UTC](https://tech-community.robotics.abb.com/t/program-does-not-execute-continuously-in-the-main-module/10427/4 "2021-10-20T19:47:17Z")

</div>

> [@graemepaulin](#):
>
> Is the run mode (middle of RAPID tab) in continuous?
> 
> I’m not sure what you mean

---

<div class="post-metadata">

**Author:** ![graemepaulin](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@graemepaulin](https://tech-community.robotics.abb.com/u/graemepaulin)\
**Post date:** [October 20, 2021, 7:50pm UTC](https://tech-community.robotics.abb.com/t/program-does-not-execute-continuously-in-the-main-module/10427/5 "2021-10-20T19:50:51Z")

</div>

![image.jpg](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/6/6695e25c2828c9cf406ce7d8449ccc26a112a1bb.jpeg)

---

<div class="post-metadata">

**Author:** ![moondhir](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@moondhir](https://tech-community.robotics.abb.com/u/moondhir)\
**Post date:** [October 20, 2021, 7:51pm UTC](https://tech-community.robotics.abb.com/t/program-does-not-execute-continuously-in-the-main-module/10427/6 "2021-10-20T19:51:43Z")

</div>

> [@lemster68](#):
>
> You know, you are not required to be so specific about your location in your profile…

Thank you, I changed it.

---

<div class="post-metadata">

**Author:** ![moondhir](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@moondhir](https://tech-community.robotics.abb.com/u/moondhir)\
**Post date:** [October 20, 2021, 7:59pm UTC](https://tech-community.robotics.abb.com/t/program-does-not-execute-continuously-in-the-main-module/10427/7 "2021-10-20T19:59:39Z")

</div>

> [@graemepaulin](#):
>
> ![image.jpg](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/6/6695e25c2828c9cf406ce7d8449ccc26a112a1bb.jpeg)

Thank you, this is a learning curve for me. I can’t believe I missed such a simple mistake
