Difference between revisions of "MC-Basic:KILLTASK"
m (1 revision) |
|||
| (6 intermediate revisions by 3 users not shown) | |||
| Line 4: | Line 4: | ||
|SYNTAX= | |SYNTAX= | ||
| − | KillTask '' | + | KillTask <''task''> |
|AVAILABILITY= | |AVAILABILITY= | ||
| Line 16: | Line 16: | ||
|RANGE= | |RANGE= | ||
| − | '' | + | <''task''>: Name of a task that is loaded in memory. |
|UNITS= | |UNITS= | ||
| Line 28: | Line 28: | ||
|LIMITATIONS= | |LIMITATIONS= | ||
| − | Write | + | Write only. Task must be loaded in memory. |
|EXAMPLE= | |EXAMPLE= | ||
| Line 34: | Line 34: | ||
|SEE ALSO= | |SEE ALSO= | ||
| − | * [[ | + | * [[MC-Basic:LOAD|LOAD]] |
| − | * [[ | + | * [[MC-Basic:STARTTASK|STARTTASK]] |
| + | [[Category:MC-Basic:Task Control|KILLTASK]] | ||
}} | }} | ||
Latest revision as of 09:17, 22 May 2014
This command aborts the execution of a task. The program pointer is left on the line at which the task was stopped. All motion being controlled by the specified task is stopped, all attached devices are detached, and all events are cancelled. The task can be restarted using the STARTTASK command. A task that was killed cannot be continued.
Short form
KTas
Syntax
KillTask <task>
Availability
All versions
Range
<task>: Name of a task that is loaded in memory.
Scope
Task or Terminal
Limitations
Write only. Task must be loaded in memory.
Examples
KillTask StartCutting.prg