A SERVICE OF

logo

Project 06/2005 Danaher Motion
StartTask starts tasks from the main task. For testing, you can use
STARTTASK from the terminal window. DanaherMotion recommends you
do not use STARTTASK in AutoExec.Prg. The syntax of STARTTASK is:
StartTask <TaskName> {Priority = <Level>}{NumberOfLoops = <Loop Count>}
NOTE
NOL is a short form for NumberOfLoops.
where:
<Level> is a long with value between 1 and 16. If <Level> is not
entered, it defaults to 16, the lowest priority. Priority = 1
is the highest priority.
<Loop Count> is either -1 (indicating unlimited number of loops) or
between 1 and 32768 indicating the number of
times the task is executed. If <Loop Count> is not
entered, it defaults to 1.
For example:
StartTask Task1.Prg Priority=8 NumberOfLoops = -1 'Run Task1 forever
StartTask Main.Prg NOL=1 'Run Main once
IdleTask stops the task at the end of the line currently being executed and
idles all its events. An idled task can be continued (using CONTINUETASK)
or terminated (using KILLTASK). IDLETASK does not stop motion currently
being executed. This is significant because all the events are idled and
cannot respond to an axis' motion. Tasks can be idled explicitly by other
tasks, but cannot idel itself. This command is issued from a task or the
terminal window. The syntax of IdleTask is:
IdleTask <TaskName>
For example:
IdleTask TASK1.PRG
Tasks that have been idled with IDLETASK are restarted only with
CONTINUETASK. The command continues an idled task from the point at
which it was stopped, or continues task execution after a break point has
been reached. It is frequently used to restart tasks from the ONERROR error
handler. If a run time error has occured, CONTINUETASK retries the line
which caused the error. The error must be corrected before the task
continues. This command is issued from any task or the terminal window.
The syntax of ContinueTask is:
ContinueTask <TaskName>
For example:
ContinueTask TASK1.PRG
KillTask aborts the execution of a task. The program pointer is left on the
line at which the task was stopped. The first action of KILLTASK is to kill and
delete all events associated with the task. This is done to ensure that no
event initiates an action after KILLTASK was executed. KILLTASK is issued
from the terminal window. The syntax of the KillTask is:
KillTask <TaskName>
For example:
KillTask TASK1.PRG
58 Rev E M-SS-005-03l