Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 799 -
(b) Signaling the "AND waiting" task
operation
~~~~~~~~~
wait message = ~signal message & wait message
if( wait message == 0 )
Ready ===> waked
signal message wait message
0..0000XXX 0..0000111
NOT | |
1..1111XXX -> AND <------+
|
| ==0
0..0XXX -----> waked
| !=0
V
suspended
(4) Clearing the event flag
os_clar_flg() function call clears specified bit of the event flag image.
For example, to clear flag 1 ,specify "0x00000001" for the parameter of
os_clar_flg(). (This parameter is referred to as "clear message".)
operation
~~~~~~~~~
flag image = ~clear message & flag image
clear message event flag image
0..0000001 0..0000111
NOT | |
1..1111110 -> AND <-----+
|
new event flag image
0..0110
(Note) Clearing the event flag image does not affect the state of
suspending tasks.