!RT Set event after a wait time |
Syntax
value32: 32-bit long immediate value Binary code
TIME0 is the ATIME value when the wait event was set. After power on, TIME0 is set to 0. RTIME is updated together with ATIME, at each slow loop sampling period. Remark: ATIME and RTIME start ONLY after the execution of the ENDINIT (end of initialization) command. Therefore you should not set wait events before executing this command After you have programmed an event monitoring you need to wait until the programmed event occurs, using the TML command WAIT!. Otherwise, the program will continue with the next instructions that may override the event monitoring.
Example //Introduce a 100 ms delay !RT 100; // set event: After a wait of 100 slow-loop periods // 1 slow-loop period = 1ms WAIT!; // wait the event to occur |