Pause Statement

Temporarily stops program execution all tasks for which pause is enabled.

Syntax
Pause

Description
When the Pause is executed, program execution for all tasks with pause enabled (tasks that do not use NoPause or NoEmgAbort in Xqt command) is suspended. Also, if any task is executing a motion statement, it will be paused even if pause is not enabled for that task.

However, Pause cannot stop the background tasks.

Note


  • QP and its Effect on Pause

    The QP instruction is used to cause the arm to stop immediately upon Pause or to complete the current move and then Pause the program. See the QP instruction help for more information.


Pause Statement Example
The example below shows the use of the Pause instruction to temporarily stop execution. The task executes program statements until the line containing the Pause command. At that point the task is paused. The user can then click the Run Window Continue Button to resume execution.

Function main

  Xqt monitor
  Go P1
  On 1
  Jump P2
  Off 1
  Pause    'Suspend program execution
  Go P40
  Jump P50
Fend