WAIT and WAITANDRESET Statements

If a RESET statement is used after a WAIT statement to restore the happened state of an event to FALSE (not happened), a period of time exists during which another task could cause the event. For this reason, a WAITANDRESET statement might be more useful than a WAIT statement followed by a RESET statement.