Sleep (Function) |
Top Previous Next |
Sleep is a simple function that will take the specified number of milliseconds to complete before it returns control to the caller. This is a quick way of introducing delays in a program. However, a cleaner and better way is often to use one of the different timers available, such as the TON timer.
Input: delay : INT (0..32767) Number of milliseconds to wait before returning.
Returns: None.
Declaration: FUNCTION Sleep;
Example: INCLUDE rtcu.inc |