Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 814 -
------------------------------------------------------------------------------
13. Signal semaphore <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
os_sign_sem
[Syntax]
#include <oscall.h>
unsigned short os_sign_sem( unsigned char semaphore_id ) ;
[Argument]
semaphore_id semaphore ID
[Return]
0 successful completion
EC_SEMID Semaphore ID error
EC_NXSTSEM Non-existent semaphore
EC_SEMOVF Semaphore overflow
[Description]
Signals the semaphore specified by the "semaphore_id" argument.
This function increments the semaphore counter, and runs the task
at the top of the semaphore queue if the value of the semaphore
counter becomes less than or equal to zero.