beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 375

background image

Publication GMLC-5.2 - November 1999

338

Program Control Blocks

The Task Control block, with Restart Dispatcher selected, immediately
turns multitasking

ON

again and re-activates all tasks (including the main

task) which were active when the fault occurred. Each task continues
from where it was interrupted when the fault occurred. Do not use a Task
Control block with Start New Task selected to start or restart tasks in the
fault handler.

If a global or runtime fault is still active when the Task Control block with
Restart Dispatcher selected executes, the task dispatcher does not restart.
The fault handler is immediately called again via the End Program block,
with When End or Fault selected. This ensures that all faults are cleared
before the program continues.

The connection from the Restart Dispatcher block to the

block

of the diagram is never executed but is required to avoid a translation
error due to an unconnected output node on the restart dispatcher block
when the diagram is translated to a script.

If multitasking was enabled when the fault occurred and the End Program
block with When End or Fault selected executed, the program tasks can
also be re-started via individual Task Control blocks, with Resume Task
selected, after the fault is cleared.

!

ATTENTION: Do not use a Task Control block, with
Start New Task selected, in the fault handler