# UIMsgWrite - What am I doing wrong???? Cant get the message to clear from TP

**URL:** <https://tech-community.robotics.abb.com/t/uimsgwrite-what-am-i-doing-wrong-cant-get-the-message-to-clear-from-tp/10440>\
**Category:** RAPID Programming\
**Created:** [October 27, 2021, 12:12pm UTC](https://tech-community.robotics.abb.com/t/uimsgwrite-what-am-i-doing-wrong-cant-get-the-message-to-clear-from-tp/10440 "2021-10-27T12:12:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeteMitchell](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@PeteMitchell](https://tech-community.robotics.abb.com/u/PeteMitchell)\
**Post date:** [October 27, 2021, 12:12pm UTC](https://tech-community.robotics.abb.com/t/uimsgwrite-what-am-i-doing-wrong-cant-get-the-message-to-clear-from-tp/10440/1 "2021-10-27T12:12:38Z")

</div>

UIMsgWrite “Robot is searching for Part”,“”\Icon:=iconInfo; SearchL\SStop,sFastSearch\LowLevel,pstartSearch,pEndSrchPos,sdSearchFast,tTool\WObj:=wSetWobj;  
UIMsgWriteAbort;

---

<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 27, 2021, 2:20pm UTC](https://tech-community.robotics.abb.com/t/uimsgwrite-what-am-i-doing-wrong-cant-get-the-message-to-clear-from-tp/10440/2 "2021-10-27T14:20:19Z")

</div>

What you have looks correct according to the manual. Try TPShow.

---

<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:** [October 28, 2021, 7:54am UTC](https://tech-community.robotics.abb.com/t/uimsgwrite-what-am-i-doing-wrong-cant-get-the-message-to-clear-from-tp/10440/3 "2021-10-28T07:54:00Z")

</div>

I think that the Robot search and because you are using \SStop, it stops the executing when position have been found. Have you tried other optional parameters other than \SStop?

---

<div class="post-metadata">

**Author:** ![PeteMitchell](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@PeteMitchell](https://tech-community.robotics.abb.com/u/PeteMitchell)\
**Post date:** [October 28, 2021, 8:33am UTC](https://tech-community.robotics.abb.com/t/uimsgwrite-what-am-i-doing-wrong-cant-get-the-message-to-clear-from-tp/10440/4 "2021-10-28T08:33:13Z")

</div>

@jmf - we have commented out the Search to see if this has an affect, unfortunately not.
