beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 371

background image

Publication GMLC-5.2 - November 1999

334

Program Control Blocks

If you selected, in the End Program block with When End or Fault
selected, either of the following the shutdown routine also executes if a
runtime or global fault (respectively) occurs.

Runtime Faults

A diagram that includes an End Program block with When End or Fault
and Go to When End if Runtime Fault Occurs selected, causes the
program flow to branch to the End Program block with When End or

Fault selected, rather than flow directly to the

block, when either

of the following occurs:

a runtime fault occurs (Runtime_fault

0)

an End type block executes

This is useful when runtime faults must be intercepted and handled within
the application program (generated from the GML Commander diagram
and downloaded to the motion controller) to avoid having to reset the
motion controller to restart the application. If multitasking is ongoing
when a runtime fault occurs, all tasks (including the main task) are
suspended automatically as if a Task Control block with Stop Dispatcher
selected had been executed.

See Handling Faults in GML Commander, for more information on
recovering from a runtime fault and restarting the task dispatcher.