beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 380

background image

Publication GMLC-5.2 - November 1999

Task Control

343

Turn on multitasking by re-enabling the previously disabled task
dispatcher (Restart Dispatcher Type).

The task control block resides on the Main Palette.

Start New Task

Start New Task enables multitasking and begins execution of a new task
while execution of the current task continues. The new task blocks are
attached to the bottom node, and the remaining current task blocks are
attached to the top node. The two tasks continue operating concurrently
(in parallel) until the program ends, or encounters a Task Control block
with either Stop Current Task or Stop Other Task selected.

For example, the following GML Commander diagram starts a second
task (task 1) while the main program (task 0) continues.

To start more than one additional task, cascade multiple Task Control
blocks with Start New Task selected.