236
8. Extended
information
[( Definition format )]
Numeric
value
[( Definition range )]
0 to 0xFFFFFFFF
[( Default value )]
0
Define the extended information of a task. This information is passed to the task as argument when it is restarted
by a queued startup request, for example.
[( Eventflag definition )]
This definition is necessary to use Eventflag function.
<< Format >>
// Eventflag Definition
flag[
ID No.
]{
name
=
Name
;
wait_queue
=
Selecting an event flag waiting queue
;
initial_pattern =
Initial value of the event flag
;
wait_multi
=
Multi-wait attribute
;
clear_attribute =
Clear attribute
;
};
:
:
The ID number must be in the range of 1 to 255. The ID number can be omitted.
If omitted, numbers are automatically assigned sequentially beginning with the smallest.
<< Content >>
Define the following for each eventflag ID number.
1. ID
Name
[( Definition format )]
Symbol
[( Definition range )]
None
[( Default value )]
None
Define the name with which an eventflag is specified in a program.
2. Selecting an event flag waiting queue
[( Definition format )]
Symbol
[( Definition range )]
TA_TFIFO
or
TA_TPRI
[( Default value )]
TA_TFIFO
Select a method in which tasks wait for the event flag. If TA_TFIFO is selected, tasks are enqueued in order of
FIFO. If TA_TPRI is selected, tasks are enqueued in order of priority beginning with the one that has the highest
priority.
3. Initial value of the event flag
[( Definition format )]
Numeric
value
[( Definition range )]
0 to 0xFFFFFFFF
[( Default value )]
0
Specify the initial bit pattern of the event flag.