Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 805 -
------------------------------------------------------------------------------
4. Suspend execution of task for specified time period <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
os_wait_tim
[Syntax]
#include <oscall.h>
unsigned short os_wait_tim( unsigned long timeout_value ) ;
[Argument]
timeout_value time period to wait
[Return]
0 successful completion
EC_TIMOUT Time Out
[Description]
Suspends execution of the calling task for the specified time period.
This function cannot suspend the execution of tasks other than the
calling task.
This function does not return error value, zero. When specified time
period is elapsed, returns error value, EC_TIMOUT.
The calling task is suspended for the period of "timeout_value" time.
The maximum value of the timeout_value is FFFFFFFFh which corresponds
to 397 days, 16 hours, 22 minutes, 18 seconds, and 360 milli seconds.
The unit of the timeout_value is Tick (=8 msec).