beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 382

background image

Publication GMLC-5.2 - November 1999

Task Control

345

By contrast, the following diagram presents an example of incorrect
looping, and causes a runtime error that ends program execution.

Stop Current Task

Stop Current Task stops execution of the task with the Task Control block
and Stop Current Task selected.

Think of each task as a separate concurrent program. Thus, stopping a

task is equivalent to reaching the

block in a diagram, when

multitasking is not enabled. If a task has been stopped via a Task Control
block with Stop Current Task selected, it cannot be resumed by a Task
Control block with Resume Task selected.

The Task Control block, with Stop Current Task selected, is like the

block, in that it has no output node.

Stopping all currently executing tasks aborts the diagram with a No Tasks
Running runtime fault (Runtime_fault = 23).

!

ATTENTION: Do not stop all currently executing tasks.
This may cause unexpected behavior which could cause
damage to machinery, application, or personal injury.