The object Task |
Manual -> Process Control Engine (PCE) -> Course of actions -> Entering code -> The object Task |
Show all Hide all |
ActualCycleTime |
Property |
Currently achieved cycle time of the task |
CountVariable |
Property |
Number of variables linked to the task |
CycleTime |
Property |
Defined cycle time of the task |
DynProperties |
Property |
|
ErrorNumber |
Property |
|
ErrorString |
Property |
|
Exit |
Event |
|
Init |
Event |
|
ItemVariable |
Method |
|
Main |
Event |
|
MemValue |
Property |
With "Task.MemValue("Name")=value" an internal variable is created and a value is assigned to it. There is no need to declare the variable before. This variable can also be accessed from other tasks. So it allows the exchange of values between tasks. |
Name |
Property |
Name of the current task |
Parent |
Property |
The collection |
Priority |
Property |
Priority of the current task |
Run |
Method |
Starts a task |
Sleep |
Method |
Holds a task |
StartTimer |
Method |
The method "StartTimer" starts a timer of the task. |
Status |
Property |
|
Stop |
Method |
Stops a task |
StopTimer |
Method |
The method "StopTimer" stops a timer of the task. |
Timer |
Event |
|
Type |
Property |
|
Value |
Property |
With "Task.Value("name of linked variable")=value" a variable of the project can get a new value. |