Chapter 6 Using Configurator
- 107 -
3. Initial value of the event flag
[( Definition format )] Numeric value
[( Definition range )] 0 to 0xFFFF
[( Default value )] 0
Specify the initial bit pattern of the event flag.
4. Multi-wait attribute
[( Definition format )] Symbol
[( Definition range )] TA_WMUL or TA_WSGL
[( Default value )] TA_WSGL
Specify whether multiple tasks can be enqueued in the eventflag waiting queue. If TA_WMUL is se-
lected, the TA_WMUL attribute is added, permitting multiple tasks to be enqueued. If TA_WSGL is se-
lected, the TA_WSGL attribute is added, prohibiting multiple tasks from being enqueued.
5. Clear attribute
[( Definition format )] Symbol
[( Definition range )] YES or NO
[( Default value )] NO
Specify whether the TA_CLR attribute should be added as an eventflag attribute. If YES is selected,
the TA_CLR attribute is added. If NO is selected, the TA_CLR attribute is not added.
[( Semaphore definition )]
This definition is necessary to use Semaphore function.
<< Format >>
// Semaphore Definition
semaphore[ ID No. ]{
name = ID name ;
wait_queue = Selecting a semaphore waiting queue ;
initial_count = Initial value of semaphore counter ;
max_count = Maximum value of the semaphore counter ;
};
:
:
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 semaphore ID number.
1. ID Name
[( Definition format )] Symbol
[( Definition range )] None
[( Default value )] None
Define the name with which a semaphore is specified in a program.