# jumping into a procedure call before a MoveL is completed

**URL:** <https://tech-community.robotics.abb.com/t/jumping-into-a-procedure-call-before-a-movel-is-completed/9580>\
**Category:** RAPID Programming\
**Created:** [June 18, 2020, 5:08am UTC](https://tech-community.robotics.abb.com/t/jumping-into-a-procedure-call-before-a-movel-is-completed/9580 "2020-06-18T05:08:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![DerrickSA](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@DerrickSA](https://tech-community.robotics.abb.com/u/DerrickSA)\
**Post date:** [June 18, 2020, 5:08am UTC](https://tech-community.robotics.abb.com/t/jumping-into-a-procedure-call-before-a-movel-is-completed/9580/1 "2020-06-18T05:08:49Z")

</div>

Good day all, sorry for a possible stupid question. Since today I have had this problem and do not now what has changed? I have tried many things and cannot figure out what I messed up so a little guidance would be appreciated a lot!

so when running this program it is supposed to complete the second MoveL to get to a position and the nun the LaserStart procedure. this was WORKING perfect for months now.

but today my operator called me to come look at a problem and what I have noticed is that it jumps into procedures before moves are completed. so LaserStart and Stop will execute even before the MoveL’s are completed like they used to.

I tried to make a new program as a test and did the same. so obviously some setting got messed up but I cannot find it,

If I may ask for a little help with what I am doing wrong I would really appreciate it very much.

I thank you all  
Derrick

n

---

<div class="post-metadata">

**Author:** ![dnilsson](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/dnilsson/32/795_2.png) [@dnilsson](https://tech-community.robotics.abb.com/u/dnilsson)\
**Post date:** [June 18, 2020, 5:13am UTC](https://tech-community.robotics.abb.com/t/jumping-into-a-procedure-call-before-a-movel-is-completed/9580/2 "2020-06-18T05:13:09Z")

</div>

Hi,  
I don’t know what have happened here, but insert this line:  
WaitRob \InPos;  
Insert it between your MovLe instruction and your LaserStart call  
That will let the robot wait until it reached the end of MoveL before it continues.

---

<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:** [June 18, 2020, 12:00pm UTC](https://tech-community.robotics.abb.com/t/jumping-into-a-procedure-call-before-a-movel-is-completed/9580/3 "2020-06-18T12:00:19Z")

</div>

You have a z50 zone in that MoveL, the robot will read ahead and start executing the following routine. Make it a fine point.

---

<div class="post-metadata">

**Author:** ![jmf](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/jmf/32/762_2.png) [@jmf](https://tech-community.robotics.abb.com/u/jmf)\
**Post date:** [June 18, 2020, 12:22pm UTC](https://tech-community.robotics.abb.com/t/jumping-into-a-procedure-call-before-a-movel-is-completed/9580/4 "2020-06-18T12:22:08Z")

</div>

Or if you want to try TriggLDO instruction. Trigger a signal at the point then add “IF signal=HIGH LaserStart; Reset signal”. This will give better control over the Routine when calling that Routine at that specific point or after that point.

---

<div class="post-metadata">

**Author:** ![DerrickSA](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@DerrickSA](https://tech-community.robotics.abb.com/u/DerrickSA)\
**Post date:** [June 21, 2020, 4:56pm UTC](https://tech-community.robotics.abb.com/t/jumping-into-a-procedure-call-before-a-movel-is-completed/9580/5 "2020-06-21T16:56:31Z")

</div>

Hi there.

thanks will try that shortly. I appreciate the help a lot.

will give feedback once tried when I get to work.

thanks again  
Derrick

---

<div class="post-metadata">

**Author:** ![DerrickSA](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@DerrickSA](https://tech-community.robotics.abb.com/u/DerrickSA)\
**Post date:** [June 21, 2020, 4:56pm UTC](https://tech-community.robotics.abb.com/t/jumping-into-a-procedure-call-before-a-movel-is-completed/9580/6 "2020-06-21T16:56:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DerrickSA](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@DerrickSA](https://tech-community.robotics.abb.com/u/DerrickSA)\
**Post date:** [June 21, 2020, 4:56pm UTC](https://tech-community.robotics.abb.com/t/jumping-into-a-procedure-call-before-a-movel-is-completed/9580/7 "2020-06-21T16:56:31Z")

</div>

It does not seem to have WaitRob available to me? Sorry for the dumb questions he he

---

<div class="post-metadata">

**Author:** ![DerrickSA](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@DerrickSA](https://tech-community.robotics.abb.com/u/DerrickSA)\
**Post date:** [June 21, 2020, 4:56pm UTC](https://tech-community.robotics.abb.com/t/jumping-into-a-procedure-call-before-a-movel-is-completed/9580/8 "2020-06-21T16:56:31Z")

</div>

Sorry was a bit hasty there. Found it under the MorionSetAdv

---

<div class="post-metadata">

**Author:** ![DerrickSA](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@DerrickSA](https://tech-community.robotics.abb.com/u/DerrickSA)\
**Post date:** [June 21, 2020, 4:56pm UTC](https://tech-community.robotics.abb.com/t/jumping-into-a-procedure-call-before-a-movel-is-completed/9580/9 "2020-06-21T16:56:31Z")

</div>

Works 100% thank you very much

---

<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:** [June 22, 2020, 11:33am UTC](https://tech-community.robotics.abb.com/t/jumping-into-a-procedure-call-before-a-movel-is-completed/9580/10 "2020-06-22T11:33:18Z")

</div>

If you leave the z50 there, it will generate a corner path failure. Those do not stop the robot or even show up as an alarm but they will fill up your motion event log, flushing out other, perhaps more important, errors that you might want to see. However, you can turn that off in the system parameters, in the motion planner, I think.
