# MT\_WaitMsgDI not creating UIMessageBox while RW Tending Window opened \[RWMT\]

**URL:** <https://tech-community.robotics.abb.com/t/mt-waitmsgdi-not-creating-uimessagebox-while-rw-tending-window-opened-rwmt/9581>\
**Category:** RAPID Programming\
**Tags:** rwmt, mt-waitmsgdi, robapi\
**Created:** [June 18, 2020, 10:28am UTC](https://tech-community.robotics.abb.com/t/mt-waitmsgdi-not-creating-uimessagebox-while-rw-tending-window-opened-rwmt/9581 "2020-06-18T10:28:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oliver\_L](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/oliver_l/32/98_2.png) [@Oliver\_L](https://tech-community.robotics.abb.com/u/Oliver_L)\
**Post date:** [June 18, 2020, 10:28am UTC](https://tech-community.robotics.abb.com/t/mt-waitmsgdi-not-creating-uimessagebox-while-rw-tending-window-opened-rwmt/9581/1 "2020-06-18T10:28:29Z")

</div>

Hey there.

We are using RobotWare Machine Tending (6.10.2003.02) and its procedure MT\_WaitMsgDI e.g. for waiting on a PLC-enable signal. If this signal is not in expected state, MT\_WaitMsgDI creates an UIMessageBox with the texts, buttons or icons specified in its given msgdata. This works well while RW Tending Window is not opened on FlexPendant (physically or virtual one, see pic. 1).  
Problem now:  
**If RW Tending Window is opened on FlexPendant (which is required), MT\_WaitMsgDI fails to create the UIMessageBox if the button is btnNone (no Button).** Instead, there is only a small ribbon in the top of the window which shows the specified text on specified background color (see pic. 2).  
If RW Tending Window is opened and button is unequal btnNone (btnOk in my example), UIMessageBox is created (see pic. 3)

Is this wanted behaviour? Can i change it to always create the UIMessageBox?

We need to get events via RobAPI if there is an MT\_WaitMsgDI active (respectively an UIMessageBox), to show specified text on a remote PC. But if no UIMessageBox is created, there no event is triggered.

Or is there an alternate way to trigger the wanted events?

Greetings from Germany,  
Oliver

pic. 1

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

pic. 2

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

pic. 3

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

---

<div class="post-metadata">

**Author:** ![Micky](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Micky](https://tech-community.robotics.abb.com/u/Micky)\
**Post date:** [June 22, 2020, 11:21am UTC](https://tech-community.robotics.abb.com/t/mt-waitmsgdi-not-creating-uimessagebox-while-rw-tending-window-opened-rwmt/9581/2 "2020-06-22T11:21:42Z")

</div>

Hello,

It is intended that the dialog box only appears if the GUI is not open or no inputs are required (btnNone)

For the transmission of the message information to the PLC a signal interface is provided, which can be parameterized via the process configuration (API Commands).  
Furthermore, the event EE\_MSG\_WRITTEN can be used, which calls a routine that takes the current message data. This information can then be transferred to the PLC using socket messaging, for example.

```auto
CONST eventdata ev1:=[EE_MSG_WRITTEN,"printMsg",0];

```

```auto

PROC printmsg(msgdata msg)

    tpwrite msg.Header;
ENDPROC

```
