# Disable "Max time expired" warning in event log

**URL:** <https://tech-community.robotics.abb.com/t/disable-max-time-expired-warning-in-event-log/9668>\
**Category:** RAPID Programming\
**Created:** [August 24, 2020, 2:54pm UTC](https://tech-community.robotics.abb.com/t/disable-max-time-expired-warning-in-event-log/9668 "2020-08-24T14:54:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geoffrey\_Borny](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@Geoffrey\_Borny](https://tech-community.robotics.abb.com/u/Geoffrey_Borny)\
**Post date:** [August 24, 2020, 2:54pm UTC](https://tech-community.robotics.abb.com/t/disable-max-time-expired-warning-in-event-log/9668/1 "2020-08-24T14:54:04Z")

</div>

Is there a way to disable this message from being added to the event log.  
I need the max time on the waitwobj instruction to do some checks in the error handler, but I don’t want this message to spam the event log.

**_40538: Max Time Expired_**

_Description_

_Task: T\_ROB1.The programmed waiting time has expired.Program ref: /M\_Motion/Place\_ConveyorTr\*\*acking/WaitWObj/90._

_Actions_  
_Recovery: ERR\_WAIT\_MAXTIME._

---

<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:** [August 24, 2020, 3:00pm UTC](https://tech-community.robotics.abb.com/t/disable-max-time-expired-warning-in-event-log/9668/2 "2020-08-24T15:00:59Z")

</div>

Are you using TimeFlag? Like this:

WaitUntil diClosed\_A=0\MaxTime:=2\TimeFlag:=bAdvancedFlag;  
IF bAdvancedFlag RAISE erStillAdvanced;

If that optional argument is available for WaitWobj.

---

<div class="post-metadata">

**Author:** ![Geoffrey\_Borny](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@Geoffrey\_Borny](https://tech-community.robotics.abb.com/u/Geoffrey_Borny)\
**Post date:** [August 24, 2020, 3:14pm UTC](https://tech-community.robotics.abb.com/t/disable-max-time-expired-warning-in-event-log/9668/3 "2020-08-24T15:14:05Z")

</div>

Yes, this optional argument is available for WaitWobj.  
I will try to add it and see if this solves my problem.
